This repository was archived by the owner on Jun 12, 2024. It is now read-only.
generated from hay-kot/go-web-template
-
-
Notifications
You must be signed in to change notification settings - Fork 249
chore(deps): update dependency nuxt to v3.12.1 #617
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/nuxtjs-monorepo
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
638c024 to
fac8cff
Compare
fac8cff to
05b5460
Compare
05b5460 to
f99340e
Compare
f99340e to
15ebde9
Compare
15ebde9 to
91b7e94
Compare
91b7e94 to
6bc7c1c
Compare
6bc7c1c to
4cb5e05
Compare
4cb5e05 to
f86a41d
Compare
f86a41d to
e2a7314
Compare
e2a7314 to
fc64c07
Compare
fc64c07 to
df18ce6
Compare
df18ce6 to
8ad1782
Compare
f4bae14 to
18f47ed
Compare
6bfcb8c to
b78d8ef
Compare
b78d8ef to
f456359
Compare
f456359 to
6d53bed
Compare
6d53bed to
3a4edb3
Compare
06a0250 to
5f4e5f6
Compare
5f4e5f6 to
da2450d
Compare
da2450d to
d63d0e9
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.6.5->3.12.1Release Notes
nuxt/nuxt (nuxt)
v3.12.1Compare Source
v3.12.0Compare Source
v3.11.2Compare 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
useServerHeadin dev (#26421)🩹 Fixes
navigateToopenoption on server side (#26392)definePageMetain server pages (#26422)joinRelativeURL+ share paths on server (#26407)<srcDir>/index.htmlfrom import protection (#26430)refreshCookieon server (22ada37b4)v-ifto wrapper in islands transform (#26386)getLatestManifest(#26486)GlobalComponentsin multiple vue modules (#26541)transformAssetUrls+ passhoistStaticto vite plugin (#26563)typescript.shim(#26607)useRoute(#26633)💅 Refactors
navigateTofor server (#26546)runtimeConfiginitialization of client side (#26558)📖 Documentation
prerenderRoutesin dynamic routes (#26547)process.*withimport.meta.*(#26611)typescript.shimJSDoc (#26626)🏡 Chore
❤️ Contributors
v3.11.1Compare 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
ofetchintypescript.hoistdefaults (#26316)tsxparser (#26314)finishtypes and add to docs (0d9c63b82)undefinedname when resolving trailing slash (#26358)📖 Documentation
usePreviewMode(#26303)useIdmust be used with single root element (401370b3a)<DevOnly>component in api section (#26029)@nuxt/schemashould be used by module authors (#26190)routeNameSplitterexample in migration docs (#25838)🏡 Chore
🤖 CI
❤️ Contributors
v3.11.0Compare Source
👀 Highlights
This is possibly the last minor release before Nuxt v4, and so we've packed it full of features and improvements we hope will delight you! ✨
🪵 Better logging
When developing a Nuxt application and using
console.login your application, you may have noticed that these logs are not displayed in your browser console when refreshing the page (during server-side rendering). This can be frustrating, as it makes it difficult to debug your application. This is now a thing of the past!Now, when you have server logs associated with a request, they will be bundled up and passed to the client and displayed in your browser console. Asynchronous context is used to track and associate these logs with the request that triggered them. (#25936).
For example, this code:
will now log to your browser console when you refresh the page:
Log from index page [ssr] Log inside useAsyncData at pages/index.vue👉 We also plan to support streaming of subsequent logs to the Nuxt DevTools in future.
We've also added a
dev:ssr-logshook (both in Nuxt and Nitro) which is called on server and client, allowing you to handle them yourself if you want to.If you encounter any issues with this, it is possible to disable them - or prevent them from logging to your browser console.
🎨 Preview mode
A new
usePreviewModecomposable aims to make it simple to use preview mode in your Nuxt app.When preview mode is enabled, all your data fetching composables, like
useAsyncDataanduseFetchwill rerun, meaning any cached data in the payload will be bypassed.Read more in the docs.
💰 Cache-busting payloads
We now automatically cache-bust your payloads if you haven't disabled Nuxt's app manifest, meaning you shouldn't be stuck with outdated data after a deployment.
👮♂️ Middleware
routeRulesIt's now possible to define middleware for page paths within the Vue app part of your application (that is, not your Nitro routes) (#25841).
⌫ New
cleardata fetching utilityNow,
useAsyncDataanduseFetchexpose aclearutility. This is a function that can be used to setdatato undefined, seterrortonull, setpendingtofalse, setstatustoidle, and mark any currently pending requests as cancelled. (#26259)🕳️ New
#teleportstargetNuxt now includes a new
<div id="teleports"></div>element in your app within your<body>tag. It supports server-side teleports, meaning you can do this safely on the server:🚦 Loading indicator and transition controls
It's now possible to set custom timings for hiding the loading indicator, and forcing the
finish()method if needed (#25932).There's also a new
page:view-transition:starthook for hooking into the View Transitions API (#26045) if you have that feature enabled.🛍️ Server- and client-only pages
This release sees server- and client-only pages land in Nuxt! You can now add a
.server.vueor.client.vuesuffix to a page to get automatic handling of it.Client-only pages will render entirely on the client-side, and skip server-rendering entirely, just as if the entire page was wrapped in
<ClientOnly>. Use this responsibly. The flash of load on the client-side can be a bad user experience so make sure you really need to avoid server-side loading. Also consider using<ClientOnly>with afallbackslot to render a skeleton loader (#25037).⚗️ Server-only pages are even more useful because they enable you to integrate fully-server rendered HTML within client-side navigation. They will even be prefetched when links to them are in the viewport - so you will get instantaneous loading (#24954).
🤠 Server component bonanza
When you are using server components, you can now use the
nuxt-clientattribute anywhere within your tree (#25479).You can listen to an
@errorevent from server components that will be triggered if there is any issue loading the component (#25798).Finally, server-only components are now smartly enabled when you have a server-only component or a server-only page within your project or any of its layers (#26223).
🔥 Performance improvements
We've shipped a number of performance improvements, including only updating changed virtual templates (#26250), using a 'layered' prerender cache (#26104) that falls back to filesystem instead of keeping everything in memory when prerendering - and lots of other examples.
📂 Public assets handling
We have shipped a reimplementation of Vite's public asset handling, meaning that public assets in your
public/directory or your layer directories are now resolved entirely by Nuxt (#26163), so if you have addednitro.publicAssetsdirectories with a custom prefix, these will now work.📦 Chunk naming
We have changed the default
_nuxt/[name].[hash].jsfile name pattern for your JS chunks. Now, we default to_nuxt/[hash].js. This is to avoid false positives by ad blockers triggering off your component or chunk names, which can be a very difficult issue to debug. (#26203)You can easily configure this to revert to previous behaviour if you wish:
💪 Type fixes
Previously users with
shamefully-hoist=falsemay have encountered issues with types not being resolved or working correctly. You may also have encountered problems with excessive type instantiation.We now try to tell TypeScript about certain key types so they can be resolved even if deeply nested (#26158).
There are a whole raft of other type fixes, including some regarding import types (#26218 and #25965) and module typings (#25548).
✅ 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
nuxt-clientin all components (#25479)page:view-transition:starthook (#26045)finish()(#25932)<NuxtIsland>can't fetch island (#25798)usePreviewModecomposable (#21705)#teleportselement for ssr teleports (#25043)typescript.hoist(85166cced)getCachedData(#26287)nuxtMiddlewareroute rule (#25841)clearutility touseAsyncData/useFetch(#26259)🔥 Performance
isPrerenderedin dev for server page (#26061)🩹 Fixes
.config/nuxt.config(5440ecece).config/nuxt.*(7815aa534)errorinshowError/createErrorwith h3 (#25945)useId(#25969)vueCompilerOptionsproperty totsConfig(#25924)useRuntimeConfigin Nuxt renderer (#26058)typescript.shimin favour of volar (#26052)defu/h3paths in type templates (#26085)toExportsfromunimport(#26086)AsyncDataRequestStatustype (#26023)<html>and<body>attrs (#26027)node_modulesformodulesDir(#25548)routeRules(#26120)cookieRefvalues deeply (#26151)ssrRender(#26162)ssr: false(f080c426a)baseUrlwithin server components (#25727)useNuxtData(#22277)publicAssetsURL(9d08cdfd1)buildAssetsDir(81933dfc3)joinRelativeURLfor build assets (#26282)deeptoselectiveClient(357f8db41)consolafor now (adbd53a25)windowaccess more carefully (977377777)💅 Refactors
requestcomputation (#26191)nuxtMiddlewaretoappMiddleware(cac745470)📖 Documentation
useIdcomposable was introduced (#25953)domEnvironmentoption to testing example (#25972)fallbackprop for<NuxtLayout>(#26091)vue-tsc(#26083)macros.pageMetaandtypescript.esbuildoption (#26136)definePageMetapage (#26139)app:manifest:updatehook (#26192)zhead(e889a7df5)clear(24217a992)appMiddlewaredocs (da8e8eba8)🏡 Chore
✅ Tests
scrollY(#26298)networkidle(9b5bffbbb)🤖 CI
❤️ Contributors
v3.10.3Compare 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 vue and unjs ecosystems.
👉 Changelog
compare changes
🩹 Fixes
dedupeoption inuseFetch(#25815)cssfiles with?inlinequery (#25822)externaltonavigatein custom<NuxtLink>(#25887)@__PURE__(#25842)setTimeoutbefore scrolling when navigating (#25817)headindefineNuxtComponent(#25410)undefinedpaths inresolveTrailingSlashBehavior(ba6a4132b)to.nameto be undefined rather than deleting entirely (4ca1ab7cf)📖 Documentation
.tsextension when adding compiled files (#25855)calloutto new components (#25897)🏡 Chore
nuxt.configto enable pages for docs typecheck (72a2e23cc)🤖 CI
❤️ Contributors
v3.10.2Compare 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 vue and unjs ecosystems.
👉 Changelog
compare changes
🩹 Fixes
refreshCookie(#25635).pcssextension as a CSS extension (#25673)<ClientOnly>(#25714)baseURLon serveruseRequestURL(#25765)rootDir, notprocess.cwd, formodulesDir(#25766)useIdif attrs were not rendered (#25770)📖 Documentation
Fix typo in
useAsyncDatadocs (#25644)Add quotes to clarify what site title is in example (#25669)
Enable twoslash for some code snippets (#25679)
Add prepend option docs for
addComponentsDir(#25683)Extend auto-scanned layer directories (#25720)
Improve wording in seo docs (#25692)
Add how to debug nuxt with node inspector (#25731)
Add missing export defaults for nuxt config (#25774)
Add import statement for mountSuspended (#25783)
Pass
eventtouseRuntimeConfig(#25788)🏡 Chore
❤️ Contributors
v3.10.1Compare 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 vue and unjs ecosystems.
👉 Changelog
compare changes
🔥 Performance
🩹 Fixes
refreshfunctions (#25568)useIdtype signature (#25614)$from generated id inuseId(#25615)relfor same-site external links (#25600)inheritAttrs: falsewhen usinguseId(#25616)💅 Refactors
NuxtLinktypes (#25599)📖 Documentation
<NuxtLink>defaults in nuxt config (#25610)🏡 Chore
pathein internal tests (e33cec958)nuxt->nuxtAppinternally for consistency (c5d5932f5)🤖 CI
❤️ Contributors
v3.10.0Compare Source
👀 Highlights
v3.10 comes quite close on the heels of v3.9, but it's packed with features and fixes. Here are a few highlights.
✨ Experimental shared
asyncDatawhen prerenderingWhen prerendering routes, we can end up refetching the same data over and over again. In Nuxt 2 it was possible to create a 'payload' which could be fetched once and then accessed in every page (and this is of course possible to do manually in Nuxt 3 - see this article).
With #24894, we are now able to do this automatically for you when prerendering. Your
useAsyncDataanduseFetchcalls will be deduplicated and cached between renders of your site.👉 See full documentation.
🆔 SSR-safe accessible unique ID creation
We now ship a
useIdcomposable for generating SSR-safe unique IDs (#23368). This allows creating more accessible interfaces in your app. For example:✍️ Extending
app/router.optionsIt's now possible for module authors to inject their own
router.optionsfiles (#24922). The newpages:routerOptionshook allows module authors to do things like add customscrollBehavioror add runtime augmenting of routes.👉 See full documentation.
We now support (experimentally) polyfilling key Node.js built-ins (#25028), just as we already do via Nitro on the server when deploying to non-Node environments.
That means that, within your client-side code, you can import directly from Node built-ins (
node:and node imports are supported). However, nothing is globally injected for you, to avoid increasing your bundle size unnecessarily. You can either import them where needed.Or provide your own polyfill, for example, inside a Nuxt plugin.
This should make life easier for users who are working with libraries without proper browser support. However, because of the risk in increasing your bundle unnecessarily, we would strongly urge users to choose other alternatives if at all possible.
🍪 Better cookie reactivity
We now allow you to opt-in to using the CookieStore. If browser support is present, this will then be used instead of a BroadcastChannel to update
useCookievalues reactively when the cookies are updated (#25198).This also comes paired with a new composable,
refreshCookiewhich allows manually refreshing cookie values, such as after performing a request. See full documentation.🏥 Detecting anti-patterns
In this release, we've also shipped a range of features to detect potential bugs and performance problems.
setIntervalis used on server (#25259).<NuxtPage />but have thevue-routerintegration enabled (#25490). (<RouterView />should not be used on its own.)🧂 Granular view transitions support
It's now possible to control view transitions support on a per-page basis, using
definePageMeta(#25264).You need to have experimental view transitions support enabled first:
And you can opt in/out granularly:
Finally, Nuxt will not apply View Transitions if the user's browser matches
prefers-reduced-motion: reduce(#22292). You can setviewTransition: 'always'; it will then be up to you to respect the user's preference.🏗️ Build-time route metadata
It's now possible to access routing metadata defined in
definePageMetaat build-time, allowing modules and hooks to modify and change these values (#25210).Please, experiment with this and let us know how it works for you. We hope to improve performance and enable this by default in a future release so modules like
@nuxtjs/i18nand others can provide a deeper integration with routing options set indefinePageMeta.📦 Bundler module resolution
With #24837, we are now opting in to the TypeScript
bundlerresolution which should more closely resemble the actual way that we resolve subpath imports for modules in Nuxt projects.'Bundler' module resolution is recommended by Vue and by Vite, but unfortunately there are still many packages that do not have the correct entries in their
package.json.As part of this, we opened 85 PRs across the ecosystem to test switching the default, and identified and fixed some issues.
If you need to switch off this behaviour, you can do so. However, please consider raising an issue (feel free to tag me in it) in the library or module's repo so it can be resolved at 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
🚀 Enhancements
tryUseNuxtAppcomposable (#25031)bundlermodule resolution (#24837)pages:routerOptionshook ([#24922](httConfiguration
📅 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.