v2.15.0
版本发布时间: 2021-02-15 19:07:14
nuxt/nuxt最新发布版本:v3.13.2(2024-09-16 05:27:05)
💡 Highlights
⚠️This release introduces behavior changes. Update with caution ⚠️
-
Minimum supported Node.js version is 12.0.0 (See https://github.com/nuxt/nuxt.js/issues/8327 for why)
-
Using jiti as new require engine with typescript support
-
Plug and play works out of the box
-
Allow opting-in to use
postcss@8
(See https://github.com/nuxt/nuxt.js/issues/8546)NOTE: postcss-preset-env is disabled in v8 config as it doesn't support postcss v8 for now, so please install all below dependencies explicitly.
yarn add --dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1 # or npm i --save-dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1
-
Several encoding issues resolved by consistently using ufo
-
Components updated to v2 (please read migration guide)
-
[Modules] When matching a webpack loader by name or query, should use
includes
instead of exact match (example)
🐛 Bug Fixes
-
general
- #8794 Ignore trailing slash in static payloads manifest
- #8738 Encoding issues with payload paths
- #8423
trailingSlash
and child routes not working
-
config
- #8778 Prevent invalid css filenames in webpack output
-
utils
- #8780
serializeFunction
fails with certain functions
- #8780
-
vue-app
- #8759 Enable dynamic
publicPath
on server-side - #8701 Static payload fetching bugfixes
- #8612 Check for
Page.options
before looking within - #8611 Don't remove
req
,res
andquery
from context unless in full static mode - #8608 Ensure
link.__prefetch
exists before calling it - #8596 Add missing
id
attribute tonoopApp
- #8557 Scroll-to-top on route changes only
- #8523 Set
push
on router instance rather than prototype - #8486 Do not preserve state when registering client-side dynamic module
- #8802 Add leading slash for payload hydration
- #8759 Enable dynamic
-
server, vue-app
- #8748 Address encoding issues with query params
-
dev
- #8697 Clearnup vue installed plugins from server in dev mode
- #8556 Resolve module required by create-require in jiti
-
cli
- #8683 Disable parallel build behaviour when generating
-
webpack
- #8555 Can't resolve absolute url in css
-
server
- #8593 Fix HMR issue with serverMiddleware when
router.base
is set
- #8593 Fix HMR issue with serverMiddleware when
-
babel
- #8545 Enable polyfilling of proposal core-js features
-
vue-app, vue-renderer, utils
- #8489 Respect
trailingSlash
setting for payloads
- #8489 Respect
-
generator
- #8474 Ensure static manifest dir exists
- #8803 Normalize trailing slashes before
extendRoutes
🚀 Features
-
cli
- #8792 Warn if incompatible node and package versions detected
-
postcss
- #8546 Support postcss v8 with explict postcss installation
-
config, vue-app, vue-renderer
- #8520 Support dynamic
base
andpublicPath
- #8520 Support dynamic
-
general
- #8389 Support plug-and-play, typescript runtime and native modules
- #8346 Update all dependencies that require node 10.x
-
vue-app
- #8466 Support custom
fetchKey
for full static generation
- #8466 Support custom
-
vue-renderer
- #8347 Allow adding async attribute to
<script>
tags
- #8347 Allow adding async attribute to
💅 Refactors
-
utils, vue-app
- #8765 Use
ufo
to parse queries and join urls
- #8765 Use
-
vue-app
- #8621 Simplify scrollToTop checking
-
general
- Consistent behavior for resolveModule
🏡 Chore
-
general
- #8440 Fix router base handling with dev-middleware (closes )
- #8408 Pin css-loader to 4.x
- #8808 Simplify contributors
-
cli
- #8674 Fix typo
-
types
- #8630 Lint types
-
builder
- Remove validateTemplate check (ed6e8cd307ea21d9f314a88b6d7603b8e40769ea)
-
readme
- #8436 Fix invalid links
🇹 Types
- #8784 Add missing ssr option to config types
- #8767
vue.config
types should be optional - #8530 Add missing
redirect
overload toContext
interface - #8638 Add
enablePreview
to context - #8648 Add missing
loadingScreen
type definition
💖 Thanks to
- Alexander Lichter (@manniL)
- Ahad Birang (@farnabaz)
- Beorn Facchini (@beornf)
- Flo Edelmann (@FloEdelmann)
- @gekkedev
- @GeopJr
- @LKHO
- Maarten Van Hoof (@vanhoofmaarten)
- Paulo Amosse Cuambe (@paulocuambe)
- Rafał Chłodnicki (@rchl)
And all nuxters helping everyday with valuable feedbacks 💚