Skip to content

v2.0.0-beta.6

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 08 Jan 18:19
2.0.0-beta.6
95f659d

Changed

  • Improve services performances (#176)
  • Breaking: Events emitted by a component must be configured (#178)

      class Foo extends Base {
        static config = {
          name: 'Foo',
    +     emits: ['open', 'close'],
        };
      
        open() {
          this.$emit('open');
        }
      
        close() {
          this.$emit('close);
        }
      }
  • Update NPM dependencies (#177)

Removed

  • Breaking: Remove get:... events to alter $refs, $options, $services and $children getters (4e29610)

    The getters should be overwritten in child classes to alter their value:

    class Foo extends Base {
      static config = {
        name: 'Foo',
      };
    
      get $refs() {
        const $refs = super.$refs;
        $refs.myCustomRef = document.querySelector('.my-custom-ref');
        return $refs;
      }
    }