chore(deps): update all non-major dependencies - autoclosed #87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.3.1
->^3.5.0
^4.0.0
->^4.0.1
7.30.0
->7.32.4
Release Notes
nuxt/nuxt
v3.5.0
Compare Source
👀 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), thanks to @antfu and @baiwusanyu-c.
defineOptions
macroRead the full release announcement 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:
Read the full release notes.
💖 New defaults
Rich JSON payload serialisation is now enabled by default (https://github.com/nuxt/nuxt/pull/19205, https://github.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
andshallowReactive
.You can find an example in our test suite.
This is all possible due to Rich-Harris/devalue#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:
You can read more about how this works here.
🛝 Interactive server components
This feature should be considered highly experimental, but thanks to some great work from @huang-julien we now support interactive content within server components via slots (https://github.com/nuxt/nuxt/pull/20284).
You can follow the server component roadmap at https://github.com/nuxt/nuxt/issues/19772.
⏰ Environment config
You can now configure fully typed, per-environment overrides in your
nuxt.config
: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.
💪 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! Out of the box, this will enable typed usage of
navigateTo
,<NuxtLink>
,router.push()
and more. You can even get typed params within a page by usingconst route = useRoute('route-name')
.🔎 'Bundler' module resolution
We now have full support within Nuxt for the
bundler
strategy of module resolution. 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 thanNode16
resolution.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 tomylib/dist/path.mjs
then the types for this can be pulled in frommylib/dist/path.d.ts
rather than requiring the library author to createmylib/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). You can use by adding an additional~/server/tsconfig.json
with the following content: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:
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
🚀 Enhancements
prepend
option toaddImportsDir
(#20307)vite:configResolved
hook (#20411)webpack:configResolved
hook (#20412)addVitePlugin
andaddWebpackPlugin
(#20525)nuxi analyze
from cli (#20387)nuxtApp.runWithContext
(#20608)typedPages
option (#20367)runWithContext
withincallWithNuxt
(#20775)useRequestURL
helper (#20765)<DevOnly>
(#20817)addBuildPlugin
for builder-agnostic implementation (#20587)NuxtClientFallback
(#20336)🩹 Fixes
@nuxt/devtools
module before core modules (#20595)<FragmentWrapper>
(#20607)useError
is called with nuxt app context (#20585)nuxt_component
ssr style andisVue
(#20679)build.extend
hook (#20605)fs.allow
dirs to include app files (#20755).env
changes (#20501)<DevOnly>
from parsed html (#20840)pages:extend
to enable pages module (#20806)scrollBehavior
(#20859)💅 Refactors
runtimeCompiler
option out of experimental (#20606)resolvePath
(#20756)📖 Documentation
useCookie
does not share state (#20665)navigateTo
examples (#20678)useSeoMeta
anduseServerSeoMeta
pages (#20656)<NuxtLayout>
when migratingerror.vue
(#20690)await
before lazy composable examples (7e7e006e9)pinia
(#20778)🏡 Chore
markdownlint-cli
update and prevent auto-update (675445f98)@ts-ignore
(4f0d3d4ae).only
in tests (ad97cb45a).mjs
files (#20711)pnpm-workspace.yaml
(#20751)externalVue
removal (a33d2e7ae)✅ Tests
🤖 CI
❤️ Contributors
v3.4.3
Compare Source
✅ Upgrading
As usual, our recommendation for upgrading is to run:
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
🩹 Fixes
timeEnd
unless we're debugging (#20424)<ClientOnly>
(f1ded44e8)event.node.req
in cookie utility (#20474)devServer.https: true
(#20498)/__nuxt_error
directly (#20497)callAsync
for executing hooks with context (#20510)app:error
in SSR before rendering error page (#20511)asyncData
(#20535)#components
imports into direct component imports (#20547)RenderResponse
for redirects (#20496)📖 Documentation
vue-router
docs (#20454)✅ Tests
🤖 CI
nuxt-edge
with provenance (753c4c2a3)❤️ Contributors
v3.4.2
Compare Source
✨ What's new?
Apart from the normal bug fixes, we have a couple things we should call out.
@parcel/watcher
for the Nuxt dev watcher (#20179). This may improve performance if you're on Windows. You'll probably also want to installwatchman
in that case.✅ Upgrading
As usual, our recommendation for upgrading is to run:
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
🔥 Performance
@parcel/watcher
for dev watcher (#20179)🩹 Fixes
useRequestHeaders
keys as optional (#20286)@jest/globals
(#20360)rootDir
when preparing project (#20401)💅 Refactors
isJS
andisVue
utilities consistently (#20344)isFileServingAllowed
util (#20414)📖 Documentation
🏡 Chore
@ts-ignore
and fix some issues (#20273)🤖 CI
❤️ Contributors
v3.4.1
Compare Source
👉 Changelog
compare changes
🩹 Fixes
ssrContext
in spa renderer (#20216)<NuxtClientFallback>
(#20237)vue-router
normalises url (#20247)📖 Documentation
transform
/pick
(#20186)✅ Tests
❤️ Contributors
v3.4.0
Compare Source
👀 Highlights
🪄 View Transitions API Support
CleanShot.2023-04-11.at.18.00.47.mp4
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. 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.
✨ Payload Enhancements
We've merged a significant change to how Nuxt handles payloads (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.
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
andshallowReactive
.You can find an example in our test suite.
This is all possible due to Rich-Harris/devalue#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:
You can read more about how this works here.
Note: this only affects payloads of the Nuxt app, that is, data stored within
useState
, returned fromuseAsyncData
or manually injected vianuxtApp.payload
. It does not affect data fetched from Nitro server routes via$fetch
oruseFetch
although this is one area I am keen to explore further.Preliminary testing shows a significant speed-up: 25% faster in total server response time for a very minimal app with a large JSON payload, but I'd urge you to run your own tests and share the results with us.
As mentioned, we're merging this behind a flag so we can test this broadly and gather feedback on the new approach. The most significant potential change is that the payload is now no longer available on
window.__NUXT__
immediately. Instead, we now need to initialise the Nuxt app to parse the payload so any code that accesses__NUXT__
will need to be run in a plugin or later in the Nuxt app lifecycle. Please feel free to raise an issue if you foresee or encounter issues in your projects.🎁 Object-syntax Nuxt plugins
We now support object-syntax Nuxt plugins for better control over plugin order and easier registration of hooks.
In future we plan to enable build optimizations based on the metadata you pass in your Nuxt plugins.
🛠️ Easier Devtools Configuration
It's even easier to enable Nuxt DevTools in your project: just set
devtools: true
in yournuxt.config
file to enable devtools.If it's not already installed, Nuxt will prompt to install it locally. This means you no longer need to have Nuxt DevTools enabled globally.
Note: the DevTools is still experimental and under active development, so do be prepared for occasional unexpected behaviour, and please report issues directly to https://github.com/nuxt/devtools 🙏
📚 Layers Improvements
We now support transforming
~
/~~
/@
/@@​
aliases within layers, meaning you now no longer need to use relative paths when importing within layers.This should mean it is much easier to use a 'normal' Nuxt project as a layer without needing to specially write it as one.
🧸 Better Context Transforms
We now transform certain keys of
definePageMeta
anddefineNuxtComponent
which means you should have fewer issues with a missing Nuxt instance. This includes support accessing the Nuxt instance after anawait
withinasyncData
andsetup
functions for those still using the Options API. And you no longer need to wrapmiddleware
andvalidate
withdefineNuxtRouteMiddleware
when using async functions.♻️ Ecosystem Updates
As usual, this release will pull in upstream improvements, including the new Consola v3 and Nitropack v2.3.3 (a new minor is expected shortly).
🚨 'Breaking fixes'
We've also taken the opportunity to do some cleanup in this minor release.
x-nuxt-no-ssr
header (undocumented) to force SPA rendering. We've now disabled this behaviour by default but you can get it back by settingexperimental.respectNoSSRHeader
to true. Alternatively, you can setevent.context.nuxt.noSSR
on the server to force SPA rendering.#head
alias and also disabled the polyfill for@vueuse/head
behaviour by default. (It can still be enabled withexperimental.polyfillVueUseHead
.)experimental.viteNode
option. It can be configured instead withvite.devBundler
.public
key. This was an undocument compatibility measure with Nuxt 2 and we plan to remove it entirely in v3.5.✅ Upgrading
As usual, our recommendation for upgrading is to run:
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.
With Nuxt v3.4.0, we now advise that you explicitly install the
@types/node
version that matches your Node version.👉 Changelog
compare changes
🚀 Enhancements
useRoute
is used in middleware (#20050)watch
withuseFetch
(#19823)~
/~~
/@
/@@​
aliases within layers (#19986)dir.pages
in page placeholder (#20079)devtools
when it's enabled (#20126)experimentalNoScripts
route rule (#19805)🔥 Performance
@vueuse/head
polyfill by default (#20131)🩹 Fixes
x-nuxt-no-ssr
header by default (#20024)$config
object (#20081)useFetch
(#20052)@types/node
as a peerDependency (#20025)any
(#20105).client
component placeholders (#20093)undefined
type foruseCookie
return value (4f0b3c722)imports.autoImport
(#20180)ignorePrefix
to be changed (#20202)💅 Refactors
experimental
options (#20112)#head
alias (#20111)📖 Documentation
imports
configuration (#20073)headers
option foruseFetch
(#20148)@pinia/nuxt
module name (#20199)🏡 Chore
overrides
(4a6f85277)overrides
(a15a9b66f)JITI_ESM_RESOLVE
(#20172)✅ Tests
🎨 Styles
sort-imports
eslint rule (#20133)🤖 CI
head_ref
for dependency deduping (ae5df72c5)❤️ Contributors
v3.3.3
Compare Source
✅ Upgrading
As usual, our recommendation for upgrading is to run:
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
🩹 Fixes
setResponseStatus
signature with h3 (#19987)💅 Refactors
📖 Documentation
pages:extend
example (72724076b)🏡 Chore
mkdist
to1.2.0
(a96451d2d)✅ Tests
🤖 CI
❤️ Contributors
v3.3.2
Compare Source
✅ Upgrading
As usual, our recommendation for upgrading is to run:
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
🔥 Performance
🩹 Fixes
performance.mark()
(#19687)h3
utilities to set response status/code (#19713)📖 Documentation
useAsyncData
(#19225)$fetch
in top-level<script setup>
(#19357)return
statement (fc7867fb0)@nuxt/kit
example with node built-ins (#19873)🏡 Chore
✅ Tests
🤖 CI
❤️ Contributors
webpack-contrib/eslint-webpack-plugin
v4.0.1
Compare Source
pnpm/pnpm
v7.32.4
Compare Source
Patch Changes
pnpm link -g <pkg-name>
should not modify thepackage.json
file #4341.engines
field should match prerelease versions #6509.pnpm publish --otp
should work #6514.Our Gold Sponsors
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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.