v3.21.3
📦 nuxtView on GitHub →
🐛 41 fixes🔧 13 symbols
Summary
This patch release focuses primarily on bug fixes across Nuxt core, Nitro, and build tools like Vite and Webpack, alongside performance improvements in TypeScript path resolution. Key fixes address issues in data fetching, state management, hydration, and server payload handling.
Migration Steps
- Use `toThrow` instead of `toThrowError` in tests.
🐛 Bug Fixes
- Handle negative zero in getUserTrace slice boundary.
- Signal error state and clear timers in loading indicator cleanup.
- Fix broken hook cleanup in route announcer.
- Filter `clearNuxtState` key enumeration by useState prefix.
- Correct `useFetch` `cache` options type.
- Prevent in-flight requests from overwriting cleared async data.
- Check response status before parsing payload.
- Handle TS type assertions on member expression callees in keyed functions parser.
- Resolve h3 export path in nitro vfs.
- Use hash-based cache for dev payloads.
- Await parcel watcher subscription before registering close hook.
- Self-remove hydration error guards after first navigation.
- Mark portal properties as configurable.
- Retry manifest fetch after transient failure.
- Avoid any return type from `callHookWith` in `vue:setup`.
- Strip DevOnly components with attributes in production builds.
- Move parcel watcher debug timer outside subscription loop.
- Preserve falsy prop values in `NuxtTime` data attribute serialization.
- Clear cached rejected promise in `callOnce`.
- Set `__buildAssetsURL` before server entry import.
- Use consistent `[nuxt]` prefix in console warnings.
- Do not add import condition for ssr resolve conditions.
- Emit `styles.mjs` when inline styles off (rspack, webpack).
- Fix FormData body hashing in `useFetch` deduplication key.
- Add `Symbol` serialization for dev server logs (nuxt, nitro).
- Ensure leading slash in `/@fs` URLs for Windows (vite).
- Preserve server-origin errors and surface them via Youch (vite).
- Fix callOnce navigation mode alternating execution.
- Respect configured `test` option (schema, rspack, webpack).
- Restore 'import' condition for ssr resolve (nitro).
- Propagate unexpected errors from `isDirectorySync`.
- Re-encode `ssrContext.url` to match vue-router (nitro).
- Remove obsolete `writeDevServer` + handle vite-node precomputed (vite).
- Avoid double-decoding of url (nitro).
- Sync `_route` when navigating up the route tree.
- Skip `<NuxtPage>` cached vnode when its suspense is unmounted.
- Only recommend payload extraction when `ssr` is enabled (nitro).
- Flatten buffer before filtering promises and fix rendering of content.
- Avoid transforming `NuxtTeleportIslandComponent` with nuxt-client directive.
- Resolve layer aliases in css files.
- Invoke user-supplied error handler when suppressing render errors.