Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update devdependency nuxt to v3 [security] #327

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 5, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
nuxt (source) ^2.15.8 -> ^3.0.0 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2024-34343

Summary

The navigateTo function attempts to blockthe javascript: protocol, but does not correctly use API's provided by unjs/ufo. This library also contains parsing discrepancies.

Details

The function first tests to see if the specified URL has a protocol. This uses the unjs/ufo package for URL parsing. This function works effectively, and returns true for a javascript: protocol.

After this, the URL is parsed using the parseURL function. This function will refuse to parse poorly formatted URLs. Parsing javascript:alert(1) returns null/"" for all values.

Next, the protocol of the URL is then checked using the isScriptProtocol function. This function simply checks the input against a list of protocols, and does not perform any parsing.

The combination of refusing to parse poorly formatted URLs, and not performing additional parsing means that script checks fail as no protocol can be found. Even if a protocol was identified, whitespace is not stripped in the parseURL implementation, bypassing the isScriptProtocol checks.

Certain special protocols are identified at the top of parseURL. Inserting a newline or tab into this sequence will block the special protocol check, and bypass the latter checks.

PoC

POC - https://stackblitz.com/edit/nuxt-xss-navigateto?file=app.vue

Attempt payload X, then attempt payload Y.

Impact

XSS, access to cookies, make requests on user's behalf.

Recommendations

As always with these bugs, the URL constructor provided by the browser is always the safest method of parsing a URL.

Given the cross-platform requirements of nuxt/ufo a more appropriate solution is to make parsing consistent between functions, and to adapt parsing to be more consistent with the WHATWG URL specification.

Note

I've reported this vulnerability here as it is unclear if this is a bug in ufo or a misuse of the ufo library.

This ONLY has impact after SSR has occured, the javascript: protocol within a ___location header does not trigger XSS.


Release Notes

nuxt/nuxt (nuxt)

v3.12.4

Compare Source

3.12.4 is the next regularly scheduled patch release.

👉 Changelog

compare changes

🔥 Performance
  • vite: Start warmups after nitro build (#​27963)
  • vite: Avoid extra resolve call for resolveId in layers (#​27971)
  • kit,nuxt,schema,vite,webpack: Use explicit exports (#​27998)
🩹 Fixes
  • schema: Resolve public alias correctly (#​27975)
  • nuxt: Omit rendering payload prefetch when noScripts (#​27972)
  • nuxt: Add / as fallback if page can't be identified (e6109b226)
  • ui-templates: Validate templates with html-validate (#​28024)
  • schema: Don't constrain postcss plugin options (#​28045)
  • kit: Remove exports from v4 branch (5c8312e9b)
  • nuxt: Use unhead key for ad-hoc module options (#​28088)
  • nuxt: Use native vue-router composables (#​28114)
  • kit: Ensure getNuxtVersion returns string (#​28125)
  • nuxt: Always prerender at least one page with crawler (#​28131)
  • nuxt: Consider doc scroll-padding-top in scrollBehavior (#​28083)
  • nuxt: Only warn when useAsyncData returns undefined (#​28154)
  • nuxt: Revert change to getCachedData null response (d10cea11b)
  • schema: Don't use app/ as srcDir if it doesn't exist (#​28176)
  • kit: Normalise serverDir within layers using v4 compat (#​28177)
  • nuxt: Allow getCachedData to return undefined (#​28187)
  • nuxt: Use addEventListener to register cookie store listener (#​28193)
  • nuxt: Merge route meta properties with scanned meta (#​28170)
  • nuxt: Prevent duplicate set-cookie headers (#​28211)
💅 Refactors
  • schema,vite,webpack: Rework postcss module loading (#​27946)
  • nuxt: Remove _registeredComponents from ssrContext (#​27819)
  • nuxt: Use errx to handle dev log traces (#​28027)
📖 Documentation
  • Fix link (83bd4fde9)
  • Fix Cloudflare spelling (#​27989)
  • Update example to use nuxtApp.runWithContext (#​28000)
  • Remove deprecated pending variable from data fetching docs (#​28011)
  • Clarify xrsp danger (#​28053)
  • Deprecate pending and emphasis undefined (#​28113)
  • Update phrasing in route announcer (#​28108)
  • Use code groups for install commands in module guide (#​28094)
  • Capitalize text (#​28056)
  • Mention content in upgrade guide v4 folder structure (#​28090)
  • Remove a resolved issue from view transition docs (#​28091)
  • Clarify navigateTo is not for nitro routes (#​28092)
  • Warn about nested islands (#​28062)
  • Add info about layers/ directory (#​28128)
  • Codemods for migrating to Nuxt 4 (#​28072)
✅ Tests
  • Add typeCheck test in minimal build (#​28166)
🤖 CI
  • Run prepare step before linting docs (f8fbefb42)
  • Run prepare step before linting docs (d629b82b3)
❤️ Contributors

v3.12.3

Compare Source

3.12.3 is the next regularly scheduled patch release.

👉 Changelog

compare changes

🔥 Performance
  • nuxt,vite: Use native fs utils rather than fs-extra (#​27787)
  • schema: Use chokidar when a custom srcDir is provided (#​27871)
  • nuxt: Ensure prefetchComponents is treeshaken on server (#​27905)
🩹 Fixes
  • nuxt: Flag async data promise as cancelled only if defined (#​27690)
  • schema: Handle backwards compat for dir.app (0c73cb734)
  • nuxt: Support hoisting types of subpath imports (#​27720)
  • nuxt: Resolve routes when navigateTo called with open (#​27742)
  • nuxt: Handle subpaths more correctly (d7402a799)
  • nuxt: Delay navigation until user input is acknowledged (#​27743)
  • nuxt: Resolve aliases used in nitro plugin paths (#​27741)
  • schema: Do not use full path assets/public aliases (d0518650f)
  • nuxt: Defer registering inp handler until nuxt is mounted (866a5319a)
  • nuxt: Add refresh type in server component refs (#​27778)
  • nuxt: Extract all-literal page meta (#​27821)
  • kit: Handle loading nuxt 4+ (cf251bd48)
  • nuxt: Handle external links to named route objects (#​27829)
  • nuxt: Use URL to encode redirected URLs (#​27822)
  • nuxt: Don't use app version when verifying nuxt deps (#​27864)
  • nuxt: Prompt to set compatibility date with latest nitro (#​27893)
  • nuxt: Add #vue-router alias for backwards compat (#​27896)
  • nuxt: Move app augments to core nuxt types (#​27900)
  • nuxt: Pass augmented pages to child paths (ecb35d3a2)
  • nuxt: Use pascal name when loading server component (#​27928)
  • nuxt: Improve async data warning (#​27874, #​27934)
  • nuxt: Allow configuring server components in modules (#​27936)
  • vite: Omit css ?raw from head when in dev mode (#​27940)
  • kit,nuxt: Ensure webworker types are available (4cab71d66)
  • nuxt: Seed crawler when prerendering pages (#​27955)
  • vite: Fix type issue with legacy dev bundler (f9fa1a3e9)
  • nuxt: Improve dx around compatibility date prompt (#​27965)
💅 Refactors
  • kit,nuxt: Use performance.now to measure time (d14f7ec46)
📖 Documentation
  • Add referral query variable to Vue School Links (#​27670)
  • Fix variable name (#​27675)
  • Clarify how transitions are configured globally (#​27679)
  • Remove outdated recommendation (#​27691)
  • Add refreshCookie on useCookie doc page (#​27744)
  • Sync changes from main branch (e7fbc9f81)
  • Remove outdated tip (#​27773)
  • Warn about awaiting useFetch/AsyncData in wrappers (#​27785)
  • Update some code groups with package manager examples (#​27791)
  • Hint to use runtime config (#​27859)
  • Use internal link (#​27883)
  • Update links to vue-router docs (#​27895)
  • Use internal link (#​27894)
  • Remove warning about type checking (#​27911)
  • compatibilityVersion is available in the latest release (#​27919)
  • Update roadmap + readme (748bc751d)
  • Update Nuxt 3 -> Nuxt or Nuxt 3+ (3c16c890c)
  • Update reference to nightly release for testing nuxt 4 (5d2dc9714)
  • Remove duplicate server-side notice in runtime config (#​27929)
  • Warn about ref unwrapping when auto-importing refs (#​27933)
  • Mention layers in directory guide (c222fe7aa)
🏡 Chore
✅ Tests
  • schema: Normalize snapshot paths for windows (#​27654)
  • nuxt: Normalize paths for windows (#​27653)
  • Bump timeout for node-compat test (228b8b889)
  • Slightly improve test reliability (#​27811)
🤖 CI
  • Update changelog from 3.x branch updates (2b6967fbb)
  • Add 3x tag instead (c0ef279f2)
  • Run workflows against 3.x branch as well (31255a14d)
  • Use correct SHA calculation for release-pr action (#​27604)
  • Resolve bash syntax error (#​27789)
  • Only run scorecards against main branch (7abd982f8)
  • Raise renovate prs against 3.x branch too (f176c150a)
  • Ignore @vitejs/plugin-vue again (56660cbdd)
  • Prevent more than one release from occurring at same time (71705550f)
  • Don't run changelog update on 2.x branch (1be639364)
❤️ Contributors

v3.12.2

Compare Source

3.12.2 is the a regularly scheduled patch release.

✅ Upgrading

As usual, our recommendation for upgrading is to run:

npx nuxi@latest 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

🔥 Performance
  • kit: Deduplicate layers before resolving config (#​27582)
  • webpack: Decrease assets map iterations (d929cd4ef)
  • kit: Various performance improvements (#​27600)
  • vite: Various performance improvements (#​27601)
  • nuxt: Don't wait for key deps check (#​27638)
🩹 Fixes
  • nuxt: Call onNuxtReady callback without arguments (#​27428)
  • schema: Don't narrow head string types to literals (#​27540)
  • schema: app/ dir backwards compatibility (#​27529)
  • nuxt: Manually assign payload reactivity when ssr: false (#​27542)
  • nuxt: Only log warning once per runtimeConfig key (9e56b60c6)
  • nuxt: Overwrite #app/defaults rather than augmenting (#​27567)
  • nuxt: Export useRouteAnnouncer (#​27562)
  • nuxt: Remove backticks around runtimeConfig warning log (#​27549)
  • nuxt: Close top-level watcher on nuxt 'close' (#​27571)
  • nuxt: Handle tsx code when extracting pageMeta/routeRules (#​27583)
  • nuxt: Handle more edge cases with external/custom links (#​27487)
  • nuxt: Preserve route metadata assigned outside page (#​27587)
  • nuxt: Use portal to sync nitro/nuxt runtimeConfig + routeRules (#​27596)
  • nuxt,schema: Add types for _installedModules (e4bfea642)
  • nuxt: Include build-time pages in prerender routes (#​27569)
  • nuxt: Warn when async data doesn't return a value (#​27599)
  • nuxt: Replace deprecated app.rootId with app.rootAttrs.id (#​27630)
  • nuxt: Add mergeProps import in islands transform (#​27622)
  • nuxt: Reset cookie timeoutLength after expiration (#​27632)
  • nuxt: Add missing island uid for selective client components (#​27633)
  • schema,vite: Respect vite.cacheDir if defined (#​27628)
  • nuxt: Unregister hooks the moment close is called (#​27637)
  • nuxt: Add missing script stubs (#​27640)
  • nuxt: Only inject root path in prerender (44cada95a)
  • nuxt: Reduce usage of cjs utilities (#​27642)
  • nuxt: Add / even if pages module isn't enabled (dabcb5ecc)
📖 Documentation
  • Add warning about bridge migration with head (#​27575)
  • Update compatibility example (4b28d2628)
  • Document new clear() function added in 3.11 (#​27615)
  • String vs object errors + accessing data of server-thrown errors (#​27398)
  • Correct Cloudflare deployment recommendations (#​27641)
🏡 Chore
  • Add extra types for empty array definitions (02945b9fa)
  • Remove stub types file for webpack-virtual-modules (58dd7f3a6)
  • Lint (cb77ddc30)
✅ Tests
  • Add type test for nuxt module resolved types (115fc2d18)
🤖 CI
❤️ Contributors

v3.12.1

Compare Source

3.12.1 is a hotfix release to address a typo in the nuxt/script stub auto-imports.

👉 Changelog

compare changes

🩹 Fixes
  • nuxt: Update registry list for @nuxt/scripts (0252000d7)
💅 Refactors
  • schema: Use CompatibilityDateSpec (#​27521)
📖 Documentation
🏡 Chore
✅ Tests
❤️ Contributors

v3.12.0

Compare Source

👀 Highlights

We're on the road to the release of Nuxt 4, but we've not held back in Nuxt v3.12. A huge thank you to the 75+ Nuxt contributors and community members who have been part of this release. ❤️

🚀 Testing Nuxt 4 changes

Nuxt 4 is on the horizon, and it's now possible to test out the behaviour changes that will be coming in the next major release (#​26925) by setting an option in your nuxt.config file:

export default defineNuxtConfig({
  future: {
    compatibilityVersion: 4,
  },
})

As we've been merging PRs for Nuxt 4, we've been enabling them behind this flag. As much as possible we're aiming for backwards compatibility - our test matrix is running the same fixtures in both v3 and v4 compatibility mode.

There is a lot to say here, with 10+ different PRs and behaviour changes documented and testable, but for full details, including migration steps, see the v4 upgrade documentation.

We'd be very grateful for early testing of what's coming in Nuxt 4! 🙏

📜 Nuxt Scripts auto-install

We've been gradually working to release Nuxt Scripts. It's currently in public preview, but we're near a public release, so we've added some stubs for composables that (when used) will prompt installing the @nuxt/scripts module.

👉 Watch out for the launch - and an article explaining more!

🌈 Layer auto-registration and bugfixes

Just like ~/modules, any layers within your project in the ~/layers directory will now be automatically registered as layers in your project (#​27221).

We also now correctly load layer dependencies, which should resolve a range of issues with monorepos and git installations (#​27338).

🌐 Built-in accessibility improvements

We now have a built-in <NuxtRouteAnnouncer> component and corresponding useRouteAnnouncer composable, which will be added by default to new Nuxt templates going forward.

For full details, see the original PR (#​25741) and documentation.

We're continuing to work on nuxt/a11y - expect to hear more on that in future!

🔥 Performance improvements

We've landed some performance improvements as well, many of which are behind the compatibilityVersion: 4 flag, such as a move away from deeply reactive asyncData payloads.

Significant improvements include deduplicating modules (#​27475) - which will apply mostly to layer users who specify modules in their layers. In one project, we saw 30s+ improvement in starting Nuxt.

We've also improved Vite dev server start up time by excluding common ESM dependencies from pre-bundling, and would suggest module authors consider doing the same (#​27372).

We improved chunk determinism, so sequential builds should be less likely to have completely different chunk hashes (#​27258).

And we tree shake more client-only composables from your server builds (#​27044), and have reduced the size of server component payloads (#​26863).

👨‍👩‍👧‍👦 Multi-app support

We've landed a couple of changes that take us toward a place of supporting multi-app natively in Nuxt, including a multiApp experimental flag (#​27291) and the ability to have multiple Nuxt app instances running in parallel at runtime (#​27068).

While it's not yet ready, please do follow along on the tracker issue, and feel free to pitch in if this is interesting to you.

⛑️ DX wins

We now serialise more things in your dev server logs, including VNodes (#​27309) and URLs. We also addressed a bug that could lead to a frozen dev server.

When accessing private runtime config in the browser, we now let you know with a more informative error message (#​26441).

🪨 Stabilising features

We've removed some experimental options that have been stabilised and which we feel no longer need to be configurable:

  • experimental.treeshakeClientOnly (enabled by default since v3.0.0)
  • experimental.configSchema (enabled by default since v3.3.0)
  • experimental.polyfillVueUseHead (disabled since v3.4.0) - implementable in user-land with plugin
  • experimental.respectNoSSRHeader (disabled since v3.4.0) - implementable in user-land with server middleware

We've also enabled scanPageMeta by default (#​27134). This pulls out any page metadata in your definePageMeta macro, and makes it available to modules (like @nuxtjs/i18n) so they can augment it.

This unlocks much better module/typed routing integration, but has a potential performance cost - so please file an issue if you experience any problems.

💪 Type improvements

We now have support for typed #fallback slots in server components (#​27097).

We've also improved some defaults in your generated tsconfig.json, including setting module: 'preserve' if you have a locally installed TypeScript v5.4 version (see docs) - see #​26667, #​27485.

📦 Module author/power user improvements

We have shipped a range of type improvements for module authors, including:

  • support for typed module options in installModule (#​26744)
  • the option to specify compatibility with certain builders (vite/webpack) in module options (#​27022)
  • a new onPrehydrate hook for hooking into the browser hydration cycle (#​27037)
  • the ability to access and update resolved runtime configuration within modules, with new build-time useRuntimeConfig and updateRuntimeConfig utils (#​27117)
🎨 Inlined UI templates

If you previously used @nuxt/ui-templates then it may be worth knowing that we have moved them from a separate repository into the nuxt/nuxt monorepo. (This is purely a refactor rather than a change, although you can expect some new designs for Nuxt v4.)

✅ Upgrading

As usual, our recommendation for upgrading is to run:

npx nuxi@latest 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

🚀 Enhancements
  • nuxt: Support passing options to useRequestURL (#​26687)
  • nuxt: Introduce imports.scan option (#​26576)
  • nuxt: Add <NuxtRouteAnnouncer> and useRouteAnnouncer (#​25741)
  • kit: Handle virtual files in resolvePath and findPath (#​26465)
  • nuxt: Expose useLink from NuxtLink (#​26522)
  • schema: V4 opt-in with future.compatibilityVersion (#​26925)
  • nuxt,schema: Inline error, welcome, spa-loading templates (#​27021)
  • nuxt: Configurable app.rootAttrs and teleportAttrs (#​27014)
  • schema: Enable cookieStore by default (f597ca59a)
  • nuxt,schema: Support new Nuxt folder structure (#​27029)
  • nuxt: Treeshake onUpdated and onUnmounted on server (#​27044)
  • nuxt: Prompt to install nuxt/scripts on usage (#​27010)
  • nuxt: Expose default slot from <NuxtPage> (#​27050)
  • nuxt: Custom renderSSRHeadOptions config for unhead (#​26989)
  • nuxt: Add onPrehydrate lifecycle hook (#​27037)
  • nuxt: Support multiple nuxtApps at runtime (#​27068)
  • nuxt: Add #fallback slot to server components types (#​27097)
  • nuxt: Allow specifying builder compatibility in modules (#​27022)
  • kit: Add useRuntimeConfig and updateRuntimeConfig utils (#​27117)
  • schema: Remove some experimental options for v4 (#​27132)
  • nuxt: Auto-register layers in layers/ directory (#​27221)
  • nuxt: Allow displaying error state in loading indicator (#​27176)
  • nuxt,schema: Add appId and improve chunk determinism (#​27258)
  • nuxt: Check schema/kit versions when loading nuxt (#​27224)
  • schema: Add experimental multiApp flag (#​27291)
  • nuxt: Respect defaults when clearing asyncData (#​27295)
  • nuxt: Display banner when run with compatibilityVersion (#​27305)
  • nuxt: Add URL serialiser for dev server logs (a549b46e9)
  • nuxt: Handle nuxt route injection for this.$route (#​27313)
  • nuxt: Allow configuring interval for checking app update (#​27324)
  • nuxt: Warn when accessing private runtimeConfig on client (#​26441)
  • kit: Support typed module options in installModule (#​26744)
  • kit,schema: Add .with for better module options types (#​26850)
  • nuxt: Register plugin hooks before executing plugins (#​27449)
  • nuxt,schema: Add compatibilityDate flag for future (#​27512)
🔥 Performance
  • nuxt: Don't add client fallback plugin if not enabled (#​26666)
  • nuxt: Unsubscribe from asyncData watch when unmounted (#​26821)
  • nuxt: Remove state from nuxt island response (#​26863)
  • nuxt: Emit simpler functional ui templates (w/o lodash) (#​27091)
  • ui-templates: Don't emit message data for pure strings (9b1bfe69e)
  • nuxt: Remove ssrContext.styles reference (from unused vue-style-loader) (2d1ab61b2)
  • nuxt: Mark payload as shallowReactive (#​27214)
  • nuxt: Abort vue render when plugins throw error (#​27304)
  • vite: Exclude common ESM deps from pre-bundling (#​27372)
  • kit,nuxt: Remove handling for node 14 perf api (#​27396)
  • nuxt: Deduplicate modules to install (#​27475)
  • webpack: Decrease iteration count and improve type safety (#​27488)
🩹 Fixes
  • nuxt: Prevent getCachedData from shaping type of useAsyncData (#​25946)
  • nuxt: Encode ___location header in navigateTo (#​26712)
  • nuxt: Correctly remove extension from path in hasSuffix (#​26725)
  • nuxt: Hint prerenderer to crawl routes at runtime (#​26694)
  • kit: Ignore negation when resolving ignore patterns (e105fadd7)
  • nuxt: Avoid double-slash in ignore pattern (75e43ac42)
  • kit: Set typescript moduleDetection to 'force' (#​26667)
  • nuxt: Re-initialise nuxt._ignore after all modules run (#​26680)
  • nuxt: Assign v-for to slot in islands (#​26880)
  • nuxt: Don't encode ___location header (#​26893)
  • nuxt: Check if _scope is active before calling run function (#​26756, #​26904)
  • nuxt: Don't scan component dirs when enabled is false (#​26906)
  • vite: Inline styles for vue components with lang="ts" (#​26912)
  • nuxt: Handle arrays correctly in updateAppConfig (#​26949)
  • nuxt: useState in NuxtClientFallback setup function (#​26928)
  • nuxt: Compile plugin templates last (#​27009)
  • nuxt: Register redirect middleware before pushing route (#​27016)
  • nuxt,schema: Remove .js extension from template imports (0d4a622f3)
  • nuxt: Don't overwrite existing scope in runWithContext (#​26976)
  • schema: Use v3 folder structure if app.vue exists in rootDir (1af81ed0f)
  • nuxt: Use resolved path for test component import (8e793ad5c)
  • nuxt: Use URL constructor to resolve external protocols (5f0693a69)
  • nuxt: Use URL for parsing URLs rather than parseURL (ea22d3f98)
  • nuxt: Deprecate process.* flags (#​27089)
  • nuxt: Provide default url for URL constructor (8bdd620ba)
  • nuxt: Preload links with same hostname (c065505e1)
  • nuxt: Remove unused prop in NuxtTeleportIslandComponent (#​27093)
  • nuxt: Don't pass options to spaLoadingTemplate function (0e12b6eb8)
  • nuxt: Scan folder indices for middleware (#​27187)
  • nuxt: Pass path to jiti and not file URL (#​27252)
  • schema: Hoist `@nuxt/devtools types for config auto-completion (008a26417)
  • nuxt: Correct components dir regexp (dad89c2b1)
  • schema: Handle dev/test buildId in schema (#​27274)
  • nuxt: Encode ___location header in navigateTo (#​27280)
  • nuxt: Invert version check (e5649613c)
  • nuxt: Exempt equality check for kit/schema version (a531e6f46)
  • nuxt: Use undefined rather than null for data fetching defaults (#​27294)
  • vite: Ignore query/hash when resolving public assets (#​27306)
  • nuxt: Clear timeout when asyncData request finishes/aborts (#​27308)
  • nuxt: Provide default data type values in nuxt/app dir (#​27314)
  • nuxt: Add module declarations for virtual files (#​27311)
  • nuxt: Respect app.cdnURL for extracted payloads (#​26668)
  • vite: Handle runtime paths in inlined styles (#​27327)
  • nuxt: Add VNode reviver & don't deduplicate dev logs (#​27309)
  • vite: Suppress warning about unresolved public assets (#​27328)
  • nuxt: Defer shared asyncData promises to next tick (#​27329)
  • nuxt: Resolve modules from layers directories (#​27338)
  • schema: Pass correct jsx config for esbuild-loader (#​27341)
  • nuxt: Transpile app.config files in nitro build (#​27342)
  • nuxt: Use relative paths in app.config.d.ts (#​27350)
  • vite: Disable optimizeDeps in ssr (#​27356)
  • vite: Don't get available port when hmr.server is set (#​27326)
  • nuxt: Mark nuxt/scripts stubs as lower priority (51740fa1d)
  • nuxt: Handle errors loading app manifest (#​27441)
  • schema: Exclude non-serialisable types from app options (#​27478)
  • nuxt: Deduplicate app.head arrays (#​27480)
  • kit: Improve defaults in generated tsconfig.json (#​27485)
  • nuxt: Use buildAssetsDir in island teleport dev chunk (#​27469)
  • kit: Do not use module: preserve unelss ts v5.4 is installed (b08dfc98b)
  • nuxt: Ensure payload script executes before entry (#​27506)
  • kit: Avoid fallback to normalized path in module loading (#​27507)
  • nuxt: Also augment page metadata after pages:extend hook (#​27134)
  • nuxt: Resolve full path to app manifest stub page (91685a5b2)
  • nuxt: Resolve paths without file extensions (dccf2e5f3)
  • kit: Revert back to esnext target (7bb02735e)
  • kit,schema: Revert changes to module options types (#​26850)
  • nuxt: Remove boolean value for dedupe in v4 compat (#​27511)
  • nuxt: Add parent scopeId to server components (#​27497)
  • nuxt: Handle symbol keys in wrapped runtime config (13fec55c1)
  • nuxt: Register augmented pages to avoid re-augmenting (b75bf870b)
  • nuxt: Use file path as key for re-augmenting (09f6a88e1)
💅 Refactors
📖 Documentation
  • Update Nuxt 4 scheduled release date (#​26663)
  • Remove step of installing deps in new nuxt project (#​26676)
  • Clarify dependsOn works not just for parallel plugins (#​26707)
  • Add --preset flag for nuxi build (#​26759)
  • Fix typo (#​26752)
  • Remove misleading reference to useFetch (#​26748)
  • Update the code style page (#​26792)
  • Reference correct composable in callWithNuxt (#​26771)
  • Add sample app.vue (#​26796)
  • Remove direct link to subheading (#​26775)
  • Fix srcDir description mentioning deprecated static/ directory (#​26804)
  • Provide example of passing props to a child page (#​26805)
  • Provide example of exposing a pageRef from a child page (#​26806)
  • Correct definePageMeta scrollToTop docs link (#​26829)
  • Advise correct extension for vitest config (#​26845)
  • Deprecate pending value in data fetching composables (#​26766)
  • Fix file name (#​26852)
  • Add info about self-hosted github/gitlab instances (#​26501)
  • Add @vue/test-utils getting started guide (#​26205)
  • Add a note about HTTPS with a self-signed certificates (#​26481)
  • Clarify purpose of play online section (#​25978)
  • Fix typo with a -> an (#​26856)
  • Fix code block formatting (#​26859)
  • Add more detail to usePreviewMode explanation (#​26602)
  • Fix import of defineConfig (a60de743a)
  • Add @since annotations to exported functions (#​25365)
  • Add watch example link (#​26818)
  • Add source tag (#​26884)
  • Update strict checks section with new default (#​26965)
  • Correct link to data fetching docs (#​26988)
  • Add link to one of @​manniL's videos on layers (#​26984)
  • Fix small typo (#​26999)
  • Preprocessors as dev deps to align with vue plugin (#​27005)
  • Change .eslintrc.js to eslint.config.js (#​27020)
  • Add docs for future.compatibilityVersion (e7789a257)
  • Add vite plugin recipe (#​27043)
  • Improve data fetching wording and explanation (#​27061)
  • Add missing options for nuxi init (#​27051)
  • Update docs for ignorePrefix to clarify ignored files (#​27065)
  • Mention nightly release channel for unreleased features (8fcf893f8)
  • Add migration/testing guide for nuxt 4 (#​27128)
  • Improve testing component examples (#​27138)
  • Fix type checking of component testing blocks (b5e35e3bd)
  • Add app.config.ts to nuxt 4 testing/migration (#​27164)
  • Add video links for more context (#​27174)
  • Add module execution order (#​27178)
  • Mark bridge as stable (#​27212)
  • Explain how environment variables work in production (#​27189)
  • Add cache option to useFetch params (#​27225)
  • Add custom useFetch recipe (#​27208)
  • Add nuxt/scripts (#​27229)
  • Add example of passing params to <NuxtLink> (#​27284)
  • Add additional example for setting baseURL and cdnURL (#​27273)
  • Update readme for Nuxt 2 NES and support (d35e9cd3f)
  • Introduce hint and link to environment override feature (#​27315)
  • Document partitioned attribute of useCookie (#​27297)
  • Add windows git clone symlink tip (#​27332)
  • Fix release badges (#​27355)
  • Fix list spacing (#​27366)
  • Capitalize text (#​27348)
  • Added recipe for consuming SSE via POST request (#​27422)
  • Add deployment advice for client-side rendering (#​27426)
  • Add external parameter behavior navigateTo (#​27472)
  • Add note about middleware re-running for error pages (#​27481)
  • Update link to nitro error hook type (61766702c)
  • Add comment about existing custom srcDir in upgrade steps (3383a2df2)
  • Add docs page for prerendering (#​27286)
📦 Build
  • nuxt: Use relative path to ui-templates dist (99dc3ce88)
  • schema: Use relative path to ui-templates dist (eec84f5b2)
  • ui-templates: Directly copy templates on build (#​27430)
  • ui-templates: Fix svg regexp (957dcc194)
🏡 Chore

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - "before 4am on Monday" (UTC).

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added chore dependencies Pull requests that update a dependency file labels Aug 5, 2024
Copy link
Contributor Author

renovate bot commented Aug 5, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: pnpm-lock.yaml
Scope: all 4 workspace projects
 WARN  GET https://registry.npmjs.org/nuxt error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/docus/-/docus-0.5.6.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/nuxt-i18n/-/nuxt-i18n-6.28.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@babel/core/-/core-7.18.2.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.18.2.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.18.2.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.17.12.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@commitlint/cli/-/cli-17.0.2.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-17.0.2.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@nuxtjs/eslint-config-typescript/-/eslint-config-typescript-10.0.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@release-it/conventional-changelog/-/conventional-changelog-4.3.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@types/jest/-/jest-28.1.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.27.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.27.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-5.0.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/typed-vuex error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/nuxt error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/docus/-/docus-0.5.6.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/nuxt-i18n/-/nuxt-i18n-6.28.1.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@babel/core/-/core-7.18.2.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.18.2.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.18.2.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.17.12.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@commitlint/cli/-/cli-17.0.2.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-17.0.2.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@nuxtjs/eslint-config-typescript/-/eslint-config-typescript-10.0.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@release-it/conventional-changelog/-/conventional-changelog-4.3.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@types/jest/-/jest-28.1.1.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.27.1.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.27.1.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-5.0.0.tgz error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/typed-vuex error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmjs.org/eslint/-/eslint-8.17.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 ERR_INVALID_THIS  Value of "this" must be of type URLSearchParams
 WARN  GET https://registry.npmjs.org/jest/-/jest-28.1.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-28.1.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/release-it/-/release-it-14.14.3.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/release-it-yarn-workspaces/-/release-it-yarn-workspaces-2.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/semver/-/semver-7.3.7.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/typescript/-/typescript-4.7.3.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/unbuild/-/unbuild-0.7.4.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@vue/test-utils/-/test-utils-1.3.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/tsd/-/tsd-0.20.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/vue/-/vue-2.6.14.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.17.10.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@nuxt/test-utils/-/test-utils-0.2.2.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@nuxt/types/-/types-2.15.8.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmjs.org/@nuxt/typescript-build/-/typescript-build-2.1.0.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.

Copy link

vercel bot commented Aug 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
typed-vuex ❌ Failed (Inspect) Aug 5, 2024 11:27pm

Copy link

coderabbitai bot commented Aug 5, 2024

Walkthrough

The update to the nuxt-typed-vuex package marks a significant shift from Nuxt 2 to Nuxt 3, reflected in the dependency version change in the package.json file. This transition involves substantial architectural changes, offering new features and optimizations in the framework. Developers will need to review and potentially adjust their application code to ensure compatibility with the upgraded version, as it may impact performance and functionality.

Changes

Files Change Summary
packages/nuxt-typed-vuex/package.json Updated nuxt dependency from ^2.15.8 to ^3.0.0, indicating a major framework transition.

Poem

🐇 In a world where code does thrive,
Nuxt 3 hops in, oh what a vibe!
With features bright and optimizations neat,
We dance with joy, our work's complete!
New paths to code, let’s boldly explore,
A rabbit’s delight, we’ll code even more! 🥕✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired ___location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
packages/nuxt-typed-vuex/package.json (1)

43-43: Verify compatibility of @nuxt/types with Nuxt 3.

The peerDependencies section still references @nuxt/types version ^2.15.8, which is intended for Nuxt 2 and may not be compatible with Nuxt 3. Ensure that the correct version of @nuxt/types or the appropriate package for Nuxt 3 type definitions is used to avoid potential issues.

  • packages/nuxt-typed-vuex/package.json: @nuxt/types version ^2.15.8
  • examples/nuxt/package.json: @nuxt/types version latest
  • examples/nuxt-ts/package.json: @nuxt/types version latest
Analysis chain

Verify compatibility of @nuxt/types with Nuxt 3.

The peerDependencies section still references @nuxt/types version ^2.15.8, which may not be compatible with Nuxt 3. Ensure that the correct version of @nuxt/types is used to avoid potential issues.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify compatibility of `@nuxt/types` with Nuxt 3.

# Test: Search for `@nuxt/types` usage. Expect: No compatibility issues with Nuxt 3.
rg --type json '@nuxt/types'

Length of output: 699

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between a16c245 and 2e7aaab.

Files selected for processing (1)
  • packages/nuxt-typed-vuex/package.json (1 hunks)
Additional comments not posted (1)
packages/nuxt-typed-vuex/package.json (1)

43-43: Update nuxt dependency to version 3.

The nuxt dependency has been updated from ^2.15.8 to ^3.0.0. This update addresses security vulnerability CVE-2024-34343 and introduces significant architectural changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants