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 dependency nuxt to v3.15.3 #690

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 19, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
nuxt (source) 3.15.1 -> 3.15.3 age adoption passing confidence

Release Notes

nuxt/nuxt (nuxt)

v3.15.3

Compare Source

3.15.3 is the next regularly scheduled patch release.

👀 Highlights
CORS configuration for dev server

Alongside a range of improvements, we've also shipped a significant fix to impose CORS origin restrictions on the dev server. This applies to your Vite or Webpack/Rspack dev middleware only.

This is a significant/breaking change we would not normally ship in a patch but it is a security fix (see GHSA-4gf7-ff8x-hq99 and GHSA-2452-6xj8-jh47) and we urge you to update ASAP.

You can configure the allowed origins and other CORS options via the devServer.cors options in your nuxt.config, which may be relevant if you are developing with a custom hostname:

export default defineNuxtConfig({
  devServer: {
    cors: {
      origin: ['https://custom-origin.com'],
    },
  },
})
✅ 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,nuxt: Don't resolve paths from local layers/modules (#​30650)
  • nuxt: Reduce number of mkdirSync calls (#​30651)
  • nuxt: Reduce unnecessary template updating (#​30684)
  • kit: Reduce duplication between findPath and resolvePath (#​30682)
  • kit: Run components compat check synchronously (#​30685)
  • nuxt: Early return from annotation for non-object syntax plugins (#​30683)
  • nuxt: Enable Transition component only on client side (#​30720)
🩹 Fixes
  • vite: Override previous #app-manifest alias (#​30618)
  • kit,nuxt,schema,vite: Improve watching behaviour (#​30620)
  • nuxt: Fall back to plugin.src for variable name generation (#​30649)
  • schema: Allow overriding dev/test environment value (#​30667)
  • vite: Drop unneeded call to invalidate module (d2a95c542)
  • vite: Add back invalidateModule call (9bd71e498)
  • nuxt: Do not warn about [[ optional dynamic params (#​30619)
  • vite: Inline shared folder in dev mode (#​30690)
  • nuxt: Deep clone extracted page meta (#​30717)
  • vite,webpack: Restrict access via cors to local origins + allow configuration via devServer.cors (406db5b4d)
💅 Refactors
  • vite: Drop externality and use vite internal config (#​30634)
📖 Documentation
  • Add link to custom useFetch example (#​30629)
  • Fix example command (#​30628)
  • Fix links to nuxi source code (4fabe0025)
  • Add description for prefetch and other details of NuxtLink (#​30614)
  • Update nuxt/content example (542987627)
  • Adjust examples, type and description for addRouteMiddleware (#​30656)
  • Explain how to use ClientOnly with onMounted hook (#​30670)
  • Update links to unhead source (eb5344b43)
  • Add more context about navigation mode in callOnce composable (#​30612)
  • Add example on how to disable default routes for ssg (#​30729)
📦 Build
  • schema: Use new inlineDependencies option (01adefcec)
🏡 Chore
🤖 CI
  • Run bundle size assertion outside of matrix (#​30688)
  • Reenable nuxt benchmarking (#​30711)
❤️ Contributors

v3.15.2

Compare Source

3.15.2 is the next regularly scheduled patch release.

👀 Highlights
🔥 Startup performance improvements

It is worth noting that this release includes some pretty significant performance improvements which you should notice particularly in the startup time. In my tests in the nuxt monorepo,

fixture time to vite build complete (v3.15.1) time to vite build complete (v3.15.2)
minimal 850ms 710ms
everything bagel 3,021ms 1,690ms

There's more improvement to do here but hopefully these are good numbers!

📦 CLI refactor

To improve performance within Nuxt projects, we've published a new @nuxt/cli distribution of nuxi, which is used under-the-hood in nuxt (see issue). This should behave exactly the same and nothing needs to be updated in your projects (for example, you will continue to use the nuxi or nuxt commands). The only significant change is that it no longer inlines dependencies. Feedback is welcome 🙏

✅ 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
  • nuxt: Remove code duplication in client-only (#​30460)
  • nuxt: Use lighter @nuxt/cli dependency (#​30526)
  • kit: Remove iterations when resolving module path (#​30562)
  • nuxt: Avoid checking fs for existence of scanned pages (#​30581)
  • nuxt: Defer version/config warnings to after build (#​30567)
🩹 Fixes
  • nuxt: Collect all identifiers before extracting page metadata (#​30478)
  • nuxt: Don't hoist identifiers declared locally in definePageMeta when extracting page metadata (#​30490)
  • kit: Reorder #build to the end of tsConfig paths (#​30520)
  • nuxt: Use fullPath instead of empty string in router hmr (#​30500)
  • Relax nuxt version constraints to current (23b968289)
  • nuxt: Add import protection for @nuxt/cli (618bbc6da)
  • kit: Fully resolve plugin paths when normalising them (#​30540)
  • nuxt: Call page:loading:end only once with nested pages (#​29009)
  • nuxt: Warn about ignored char while parsing route segment (#​30396)
  • nuxt: Allow url-specific chars in vfs (#​30584)
  • nuxt: Do not warn about invalid characters in route groups/catchalls (0249c74bc)
  • vite: Provide fallback alias for #app-manifest (#​30587)
  • nuxt: Avoid invoking shouldPrefetch on the server side (#​30591)
  • nuxt: Decode id before resolving relative imports (#​30599)
💅 Refactors
  • kit,nuxt,webpack: Reduce reassignments (#​30589)
📖 Documentation
  • Document --dev option for the module command (#​30477)
  • Document the add layer command (#​30476)
  • Update v4 release date (#​30514)
  • Ensure correct type for url in useFetch (#​30531)
  • Update link to @nuxt/module-builder source (509cf4a5c)
  • Add status detail and enhance getCachedData readability (#​30536)
  • Update hash link to correct heading (#​30543)
  • Update links to unhead source (fef3a59bb)
  • Adjust example and additional instructions of useNuxtData (#​30570)
  • Resolve many twoslash errors (#​30573)
  • Add context for useAsyncData side effects (#​30479)
  • Update examples to use function declarations for clarity (#​30588)
🏡 Chore
  • Control dependency import into nuxt/app (1adf3e31f)
  • Ignore automated renovate node engines updates (6895993fb)
🤖 CI
  • Don't block release on fixtures + add pkg.pr.new (#​30548)
  • Remove concurrency group from release-pr job (8ac54ff10)
❤️ Contributors

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

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

Copy link

changeset-bot bot commented Jan 19, 2025

⚠️ No Changeset found

Latest commit: bc9ede2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

netlify bot commented Jan 19, 2025

Deploy Preview for enspire-staging failed.

Name Link
🔨 Latest commit bc9ede2
🔍 Latest deploy log https://app.netlify.com/sites/enspire-staging/deploys/6794367d72b0380008c4026c

@renovate renovate bot force-pushed the renovate/nuxtjs-monorepo branch from 01952b8 to 0f3f205 Compare January 23, 2025 23:05
@renovate renovate bot force-pushed the renovate/nuxtjs-monorepo branch from 0f3f205 to bc9ede2 Compare January 25, 2025 00:55
@renovate renovate bot changed the title chore(deps): update dependency nuxt to v3.15.2 chore(deps): update dependency nuxt to v3.15.3 Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants