Skip to content

@ktsn ktsn released this Sep 17, 2020 · 4 commits to master since this release

Bug Fixes

  • make mixins helper type compatible with previous usage (#454) (bdcec69)

    This is a fix to retain backward compatibility to the old mixins type. Although it is recommended not to manually specify mixin types via the type parameters of mixins. e.g.

    // NOT recommended
    @Component
    class MyComp extends mixins<Foo & Bar>(Foo, Bar) {
      // ...
    }

    Because you can pass any type to the parameter even if it is not matched with the actual mixin structure.

    If you want to specify a generic type parameter for your class component, you can extend it before passing in mixins helper.

    @Component
    class GenricComponent<T> extends Vue {
      value: T
    }
    
    // Specify the generic parameter by extending it
    @Component
    class SpecialComponent extends GenericComponent<string> {}
    
    // Use the specified one as a mixin
    @Component
    class MyComp extends mixins(SpecialComponent) {
      // ...
    }
Assets 2
Sep 14, 2020
release: v8.0.0-beta.2
Sep 12, 2020
release: v8.0.0-beta.1

@ktsn ktsn released this Jul 23, 2020 · 13 commits to master since this release

Bug Fixes

  • make mixins declaration backward compatible (#436) (491a1b1)
Assets 2

@ktsn ktsn released this Jul 20, 2020 · 16 commits to master since this release

Bug Fixes

  • allow accessing vue-router properties in property initializers (#434) (f02fa0e)
  • support any number of args on mixins helper (#433) (4c7f651)

Features

  • mark as side effect free to enable efficient tree-shaking (#423) (70ed762)
Assets 2
May 20, 2020
release: v8.0.0-alpha.6
May 10, 2020
release: v8.0.0-alpha.5
You can’t perform that action at this time.