nuxt-community / axios-module

Secure and easy axios integration for Nuxt 2
https://axios.nuxtjs.org
MIT License
1.19k stars 245 forks source link

chore(deps): update dependency nuxt to v3 - autoclosed #593

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 2 years ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
nuxt ^2.15.8 -> ^3.6.5 age adoption passing confidence

Release Notes

nuxt/nuxt (nuxt) ### [`v3.6.5`](https://togithub.com/nuxt/nuxt/releases/tag/v3.6.5) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.6.4...v3.6.5) > 3.6.5 is a hotfix patch release addressing the regression with nuxt/content introduced in v3.6.4. [v3.6.4 release notes](https://togithub.com/nuxt/nuxt/releases/tag/v3.6.4) #### ✅ Upgrading As usual, our recommendation for upgrading is to run: ```sh nuxi 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 [compare changes](https://togithub.com/nuxt/nuxt/compare/v3.6.4...v3.6.5) ##### 🩹 Fixes - **nuxt:** Remove `dist` from the default ignore list ([#​22227](https://togithub.com/nuxt/nuxt/pull/22227)) ##### ❤️ Contributors - Anthony Fu ### [`v3.6.4`](https://togithub.com/nuxt/nuxt/releases/tag/v3.6.4) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.6.3...v3.6.4) > 3.6.4 is a patch release, brought forward to allow releasing some important bug fixes before work begins on 3.7. > **Warning** > We're currently investigating a regression with nuxt/content and will be releasing 3.6.5 later today. #### ✅ Upgrading As usual, our recommendation for upgrading is to run: ```sh nuxi 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 [compare changes](https://togithub.com/nuxt/nuxt/compare/v3.6.3...v3.6.4) ##### 🔥 Performance - **nuxt,schema:** Do not watch `buildDir` and `node_modules` ([#​22214](https://togithub.com/nuxt/nuxt/pull/22214)) ##### 🩹 Fixes - **nuxt:** Correctly use `toLowerCase` for possible `moduleResolution` ([#​22160](https://togithub.com/nuxt/nuxt/pull/22160)) - **nuxt:** Don't redirect if initial path has trailing slash ([#​22192](https://togithub.com/nuxt/nuxt/pull/22192)) - **nuxt:** Work around payload extraction issue ([#​22162](https://togithub.com/nuxt/nuxt/pull/22162)) - **nuxt:** Add `baseURL` to island fetch requests ([#​22009](https://togithub.com/nuxt/nuxt/pull/22009)) - **nuxt:** Resolve race condition regenerating auto imports ([#​22201](https://togithub.com/nuxt/nuxt/pull/22201)) - **nuxt:** Ensure we only increment hydrating count once ([#​22200](https://togithub.com/nuxt/nuxt/pull/22200)) - **nuxt:** Avoid premature hydration when using async layouts ([#​22198](https://togithub.com/nuxt/nuxt/pull/22198)) - **cli:** Support `--inspect` in dev mode ([#​22205](https://togithub.com/nuxt/nuxt/pull/22205)) - **test-utils:** Pass along error if server can't start ([#​22216](https://togithub.com/nuxt/nuxt/pull/22216)) ##### 📖 Documentation - Add runtime storage configuration examples ([#​22189](https://togithub.com/nuxt/nuxt/pull/22189)) - Add instruction on how to use other modules in a module ([#​22081](https://togithub.com/nuxt/nuxt/pull/22081)) - Standardize indentation and tag positioning ([#​22157](https://togithub.com/nuxt/nuxt/pull/22157)) ##### ❤️ Contributors - Daniel Roe ([@​danielroe](https://togithub.com/danielroe)) - Nirina Rabeson ([@​Seboran](https://togithub.com/Seboran)) - Anthony Fu ([@​antfu](https://togithub.com/antfu)) - Julien Huang ([@​huang-julien](https://togithub.com/huang-julien)) - Alexander Lichter ([@​manniL](https://togithub.com/manniL)) - Mahdi Shah Abbasian ([@​shahabbasian](https://togithub.com/shahabbasian)) - Ali Azimi ([@​ali4zimi](https://togithub.com/ali4zimi)) - Qin Guan ([@​qin-guan](https://togithub.com/qin-guan)) ### [`v3.6.3`](https://togithub.com/nuxt/nuxt/releases/tag/v3.6.3) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.6.2...v3.6.3) > 3.6.3 is the next patch release, including a number of fixes. It's anticipated this will be the last patch release before 3.7. #### ✅ Upgrading As usual, our recommendation for upgrading is to run: ```sh nuxi 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 [compare changes](https://togithub.com/nuxt/nuxt/compare/v3.6.2...v3.6.3) ##### 🔥 Performance - **nuxt:** Prepopulate island payloads from rendered html ([#​22049](https://togithub.com/nuxt/nuxt/pull/22049)) ##### 🩹 Fixes - **kit:** Module compatibility not working with module names ([6cabe69ce](https://togithub.com/nuxt/nuxt/commit/6cabe69ce)) - **schema:** Correct type of `unctx` options ([4e32e70bb](https://togithub.com/nuxt/nuxt/commit/4e32e70bb)) - **vite:** Pass modulesDir to `isExternal` ([#​21966](https://togithub.com/nuxt/nuxt/pull/21966)) - **nuxt:** Add pages in correct hook when generating ([#​22088](https://togithub.com/nuxt/nuxt/pull/22088)) - **test-utils:** Export from core playwright package ([#​22122](https://togithub.com/nuxt/nuxt/pull/22122)) - **nuxt:** Skip view transitions where there is no route change ([#​22140](https://togithub.com/nuxt/nuxt/pull/22140)) - **nuxt:** Skip scanning components that do not produce a name ([#​22074](https://togithub.com/nuxt/nuxt/pull/22074)) - **cli:** Add aliases to monorepo paths to tsconfig includes ([#​21997](https://togithub.com/nuxt/nuxt/pull/21997)) - **cli:** Allow non-existent `experimental` option ([0643d4315](https://togithub.com/nuxt/nuxt/commit/0643d4315)) ##### 💅 Refactors - **cli,schema:** Add `bundler` module resolution flag ([#​22142](https://togithub.com/nuxt/nuxt/pull/22142)) ##### 📖 Documentation - Fix accessing custom props from child pages ([#​21977](https://togithub.com/nuxt/nuxt/pull/21977)) - Add leading slash ([3bae61507](https://togithub.com/nuxt/nuxt/commit/3bae61507)) - Add more internal links ([#​22013](https://togithub.com/nuxt/nuxt/pull/22013)) - Add space in list ([#​22032](https://togithub.com/nuxt/nuxt/pull/22032)) - Add details and components folder to auto imports introduction ([#​22062](https://togithub.com/nuxt/nuxt/pull/22062)) - Use sfc syntax in example ([#​22073](https://togithub.com/nuxt/nuxt/pull/22073)) - Prefix internal links with `/` ([#​22118](https://togithub.com/nuxt/nuxt/pull/22118)) - Fix typos ([#​22125](https://togithub.com/nuxt/nuxt/pull/22125)) - Update link to router options ([#​22131](https://togithub.com/nuxt/nuxt/pull/22131)) ##### 🏡 Chore - Add explicit vue dependency in fixtures ([c10a62405](https://togithub.com/nuxt/nuxt/commit/c10a62405)) - Update lockfile ([6481162f4](https://togithub.com/nuxt/nuxt/commit/6481162f4)) - Add explicit type dependencies ([d590c85c3](https://togithub.com/nuxt/nuxt/commit/d590c85c3)) - Add volar to workspace recommendations ([0c826ee27](https://togithub.com/nuxt/nuxt/commit/0c826ee27)) - Add eslint schema ([4d7df49eb](https://togithub.com/nuxt/nuxt/commit/4d7df49eb)) ##### ❤️ Contributors - Daniel Roe ([@​danielroe](https://togithub.com/danielroe)) - Samuel Burkhard ([@​samydoesit](https://togithub.com/samydoesit)) - 云游君 ([@​YunYouJun](https://togithub.com/YunYouJun)) - Jianqi Pan ([@​Jannchie](https://togithub.com/Jannchie)) - Luke Pinion ([@​lwpinion](https://togithub.com/lwpinion)) - Fanny ([@​FannyGautierr](https://togithub.com/FannyGautierr)) - Hebilicious ([@​Hebilicious](https://togithub.com/Hebilicious)) - Eduardo San Martin Morote ([@​posva](https://togithub.com/posva)) - Eduardo Santos De Brito ([@​EduSantosBrito](https://togithub.com/EduSantosBrito)) - Nurassyl ([@​Nura-21](https://togithub.com/Nura-21)) - Zakir Hossen ([@​devzakir](https://togithub.com/devzakir)) - Harlan Wilton ([@​harlan-zw](https://togithub.com/harlan-zw)) ### [`v3.6.2`](https://togithub.com/nuxt/nuxt/releases/tag/v3.6.2) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.6.1...v3.6.2) > 3.6.2 is the next patch release, with a raft of fixes including preparations for use without `--shamefully-hoist` and some fixes for data fetching within nested layouts/pages. #### ✅ Upgrading As usual, our recommendation for upgrading is to run: ```sh nuxi 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 [compare changes](https://togithub.com/nuxt/nuxt/compare/v3.6.1...v3.6.2) ##### 🔥 Performance - **nuxt:** Don't run island transform plugin if disabled ([#​21844](https://togithub.com/nuxt/nuxt/pull/21844)) - **nuxt:** Allow hmr for server components in dev mode ([#​21916](https://togithub.com/nuxt/nuxt/pull/21916)) - **nuxt:** Use getters when constructing reactive routes ([#​21957](https://togithub.com/nuxt/nuxt/pull/21957)) ##### 🩹 Fixes - **nuxt:** Only redirect if path is not the same as initial url ([#​21815](https://togithub.com/nuxt/nuxt/pull/21815)) - **cli:** Resolve `@nuxt/ui-templates` from `modulesDir` ([#​21836](https://togithub.com/nuxt/nuxt/pull/21836)) - **nuxt, vite:** Do not use cjs utils to resolve/alias vue ([#​21837](https://togithub.com/nuxt/nuxt/pull/21837)) - **nuxt:** Improve default prerender behaviour ([#​21817](https://togithub.com/nuxt/nuxt/pull/21817)) - **vite:** Greater type-safety within runtime vite-node ([#​21849](https://togithub.com/nuxt/nuxt/pull/21849)) - **nuxt:** Ensure static presets equivalent to `nuxi generate` ([#​21860](https://togithub.com/nuxt/nuxt/pull/21860)) - **nuxt:** Handle injecting multiple entry ids for styles ([#​21864](https://togithub.com/nuxt/nuxt/pull/21864)) - **nuxt:** Stop loading indicator on navigation failure ([#​21751](https://togithub.com/nuxt/nuxt/pull/21751)) - **cli:** Respect nitro ssl cert/key variables ([#​21912](https://togithub.com/nuxt/nuxt/pull/21912)) - **nuxt:** Include external layers in `tsconfig.json` scope ([#​21917](https://togithub.com/nuxt/nuxt/pull/21917)) - **nuxt:** Support custom route name meta with `typedPages` ([#​21659](https://togithub.com/nuxt/nuxt/pull/21659)) - **vite:** Remove @​vue/ scoped libraries from resolutions ([#​21922](https://togithub.com/nuxt/nuxt/pull/21922)) - **nuxt:** Add layers in `node_modules` to tsconfig include ([#​21929](https://togithub.com/nuxt/nuxt/pull/21929)) - **nuxt:** Regenerate imports after template ([#​21934](https://togithub.com/nuxt/nuxt/pull/21934)) - **vite:** Fix issue detecting shadowed keyed composables ([#​21891](https://togithub.com/nuxt/nuxt/pull/21891)) - **nuxt:** Use `$fetch.raw` in dev client mode for islands ([#​21904](https://togithub.com/nuxt/nuxt/pull/21904)) - **schema:** Warn if user provides `vite.publicDir` ([#​21847](https://togithub.com/nuxt/nuxt/pull/21847)) - **nuxt:** Preserve old vnode when leaving nested route ([#​21823](https://togithub.com/nuxt/nuxt/pull/21823)) - **kit:** Ignore telemetry startup time (as it has prompt) ([#​21959](https://togithub.com/nuxt/nuxt/pull/21959)) ##### 📖 Documentation - Add warning about dynamic import of css ([#​21805](https://togithub.com/nuxt/nuxt/pull/21805)) - Update example links ([#​21811](https://togithub.com/nuxt/nuxt/pull/21811)) - Fix broken `spaLoadingTemplate` link ([#​21845](https://togithub.com/nuxt/nuxt/pull/21845)) - Update useFetch return values ([#​21852](https://togithub.com/nuxt/nuxt/pull/21852)) - Describe environment override feature ([#​21879](https://togithub.com/nuxt/nuxt/pull/21879)) - Add Daniel example for hybrid rendering and Vercel ([20d59d1cf](https://togithub.com/nuxt/nuxt/commit/20d59d1cf)) - Improve hybrid rendering ([3fb329cc8](https://togithub.com/nuxt/nuxt/commit/3fb329cc8)) - **rendering:** Add end of sentence ([565787183](https://togithub.com/nuxt/nuxt/commit/565787183)) - Add closing bracket ([#​21887](https://togithub.com/nuxt/nuxt/pull/21887)) - Added a note about server dynamic routes limitation ([#​21919](https://togithub.com/nuxt/nuxt/pull/21919)) - Update docs for `` ([#​21952](https://togithub.com/nuxt/nuxt/pull/21952)) - Update more links to examples repo ([13a892361](https://togithub.com/nuxt/nuxt/commit/13a892361)) - Add JetBrains IDEs debug configuration ([#​21965](https://togithub.com/nuxt/nuxt/pull/21965)) ##### 🏡 Chore - Prune internal unused code and exports ([#​21809](https://togithub.com/nuxt/nuxt/pull/21809)) - Add codeflow overrides configuration ([d7267663f](https://togithub.com/nuxt/nuxt/commit/d7267663f)) ##### ✅ Tests - Add `nuxt-vitest` and composable unit tests ([#​21884](https://togithub.com/nuxt/nuxt/pull/21884)) ##### ❤️ Contributors - Mateusz Kulpa ([@​mateuszkulpa](https://togithub.com/mateuszkulpa)) - Daniel Roe ([@​danielroe](https://togithub.com/danielroe)) - Nozomu Ikuta ([@​NozomuIkuta](https://togithub.com/NozomuIkuta)) - Julien Huang ([@​huang-julien](https://togithub.com/huang-julien)) - Muhamad Jamil ([@​Fanreza](https://togithub.com/Fanreza)) - Anhao ([@​ah-dc](https://togithub.com/ah-dc)) - Anthony Fu ([@​antfu](https://togithub.com/antfu)) - Agénor Debriat ([@​agenordebriat](https://togithub.com/agenordebriat)) - ChronicStone ([@​ChronicStone](https://togithub.com/ChronicStone)) - Ali Azimi ([@​ali4zimi](https://togithub.com/ali4zimi)) - Vasek ([@​vasek-code](https://togithub.com/vasek-code)) - Sébastien Chopin ([@​atinux](https://togithub.com/atinux)) - Aditya Rawat ([@​adityarawat1223](https://togithub.com/adityarawat1223)) - Lucas Vargas ([@​vargasmesh](https://togithub.com/vargasmesh)) - David Stack ([@​davidstackio](https://togithub.com/davidstackio)) - Rayan Inerky ([@​InerkyJad](https://togithub.com/InerkyJad)) ### [`v3.6.1`](https://togithub.com/nuxt/nuxt/releases/tag/v3.6.1) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.6.0...v3.6.1) > 3.6.1 is a bugfix/patch release with some significant patches merged since 3.6.0 ##### ✅ Upgrading As usual, our recommendation for upgrading is to run: ```sh nuxi 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 [compare changes](https://togithub.com/nuxt/nuxt/compare/v3.6.0...v3.6.1) ##### 🩹 Fixes - **nuxt:** Use esbuild/acorn instead of `typescript` dep ([#​21729](https://togithub.com/nuxt/nuxt/pull/21729)) - **nuxt:** Proxy headers to islands + returned prerender hints ([#​21740](https://togithub.com/nuxt/nuxt/pull/21740)) - **nuxt:** Respect `false` to disable spa loading template ([#​21739](https://togithub.com/nuxt/nuxt/pull/21739)) - **nuxt:** Remove `path` from SPA payload ([#​21732](https://togithub.com/nuxt/nuxt/pull/21732)) - **nuxt:** Only remove one item from middleware ([#​21730](https://togithub.com/nuxt/nuxt/pull/21730)) - **nuxt:** Escape colons in page paths ([#​21731](https://togithub.com/nuxt/nuxt/pull/21731)) - **nuxt:** Augment nitro config within server context as well ([#​21724](https://togithub.com/nuxt/nuxt/pull/21724)) - **nuxt:** Inline global css with `ssr: false` route rule ([#​21763](https://togithub.com/nuxt/nuxt/pull/21763)) - **vite:** Resolve css files without importer id first ([#​21770](https://togithub.com/nuxt/nuxt/pull/21770)) - **vite:** Emit assets referenced in inline css ([#​21790](https://togithub.com/nuxt/nuxt/pull/21790)) - **nuxt:** Support importing types from `#imports` ([#​21796](https://togithub.com/nuxt/nuxt/pull/21796)) - **nuxt:** Use starting index when transforming islands ([#​21795](https://togithub.com/nuxt/nuxt/pull/21795)) ##### 📖 Documentation - Add `defineNuxtRouteMiddleware` migration ([#​21718](https://togithub.com/nuxt/nuxt/pull/21718)) - Add a link to Docus layer nuxt config file ([#​21742](https://togithub.com/nuxt/nuxt/pull/21742)) - Remove outdated reference to stable version ([#​21785](https://togithub.com/nuxt/nuxt/pull/21785)) - Centre example loading spinner ([#​21792](https://togithub.com/nuxt/nuxt/pull/21792)) ##### ✅ Tests - Bump bundle size ([e69837d6a](https://togithub.com/nuxt/nuxt/commit/e69837d6a)) ##### ❤️ Contributors - Jenjen75 ([@​jenjen75](https://togithub.com/jenjen75)) - Daniel Roe ([@​danielroe](https://togithub.com/danielroe)) - Anthony Fu ([@​antfu](https://togithub.com/antfu)) - Eddie ([@​Eddie344](https://togithub.com/Eddie344)) - Julien Le Coupanec ([@​LeCoupa](https://togithub.com/LeCoupa)) - Ryota Watanabe ([@​wattanx](https://togithub.com/wattanx)) ### [`v3.6.0`](https://togithub.com/nuxt/nuxt/releases/tag/v3.6.0) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.5.3...v3.6.0) > 3.6.0 is the next minor release, packed with improvements and bug fixes. #### 📣 Upcoming news In the coming week you can expect two announcements: 1. The open-sourcing of `nuxt/cli` by [**@​pi0**](https://togithub.com/pi0) - a new, drop-in replacement for `nuxi` featuring more extensibility and better DX. We are aiming to release this alongside Nuxt 3.7, but you would be very welcome to test and contribute to `nuxi-ng` before then! 2. Three significant RFCs: **Nuxt Font**, **Nuxt Assets** and **Nuxt Scripts**. We're expecting an initial POC to take shape in the next month, and would very much appreciate community feedback on this. #### 👀 Highlights This minor release contains quite a lot, and we have big plans #####  SPA loading indicator If your site is served with `ssr: false` or you have disabled server-rendering on some of your pages, you might be particularly interested in the new [built-in SPA loading indicator](https://togithub.com/nuxt/nuxt/pull/21640). You can now place an HTML file in `~/app/spa-loading-template.html` with some HTML you would like to use to render a loading screen that will be rendered until your app is hydrated on these pages. 👉 **By default an animated Nuxt icon is rendered**. You can completely disable this indicator by setting `spaLoadingTemplate: false` in your nuxt configuration file. ##### ⚡️ Performance improvements The first thing that happens when your app is hydrated is that your plugins run, and so we now perform [build-time optimisations on your plugins](https://togithub.com/nuxt/nuxt/pull/21611), meaning they do not need to be normalised or reordered at runtime. We also include your error component JS in your main entrypoint, meaning that if an error occurs when a user has no connectivity, you can still handle it with your `~/error.vue`. (This also should decrease your total bundle size.) 👉 Compared to Nuxt 3.5.3, the minimal client bundle has decreased by ~0.7kB. Let's keep this up! ##### 🔥 Fully static server components It has been possible to use server components on static pages, but until now they would increase the payload size of your application. That is no longer true. We now store [rendered server components as separate files, which are preloaded before navigation](https://togithub.com/nuxt/nuxt/pull/21461). 👉 **This does rely on the new, richer JSON payload format**, so make sure you have not disabled this by setting `experimental.renderJsonPayloads` to false. ##### 🎨 Better style inlining If you're monitoring your metrics closely and have not turned off `experimental.inlineSSRStyles`, you should see more CSS inlined in your page, and a significantly external CSS file. We're now [better at deduplicating global CSS](https://togithub.com/nuxt/nuxt/pull/21573), particularly added by libraries like tailwind or unocss. ##### 🎬 Animation controls To give you more fine-grained control over your page/layout components, for example to create custom transitions with GSAP or other libraries, we now allow you to set [`pageRef` on ``](https://togithub.com/nuxt/nuxt/pull/19403) and [`layoutRef` on `` ([#​21613](https://togithub.com/nuxt/nuxt/pull/21613)) - **nuxt:** Replace `:` in rendered server components (for win) ([#​21645](https://togithub.com/nuxt/nuxt/pull/21645)) - **cli:** Add back default `baseUrl` in `tsconfig.json` ([#​21632](https://togithub.com/nuxt/nuxt/pull/21632)) - **nuxt:** Post non-proxied cookie value via `BroadcastChannel` ([#​21653](https://togithub.com/nuxt/nuxt/pull/21653)) - **nuxt:** Stop indicator when not changing page component ([#​21656](https://togithub.com/nuxt/nuxt/pull/21656)) - **nuxt:** Scroll to top in nested routes ([#​21657](https://togithub.com/nuxt/nuxt/pull/21657)) - **nuxt:** Inline css directly in root component ([#​21573](https://togithub.com/nuxt/nuxt/pull/21573)) - **nuxt:** Move to `@typescript-eslint/typescript-estree` ([#​21664](https://togithub.com/nuxt/nuxt/pull/21664)) - **nuxt:** Guard `res.end()` calls with check if event is handled ([#​21665](https://togithub.com/nuxt/nuxt/pull/21665)) - **nuxt:** Do not embed error path in payload ([#​21671](https://togithub.com/nuxt/nuxt/pull/21671)) - **nuxt:** Use static nitro build if possible ([#​21655](https://togithub.com/nuxt/nuxt/pull/21655)) - **nuxt:** Add aliases and augmentations for nitro context ([#​21680](https://togithub.com/nuxt/nuxt/pull/21680)) - **nuxt,schema:** Prefer unknown rather than any for signatures ([#​21700](https://togithub.com/nuxt/nuxt/pull/21700)) - **schema:** Change `redirect` type for `NuxtPage` type ([#​21713](https://togithub.com/nuxt/nuxt/pull/21713)) - **nuxt:** Fix error on layout switching ([#​21450](https://togithub.com/nuxt/nuxt/pull/21450)) ##### 📖 Documentation - Add info about vue configuration ([#​21303](https://togithub.com/nuxt/nuxt/pull/21303)) - Include example for server utilities ([#​21337](https://togithub.com/nuxt/nuxt/pull/21337)) - Improved recommended gitignore list ([#​21451](https://togithub.com/nuxt/nuxt/pull/21451)) - Add info about merging strategy in app config ([#​21462](https://togithub.com/nuxt/nuxt/pull/21462)) - Avoid using `render` when defining `rendering` ([#​21490](https://togithub.com/nuxt/nuxt/pull/21490)) - Remove example of deprecated reactivity transform ([#​21396](https://togithub.com/nuxt/nuxt/pull/21396)) - Fix `addTypeTemplate` typos ([#​21520](https://togithub.com/nuxt/nuxt/pull/21520)) - Add warning about redirect check ([#​20680](https://togithub.com/nuxt/nuxt/pull/20680)) - Remove link to closed RFC ([#​21564](https://togithub.com/nuxt/nuxt/pull/21564)) - Info icon fix on "Standalone server" section ([#​21589](https://togithub.com/nuxt/nuxt/pull/21589)) - Add note to use `nuxt` with bridge if `nitro` is false ([#​21586](https://togithub.com/nuxt/nuxt/pull/21586)) - Add styling section ([#​21525](https://togithub.com/nuxt/nuxt/pull/21525)) - Add full stop ([#​21614](https://togithub.com/nuxt/nuxt/pull/21614)) - Reorder sfc blocks and add initial slash in link ([#​21618](https://togithub.com/nuxt/nuxt/pull/21618)) - Add info on extending the HTML template ([#​21615](https://togithub.com/nuxt/nuxt/pull/21615)) - Document `parallel` option on plugins ([#​21622](https://togithub.com/nuxt/nuxt/pull/21622)) - Americanize spelling + fix typos ([#​21627](https://togithub.com/nuxt/nuxt/pull/21627)) - Remove `examples/` from repository ([#​21538](https://togithub.com/nuxt/nuxt/pull/21538)) - **examples:** Add bullet points ([9df892a17](https://togithub.com/nuxt/nuxt/commit/9df892a17)) - Add experimental features page ([#​21617](https://togithub.com/nuxt/nuxt/pull/21617)) - Fix typo in experimental features ([#​21663](https://togithub.com/nuxt/nuxt/pull/21663)) - Update specified Nuxt 2 version in migration guide ([#​21699](https://togithub.com/nuxt/nuxt/pull/21699)) - Added `@latest` to install commands ([#​21702](https://togithub.com/nuxt/nuxt/pull/21702)) ##### 🏡 Chore - Add `vitest` renovate group ([7695aca93](https://togithub.com/nuxt/nuxt/commit/7695aca93)) - Add full version for `octokit/request-action` ([dd5955caf](https://togithub.com/nuxt/nuxt/commit/dd5955caf)) - Widen peer deps in renovate updates ([b0ba4b864](https://togithub.com/nuxt/nuxt/commit/b0ba4b864)) - Bump bundle size 🤔 ([ce4f46385](https://togithub.com/nuxt/nuxt/commit/ce4f46385)) - Ignore `webpack-dev-middleware` updates on 2.x branch ([7f7ae96d1](https://togithub.com/nuxt/nuxt/commit/7f7ae96d1)) - Ignore vercel/netlify build directories ([5d4b71426](https://togithub.com/nuxt/nuxt/commit/5d4b71426)) ##### ✅ Tests - Update bundle size ([08df73801](https://togithub.com/nuxt/nuxt/commit/08df73801)) - Skip instance error test in vite ecosystem CI ([f97052cba](https://togithub.com/nuxt/nuxt/commit/f97052cba)) ##### 🤖 CI - Move bundle skipping logic to workflow ([#​21448](https://togithub.com/nuxt/nuxt/pull/21448)) - Build project before calculating bundle size ([ce096da96](https://togithub.com/nuxt/nuxt/commit/ce096da96)) ##### ❤️ Contributors - Anthony Fu ([@​antfu](https://togithub.com/antfu)) - Portnoy Vladislav ([@​silencerspirit](https://togithub.com/silencerspirit)) - Roman Vašek ([@​Droutin](https://togithub.com/Droutin)) - Daniel Roe ([@​danielroe](https://togithub.com/danielroe)) - Damian Głowala ([@​DamianGlowala](https://togithub.com/DamianGlowala)) - C-schwan ([@​c-schwan](https://togithub.com/c-schwan)) - Vasily Kuzin ([@​ExEr7um](https://togithub.com/ExEr7um)) - Hebilicious ([@​Hebilicious](https://togithub.com/Hebilicious)) - Israel Ortuño ([@​IsraelOrtuno](https://togithub.com/IsraelOrtuno)) - Sébastien Chopin ([@​Atinux](https://togithub.com/Atinux)) - Lehoczky Zoltán ([@​Lehoczky](https://togithub.com/Lehoczky)) - Julien Huang ([@​huang-julien](https://togithub.com/huang-julien)) - Nozomu Ikuta ([@​NozomuIkuta](https://togithub.com/NozomuIkuta)) - Bruno Braga ([@​brunobragaw8t](https://togithub.com/brunobragaw8t)) - Inesh Bose ([@​ineshbose](https://togithub.com/ineshbose)) - Quentin ([@​quentint](https://togithub.com/quentint)) - Wattanx ([@​wattanx](https://togithub.com/wattanx)) - Zaid Kureshi ([@​imzedi](https://togithub.com/imzedi)) - Rodrigo Pimentel ([@​RodrigoProjects](https://togithub.com/RodrigoProjects)) - Nicolas Payot ([@​nicolaspayot](https://togithub.com/nicolaspayot)) - David De Sloovere ([@​DavidDeSloovere](https://togithub.com/DavidDeSloovere)) - Miachel Brevard ([@​GalacticHypernova](https://togithub.com/GalacticHypernova)) - Edward Hibbert ([@​edwh](https://togithub.com/edwh)) - Žan Fras ([@​frasza](https://togithub.com/frasza)) - Jongmin Yoon ([@​jongmin4943](https://togithub.com/jongmin4943)) - Léonce Aklin ([@​leonceaklin](https://togithub.com/leonceaklin)) - Wilson Pinto ([@​wilsonpinto](https://togithub.com/wilsonpinto)) - Albaraa Hasan ([@​Null78](https://togithub.com/Null78)) - Pooya Parsa ([@​pi0](https://togithub.com/pi0)) - Markus ([@​MSchutt](https://togithub.com/MSchutt)) - John Jenkins ([@​johnjenkins](https://togithub.com/johnjenkins)) - Asher White ([@​AWBroch](https://togithub.com/AWBroch)) - Harlan Wilton ([@​harlan-zw](https://togithub.com/harlan-zw)) - Alexander B ([@​xanderbarkhatov](https://togithub.com/xanderbarkhatov)) ### [`v3.5.3`](https://togithub.com/nuxt/nuxt/releases/tag/v3.5.3) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.5.2...v3.5.3) > 3.5.3 is expected to be the last patch release before our next raft of features lands in v3.6. #### ✅ Upgrading As usual, our recommendation for upgrading is to run: ```sh nuxi 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 [compare changes](https://togithub.com/nuxt/nuxt/compare/v3.5.2...v3.5.3) ##### 🔥 Performance - **nuxt:** Avoid watching nested paths ([#​21256](https://togithub.com/nuxt/nuxt/pull/21256)) ##### 🩹 Fixes - **nuxt:** Handle serialising empty bigint ([#​21257](https://togithub.com/nuxt/nuxt/pull/21257)) - **cli:** Pass `--no-clear` config through to vite ([#​21262](https://togithub.com/nuxt/nuxt/pull/21262)) - **cli:** Always use the latest devtools wizard ([#​21291](https://togithub.com/nuxt/nuxt/pull/21291)) - **schema:** Update `vue-loader` options type ([#​21363](https://togithub.com/nuxt/nuxt/pull/21363)) - **schema:** Add types for vue experimental features ([#​21364](https://togithub.com/nuxt/nuxt/pull/21364)) - **nuxt:** Display errors in client overlay with `typeCheck` ([#​21064](https://togithub.com/nuxt/nuxt/pull/21064)) - **nuxt:** Support usage of `std-env` in runtime code ([#​21372](https://togithub.com/nuxt/nuxt/pull/21372)) - **nuxt:** Key distinct pages differently for legacy asyncData ([#​21263](https://togithub.com/nuxt/nuxt/pull/21263)) - **vite:** Skip generating keys for locally scoped functions ([#​20955](https://togithub.com/nuxt/nuxt/pull/20955)) - **kit:** Temporarily inline `lodash.template` from `lodash-es` ([#​20892](https://togithub.com/nuxt/nuxt/pull/20892)) ##### 📖 Documentation - Add `index.vue` to page routing example ([#​21240](https://togithub.com/nuxt/nuxt/pull/21240)) - Distinguish between `$fetch` and fetch composables ([#​21228](https://togithub.com/nuxt/nuxt/pull/21228)) - Adjust `env` property to match `runtimeConfig` ([#​21265](https://togithub.com/nuxt/nuxt/pull/21265)) - Fix Cloudflare capitalization ([#​21267](https://togithub.com/nuxt/nuxt/pull/21267)) - Migrate transition class names and style prop ([#​21281](https://togithub.com/nuxt/nuxt/pull/21281)) - Remove irregular spaces ([#​21380](https://togithub.com/nuxt/nuxt/pull/21380)) ##### 🏡 Chore - Pin dev dependencies ([9fb83b744](https://togithub.com/nuxt/nuxt/commit/9fb83b744)) - Avoid inlining deps in vitest ([#​21316](https://togithub.com/nuxt/nuxt/pull/21316)) - Rewrite crawler to remove old dependencies ([#​21326](https://togithub.com/nuxt/nuxt/pull/21326)) - Support vitest 0.30.0 peer dependency ([d58d1ea1e](https://togithub.com/nuxt/nuxt/commit/d58d1ea1e)) ##### ✅ Tests - Add additional component case ([6f8d036d4](https://togithub.com/nuxt/nuxt/commit/6f8d036d4)) ##### 🤖 CI - Apply security best practices to workflows ([#​21328](https://togithub.com/nuxt/nuxt/pull/21328)) - Pin more action dependencies to hash ([#​21330](https://togithub.com/nuxt/nuxt/pull/21330)) ##### ❤️ Contributors - Daniel Roe ([@​danielroe](https://togithub.com/danielroe)) - Wilson Pinto ([@​wilsonpinto](https://togithub.com/wilsonpinto)) - Anhao ([@​ah-dc](https://togithub.com/ah-dc)) - Anthony Fu ([@​antfu](https://togithub.com/antfu)) - Alexander ([@​xanderbarkhatov](https://togithub.com/xanderbarkhatov)) - Lehoczky Zoltán ([@​Lehoczky](https://togithub.com/Lehoczky)) - [@​scscgit](https://togithub.com/scscgit) - Warflash ([@​warflash](https://togithub.com/warflash)) - Andrew Luca ([@​iamandrewluca](https://togithub.com/iamandrewluca)) - Hebilicious ([@​Hebilicious](https://togithub.com/Hebilicious)) ### [`v3.5.2`](https://togithub.com/nuxt/nuxt/releases/tag/v3.5.2) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.5.1...v3.5.2) > 3.5.2 is a patch release focusing on bug fixes. #### ✅ Upgrading As usual, our recommendation for upgrading is to run: ```sh nuxi 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 [compare changes](https://togithub.com/nuxt/nuxt/compare/v3.5.1...v3.5.2) ##### 🔥 Performance - **nuxt:** Use `.test` and hoist regexps where possible ([#​21011](https://togithub.com/nuxt/nuxt/pull/21011)) ##### 🩹 Fixes - **nuxt:** Fix useLazyFetch types ([#​20989](https://togithub.com/nuxt/nuxt/pull/20989)) - **nuxt:** Scan component dirs case-sensitively ([#​20995](https://togithub.com/nuxt/nuxt/pull/20995)) - **schema:** Remove duplicate `@default` jsdoc tag ([#​21010](https://togithub.com/nuxt/nuxt/pull/21010)) - **nuxt:** Add type support for router composables without `pages/` integration ([397c54c9d](https://togithub.com/nuxt/nuxt/commit/397c54c9d)) - **nuxt:** Use simple incrementing id on client ([#​20992](https://togithub.com/nuxt/nuxt/pull/20992)) - **nuxt:** Treeshake `` with webpack ([#​21013](https://togithub.com/nuxt/nuxt/pull/21013)) - **nuxt:** Await nuxt ready state before `refreshNuxtData` ([#​21008](https://togithub.com/nuxt/nuxt/pull/21008)) - **nuxt:** Show error page after fatal `abortNavigation` ([#​21047](https://togithub.com/nuxt/nuxt/pull/21047)) - **nuxt:** Normalize windows paths in granular watcher ([#​21066](https://togithub.com/nuxt/nuxt/pull/21066)) - **nuxt:** Omit `Set-Cookie` header if value is null ([#​21072](https://togithub.com/nuxt/nuxt/pull/21072)) - **nuxt:** Resolve modules relative to modulesDir ([#​21082](https://togithub.com/nuxt/nuxt/pull/21082)) - **vite:** Narrow vite-node inline pattern ([#​21224](https://togithub.com/nuxt/nuxt/pull/21224)) ##### 📖 Documentation - Fix typo in modules directory example ([#​21014](https://togithub.com/nuxt/nuxt/pull/21014)) - Fix a typo in code example ([#​21057](https://togithub.com/nuxt/nuxt/pull/21057)) - Link to correct webpack css extraction loader ([4e6369cef](https://togithub.com/nuxt/nuxt/commit/4e6369cef)) - **api:** Add `render:island` hook ([#​21065](https://togithub.com/nuxt/nuxt/pull/21065)) - Rewrite data fetching section ([#​21031](https://togithub.com/nuxt/nuxt/pull/21031)) - Improve data fetching docs ([#​21197](https://togithub.com/nuxt/nuxt/pull/21197)) ##### 🏡 Chore - Move v2 docs to v2.nuxt.com ([6d8c119a2](https://togithub.com/nuxt/nuxt/commit/6d8c119a2)) - Add missing dependencies ([9723add18](https://togithub.com/nuxt/nuxt/commit/9723add18)) ##### ✅ Tests - Refactor type tests into a separate fixture ([#​21007](https://togithub.com/nuxt/nuxt/pull/21007)) - Close out some missing browser contexts ([3bc3aeaf6](https://togithub.com/nuxt/nuxt/commit/3bc3aeaf6)) ##### ❤️ Contributors - Daniel Roe ([@​danielroe](https://togithub.com/danielroe)) - Jongmin Yoon ([@​jongmin4943](https://togithub.com/jongmin4943)) - Louis Haftmann ([@​LouisHaftmann](https://togithub.com/LouisHaftmann)) - Clément Ollivier ([@​clemcode](https://togithub.com/clemcode)) - Julien Huang ([@​huang-julien](https://togithub.com/huang-julien)) - Alexander ([@​xanderbarkhatov](https://togithub.com/xanderbarkhatov)) - Yue Yang ([@​g1eny0ung](https://togithub.com/g1eny0ung)) - Lucie ([@​lihbr](https://togithub.com/lihbr)) - [@​Gecolay](https://togithub.com/Gecolay) - Lehoczky Zoltán ([@​Lehoczky](https://togithub.com/Lehoczky)) - Sébastien Chopin ([@​Atinux](https://togithub.com/Atinux)) - Haruaki OTAKE ([@​aaharu](https://togithub.com/aaharu)) ### [`v3.5.1`](https://togithub.com/nuxt/nuxt/releases/tag/v3.5.1) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.5.0...v3.5.1) > 3.5.1 is a patch release, with bug fixes and performance improvements. ##### ✅ Upgrading As usual, our recommendation for upgrading is to run: ```sh nuxi 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 [compare changes](https://togithub.com/nuxt/nuxt/compare/v3.5.0...v3.5.1) ##### 🔥 Performance - **nuxt:** Use granular watcher to avoid crawling ignored dirs ([#​20836](https://togithub.com/nuxt/nuxt/pull/20836)) ##### 🩹 Fixes - **webpack:** Analyze report path ([#​20878](https://togithub.com/nuxt/nuxt/pull/20878)) - **nuxt:** Allow island renders without `/` route ([#​20894](https://togithub.com/nuxt/nuxt/pull/20894)) - **nuxt:** Infer `useFetch` method when generic is passed ([#​20797](https://togithub.com/nuxt/nuxt/pull/20797)) - **nuxt:** Prioritise vue app context when available ([#​20910](https://togithub.com/nuxt/nuxt/pull/20910)) - **nuxt:** Don't `refresh` when hydrating when data is present ([#​20916](https://togithub.com/nuxt/nuxt/pull/20916)) - **nuxt:** Resolve layer assets in relation to layer directory ([#​20932](https://togithub.com/nuxt/nuxt/pull/20932)) - **nuxt:** Don't match partial component names with prefix ([#​20939](https://togithub.com/nuxt/nuxt/pull/20939)) - **kit:** Resolve relative module paths when installing ([#​20896](https://togithub.com/nuxt/nuxt/pull/20896)) - **nuxt:** Exclude plugin declaration from non-existent files ([#​20974](https://togithub.com/nuxt/nuxt/pull/20974)) - **nuxt:** Use `default` type for initial value for composables ([#​20968](https://togithub.com/nuxt/nuxt/pull/20968)) - **nuxt:** Skip middleware for islands components ([#​20924](https://togithub.com/nuxt/nuxt/pull/20924)) - **nuxt:** Use `resolvePath` to handle edge cases for modules ([#​20975](https://togithub.com/nuxt/nuxt/pull/20975)) ##### 📖 Documentation - Fix defaults in custom fetch example ([#​20898](https://togithub.com/nuxt/nuxt/pull/20898)) - Fix typo ([#​20907](https://togithub.com/nuxt/nuxt/pull/20907)) - Add `pnpm test` command to run whole test suite ([4907660ff](https://togithub.com/nuxt/nuxt/commit/4907660ff)) - Remove warning around `experimental.renderJsonPayloads` ([891ba880e](https://togithub.com/nuxt/nuxt/commit/891ba880e)) - Add example of 'alphabetical' plugin numbering ([#​20930](https://togithub.com/nuxt/nuxt/pull/20930)) - **rendering:** Improve rendering modes section ([244c68108](https://togithub.com/nuxt/nuxt/commit/244c68108)) - **rendering:** Lint fix ([ef8b5b593](https://togithub.com/nuxt/nuxt/commit/ef8b5b593)) - Sync `useAsyncData` and `useFetch` types ([#​20935](https://togithub.com/nuxt/nuxt/pull/20935)) - Update static to isr ([#​20964](https://togithub.com/nuxt/nuxt/pull/20964)) - Add advanced usage example of `useState` ([#​20249](https://togithub.com/nuxt/nuxt/pull/20249)) - Add link to layers from `pages/` docs ([#​20976](https://togithub.com/nuxt/nuxt/pull/20976)) ##### 🏡 Chore - Rename script test for fixtures:payload ([#​20908](https://togithub.com/nuxt/nuxt/pull/20908)) - Pass ref to checkout ([58ed8ec34](https://togithub.com/nuxt/nuxt/commit/58ed8ec34)) - Remove outdated todo comment ([b2a769a86](https://togithub.com/nuxt/nuxt/commit/b2a769a86)) ##### 🤖 CI - Try different ref format ([2b10dd7b7](https://togithub.com/nuxt/nuxt/commit/2b10dd7b7)) ##### ❤️ Contributors - Paul Grau ([@​graup](https://togithub.com/graup)) - Luciano Tonet ([@​lucianotonet](https://togithub.com/lucianotonet)) - Daniel Roe ([@​danielroe](https://togithub.com/danielroe)) - Julien Huang ([@​huang-julien](https://togithub.com/huang-julien)) - Haruaki OTAKE ([@​aaharu](https://togithub.com/aaharu)) - Nate Emerson ([@​nateemerson](https://togithub.com/nateemerson)) - Jongmin Yoon ([@​jongmin4943](https://togithub.com/jongmin4943)) - Sébastien Chopin ([@​Atinux](https://togithub.com/Atinux)) - Aziz Ramdan Kurniawan ([@​azizramdan](https://togithub.com/azizramdan)) - [@​Gypsophyllite](https://togithub.com/Gypsophyllite) - Wilson Pinto ([@​wilsonpinto](https://togithub.com/wilsonpinto)) - Lemon ([@​ww-lemon](https://togithub.com/ww-lemon)) - Vasily Kuzin ([@​ExEr7um](https://togithub.com/ExEr7um)) - Anthony Fu ([@​antfu](https://togithub.com/antfu)) ### [`v3.5.0`](https://togithub.com/nuxt/nuxt/releases/tag/v3.5.0) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.4.3...v3.5.0) > 3.5.0 is a minor (feature) release with lots of new features to play with. #### 👀 Highlights ##### ⚡️ Vue 3.3 released! Vue 3.3 has been released, with lots of exciting features, particularly around type support. This also brings a significant improvement to data fetching when navigating between nested pages ([https://github.com/nuxt/nuxt/pull/20777](https://togithub.com/nuxt/nuxt/pull/20777)), thanks to [@​antfu](https://togithub.com/antfu) and [@​baiwusanyu-c](https://togithub.com/baiwusanyu-c). - new `defineOptions` macro - 'generic' components - typed slots and using external types in defineProps - ... and more Read **[the full release announcement](https://blog.vuejs.org/posts/vue-3-3)** for more details. ##### 🙌 Nitropack v2.4 We've been working on lots of improvements to Nitro and these have landed already in Nitro v2.4 - you may already have this upgrade, which contains a lot of bug fixes, updates to the module worker format for Cloudflare, Vercel KV support and more. One note: if you're deploying to Vercel or Netlify and want to benefit from incremental static regeneration, you should now update your route rules: ```diff routeRules: { -- '/blog/**': { swr: 3000 }, ++ '/blog/**': { isr: 3000 }, } ``` Read **[the full release notes](https://togithub.com/unjs/nitro/releases/tag/v2.4.0)**. ##### 💖 New defaults **Rich JSON payload serialisation** is now enabled by default ([https://github.com/nuxt/nuxt/pull/19205](https://togithub.com/nuxt/nuxt/pull/19205), [https://github.com/nuxt/nuxt/pull/20770](https://togithub.com/nuxt/nuxt/pull/20770)). This is both faster and allows serialising complex objects in the payload passed from the Nuxt server to client (and also when extracting payload data for prerendered sites). This now means that **various rich JS types are supported out-of-the-box**: regular expressions, dates, Map and Set and BigInt as well as NuxtError - and Vue-specific objects like `ref`, `reactive`, `shallowRef` and `shallowReactive`. You can find [an example](https://togithub.com/nuxt/nuxt/blob/main/test/fixtures/basic/pages/json-payload.vue) in our test suite. This is all possible due to [Rich-Harris/devalue#58](https://togithub.com/Rich-Harris/devalue/pull/58). For a long time, Nuxt has been using our own fork of devalue owing to issues serialising Errors and other non-POJO objects, but we now have transitioned back to the original. You can even register your own custom types with a new object-syntax Nuxt plugin: ```ts [plugins/custom-payload-type.ts] export default definePayloadPlugin(() => { definePayloadReducer('BlinkingText', data => data === '' && '_') definePayloadReviver('BlinkingText', () => '') }) ``` You can read more about how this works [here](https://togithub.com/rich-harris/devalue#custom-types). ##### 🛝 Interactive server components This feature should be considered highly experimental, but thanks to some great work from [@​huang-julien](https://togithub.com/huang-julien) we now support interactive content within server components via *slots* ([https://github.com/nuxt/nuxt/pull/20284](https://togithub.com/nuxt/nuxt/pull/20284)). You can follow the server component roadmap at [https://github.com/nuxt/nuxt/issues/19772](https://togithub.com/nuxt/nuxt/issues/19772). ##### ⏰ Environment config You can now configure fully typed, per-environment overrides in your `nuxt.config`: ```js export default defineNuxtConfig({ $production: { routeRules: { '/**': { isr: true } } }, $development: { // } }) ``` If you're authoring layers, you can also use the `$meta` key to provide metadata that you or the consumers of your layer might use. Read more: [https://github.com/nuxt/nuxt/pull/20329](https://togithub.com/nuxt/nuxt/pull/20329). ##### 💪 Fully typed pages You can benefit from fully typed routing within your Nuxt app via this experimental integration with https://github.com/posva/unplugin-vue-router - thanks to some great work from [@​posva](https://togithub.com/posva)! Out of the box, this will enable typed usage of `navigateTo`, ``, `router.push()` and more. You can even get typed params within a page by using `const route = useRoute('route-name')`. ```ts export default defineNuxtConfig({ experimental: { typedPages: true } }) ``` ##### 🔎 'Bundler' module resolution We now have full support within Nuxt for the `bundler` strategy of [module resolution](https://www.typescriptlang.org/docs/handbook/module-resolution.html). We would recommend adopting this if possible. It has type support for subpath exports, for example, but more exactly matches the behaviour of build tools like Vite and Nuxt than `Node16` resolution. ```ts export default defineNuxtConfig({ typescript: { tsConfig: { compilerOptions: { moduleResolution: 'bundler' } } } }) ``` This turns on TypeScript's ability to 'follow' Node subpath exports. For example, if a library has a subpath export like `mylib/path` that is mapped to `mylib/dist/path.mjs` then the types for this can be pulled in from `mylib/dist/path.d.ts` rather than requiring the library author to create `mylib/path.d.ts`. ##### ⚗️ Separate server types We plan to improve clarity within your IDE between the 'nitro' and 'vue' part of your app, and we've shipped the first part of this via a separate generated `tsconfig.json` for your `~/server` directory ([https://github.com/nuxt/nuxt/pull/20559](https://togithub.com/nuxt/nuxt/pull/20559)). You can use by adding an additional `~/server/tsconfig.json` with the following content: ```json { "extends": "../.nuxt/tsconfig.server.json" } ``` Although right now these values won't be respected when type checking, you should get better type hints in your IDE. ##### 💀 Deprecations Although we have not typed or documented the `build.extend` hook from Nuxt 2, we have been calling it within the webpack builder. We are now explicitly deprecating this and will remove it in a future minor version. #### ✅ Upgrading As usual, our recommendation for upgrading is to run: ```sh nuxi 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 [compare changes](https://togithub.com/nuxt/nuxt/compare/v3.4.3...v3.5.0) ##### 🚀 Enhancements - **kit:** Add `prepend` option to `addImportsDir` ([#​20307](https://togithub.com/nuxt/nuxt/pull/20307)) - **nuxt:** Add scoped helper for clearing error within boundary ([#​20508](https://togithub.com/nuxt/nuxt/pull/20508)) - **nuxt:** Auto import 'watchPostEffect' and 'watchSyncEffect' from vue ([#​20279](https://togithub.com/nuxt/nuxt/pull/20279)) - **vite:** Introduce `vite:configResolved` hook ([#​20411](https://togithub.com/nuxt/nuxt/pull/20411)) - **webpack:** Introduce `webpack:configResolved` hook ([#​20412](https://togithub.com/nuxt/nuxt/pull/20412)) - **kit:** Allow vite and webpack plugins to be prepended ([#​20403](https://togithub.com/nuxt/nuxt/pull/20403)) - **nuxt:** Add layer meta and env overrides to config types ([#​20329](https://togithub.com/nuxt/nuxt/pull/20329)) - **test-utils:** Add option to configure test server port ([#​20443](https://togithub.com/nuxt/nuxt/pull/20443)) - **nuxt:** Allow access to components within app ([#​20604](https://togithub.com/nuxt/nuxt/pull/20604)) - **kit:** Support passing getter to `addVitePlugin` and `addWebpackPlugin` ([#​20525](https://togithub.com/nuxt/nuxt/pull/20525)) - **cli:** Allow greater control of `nuxi analyze` from cli ([#​20387](https://togithub.com/nuxt/nuxt/pull/20387)) - **nuxt:** Add `nuxtApp.runWithContext` ([#​20608](https://togithub.com/nuxt/nuxt/pull/20608)) - **deps:** Upgrade to nitropack v2.4 ([#​20688](https://togithub.com/nuxt/nuxt/pull/20688)) - **nuxt:** Add experimental `typedPages` option ([#​20367](https://togithub.com/nuxt/nuxt/pull/20367)) - **nuxt:** Add apps to nuxt build-time instance ([#​20637](https://togithub.com/nuxt/nuxt/pull/20637)) - **cli:** Allow passing overrides to other nuxi commands ([#​20760](https://togithub.com/nuxt/nuxt/pull/20760)) - **schema:** Enable rich json payloads by default ([#​20770](https://togithub.com/nuxt/nuxt/pull/20770)) - **deps:** Update vue to v3.3 ([#​20478](https://togithub.com/nuxt/nuxt/pull/20478)) - **nuxt:** Use `runWithContext` within `callWithNuxt` ([#​20775](https://togithub.com/nuxt/nuxt/pull/20775)) - **nuxt:** Add `useRequestURL` helper ([#​20765](https://togithub.com/nuxt/nuxt/pull/20765)) - **nuxt:** Allow fallback production content in `<

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

codecov[bot] commented 2 years ago

Codecov Report

Merging #593 (945fc22) into main (2436566) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #593   +/-   ##
=======================================
  Coverage   88.67%   88.67%           
=======================================
  Files           1        1           
  Lines          53       53           
  Branches       29       29           
=======================================
  Hits           47       47           
  Misses          6        6