[Snyk] Upgrade nuxt from 3.13.0 to 3.13.1 #1
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.



Snyk has created this PR to upgrade nuxt from 3.13.0 to 3.13.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 1 version ahead of your current version.
The recommended version was released on 22 days ago.
Issues fixed by the recommended upgrade:
SNYK-JS-VITE-8023174
SNYK-JS-VITE-8022916
Release notes
Package name: nuxt
-
3.13.1 - 2024-09-04
- 🆔
- 🔥 a new
- nuxt: Cache vue app build outputs (#28726)
- nuxt: Use
- nuxt: Use reducer array + handle modified proto (#28768)
- schema: Resolve user-provided
- nuxt: Handle mismatching declaration/plugin extensions (#28709)
- nuxt: Do not accept arbitrary strings for
- nuxt: Do not pass listeners to custom
- nuxt: Generate basic jsdoc for module config entry (#27689)
- nuxt: Augment
- nuxt: Improve error logging in import protections (#28753)
- nuxt: Handle deleted cookies from
- nuxt: Allow updating
- nuxt: Improve
- nuxt: Update to vue v3.5 + native
- Fix typo (#28724)
- Update broken/redirected links (#28739)
- Capitalize text (#28734)
- Updated line number for nuxt build-time hooks (#28746)
- Add missing
- Persist package manager choice in code blocks (#28514)
- Fix postcss codeblock typo (#28801)
- Include
- Use
- Use
- Trim tag (#28687)
- Fix ci typo (#28721)
- Tidying workflows + add sherif workflow (#28793)
- Ignore eslint warnings about console logging (#28795)
- Update bundle size (99df4c222)
- Gianluca Di Francesco (@ gianlucadifrancesco)
- Daniel Roe (@ danielroe)
- Joaquín Sánchez (@ userquin)
- Heb (@ Hebilicious)
- Eckhardt (Kaizen) Dreyer (@ Eckhardt-D)
- Gustav Odinger (@ gustavwilliam)
- Julien Huang (@ huang-julien)
- Ismail Sabet (@ ismailsabet)
- Max (@ onmax)
- Anthony Fu (@ antfu)
- @ beer (@ iiio2)
- riskrole (@ riskrole)
- Thimo Sietsma (@ th1m0)
-
3.13.0 - 2024-08-22
import type {
- nuxt: Await custom
- kit: Add new
- kit,schema: Add
- nuxt: Warn when user components' names begin with
- nuxt: Allow specifying app id when creating a nuxt app (#28392)
- nuxt: Custom enable/disable hooks for
- kit: Add
- nuxt: Allow organising pages within route groups (#28276)
- vite: Preserve vite sourcemaps for nitro build (#28521)
- nuxt: Allow defining triggers for prefetching links (#27846)
- nuxt: Namespace
- nuxt: Allow server islands to manipulate head (#27987)
- nuxt: Call cookie
- nuxt: Avoid making client-only component setup async (#28334)
- nuxt: Avoid multiple calls to
- nuxt: Don't warn for
- kit: Include module
- schema: Support absolute/relative paths for
- schema: Do not override user
- schema: Use new options syntax for
- schema: Export new module return types (c0ad8db93)
- kit: Add missing type import (1a60b4541)
- vite,webpack: Handle local postcss plugins (#28481)
- nuxt: Handle
- nuxt: Ensure
- nuxt: Update renamed stub composables from
- nuxt: Augment
- nuxt: Scan jsx pages for page metadata (#28479)
- nuxt: Handle plugin type extensions more correctly (#28480)
- vite: Respect
- vite: Add transformation result to log for parse errors (#28508)
- vite: Include module symbols in generated code (#28509)
- nuxt: Add reason when aborting request in
- nuxt: Only augment
- nuxt: Avoid stripping js extensions in plugin injections (#28593)
- nuxt: Preserve route-specific metadata on
- nuxt: Don't warn when data fetching in middleware (#28604)
- nuxt: Extract route rules/page meta in 2+ script blocks (#28625)
- nuxt: Allow customising status code in
- nuxt: Do not provide default
- nuxt: Revert back to object syntax for island head (#28656)
- Fix issue in cookie passing example (#28223)
- Fix note in layers usage chapter (#28236)
- Fix spaces (#28233)
- Add
- Use
- Use
- Fix codemod command typos (#28279)
- Add missing comma to example (#28300)
- Add language to example schema codeblock (#28294)
- Update link to RuntimeNuxtHooks (#28336)
- Update links to social media (cd5195047)
- Setup host property and usage example (#28331)
- Fix TypeScript errors for examples (#28403)
- Improve readability of link to mdn (#28327)
- Use ts for create-error example (#28411)
- Alias links in jsdoc
- Link to vue test utils docs for
- Remove vue-tsc major version constraint (#28484)
- Recommend '#teleports' target instead of 'body' (#28489)
- Correct custom routing link (#28497)
- Improve typing of default exports (#28520)
- Fix
- Update useRuntimeConfig source path (#28553)
- Add line-breaks to tips in Module Author Guide (#28587)
- Update nuxt scripts status (#28629)
- schema: Fix typo (#28377)
- nuxt: Use router code reference permalink (#28356)
- nuxt: Remove unnecessary await (#28407)
- Upgrade vue in a separate pr (#28414)
- Update docs typecheck command (49de5f731)
- Lint (cab9e5c35)
- Fix some typos in comments (#28501)
- Disable
- Ignore
- Update bundle size (3ecb95a7c)
- Add reproduire-sur-stackblitz workflow (#28531)
- Daniel Roe (@ danielroe)
- Julien Huang (@ huang-julien)
- Maxime Pauvert (@ maximepvrt)
- felix-dolderer (@ felix-dolderer)
- Nicolas Payot (@ nicolaspayot)
- Kewin Szlezingier (@ kewinzaq1)
- Vasily Kuzin (@ ExEr7um)
- xjccc (@ xjccc)
- Martin André (@ Martichou)
- Mike Laumann Bellika (@ MikeBellika)
- Typed SIGTERM (@ typed-sigterm)
- Horu (@ HigherOrderLogic)
- Son Tran (@ trandaison)
- rubyisrust (@ rubyisrust)
- Matej Černý (@ CernyMatej)
- Riley Ho (@ rileychh)
- Adam DeHaven (@ adamdehaven)
- Potter (@ yxw007)
- Martin Masevski (@ Archetipo95)
- BoogieBen. (@ boogie-ben)
- Tobias Diez (@ tobiasdiez)
- Michael Brevard (@ GalacticHypernova)
- Damian Głowala (@ DamianGlowala)
- Lucie (@ lihbr)
- Yasser Lahbibi (@ yassilah)
- Sébastien Chopin (@ atinux)
- @ beer (@ iiio2)
- AuroraTea (@ AuroraTea)
- Bobbie Goede (@ BobbieGoede)
- Alexander Lichter (@ manniL)
- nuxt-studio[bot] (@ nuxt-studio[bot])
- Vaci (@ vacijj)
- FELIPE COSTA DE OLIVEIRA (@ FelipeO16)
- 一纸忘忧 (@ ikxin)
- Meo (@ miaobuao)
- Mohab Sameh (@ mohab-sameh)
- Quentin Macq (@ quentinmcq)
- Johan Krijt (@ johankrijt)
from nuxt GitHub release notes👀 Highlights
Although this is a patch release, there are two features I'd love to draw your attention to.
useIdnow uses a built-in Vue composable for stable ids between server + client! #28285experimental.buildCachefeature now allows for quicker app rebuilds #28726As always, feedback is appreciated 🙏 ❤️
✅ 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
ServerPlaceholderfor ssr client components (#28563)🩹 Fixes
serverDirrelative to root (#28700)MiddlewareKey(#28676)NuxtLink(#28738)NuxtOptionsas well as config (#28747)CookieStoreevents (#28760)appConfigwith non-iterable objects (#28773)isNuxtErrortype inference (#28814)💅 Refactors
useId(#28285)📖 Documentation
queryreturned value fromuseRoute()(#28743)--frozen-lockfilewhen installing dependencies (#28794)🏡 Chore
tinyexecinternally (#28684)tinyglobbyinternally (#28686)✅ Tests
❤️ Contributors
👀 Highlights
I'm pretty excited about this release - we've ported some features we had planned for Nuxt v4 back to v3, as well as a raft of bug fixes and performance improvements - as usual.
Here are a few of things I'm most excited about.
🏘️ Route Groups
We now support naming directories with parentheses/brackets to organise your routes without affecting the path.
For example:
This will produce
/,/aboutand/contactpages in your app. Themarketinggroup is ignored for purposes of your URL structure.Read more in the original PR.
🏝️ Islands and Head Metadata
It's now possible for server component islands to manipulate the head, such as by adding SEO metadata when rendering.
Read more in #27987.
🪝 Custom Prefetch Triggers
We now support custom prefetch triggers for
NuxtLink(#27846).For example:
It's also possible to enable/disable these globally for your app and override them per link.
For example:
🗺️ Better Server Source Maps
When running with
node --enable-source-maps, you may have noticed that the source maps for the Vue files in your server build pointed to the Vite build output (something like.nuxt/dist/server/_nuxt/index-O15BBwZ3.js).Now, even after your Nitro build, your server source maps will reference your original source files (#28521).
Note that one of the easiest ways of improving your build performance is to turn off source maps if you aren't using them, which you can do easily in your
nuxt.config:🎁 New Features for Module Authors
In the run-up to Nuxt v4, we're working on adding some key functionality for module authors, including a new
isNuxtMajorVersionutility where required (#27579) and better inferred typing for merged module options using the newdefineNuxtModule().with()method (#27520).✨ Improved Dev Warnings
We no longer warn when using data fetching composables in middleware (#28604) and we warn when user components' names begin with Lazy (#27838).
🚨 Vue TypeScript Changes
For a while, in the Vue ecosystem, we've been augmenting
@ vue/runtime-coreto add custom properties and more tovue. However, this inadvertently breaks the types for projects that augmentvue- which is now the officially recommended in the docs way to augment these interfaces (for example, ComponentCustomProperties, GlobalComponents and so on).This means all libraries must update their code (or it will break the types of libraries that augment
vueinstead).We've updated our types in Nuxt along these lines but you may experience issues with the latest
vue-routerwhen used with libraries which haven't yet done so.Please create an issue with a reproduction - I'll happily help create a PR to resolve in the upstream library in question. Or you may be able to work around the issue by creating a
declarations.d.tsin the root of your project with the following code (credit):ComponentCustomOptions as _ComponentCustomOptions,
ComponentCustomProperties as _ComponentCustomProperties,
} from 'vue';
declare module '@ vue/runtime-core' {
interface ComponentCustomProperties extends _ComponentCustomProperties {}
interface ComponentCustomOptions extends _ComponentCustomOptions {}
}
✅ 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
routesfunction inrouter.options(#27644)isNuxtMajorVersioncompatibility util (#27579).withfor better module options types (#27520)Lazy(#27838)usePreviewMode(#28371)prependoption toaddRouteMiddleware(#28496)__NUXT__when using multi-app (#27263)🔥 Performance
decodefunction only for named cookie (#28215)getCachedData(#28472)🩹 Fixes
definePageMetain client-only pages (#28246)dist/runtime/in tsconfig includes (#28237)assetsDir(59f0099f4)serverDir(#28249)vite-plugin-vue(#28307)scroll-padding-top: autoin scrollBehavior (#28320)runtimeConfig.publicis reactive on client (#28443)nuxt/scripts(#28449)@ vue/runtime-coreand@ vue/runtime-dom(#28446)baseURLfor public assets in dev (#28482)useFetch(#28517)vue, not sub-packages (#28542)route.meta(#28441)validatemethod (#28612)prefetchOnprop (#28630)📖 Documentation
vuelang to sample code (#28247)splitSetCookieStringfromcookie-es(29f95ae0d)headers.getSetCookie(45c6df9a4)bunx->bun x(#28277)@ seeblocks (#28270)mountSuspended(#28463)optionstype in custom useFetch recipe (#28389)🏡 Chore
✅ Tests
pageTransitionin client-only page (#27839)SharedComponentin server head (510f3e28f)🤖 CI
❤️ Contributors
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: