nuxt/nuxt.js
### [`v2.15.2`](https://togithub.com/nuxt/nuxt.js/releases/v2.15.2)
[Compare Source](https://togithub.com/nuxt/nuxt.js/compare/v2.15.1...v2.15.2)
##### 🐛 Bug Fixes
- `babel-preset-app`
- [#8882](https://togithub.com/nuxt/nuxt.js/issues/8882) Pin [@babel/preset-env](https://togithub.com/babel/preset-env) to ~7.12
- [#8883](https://togithub.com/nuxt/nuxt.js/issues/8883) Avoid relying on preset-env internal utils
##### 💖 Thanks to
- Huáng Jùnliàng ([@JLHwung](https://togithub.com/JLHwung))
### [`v2.15.1`](https://togithub.com/nuxt/nuxt.js/releases/v2.15.1)
[Compare Source](https://togithub.com/nuxt/nuxt.js/compare/v2.15.0...v2.15.1)
##### 🐛 Bug Fixes
- `renderer`
- Deep merge runtime config for server (resolves [#8820](https://togithub.com/nuxt/nuxt.js/issues/8820))
- `webpack`
- [#8846](https://togithub.com/nuxt/nuxt.js/issues/8846) Transpile `ufo` (resolves [#8838](https://togithub.com/nuxt/nuxt.js/issues/8838))
- `cli`
- [#8841](https://togithub.com/nuxt/nuxt.js/issues/8841) Don't early return when a dependency isn't installed
- `types`
- [#8835](https://togithub.com/nuxt/nuxt.js/issues/8835) `build.html.minify` can be false
- `builder`
- [#8832](https://togithub.com/nuxt/nuxt.js/issues/8832) Use `path.resolve` for pages dir
##### 💖 Thanks to
- Harlan Wilton ([@loonpwn](https://togithub.com/loonpwn))
- Kenny ([@kn3ny](https://togithub.com/kn3ny))
### [`v2.15.0`](https://togithub.com/nuxt/nuxt.js/releases/v2.15.0)
[Compare Source](https://togithub.com/nuxt/nuxt.js/compare/v2.14.12...v2.15.0)
##### 💡 Highlights
⚠️This release introduces behavior changes. Update with caution ⚠️
- Minimum supported Node.js version is 12.0.0 (See [#8327](https://togithub.com/nuxt/nuxt.js/issues/8327) for why)
- Using [jiti](https://togithub.com/nuxt-contrib/jiti) as new require engine with typescript support
- [Plug and play](https://yarnpkg.com/features/pnp) works out of the box
- Allow opting-in to use `postcss@8` (See [#8546](https://togithub.com/nuxt/nuxt.js/issues/8546))
> **NOTE: postcss-preset-env is disabled in v8 config as [it doesn't support postcss v8 for now](https://togithub.com/csstools/postcss-preset-env/issues/191), so please install all below dependencies explicitly.**
```sh
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](https://togithub.com/nuxt-contrib/ufo)
- [Components ](https://togithub.com/nuxt/components) updated to v2 (please read [migration guide](https://togithub.com/nuxt/components#migration-guide))
- [Modules] When matching a webpack loader by name or query, should use `includes` instead of exact match ([example](https://togithub.com/nuxt-community/i18n-module/pull/1064))
##### 🐛 Bug Fixes
- `general`
- [#8794](https://togithub.com/nuxt/nuxt.js/issues/8794) Ignore trailing slash in static payloads manifest
- [#8738](https://togithub.com/nuxt/nuxt.js/issues/8738) Encoding issues with payload paths
- [#8423](https://togithub.com/nuxt/nuxt.js/issues/8423) `trailingSlash` and child routes not working
- `config`
- [#8778](https://togithub.com/nuxt/nuxt.js/issues/8778) Prevent invalid css filenames in webpack output
- `utils`
- [#8780](https://togithub.com/nuxt/nuxt.js/issues/8780) `serializeFunction` fails with certain functions
- `vue-app`
- [#8759](https://togithub.com/nuxt/nuxt.js/issues/8759) Enable dynamic `publicPath` on server-side
- [#8701](https://togithub.com/nuxt/nuxt.js/issues/8701) Static payload fetching bugfixes
- [#8612](https://togithub.com/nuxt/nuxt.js/issues/8612) Check for `Page.options` before looking within
- [#8611](https://togithub.com/nuxt/nuxt.js/issues/8611) Don't remove `req`, `res` and `query` from context unless in full static mode
- [#8608](https://togithub.com/nuxt/nuxt.js/issues/8608) Ensure `link.__prefetch` exists before calling it
- [#8596](https://togithub.com/nuxt/nuxt.js/issues/8596) Add missing `id` attribute to `noopApp`
- [#8557](https://togithub.com/nuxt/nuxt.js/issues/8557) Scroll-to-top on route changes only
- [#8523](https://togithub.com/nuxt/nuxt.js/issues/8523) Set `push` on router instance rather than prototype
- [#8486](https://togithub.com/nuxt/nuxt.js/issues/8486) Do not preserve state when registering client-side dynamic module
- [#8802](https://togithub.com/nuxt/nuxt.js/issues/8802) Add leading slash for payload hydration
- `server, vue-app`
- [#8748](https://togithub.com/nuxt/nuxt.js/issues/8748) Address encoding issues with query params
- `dev`
- [#8697](https://togithub.com/nuxt/nuxt.js/issues/8697) Clearnup vue installed plugins from server in dev mode
- [#8556](https://togithub.com/nuxt/nuxt.js/issues/8556) Resolve module required by create-require in jiti
- `cli`
- [#8683](https://togithub.com/nuxt/nuxt.js/issues/8683) Disable parallel build behaviour when generating
- `webpack`
- [#8555](https://togithub.com/nuxt/nuxt.js/issues/8555) Can't resolve absolute url in css
- `server`
- [#8593](https://togithub.com/nuxt/nuxt.js/issues/8593) Fix HMR issue with serverMiddleware when `router.base` is set
- `babel`
- [#8545](https://togithub.com/nuxt/nuxt.js/issues/8545) Enable polyfilling of proposal core-js features
- `vue-app, vue-renderer, utils`
- [#8489](https://togithub.com/nuxt/nuxt.js/issues/8489) Respect `trailingSlash` setting for payloads
- `generator`
- [#8474](https://togithub.com/nuxt/nuxt.js/issues/8474) Ensure static manifest dir exists
- [#8803](https://togithub.com/nuxt/nuxt.js/issues/8803) Normalize trailing slashes before `extendRoutes`
##### 🚀 Features
- `cli`
- [#8792](https://togithub.com/nuxt/nuxt.js/issues/8792) Warn if incompatible node and package versions detected
- `postcss`
- [#8546](https://togithub.com/nuxt/nuxt.js/issues/8546) Support postcss v8 with explict postcss installation
- `config, vue-app, vue-renderer`
- [#8520](https://togithub.com/nuxt/nuxt.js/issues/8520) Support dynamic `base` and `publicPath`
- `general`
- [#8389](https://togithub.com/nuxt/nuxt.js/issues/8389) Support plug-and-play, typescript runtime and native modules
- [#8346](https://togithub.com/nuxt/nuxt.js/issues/8346) Update all dependencies that require node 10.x
- `vue-app`
- [#8466](https://togithub.com/nuxt/nuxt.js/issues/8466) Support custom `fetchKey` for full static generation
- `vue-renderer`
- [#8347](https://togithub.com/nuxt/nuxt.js/issues/8347) Allow adding async attribute to ` Githubissues.
Githubissues is a development platform for aggregating issues.
This PR contains the following updates:
2.14.12
->2.15.2
Release Notes
nuxt/nuxt.js
### [`v2.15.2`](https://togithub.com/nuxt/nuxt.js/releases/v2.15.2) [Compare Source](https://togithub.com/nuxt/nuxt.js/compare/v2.15.1...v2.15.2) ##### 🐛 Bug Fixes - `babel-preset-app` - [#8882](https://togithub.com/nuxt/nuxt.js/issues/8882) Pin [@babel/preset-env](https://togithub.com/babel/preset-env) to ~7.12 - [#8883](https://togithub.com/nuxt/nuxt.js/issues/8883) Avoid relying on preset-env internal utils ##### 💖 Thanks to - Huáng Jùnliàng ([@JLHwung](https://togithub.com/JLHwung)) ### [`v2.15.1`](https://togithub.com/nuxt/nuxt.js/releases/v2.15.1) [Compare Source](https://togithub.com/nuxt/nuxt.js/compare/v2.15.0...v2.15.1) ##### 🐛 Bug Fixes - `renderer` - Deep merge runtime config for server (resolves [#8820](https://togithub.com/nuxt/nuxt.js/issues/8820)) - `webpack` - [#8846](https://togithub.com/nuxt/nuxt.js/issues/8846) Transpile `ufo` (resolves [#8838](https://togithub.com/nuxt/nuxt.js/issues/8838)) - `cli` - [#8841](https://togithub.com/nuxt/nuxt.js/issues/8841) Don't early return when a dependency isn't installed - `types` - [#8835](https://togithub.com/nuxt/nuxt.js/issues/8835) `build.html.minify` can be false - `builder` - [#8832](https://togithub.com/nuxt/nuxt.js/issues/8832) Use `path.resolve` for pages dir ##### 💖 Thanks to - Harlan Wilton ([@loonpwn](https://togithub.com/loonpwn)) - Kenny ([@kn3ny](https://togithub.com/kn3ny)) ### [`v2.15.0`](https://togithub.com/nuxt/nuxt.js/releases/v2.15.0) [Compare Source](https://togithub.com/nuxt/nuxt.js/compare/v2.14.12...v2.15.0) ##### 💡 Highlights ⚠️This release introduces behavior changes. Update with caution ⚠️ - Minimum supported Node.js version is 12.0.0 (See [#8327](https://togithub.com/nuxt/nuxt.js/issues/8327) for why) - Using [jiti](https://togithub.com/nuxt-contrib/jiti) as new require engine with typescript support - [Plug and play](https://yarnpkg.com/features/pnp) works out of the box - Allow opting-in to use `postcss@8` (See [#8546](https://togithub.com/nuxt/nuxt.js/issues/8546)) > **NOTE: postcss-preset-env is disabled in v8 config as [it doesn't support postcss v8 for now](https://togithub.com/csstools/postcss-preset-env/issues/191), so please install all below dependencies explicitly.** ```sh 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](https://togithub.com/nuxt-contrib/ufo) - [Components ](https://togithub.com/nuxt/components) updated to v2 (please read [migration guide](https://togithub.com/nuxt/components#migration-guide)) - [Modules] When matching a webpack loader by name or query, should use `includes` instead of exact match ([example](https://togithub.com/nuxt-community/i18n-module/pull/1064)) ##### 🐛 Bug Fixes - `general` - [#8794](https://togithub.com/nuxt/nuxt.js/issues/8794) Ignore trailing slash in static payloads manifest - [#8738](https://togithub.com/nuxt/nuxt.js/issues/8738) Encoding issues with payload paths - [#8423](https://togithub.com/nuxt/nuxt.js/issues/8423) `trailingSlash` and child routes not working - `config` - [#8778](https://togithub.com/nuxt/nuxt.js/issues/8778) Prevent invalid css filenames in webpack output - `utils` - [#8780](https://togithub.com/nuxt/nuxt.js/issues/8780) `serializeFunction` fails with certain functions - `vue-app` - [#8759](https://togithub.com/nuxt/nuxt.js/issues/8759) Enable dynamic `publicPath` on server-side - [#8701](https://togithub.com/nuxt/nuxt.js/issues/8701) Static payload fetching bugfixes - [#8612](https://togithub.com/nuxt/nuxt.js/issues/8612) Check for `Page.options` before looking within - [#8611](https://togithub.com/nuxt/nuxt.js/issues/8611) Don't remove `req`, `res` and `query` from context unless in full static mode - [#8608](https://togithub.com/nuxt/nuxt.js/issues/8608) Ensure `link.__prefetch` exists before calling it - [#8596](https://togithub.com/nuxt/nuxt.js/issues/8596) Add missing `id` attribute to `noopApp` - [#8557](https://togithub.com/nuxt/nuxt.js/issues/8557) Scroll-to-top on route changes only - [#8523](https://togithub.com/nuxt/nuxt.js/issues/8523) Set `push` on router instance rather than prototype - [#8486](https://togithub.com/nuxt/nuxt.js/issues/8486) Do not preserve state when registering client-side dynamic module - [#8802](https://togithub.com/nuxt/nuxt.js/issues/8802) Add leading slash for payload hydration - `server, vue-app` - [#8748](https://togithub.com/nuxt/nuxt.js/issues/8748) Address encoding issues with query params - `dev` - [#8697](https://togithub.com/nuxt/nuxt.js/issues/8697) Clearnup vue installed plugins from server in dev mode - [#8556](https://togithub.com/nuxt/nuxt.js/issues/8556) Resolve module required by create-require in jiti - `cli` - [#8683](https://togithub.com/nuxt/nuxt.js/issues/8683) Disable parallel build behaviour when generating - `webpack` - [#8555](https://togithub.com/nuxt/nuxt.js/issues/8555) Can't resolve absolute url in css - `server` - [#8593](https://togithub.com/nuxt/nuxt.js/issues/8593) Fix HMR issue with serverMiddleware when `router.base` is set - `babel` - [#8545](https://togithub.com/nuxt/nuxt.js/issues/8545) Enable polyfilling of proposal core-js features - `vue-app, vue-renderer, utils` - [#8489](https://togithub.com/nuxt/nuxt.js/issues/8489) Respect `trailingSlash` setting for payloads - `generator` - [#8474](https://togithub.com/nuxt/nuxt.js/issues/8474) Ensure static manifest dir exists - [#8803](https://togithub.com/nuxt/nuxt.js/issues/8803) Normalize trailing slashes before `extendRoutes` ##### 🚀 Features - `cli` - [#8792](https://togithub.com/nuxt/nuxt.js/issues/8792) Warn if incompatible node and package versions detected - `postcss` - [#8546](https://togithub.com/nuxt/nuxt.js/issues/8546) Support postcss v8 with explict postcss installation - `config, vue-app, vue-renderer` - [#8520](https://togithub.com/nuxt/nuxt.js/issues/8520) Support dynamic `base` and `publicPath` - `general` - [#8389](https://togithub.com/nuxt/nuxt.js/issues/8389) Support plug-and-play, typescript runtime and native modules - [#8346](https://togithub.com/nuxt/nuxt.js/issues/8346) Update all dependencies that require node 10.x - `vue-app` - [#8466](https://togithub.com/nuxt/nuxt.js/issues/8466) Support custom `fetchKey` for full static generation - `vue-renderer` - [#8347](https://togithub.com/nuxt/nuxt.js/issues/8347) Allow adding async attribute to ` Githubissues.