3.2.1 is a patch release with (lots of) bug fixes and performance improvements since last week's minor release.
๐ Highlights
As a patch release, there are mostly bug fixes and performance improvements in the changelog. (Nevertheless, it's always worth reading through!) But one point of note is an experimental reload strategy when chunk errors are encountered. We're hoping to finalise the API and land it in v3.3 (our next feature release) with #19086, but you can test out an experimental version with the following config:
export default defineNuxtConfig({
experimental: {
emitRouteChunkError: 'reload'
}
})
With this strategy, your app will hard reload on route changes if there's a chunk error. More info at #19038.
๐ Changelog
๐ Enhancements
- nuxt: Add experimental
app:chunkError
hook and reload strategy (#19038)
๐ฅ Performance
- nuxt: Allow tree-shaking empty meta from build (#19032)
- nuxt: Animate transform rather than width (#19073)
- nuxt: Don't include side-effects from
#components
(#19008)
๐ฉน Fixes
- schema: Allow type inference of arrays in runtime config (#18931)
- nuxt: Avoid recursive import in nitro renderer (#18948)
- nuxt: Expose
nuxt/schema
subpath for augmentation (#18922) - nitro: Ensure ssr error
statusCode
is a number (#19001) - nuxt: Prevent hyphens forming child routes & warn if dupes are detected (#18944)
- schema: Transpile
nuxt/app
by default (#19009) - vite: Exclude
nuxt/app
from optimised deps (9e789c76c) - vite: Respect
isCustomElement
config for jsx transform (#19053) - nuxt: Use parser to treeshake client-only declarations (#18951)
- cli: Pass through exit code from test errors (#18959)
- nuxt: Show client error if no page matches after validate fails (#18978)
- cli: Read
devServer
options from nuxt config (#19055) - nuxt: Validate no
//
in path when constructing payload url (#19085) - nuxt: Restore previous check on payload url (e9ff34ace)
- nuxt: Test generated pathname (af55b9882)
- nuxt: Respect redirects which differ only by trailing slash (#18593)
- nuxt: Pass nuxt + workspace paths when importing builder (#19099)
๐ Refactors
- nuxt: Combine imports from same relative path (ee2f568fc)
๐ Documentation
- Add info for
nuxi devtools
command (#18888) - Update link to bridge repo (#18950)
- Fix typos (#18976)
- Fix typo (#18975)
- Fix link to ESM page (#19000)
- Fix spacing (#19018)
- Flatten top-level project in layers example (#18967)
- Remove reference to obsolete
static
property (80f73d39c) - Add note about nested directory order (#19061)
- Updated public directory explanation (#18464)
- Add information on when mw runs & how to skip (#19083)
- Add
sendRedirect
usage (#19070)
๐ฆ Build
๐ก Chore
- Increase node 14 minor version constraint (#19111)
- Update nitropack and unjs dependencies (#19100)
- Dedupe rollup (576ce9ee3)
โ Tests
- Skip vnode warning on windows dev mode (71bcd9550)
๐ค CI
- Run webpack/vite and dev/prod as matrices (#18905)
โค๏ธ Contributors
- Daniel Roe daniel@roe.dev
- Pooya Parsa pyapar@gmail.com
- Mathieu Magalhaes mathieu.magalhaes@gmail.com
- Yuyin
- Hamish Claxton hamishclaxton@gmail.com
- Nathan Chase nathan@nathanchase.com
- Alex self@pirsig.net
- Julien Huang julien.huang@outlook.fr
- Nick Williams
- Favour Felix Chinemerem
- Alois Seฤkรกr ellrohir@seznam.cz
- Florent Delerue florentdelerue@hotmail.com
- Xin Du (Clark) clark.duxin@gmail.com
- Tim Van Den Eijnden
- Benjamin Flesch bf@deutsche-cyberberatung.de
- Lioness100 jchickmm2@gmail.com
- Felix