Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨ Highlights
core-js
v3In this PR we only support Node 14+. This is mostly an issue for dependencies, which we need to keep updated for security reasons. Going forward until its own EOL, Nuxt 2 will only officially support Node versions that have not reached their EOL.
New postcss options format. See feat(webpack)!: update postcss to v8 #9671 for full details.
Dependency upgrades. A number of dependencies have dropped support for earlier node versions.
dotenv
has changed how it parses.env
files in a number of edge cases.glob
now requires/
instead of\
on windows machines. There may also be other changes that affect your usage, so please do upgrade with care.Vue 2.7 upgrade. Although you can use Vue 2.7 with any release of Nuxt 2, 2.16.0 for the first time includes it as a dependency, which means that you may well encounter some issues associated with upgrading Vue 2.6 -> Vue 2.7.
This may be a good time to consider using the composition API utilities provided by https://github.com/nuxt/bridge instead, which mirror Nuxt 3's more precisely than
@nuxtjs/composition-api
. (You can opt-in to just these utilities by disabling the other bridge modules individually.)Changelog
compare changes
🚀 Enhancements
nuxtrc
in dist directory (feat(config): supportnuxtrc
in dist directory #9280)serve-static
middleware (feat(server): allow disablingserve-static
middleware entirely #9365)asyncData
return types to component instance type (feat(types): addasyncData
return types to component instance type #9239)context.beforeSerialize
method (feat(vue-app):context.beforeSerialize
method #9332)store
tocreateRouter
(feat(vue-app): passstore
tocreateRouter
#9629)core-js
version 3 (feat: default tocore-js
version 3 #9987)🩹 Fixes
scroll-margin-top
when navigating with hash (fix(vue-app): respectscroll-margin-top
when navigating with hash #9187)javascript/auto
for js rule (fix(webpack): usejavascript/auto
for js rule #9180)payload.js
(fix(vue-renderer): decode route path forpayload.js
#9494)trailingSlash
causes error with dynamic nuxt-child routes (fix(utils): Router configtrailingSlash
causes error with dynamic nuxt-child routes #9505)onNuxtLoaded
andonNuxtReady
types (fix(types): addonNuxtLoaded
andonNuxtReady
types #9510)build.stats
options (fix(types): add typing forbuild.stats
options #9555)null
check for$root
access (fix(vue-app): null check for$root
access #9150)builder
togetGenerator
(fix(generator): allow passingbuilder
togetGenerator
#9574)$config
for finding basePath (fix(vue-app): use correct$config
for finding basePath #9706)ufo
(fix(generator): decode path withufo
#9739)ua-parser-js
to 1.x (Dependancy in @nuxt/utils : ua-parser-js removed from npm due to hack #9979)ya-parser-js
to latest0.7.x
(Dependancy in @nuxt/utils : ua-parser-js removed from npm due to hack #9979).cjs
extension to be transpiled (fix(webpack): allow files with.cjs
extension to be transpiled #10340).wasm
extension with lower priority (fix(webpack): resolve.wasm
extension with lower priority #10676)clear()
(fix(vue-app): clear hide timeout when callingclear()
#10086)📦 Build
🌊 Types
prefetchPayloads
to router options (fix(types): addprefetchPayloads
to router options #9715)🏡 Chore
false
option forrender.static
(chore(types): add types for newfalse
option forrender.static
#9372)stripWhitespace
utility (chore(utils): improvestripWhitespace
utility #9668)ua-parser-js
version (1cedad5)defu
(chore: use named export fromdefu
#18679)✅ Tests
🤖 CI
❤️ Contributors