Packages

@nuxt/types

2.18.1 · 28 Jun 2024MIT154.3k / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: Nuxt 2 has reached EOL and is no longer actively maintained. See https://nuxt.com/blog/nuxt2-eol for more details.What to use instead
Your version

0.6.0

2 Jan 2020Where it was published

0.7.9 is the newest release of 0.6.x.

npm marks 0.6.0 as deprecated: Nuxt 2 has reached EOL and is no longer actively maintained. See nuxt.com/blog/nuxt2-eol for more details.

In short

3 new1 fixed3 internal

Release note

New features

  • We can now extend the root application by adding pages/_app.vue. You can now add a navigation bar which stays whatever the page you're on (error pages included), see an examples/extend-app/ for more details and documentation (you can also watch the short video example)

  • Add context.isDev in the data(context) and fetch(context) methods, can be useful for caching some data calls on production

  • Add callback argument (optional), in data(context [, callback]) method, because not everyone may be comfortable with using Promises. The callback is the node.js style: callback(err, data), see examples/async-data/ for more details.

Fix

  • Bug with path with ~ inside (example: ~plugins/my-plugin.js)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.