open-wc

Open Web Components: guides, tools and libraries for developing web components.

MIT License

Downloads
3.1M
Stars
2.2K
Committers
233

Bot releases are visible (Hide)

open-wc - @open-wc/[email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

open-wc - [email protected]

Published by github-actions[bot] about 3 years ago

Major Changes

  • ed2b36e8: chore: remove intl list format
  • ed2b36e8: Remove eslint dependency (in favour of peer dependency)
open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

  • 1649ba46: Release bump version as major versions have already been used and unpublished in an accidental publish about a year ago.
open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

  • 1649ba46: Release bump version as major versions have already been used and unpublished in an accidental publish about a year ago.
  • Updated dependencies [1649ba46]
open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

  • 1649ba46: Release bump version as major versions have already been used and unpublished in an accidental publish about a year ago.
  • Updated dependencies [1649ba46]
open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

  • 1649ba46: Release bump version as major versions have already been used and unpublished in an accidental publish about a year ago.
open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

  • 72e67571: Fix type error caused by getScopedElementsTemplate by adding ScopedElementsTemplateGetter
open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Minor Changes

  • 22c4017c: Undo deprecation of the html and unsafeStatic exports to enable matching lit versions to what is used in fixture.

    A typical testing file looks like this

    import { html, fixture } from '@open-wc/testing'; // html will be lit-html 2.x
    
    it('works for tags', async () => {
      const el = await fixture(
        html`
          <my-el></my-el>
        `,
      );
    });
    

    With this export you can combine the usage of lit-html 2.x for the fixture and template rendering in lit-html 1.x

    import { html as fixtureHtml, fixture } from '@open-wc/testing'; // fixtureHtml will be lit-html 2.x
    import { html } from 'my-library'; // html will be lit-html 1.x
    
    it('works for tags', async () => {
      const el = await fixture(fixtureHtml`<my-el></my-el>`);
    });
    
    it('can be combined', async () => {
      class MyExtension extends LibraryComponent {
        render() {
          // needs to be lit-html 1.x as the library component is using LitElement with lit-html 1.x
          return html`
            <p>...</p>
          `;
        }
      }
    
      // fixture requires a lit-html 2.x template
      const el = await fixture(fixtureHtml`<my-el></my-el>`);
    });
    

    NOTE: If you are using fixture for testing your lit-html 1.x directives then this will no longer work.
    A possible workaround for this is

    import { html, fixture } from '@open-wc/testing'; // html will be lit-html 2.x
    import { render, html as html1, fancyDirective } from 'my-library'; // html and render will be lit-html 1.x
    
    it('is a workaround for directives', async () => {
      const node = document.createElement('div');
      render(html1`<p>Testing ${fancyDirective('output')}</p>`, node);
    
      // you can either cleanup yourself or use fixture
      const el = await fixture(
        html`
          ${node}
        `,
      );
    
      expect(el.children[0].innerHTML).toBe('Testing [[output]]');
    });
    
open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Minor Changes

  • 22c4017c: Undo deprecation of the html and unsafeStatic exports to enable matching lit versions to what is used in fixture.

    A typical testing file looks like this

    import { html, fixture } from '@open-wc/testing'; // html will be lit-html 2.x
    
    it('works for tags', async () => {
      const el = await fixture(
        html`
          <my-el></my-el>
        `,
      );
    });
    

    With this export you can combine the usage of lit-html 2.x for the fixture and template rendering in lit-html 1.x

    import { html as fixtureHtml, fixture } from '@open-wc/testing'; // fixtureHtml will be lit-html 2.x
    import { html } from 'my-library'; // html will be lit-html 1.x
    
    it('works for tags', async () => {
      const el = await fixture(fixtureHtml`<my-el></my-el>`);
    });
    
    it('can be combined', async () => {
      class MyExtension extends LibraryComponent {
        render() {
          // needs to be lit-html 1.x as the library component is using LitElement with lit-html 1.x
          return html`
            <p>...</p>
          `;
        }
      }
    
      // fixture requires a lit-html 2.x template
      const el = await fixture(fixtureHtml`<my-el></my-el>`);
    });
    

    NOTE: If you are using fixture for testing your lit-html 1.x directives then this will no longer work.
    A possible workaround for this is

    import { html, fixture } from '@open-wc/testing'; // html will be lit-html 2.x
    import { render, html as html1, fancyDirective } from 'my-library'; // html and render will be lit-html 1.x
    
    it('is a workaround for directives', async () => {
      const node = document.createElement('div');
      render(html1`<p>Testing ${fancyDirective('output')}</p>`, node);
    
      // you can either cleanup yourself or use fixture
      const el = await fixture(
        html`
          ${node}
        `,
      );
    
      expect(el.children[0].innerHTML).toBe('Testing [[output]]');
    });
    

Patch Changes

open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

  • 4b9ea6f6: Use [email protected] stable based dependencies across the project.
  • 45c7fcc1: Import scoped registries code dynamically to prevent library consumers that do not leverage this API from being bound to its load order requirements.
  • Updated dependencies [4b9ea6f6]
open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

  • 4b9ea6f6: Use [email protected] stable based dependencies across the project.
  • 945d1d9c: Remove unused dependency on mocha as the environment should bring it.
  • 45c7fcc1: Import scoped registries code dynamically to prevent library consumers that do not leverage this API from being bound to its load order requirements.
  • Updated dependencies [4b9ea6f6]
  • Updated dependencies [45c7fcc1]
open-wc - [email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

  • 6940a3cb: fix: override bad publication
open-wc - [email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

  • b6e868d5: Use latest MDJS dependencies
open-wc - @open-wc/[email protected]

Published by github-actions[bot] about 3 years ago

Patch Changes

  • b6e868d5: Use latest dependencies
open-wc - @open-wc/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • 407c9354: support lit2 elements (using scoped-custom-element-registry) in ScopedElementsMixin v1
open-wc - @open-wc/[email protected]

Published by github-actions[bot] over 3 years ago

Patch Changes

  • d076f6a0: update rollup-plugin-workbox
open-wc - @open-wc/[email protected]

Published by github-actions[bot] over 3 years ago

Major Changes

  • f377bf99: switch from open-wc plugins to web plugins. see MIGRATION.md for a migration guide