0.34.0 (2024-04-12)
- allow returning of falsy values from useAsync (#670) (f8d9128)
- include
.d.mts
file for bundler compatibility (#786) (fe769c7) - remove
@nuxt/vue-app
peer dependency (#753) (f3b8fbf) - update link to Bridge documentation (1571863)
0.33.1 (2022-08-01)
0.33.0 (2022-07-08)
- upgrade
defu
and other dev-dependencies - Some of the API and behaviour differ between Vue 2.7 and
@vue/composition-api
. In addition, there are some composition utilites that are no longer exported from@nuxtjs/composition-api
, such asdefineAsyncComponent
,warn
, etc.
Please read https://blog.vuejs.org/posts/vue-2-7-naruto.html for the announcement and more information.
- upgrade
defu
and other dev-dependencies (1cbce73)
0.32.0 (2022-02-22)
0.31.0 (2021-11-30)
0.30.0 (2021-11-05)
0.29.3 (2021-10-11)
- correctly proxify functions within ssrRef (#561) (016ff0a)
- skip setting values that are unchanged in useFetch (#552) (484b061)
0.29.2 (2021-09-21)
- add new exports from
@vue/composition-api
(6d0ebd0)
0.29.1 (2021-09-21)
0.29.0 (2021-09-08)
0.28.0 (2021-09-04)
0.27.0 (2021-08-20)
0.26.0 (2021-07-28)
0.25.2 (2021-07-27)
0.25.1 (2021-07-22)
0.25.0 (2021-07-21)
0.24.7 (2021-07-12)
0.24.6 (2021-07-02)
0.24.5 (2021-06-24)
0.24.4 (2021-06-07)
0.24.3 (2021-06-02)
- use
webpack:config
to add entry for better nuxt/storybook compatibility (#495) (1b07abe), closes #494
0.24.2 (2021-05-28)
0.24.1 (2021-05-28)
0.24.0 (2021-05-21)
-
package exports have been moved
-
see #480 for context and further changes to come
-
output
.mjs
files for runtime templates -
(outside of Nuxt) only auto-registers plugin if NODE_ENV == 'test'
- add meta plugin after other modules (#481) (86ed34e)
- rework composition API registration (#484) (1e423c3), closes #476 #479
- move
globals
andregister
to runtime directory (842a724) - output
.mjs
files for runtime templates (23afd5a)
0.23.4 (2021-04-28)
0.23.3 (2021-04-24)
- 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)
0.23.2 (2021-04-19)
0.23.1 (2021-04-14)
0.23.0 (2021-04-12)
-
@nuxtjs/composition-api/module
is now how the module should be imported innuxt.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 tobuild.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
anddefineNuxtServerMiddleware
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
- register the composition api in a template file (#433) (8cc21ce), closes #415 #391
- return
from
rather thanredirectedFrom
fromuseContext
(a159d87), closes #444
- change how library is imported (#418) (5bb1a72)
- fixed an issue with
nuxt-vite
compatbility
- fixed an issue with
- 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.
- The ESM version of the library is now
0.22.4 (2021-03-23)
- prevent resolution errors on old node versions (df3e2fd)
0.22.3 (2021-03-20)
0.22.2 (2021-03-20)
0.22.1 (2021-03-11)
0.22.0 (2021-03-05)
0.21.0 (2021-03-03)
- upgrade @vue/composition-api to rc3 (d4faf1d)
- 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
0.20.2 (2021-02-18)
0.20.1 (2021-02-15)
0.20.0 (2021-02-14)
- split out types and imports
- add
defineNuxtConfig
helper (6484e97) - add
useRoute
,useRouter
anduseStore
wrapper functions (80e6c08) - add
wrapProperty
helper information (bc0e091) - do some very dodgy things to improve dx (0998d66), closes #334
- fetch improvements (#366) (d4bdbfb), closes #364 nuxt/nuxt.js#8781 #292
- 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)
0.19.1 (2021-02-04)
0.19.0 (2021-01-25)
- don't import core-js polyfill in server build (#353) (2755d6b)
- revert
siroc
to fix windows error (#356) (acdf18d)
0.18.1 (2021-01-14)
0.18.0 (2021-01-08)
- upgrade
@vue/composition-api
- upgrade
@vue/composition-api
(a8fa46d)
0.17.0 (2020-12-12)
- upgrade to vca beta 21 (adds
readonly
) (9277489)
0.16.4 (2020-11-25)
- completely disable support for global
useMeta
if@nuxtjs/pwa
detected (5dc5e34)
0.16.3 (2020-11-25)
- respect explicitly set
build.corejs
version innuxt.config
(b1603cb)
0.16.2 (2020-11-25)
- ensure meta plugin is loaded last (c5c7299)
0.16.1 (2020-11-25)
0.16.0 (2020-11-24)
- docs: update lockfile (952259b)
0.15.1 (2020-11-17)
0.15.0 (2020-11-09)
- add new export from upstream (
del
) (4845254)
0.14.0 (2020-11-02)
- add new export from upstream (
del
) (4845254)
0.13.5 (2020-10-17)
0.13.4 (2020-10-16)
- add
reqRef
andssrReqRef
for refs to be reset per-request (b6f327c)
0.13.3 (2020-10-15)
0.13.2 (2020-10-15)
0.13.1 (2020-10-14)
0.13.0 (2020-10-12)
0.12.6 (2020-10-10)
0.12.5 (2020-09-18)
0.12.4 (2020-09-16)
0.12.3 (2020-08-26)
- load nuxt edge utils if available (#219) (563bb3c)
- overwrite titleTemplate with undefined (#220) (dc6f253)
0.12.2 (2020-08-18)
0.12.1 (2020-08-16)
0.12.0 (2020-08-09)
- add new exports from
@vue/composition-api
(5bbcfd7)
0.11.0 (2020-07-27)
0.10.6 (2020-07-14)
0.10.5 (2020-07-09)
- create
static-json
dir at correct point in generate lifecycle (2d4e10b) - test for nuxt instance before loading static (43d5ee6), closes #143
0.10.4 (2020-07-09)
0.10.3 (2020-07-01)
- check static path exists before copying files (9f1bdc7)
0.10.2 (2020-06-25)
- remove
console.log
(0b1d5a8)
0.10.1 (2020-06-25)
- export
nextTick
from@vue/composition-api
(df68e0a)
0.10.0 (2020-06-25)
- requires nuxt 2.13+ for
useFetch
- handle preexisting babel plugins function (c5c338f)
- specify type for inline function (694f21b)
- write static files synchronously (eb91a5f)
0.9.3 (2020-06-13)
0.9.2 (2020-06-13)
- remove duplicate static path definition (48b9afb)
- remove unnecessary spread (2300a93)
0.9.1 (2020-06-11)
0.9.0 (2020-06-10)
- There are a number of breaking changes in the latest upstream composition-api. See https://github.com/vuejs/composition-api/releases/tag/v0.6.0 for details.
- upgrade to
@vue/composition-api
v0.6.1 (3d0bdc6)
0.8.2 (2020-06-04)
- regression if
ssrRef
is used outside setup (in dev) (f2beecd)
0.8.1 (2020-06-02)
0.8.0 (2020-05-30)
0.7.5 (2020-05-30)
0.7.4 (2020-05-28)
0.7.3 (2020-05-27)
0.7.2 (2020-05-27)
- allow custom
globalContext
andglobalNuxt
(#80) (8b8d7eb) - reduce chance of
$fetch
/$fetchState
collision (534dc43), closes #74 - sanitise ssrRefs (fcb4a9d)
0.7.1 (2020-05-19)
0.7.0 (2020-05-14)
route
,query
,from
andparams
are now returned as refs fromuseContext
, which was probably what you wanted anyway.
- make route-related context reactive (91292c8)
0.6.3 (2020-05-11)
0.6.2 (2020-05-11)
- use appropriate core-js polyfill for ie11 (5281e66)
- insert composition api plugin before others (2ef608b)
- reduce meta type definitions (fa9efa3)
- revert data sanitisation (1a4bbed)
- sanitise
ssrRef
data (d86fdb2)
0.6.1 (2020-05-10)
- improve default values for
useMeta
(f3024e1)
0.6.0 (2020-05-09)
useHead()
no longer exists and insteaduseMeta
can be used directly withinsetup
, as long as a minimalhead: {}
is defined in the component options.
Note: Work has already begun on composable hooks for vue-meta
that will mean we don't need to define a minimal head
object: see here.
- allow automatic injection of
head()
into components (#43) (f1bda39), closes #41 - return
$fetch
and$fetchState
fromuseFetch
(c45177f)
0.5.0 (2020-05-08)
- improve memory usage (e3f7221)
0.4.1 (2020-05-08)
0.4.0 (2020-05-08)
withContext
is now deprecated
- add
useContext
helper function (9752a61), closes #29 - add composition api helper to interact with
head()
(#35) (b7467e2)
0.3.2 (2020-05-04)
- purge non-stringifiable values from ssrRefs (ac199b1)
0.3.1 (2020-05-04)
0.3.0 (2020-05-04)
- Revert "docs: remove live demo link (Now is rate-limiting deploy)" (bbd8661)
0.2.3 (2020-05-01)
- respect
fetchOnServer
option (368f33d)
0.2.2 (2020-04-30)
- correctly match
$fetch
and$fetchState
features (e2d0442)
0.2.1 (2020-04-30)
- require
@vue/composition-api
(f81182e)
0.2.0 (2020-04-30)
0.1.5 (2020-04-29)
- disable browser build (849edee)
0.1.4 (2020-04-29)
0.1.3 (2020-04-28)
- set $fetchState if nonexistent (d94c40e)
0.1.2 (2020-04-27)
onFetch
can now be accessed usinguseFetch
- rename onFetch to useFetch (3647769)
- add withContext hook (179f0e1)