composition-api

Composition API hooks for Nuxt 2.

MIT License

Downloads
189.7K
Stars
698
Committers
34

Bot releases are hidden (Show)

composition-api - v0.24.3

Published by danielroe over 3 years ago

0.24.3 (2021-06-02)

Bug Fixes

  • use webpack:config to add entry for better nuxt/storybook compatibility (#495) (1b07abe), closes #494
composition-api - v0.24.2

Published by danielroe over 3 years ago

0.24.2 (2021-05-28)

composition-api - v0.24.1

Published by danielroe over 3 years ago

0.24.1 (2021-05-28)

Bug Fixes

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

Published by danielroe over 3 years ago

0.24.0 (2021-05-21)

⚠ BREAKING CHANGES

Bug Fixes

Build System

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

Published by danielroe over 3 years ago

0.23.4 (2021-04-28)

composition-api - v0.23.3

Published by danielroe over 3 years ago

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)
composition-api - v0.23.2

Published by danielroe over 3 years ago

0.23.2 (2021-04-19)

Bug Fixes

  • register composition api before middleware (9d4165a), closes #457
composition-api - v0.23.1

Published by danielroe over 3 years ago

0.23.1 (2021-04-14)

Bug Fixes

  • use reactive rather than Vue.observable in useFetch (385bb73), closes #455
composition-api - v0.23.0

Published by danielroe over 3 years ago

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.
composition-api - v0.22.4

Published by danielroe over 3 years ago

0.22.4 (2021-03-23)

Bug Fixes

  • prevent resolution errors on old node versions (df3e2fd)
composition-api - v0.22.3

Published by danielroe over 3 years ago

0.22.3 (2021-03-20)

Bug Fixes

  • ensure that injected plugin is inserted first (5cd13bc), closes #406
composition-api - v0.22.2

Published by danielroe over 3 years ago

0.22.2 (2021-03-20)

composition-api - v0.22.1

Published by danielroe over 3 years ago

0.22.1 (2021-03-11)

composition-api - v0.22.0

Published by danielroe over 3 years ago

0.22.0 (2021-03-05)

Features

Bug Fixes

composition-api - v0.21.0

Published by danielroe over 3 years ago

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
composition-api - v0.20.2

Published by danielroe over 3 years ago

0.20.2 (2021-02-18)

Features

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

Bug Fixes

composition-api - v0.20.1

Published by danielroe over 3 years ago

0.20.1 (2021-02-15)

Bug Fixes

  • always return $fetch and $fetchState (e0a9cf4), closes #372
composition-api - v0.20.0

Published by danielroe over 3 years ago

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)
composition-api - v0.19.1

Published by danielroe over 3 years ago

0.19.1 (2021-02-04)

Bug Fixes

composition-api - v0.19.0

Published by danielroe over 3 years ago

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)