Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Releases: nuxt-community/composition-api

v0.24.3

02 Jun 13:54
Compare
Choose a tag to compare

0.24.3 (2021-06-02)

Bug Fixes

  • use webpack:config to add entry for better nuxt/storybook compatibility (#495) (1b07abe), closes #494

v0.24.2

28 May 19:20
Compare
Choose a tag to compare

0.24.2 (2021-05-28)

v0.24.1

28 May 10:36
Compare
Choose a tag to compare

0.24.1 (2021-05-28)

Bug Fixes

  • alias @nuxtjs/composition-api to esm library (5d30325), closes #488

v0.24.0

21 May 15:45
Compare
Choose a tag to compare

0.24.0 (2021-05-21)

⚠ BREAKING CHANGES

  • package exports have been moved

  • see #480 for context

  • output .mjs files for runtime templates

  • (outside of Nuxt) only auto-registers plugin if NODE_ENV == 'test'

Bug Fixes

Build System

  • move globals and register to runtime directory (842a724)
  • output .mjs files for runtime templates (23afd5a)

v0.23.4

28 Apr 15:33
Compare
Choose a tag to compare

0.23.4 (2021-04-28)

v0.23.3

24 Apr 18:29
Compare
Choose a tag to compare

0.23.3 (2021-04-24)

Bug Fixes

  • alias module so we can access process.server in vite node build (#462) (7c997c5)
  • correctly generate vite sourcemap (cf4f438)
  • export default from register entry (#461) (e491722)

v0.23.2

19 Apr 15:20
Compare
Choose a tag to compare

0.23.2 (2021-04-19)

Bug Fixes

  • register composition api before middleware (9d4165a), closes #457

v0.23.1

14 Apr 13:42
Compare
Choose a tag to compare

0.23.1 (2021-04-14)

Bug Fixes

  • use reactive rather than Vue.observable in useFetch (385bb73), closes #455

v0.23.0

12 Apr 12:21
Compare
Choose a tag to compare

0.23.0 (2021-04-12)

⚠ BREAKING CHANGES

  • @nuxtjs/composition-api/module is now how the module should be imported in nuxt.config

  • There is no longer a need to amend moduleNameMapper in your jest.config - you should remove any entry for @nuxtjs/composition-api there. When used outside a Nuxt context, the module will 'auto-mock' and use https://github.com/nuxt-community/composition-api/blob/be94d4f4e1321565864dd3d3d5e850f7cabf6ca9/src/globals.ts instead of live Nuxt configuration.

  • @nuxtjs/composition-api/babel has been renamed to @nuxtjs/composition-api/dist/babel-plugin.

  • @vue/composition-api is no longer transpiled by default. You should consider adding it to build.transpile, but note that you may also need to add any other libraries that also use @vue/composition-api.

  • You should ensure you haven't named any layout '0' as this will conflict with how this package is registering the Vue Composition API.

  • defineNuxtConfig, defineNuxtModule and defineNuxtServerMiddleware have been removed. You can create your own helper with the following code:

    import { Module, ServerMiddleware, NuxtConfig } from '@nuxt/types'
    
    export const defineNuxtModule = <T extends Record<string, unknown>>(module: Module<T>) => module
    export const defineNuxtServerMiddleware = (serverMiddleware: ServerMiddleware) => serverMiddleware
    export const defineNuxtConfig = (config: NuxtConfig) => config

Bug Fixes

  • register the composition api in a template file (#433) (8cc21ce), closes #415 #391
  • return from rather than redirectedFrom from useContext (a159d87), closes #444

Code Refactoring

  • change how library is imported (#418) (5bb1a72)
    • fixed an issue with nuxt-vite compatbility
  • significant packaging changes (#438) (ddc9c0f)
    • The ESM version of the library is now .mjs (but we polyfill support for this and other .mjs files in webpack 4).
    • This library is now located within node_modules rather than being templated, with a limited template for the config.

v0.22.4

23 Mar 21:46
Compare
Choose a tag to compare

0.22.4 (2021-03-23)

Bug Fixes

  • prevent resolution errors on old node versions (df3e2fd)