Releases: vuejs/vue-class-component
Releases · vuejs/vue-class-component
v7.2.6
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 ofmixins
. 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) { // ... }
v7.2.5
v7.2.4
v7.2.3
v7.2.2
v7.2.1
Bug Fixes
-
Disabled lifecycle IntelliSense support by default to avoid possible breakage of existing components (#386) (d54490b).
To enable IntelliSense support, please load
vue-class-component/hooks
wherever inside your project code:// main.ts import 'vue-class-component/hooks' import Vue from 'vue' import App from './App.vue' new Vue({ render: h => h(App) }).$mount('#app')
For details about this change, see the pull request.
v7.2.0
v7.1.0
v7.0.2
v7.0.1
Features
- Add
serverPrefetch
method from Vue 2.6 (#312 by @hmillison)
Bug Fixes
- adds check forReflect.getOwnMetadataKeys (#305 by @ChristianKienle)