Releases

v0.23.2 4/19/2021

0.23.2 (2021-04-19)

Bug Fixes

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

v0.23.1 4/14/2021

0.23.1 (2021-04-14)

Bug Fixes

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

v0.23.0 4/12/2021

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 3/23/2021

0.22.4 (2021-03-23)

Bug Fixes

  • prevent resolution errors on old node versions (df3e2fd)

v0.22.3 3/20/2021

0.22.3 (2021-03-20)

Bug Fixes

  • ensure that injected plugin is inserted first (5cd13bc), closes #406

v0.22.2 3/20/2021

0.22.2 (2021-03-20)

v0.22.1 3/11/2021

0.22.1 (2021-03-11)

v0.22.0 3/5/2021

0.22.0 (2021-03-05)

Features

Bug Fixes

v0.21.0 3/3/2021

0.21.0 (2021-03-03)

Features

  • upgrade @vue/composition-api to rc3 (d4faf1d)

Bug Fixes

  • build on Windows (#377) (f80ad03)
  • use upath in more places for better windows support (#388) (fcd61db)
  • use es module import as much as possible (f7269b5), closes #334

v0.20.2 2/18/2021

0.20.2 (2021-02-18)

Features

  • add new exports from composition-api (#380) (9cd5e93)

Bug Fixes

v0.20.1 2/15/2021

0.20.1 (2021-02-15)

Bug Fixes

  • always return $fetch and $fetchState (e0a9cf4), closes #372

v0.20.0 2/14/2021

0.20.0 (2021-02-14)

⚠ BREAKING CHANGES

  • split out types and imports

Features

Bug Fixes

  • correct static-json path with custom router base or cdnURL (fca527e), closes #351
  • create static-json folder before dev/build (27e2ffa), closes #337
  • ensure defineNuxtConfig is accessible within config file (06500ab)
  • split out types and imports (cc81ad6), closes #334
  • type issues with new wrapper functions (fb2aa09)
  • use es module version of entrypoint in build (72e753a)

v0.19.1 2/4/2021

0.19.1 (2021-02-04)

Bug Fixes

v0.19.0 1/25/2021

0.19.0 (2021-01-25)

Features

  • add compositionAPI flag in jsx babel configuration (#304) (fec4218)

Bug Fixes

  • don't import core-js polyfill in server build (#353) (2755d6b)
  • revert siroc to fix windows error (#356) (acdf18d)

v0.18.1 1/14/2021

0.18.1 (2021-01-14)

v0.18.0 1/8/2021

0.18.0 (2021-01-08)

⚠ BREAKING CHANGES

  • upgrade @vue/composition-api

Miscellaneous Chores

  • upgrade @vue/composition-api (a8fa46d)

v0.17.0 12/12/2020

0.17.0 (2020-12-12)

Features

  • upgrade to vca beta 21 (adds readonly) (9277489)

Bug Fixes

  • ensure ssrRef doesn't share state across requests when used in setup() (#310) (61a3b55)

v0.16.4 11/25/2020

Bug Fixes

  • completely disable support for global if detected (5dc5e34)

v0.16.3 11/25/2020

Features

  • respect explicitly set version in (b1603cb)

v0.16.2 11/25/2020

Bug Fixes

  • ensure meta plugin is loaded last (c5c7299)

v0.16.1 11/25/2020

Bug Fixes

  • register meta plugin after other plugins (87535eb), closes #307

v0.16.0 11/24/2020

Features

  • allow accessing meta properties in (15cf20e), closes #305

Bug Fixes

v0.15.1 11/17/2020

v0.15.0 11/9/2020

Features

  • add new export from upstream () (4845254)

Bug Fixes

  • address TS bug (e87d610)
  • use globalNuxt in full static mode (1479665)

v0.14.0 11/2/2020

Features

  • add new export from upstream () (4845254)

v0.13.5 10/17/2020

v0.13.4 10/16/2020

Features

  • add and for refs to be reset per-request (b6f327c)

v0.13.3 10/15/2020

Bug Fixes

  • fallback to instance for nuxt context (d40c07b), closes #264

v0.13.2 10/15/2020

Bug Fixes

  • reinitialise global setup callbacks on each request (7816afe), closes #270

v0.13.1 10/14/2020

Bug Fixes