Skip to content

Releases: vuejs/composition-api

v1.3.3

03 Nov 17:18
Compare
Choose a tag to compare

Features

v1.3.2

03 Nov 00:49
Compare
Choose a tag to compare

Bug Fixes

v1.3.1

03 Nov 00:49
Compare
Choose a tag to compare

Bug Fixes

  • types: defineComponent object format with no props type (#839) (8a31c78)

v1.3.0

28 Oct 14:52
Compare
Choose a tag to compare

Notable Changes

The module field now points to the .mjs version build instead of .esm.js for better native ESM support and future-proofing.

Troubleshooting

.mjs can't resolve on Webpack 4

vueuse/vueuse#718

Nuxt
// nuxt.config.js

module.exports = {
  build: {
    extend (config) {
      config.module.rules.push({
        test: /\.mjs$/,
        include: /node_modules/,
        type: "javascript/auto"
      })
    }
  }
}
Vue CLI
// vue.config.js

module.exports = {
  configureWebpack: {
    module: {
      rules: [{
        test: /\.mjs$/,
        include: /node_modules/,
        type: "javascript/auto"
      }]
    }
  }
}

[vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function

Make share you have only one version of @vue/composition-api installed and resolved to the same version.

Vite

vueuse/vue-demi#106 (comment)

resolve: {
  alias: [
    { find: /^@vue\/composition-api$/, replacement: '@vue/composition-api/dist/vue-composition-api.mjs' },
  ]
}
Webpack
resolve: {
  alias: [
    '@vue/composition-api$': '@vue/composition-api/dist/vue-composition-api.mjs'
  ]
}

Bug Fixes

v1.2.4

07 Oct 05:29
Compare
Choose a tag to compare

Bug Fixes

v1.2.3

05 Oct 01:07
Compare
Choose a tag to compare

Bug Fixes

  • correct prop type inference when using PropType (#825) (9c9f8e8)
  • proxyRefs: When using proxyRefs, the internal variable composition-api.refKey is exposed on the object itself #817 (#818) (92b7eb1)
  • ssr: set() twice lose reactivity (#821) (416845a)

Features

  • computed: allow differentiating refs from computed (#820) (68b5d97)

v1.2.2

24 Sep 00:41
Compare
Choose a tag to compare

Reverts

v1.2.1

21 Sep 19:02
Compare
Choose a tag to compare

Features

  • types: align ComponentPublicInstance type (2f9cfbf)

v1.2.0

21 Sep 18:51
Compare
Choose a tag to compare

Bug Fixes

v1.1.5

09 Sep 20:43
Compare
Choose a tag to compare

Bug Fixes

  • api-watch: watching nested ref array w/ deep doesn't work (#808) (b625420)
  • improve isReadonly behaviour, close #811, close #812 (d3c456a)