Skip to content

Releases: vuejs/vue-class-component

v7.2.6

17 Sep 11:38
Compare
Choose a tag to compare

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) {
      // ...
    }

v7.2.5

23 Jul 08:49
Compare
Choose a tag to compare

Bug Fixes

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

v7.2.4

20 Jul 16:51
Compare
Choose a tag to compare

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)

v7.2.3

13 Feb 06:43
Compare
Choose a tag to compare

Improvement

  • add vue to peerDependencies for yarn v2 (#396)

v7.2.2

13 Jan 09:21
Compare
Choose a tag to compare

Bug Fixes

v7.2.1

12 Jan 07:15
Compare
Choose a tag to compare

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

11 Jan 04:33
Compare
Choose a tag to compare

Bug Fixes

  • check reflectionIsSupported in decorator runtime (#350) (2fc6ab5)

Features

v7.1.0

11 Jan 04:36
Compare
Choose a tag to compare

Features

  • Provides ESModule bundle

v7.0.2

25 Mar 12:34
Compare
Choose a tag to compare

Bug Fixes

v7.0.1

19 Feb 02:44
Compare
Choose a tag to compare

Features

Bug Fixes

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy