Repository navigation
v2.3.1
π Release Notes
With v2.3, Nuxt.js is splitted into smaller packages (Aka a mono-repo). This means smaller packages, independent versioning support and ability to replace any part of Nuxt.js without dirty hacks. Before this release, we carefully tested the latest updates using edge release channel against real-world projects and there should be no breaking changes.
Please note that for upgrading Nuxt.js just changing version inside package.json is not enough. Please use yarn upgrade or npm upgrade so that the final directory structure of node_modules will be correct. In case of problems clean up node_modules and yarn.lock/package-lock.json. Still having problems? open an issue in cmty!
π§ Fixes and Enhancements
- CLI and DX improvements (#4259)
- CLI cleanups and improvements (#4222)
- Improve nuxt-loading component (#3891)
- Set defaults for port and host values (#4207)
- Dynamically read environment variables when loading
nuxt.config.js(PR #4208) - Support custom pushAssets function to control http2 push headers (#4198)
- Reduce duplicate code in
routes.js(#4121) - Print warning when using
build.extractCSS.allChunks(#4097) - Throw an error when layout property is not string (#4142)
- Use
require.resolveto get the path of babel-loader (#4150) - Check style resources for existence (#4155)
- Serialize config head fn shorthand correctly (#4283)
- Don't accept ranges (#3870) (#4295)
- Correctly resolve layouts with nested custom dir (#4135)
- Warn on unknown mode (#4303)
- Use
postcss.orderto change order of postcss plugins(#4318) - Fix for double escaping static class on SSR (#4312)
- Fix stable route sorting for Node v11 (#4331)
π New Features
- Modern build support (#4231) (#4241) (#4254) (#4264)
- Dedicated help command (
nuxt help [cmd]) (#4248) - List commands
nuxt --help(#4245) - Support asynchronous
nuxt.config.js(#4021)
β‘οΈ Dependency Upgrades
βοΈ Deprecations
- Deprecate
styleResourcesbecause of performance issues. Use our new community module instead (it's a drop-in replacement) (#4302) - Deprecate callback-based
asyncData,fetchandmiddlewaremethods. Use Promises or async/wait instead. (#4256)
π Internal Refactors
- Migrate nuxt into a mono-repo (#4051)
- Refactor core into
@nuxt/core,@nuxt/serverand@nuxt/vue-renderer(#4202) - Refactor builder into
@nuxt/builderand@nuxt/webpack(#4171) - Move
@nuxtjs/babel-preset-appinto nuxt mono-repo and republish it as@nuxt/babel-preset-app(#4205) - Move common config to
@nuxt/config(#4212) - Packaging and development improvements (#4193)
- Extract
eslint-configinto own package (#4108) - Several test utils cleanups (PR #4180)