Closed renovate[bot] closed 1 year ago
This PR contains the following updates:
^2.15.1
^3.5.2
π 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.
This PR contains the following updates:
^2.15.1
->^3.5.2
Release Notes
nuxt/nuxt
### [`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 `You can see a demo on https://nuxt-view-transitions.surge.sh You may have noticed that Chromium-based browsers now ship a new web platform API: the [**View Transitions API**](https://developer.chrome.com/docs/web-platform/view-transitions/). This is an exciting new ability for native browser transitions which (among other things) have the ability to transition between unrelated elements on different pages. Nuxt now ships with an experimental implementation, which will be under active development during the v3.4 release cycle. See the known issues in the [linked PR](https://togithub.com/nuxt/nuxt/pull/20092). ```ts export default defineNuxtConfig({ experimental: { viewTransition: true } }) ``` ##### β¨ Payload Enhancements We've merged a **[significant change to how Nuxt handles payloads](https://togithub.com/nuxt/nuxt/pull/19205)** (under an experimental flag). Payloads are used to send data from the server to the client when doing server-side rendering and avoid double data-fetching during the hydration phase. ```ts [nuxt.config.ts] export default defineNuxtConfig({ experimental: { renderJsonPayloads: true } }) ``` With this new option enabled, 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 === '
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.