@nuxt/types
2.18.1 · 28 Jun 2024MIT154.3k / weekRepositoryHomepagenpmAtom feed
Upgrading @nuxt/types From 0.7.0 to 0.7.9
9 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 11
- new
- 3
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.7.4
Release by release
- New
Add
envin the data context argument - New
Add $nuxt.error({ statusCode, message }) method in the client side for calling the error page
- New
Add generated name in the routes generates by the pages directory (ex pages/index.vue will me the
indexname, pages/foo/bar.vue will befoo-bar) - Fixed
Fix router.base when set to '/' or undefined, avoid generating 2 //
- New
- New
Add examples/cached-components/ example
- New
- New
We don't need to bind
nuxt.render.bind(nuxt)anymore to usenuxt.renderas a middleware (Issue #18)
- New
- Fixed
Make sure to generate the
.nojekyllfile empty
- Fixed
- New
nuxt generatenow adds a.nojekyllfile in the generated folder to tell Github Pages to not ignore the_nuxtdirectory (see github pages docs about it)
- New
- Breaking
pages/_error-debug.vuehas been removed, now onlypages/_error.vueshould be defined - New
Add
Content-Lengthheader in the server when rendering the html
- Breaking
- New
You can now access the application path with
˜, useful if you have others folders, see #16 - New
window.onNuxtReady(callback)is now a function, useful for attaching multiple functions to it, when is the app will be mounted, the callback will be called with the root application in the first argument
- New
- Fixed
Use babel preset 2015 by default in .vue files to have the best compatibility possible in the browsers
- Fixed
1 other line we could not sort, mostly version bumps
- 0.7.5
nuxt inithas been remove, use nuxt/starter instead
2 internal lines (docs, tests, tooling) left out.
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.