v3.15.3
NuxtJS#nuxt
3.15.3 is the next regularly scheduled patch release.
π Highlights
CORS configuration for dev serverAlongside a range of improvements, we've also shipped a significant fix to impose CORS origin restrictions on the dev server. This applies to your Vite or Webpack/Rspack dev middleware only.
This is a significant change we would not normally ship in a patch but it is a security fix and we urge you to update ASAP.
You can configure the allowed origins and other CORS options via the devServer.cors options in your nuxt.config, which may be relevant if you are developing with a custom hostname:
export default defineNuxtConfig({
devServer: {
cors: {
origin: ['https://custom-origin.com'],
},
},
})β Upgrading
As usual, our recommendation for upgrading is to run:
npx nuxi@latest upgrade --force
This will refresh your lockfile as well, and ensures that you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.
π Changelog
π₯ Performance- kit,nuxt: Don't resolve paths from local layers/modules (#30650)
- nuxt: Reduce number of
mkdirSynccalls (#30651) - nuxt: Reduce unnecessary template updating (#30684)
- kit: Reduce duplication between
findPathandresolvePath(#30682) - kit: Run components compat check synchronously (#30685)
- nuxt: Early return from annotation for non-object syntax plugins (#30683)
- nuxt: Enable
Transitioncomponent only on client side (#30720)
π©Ή Fixes
- vite: Override previous
#app-manifestalias (#30618) - kit,nuxt,schema,vite: Improve watching behaviour (#30620)
- nuxt: Fall back to
plugin.srcfor variable name generation (#30649) - schema: Allow overriding
dev/testenvironment value (#30667) - vite: Drop unneeded call to invalidate module (d2a95c542)
- vite: Add back
invalidateModulecall (9bd71e498) - nuxt: Do not warn about
[[optional dynamic params (#30619) - vite: Inline shared folder in dev mode (#30690)
- nuxt: Deep clone extracted page meta (#30717)
- vite,webpack: Restrict access via cors to local origins + allow configuration via
devServer.cors(406db5b4d)
π Refactors
- vite: Drop
externalityand use vite internal config (#30634)
π Documentation
- Add link to custom
useFetchexample (#30629) - Fix example command (#30628)
- Fix links to
nuxisource code (4fabe0025) - Add description for prefetch and other details of
NuxtLink(#30614) - Update nuxt/content example (542987627)
- Adjust examples, type and description for
addRouteMiddleware(#30656) - Explain how to use
ClientOnlywithonMountedhook (#30670) - Update links to unhead source (eb5344b43)
- Add more context about
navigationmode incallOncecomposable (#30612) - Add example on how to disable default routes for ssg (#30729)
π¦ Build
- schema: Use new
inlineDependenciesoption (01adefcec)
π‘ Chore
- kit: Explicitly inline
lodash-es(0c01273f5) - Add debug timing jiti/unbuild plugins (#30648)
- Do not clobber global tracker objects (df8554331)
- Remove stray console log (47c40f310)
- Improve debugging plugins (492b1ec65)
- Write metrics to disk for better diffing (c5c6b8105)
- Lint (86aff854c)
π€ CI
β€οΈ Contributors
- Alex Liu (@Mini-ghost)
- Daniel Roe (@danielroe)
- Alan Schio (@schirrel)
- xjccc (@xjccc)
- Saeid Zareie (@Saeid-Za)
- Zakhar Shymanchyk (@zshimanchik)
- Arturs Jansons (@iegik)
- Maxime Pauvert (@maximepvrt)

Generated by RSStT. The copyright belongs to the original author.