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

fix(deps): update dependency nuxt to v3 - autoclosed #215

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 27, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
nuxt 2.17.1 -> 3.7.3 age adoption passing confidence

Release Notes

nuxt/nuxt (nuxt)

v3.7.3

Compare Source

3.7.3 is a hotfix release to address a regression introduced in 3.7.2.

👉 Changelog

compare changes

🩹 Fixes
  • nuxt: Ensure plugins retain original order (#​23174)
  • nuxt: Allow importing server components from #components (#​23188)
💅 Refactors
  • nuxt: Don't wrap server placeholders/client fallbacks (#​21980)
📖 Documentation
  • Added missing leading slash (#​23169)
  • Update internal issue decision making flowchart link (#​23162)
❤️ Contributors

v3.7.2

Compare Source

3.7.2 is a regularly scheduled patch release.

✅ Upgrading

As usual, our recommendation for upgrading is to run:

nuxi upgrade

👉 Changelog

compare changes

🩹 Fixes
  • nuxt: Scroll to top by default on dynamic routes (#​22403)
  • nuxt: Don't joinURL with remote sources on NuxtIsland (#​23093)
  • nuxt: Exclude data-v attrs from server component props (#​23095)
  • nuxt: Handle optional params within a path segment (#​23070)
  • nuxt: Include method when creating useFetch auto key (#​23086)
  • vite: Add css to manifest without cssCodeSplit (#​23049)
  • nuxt: Find parent routes by exact path match (#​23040)
  • nuxt: Load spaLoadingTemplate if file exists (#​23048)
  • nuxt: Handle unset spa-loading fallback (#​23120)
  • kit: Improve generated tsconfig.json defaults (#​23121)
  • vite: Remove dev styles injected via absolute path (#​23126)
  • nuxt: Default scanned layer components to priority 0 (#​23127)
  • nuxt: Allow granularly overriding pages in layers (#​23134)
  • nuxt: Respect layer order for other layer plugins (#​23148)
  • nuxt: Allow changing dirs within modules (#​23133)
  • nuxt: Allow overriding components + only warn if clash (#​23156)
📖 Documentation
  • Remove 'caching' section from data fetching (fe29948fe)
  • Fix broken links on experimental features (#​23052)
  • Fix typo (#​23060)
  • Add name param to PageMeta interface description (#​23107)
  • Fix typo for experimental.componentIslands (#​23138)
  • Change NuxtLabs UI to Nuxt UI (#​23150)
  • Fix typo in nuxi init command (#​23155)
🏡 Chore
🤖 CI
❤️ Contributors

v3.7.1

Compare Source

3.7.1 is a regularly scheduled patch release.

✅ Upgrading

As usual, our recommendation for upgrading is to run:

nuxi 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: Prevent head dom from rendering twice (#​22974)
  • nuxt: Decrease default bundle size (#​22999)
🩹 Fixes
  • nuxt: Exclude resolved vite virtual modules prefix (#​22834)
  • nuxt: Ensure typed layout prop persists through build (#​22855)
  • nuxt: Render server components when ssr: false (#​22869)
  • kit: Respect priority when registering components dirs (#​22882)
  • kit: Allow passing a string to addLayout (#​22902)
  • nuxt: Ensure middleware is processed when returning true (#​22905)
  • nuxt: Unpause dom updates on error (#​22945)
  • nuxt: Disallow write: false for type templates (#​22972)
  • vite: Don't set explicit conditions in shouldExternalize (#​22991)
  • nuxt: Render inlined ssr styles before stylesheets (#​22986)
  • nuxt: Improve types within plugin templates (#​22998)
  • nuxt: Load layer plugins before project plugins (#​22889)
  • nuxt: Use destr in more places over JSON.parse (#​22997)
  • nuxt: Resolve head instance from Nuxt app (#​22973)
  • nuxt: Always use increment for id with client side islands (#​22975)
📖 Documentation
  • Add info about dynamic nested routes (#​22862)
  • Update nuxt bridge migration guide (#​22815)
  • Rename nuxt-community to nuxt-modules (9991da634)
  • Add banner for readme (e92d99db3)
  • Simplify readme (681f92915)
  • Text center on banner (ea5142176)
  • Clarify that 'it' is <NuxtPage> (#​22912)
  • Update examples of dynamic pageKey (#​22920)
  • Fix types in 'server utilities' example (#​22978)
  • Describe env object for nuxt plugins (#​22963)
  • Docs/3.api/3.utils/define-page-meta.md (#​23006)
  • Accessing custom props for NuxtLayout (#​22989)
  • Add information about server component context (#​22964)
🏡 Chore
  • Fix variable name in release scripts (adb6ec674)
  • Track nuxi-edge rather than nuxi-ng (9610cf03d)
🤖 CI
  • Create 2.x release branch as well (cdf9b5547)
  • Use GITHUB_REF_NAME to get branch for release (d49ea58de)
  • Use changelogen utility to get current branch (7431e2258)
❤️ Contributors

v3.7.0

Compare Source

👀 Highlights

🐣 A New CLI

We've refactored nuxi using unjs/citty and this marks the first Nuxt release that depends on the new version, safely in its own repository. We have grand plans for this - check out some of the features + roadmap discussions in nuxt/cli and please feel free to contribute!

Nuxi is now decoupled from the main nuxt version - we plan to iterate and release nuxi more quickly in future so you can expect new things coming soon!

🕸️ Native Web Streams and Response

With improvements in unjs/h3 and unjs/nitro, it's now possible to directly return a Response object from server routes, meaning it's also possible to return and handle streams natively in Nuxt.

👉 Check out the full detail in the unjs/h3 and unjs/nitro release notes.

🔥 HTML Rendering Optimisations

This release comes with a couple of improvements in rendering HTML responses from the server. We now determine whether to preload/prefetch resources at build time (so you can customise this in the build:manifest hook). We also now manage rendering the HTML for them directly in unhead (#​22179), which means you can configure the order for <link>, <meta>, <script>, <style>, and more. And - in our preliminary testing - it's even faster!

It's possible to opt-in to upcoming head improvements with the experimental.headNext flag. This currently includes a new ordering algorithm based on capo.js (#​22431) and allows enabling future optimisations as they are released in unhead:

export default defineNuxtConfig({
  experimental: {
    headNext: true
  }
})

We'd love your thoughts - you can respond with any issues/feedback in this discussion.

🛠️ Build Environment Shortcuts

In your Nuxt config you can now use $client and $server shortcuts to easily define configuration that is specific to just the Vite client/server (#​22302) or webpack client/server (#​22304) builds. This previously was only possible with the vite:extendConfig and webpack:config hooks.

For example:

export default defineNuxtConfig({
  vite: {
    $client: {
      build: {
        rollupOptions: {
          output: {
            chunkFileNames: '_nuxt/[hash].js',
            assetFileNames: '_nuxt/[hash][extname]',
            entryFileNames: '_nuxt/[hash].js'
          }
        }
      }
    }
  }
})
⚡️ Vite 4.4

We've chosen to unpin Vite from minor versions, meaning whenever Vite releases a new feature version you can opt-in straight away. Vite 4.4 brings a lot of exciting things, including experimental Lightning CSS support - and much more!

👉 Check out the Vite release notes for more.

💪 TypeScript Updates

We now use purely relative paths in the generated tsconfig.json instead of setting a baseUrl. This means better support for dev environments like docker images where the absolute path may not match your IDE (#​22410).

We also set a couple of additional compiler flag defaults to match Vite/TS recommendations (#​22468).

Plus, you should now get type hinted access to layouts in setPageLayout and also in <NuxtLayout name> (#​22363).

🦄 Async Context support

If you've ever got an issue with 'Nuxt context unavailable' this might be one for you. We now support native async context for Bun and Node under an experimental flag, in both Nuxt and Nitro (#​20918).

This enables using Nuxt composables on the server without needing to ensure they are being called directly in a setup function. It also allows the same in Nitro, with a new useEvent() utility that is usable in server routes.

To try it out, you can enable experimental.asyncContext:

export default defineNuxtConfig({
  experimental: {
    asyncContext: true
  }
})
👓 Watcher Updates

We've fixed a couple of issues with watchers, meaning that you should need to restart your server less often - and you should see a significant performance increase if you are using layers.

⚗️ Nitro 2.6

There lots more exciting features coming directly from Nitro 2.6, including smaller, lighter servers and new persistent data storage in a .data directory.

👉 Read more in the full release article.

✅ Upgrading

As usual, our recommendation for upgrading is to run:

npx nuxi 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
  • vite: Unpin vite from minor (#​22031)
  • nuxt: Polyfill idle callback utils (#​21863)
  • nuxt: Smooth scroll behavior option (#​21948)
  • schema,vite: Allow $client and $server vite env overrides (#​22302)
  • schema,webpack: Allow $client and $server overrides (#​22304)
  • nuxt: Allow dynamic scrollToTop page meta (#​21741)
  • nuxt: Expose filtered templates in app:templatesGenerated hook (#​21935)
  • nuxt: Render all head tags on server with unhead (#​22179)
  • nuxt: Auto-install @nuxt/webpack-builder when needed (#​21747)
  • nuxt: Allow remote sources for islands (#​21592)
  • nuxt: Environment-specific plugin execution for islands (#​20726)
  • kit,nuxi: Add writeTypes utility (#​22385)
  • nuxt: Autocomplete layouts in setPageLayout/<NuxtLayout> (#​22362)
  • nuxt: Allow 'lazy' (non-blocking) server components (#​21918)
  • nuxt: Use build plugin to access nuxt route injection (#​21585)
  • vite,webpack: Tree-shakable import.meta.* build flags (#​22428)
  • nuxt: Resolve unresolved paths within node_modules (#​22478)
  • nuxt: Experimental native async context support (#​20918)
  • nuxt: Warn on external webpack/nitro/postcss config (#​22521)
  • nuxt: Allow experimental global: 'sync' components (#​22558)
  • nuxt: Make app.rootId optional (#​22528)
  • nuxt: Add experimental.headNext unhead integration (#​22620)
  • cli: Detect bun package manager (#​22673)
  • nuxt: Upgrade nitro + reduce node-specific usage (#​22515)
  • nuxt: Add support for routeRules defined within pages (#​20391)
  • schema: Support setting hidden sourcemaps (#​22787)
  • kit,nuxt: Respect nuxt ignore patterns in nitro (#​22808)
  • nuxt: Migrate to new nuxt/cli (#​22799)
  • schema: Export ./schema/config.schema.json subpath (#​22813)
🔥 Performance
  • nuxt: Export DefineNuxtConfig interface from nuxt/config (#​22391)
  • nuxt: Write templates in single sync step + improve logs (#​22384)
  • nuxt: Render css/inline css higher than resource hints (#​21793)
  • nuxt: Experimental support of capo.js head tag order (#​22431)
  • nuxt: Use LRU prerender cache and limit cached items (#​22465)
  • nuxt: Reduce multiple calls to .toLowerCase() (#​22743)
  • nuxt: Reduce multiple calls to dirname (#​22800)
🩹 Fixes
  • nuxt: Await prerender:routes hook (#​22247)
  • nuxt: Access resolved scrollBehaviorType (#​22264)
  • nuxt: Add overloads for asyncData generic + default (#​22258)
  • nuxt: Bind createClientOnly render function to ctx (#​22289)
  • webpack: Remove legacy support for build.extend (#​22305)
  • nuxt: Allow validate return typing to be either error or boolean (#​22323)
  • kit: Handle tuple-format modules in hasNuxtModule (#​22316)
  • nuxt: Components auto-import for JSX (#​22330)
  • nuxt: Pass (and handle) relative paths in builder:watch (#​22333)
  • nuxt: Use computed path value for useFetch hash (#​22378)
  • cli: Only strip extensions from files (#​22399)
  • nuxt: Disallow redirects to more script protocols (#​22366)
  • nuxt: Test watch paths against all layer srcDirs (#​22307)
  • nuxt: name is an optional prop for <NuxtLayout> (0d9a0b753)
  • kit: Don't unsubscribe from file writing (716a5b834)
  • nuxt: Support uppercase route methods in useFetch (#​22418)
  • kit: Remove baseUrl and use relative paths in tsconfig (#​22410)
  • nuxt: Print name of missing island component (#​22440)
  • nuxt: Broken capo.js injectHead usage (#​22447)
  • kit: Apply preferred options for esbuild transpilation (#​22468)
  • nuxt: Correctly update object cookies in useCookie (#​22474)
  • nuxt: Use internal:nuxt namespace (9b0d371b0)
  • nuxt: Remove unused normalize call (14bf2b02f)
  • cli: Display log when restarting nuxt (#​22500)
  • nuxt: Resolve type import paths (#​22476)
  • schema: webpack options should be optional (#​22524)
  • nuxt: Enable hmr of app.config.ts files (#​22494)
  • vite: Add hookable to externals list (4552d39c4)
  • vite: Disable assignement in replace plugin (37ba58630)
  • schema: Ignore empty string in app.{rootId ([rootTag} (#​22543)](nuxt/nuxt@rootTag}\` (#​22543)))
  • vite: Include import.meta build vars in define as well (#​22576)
  • nuxt: Provide fallback route (#​22580)
  • nuxt: Trigger immediate DOM update on page:finish (#​22566)
  • nuxt: Unsub from hooks when unmounting indicator (#​22592)
  • cli: Only watch distDir after first build (#​22614)
  • nuxt: Use relative paths when augmenting types (#​22633)
  • nuxt: Don't prompt to install packages in CI (#​22636)
  • cli: Ignore error if nitro is not enabled on bridge (#​22642)
  • nuxt: Remove experimental hash hydration (#​22648)
  • nuxt: Correct revive payload data type (#​22667)
  • vite: Use '' key for root scope in variable collector (#​22679)
  • nuxt: Warn when ignoring duplicate island/server component (#​22709)
  • nuxt: Add exclude paths to nitro tsconfig.server.json (#​22768)
  • nuxt: Recreate asyncData when immediate is disabled (#​20980)
  • nuxt: Respect ignorelist when scanning auto-imports (#​22782)
  • schema: Mark schema as free of side effects (#​22793)
  • nuxt: Default spaLoadingTemplate to false (#​22798)
  • nuxt: Fully resolve unctx where possible (#​22811)
  • vite: Only mark nitro deps as externals when building (#​22812)
💅 Refactors
  • nuxi,schema: Move loading template into schema (#​22336)
  • nuxt: Add additional flag to enable remote sources (#​22409)
  • nuxt: Use nuxi-ng for edge releases (#​22413)
  • nuxt: Import useNitroApp from subpath (#​22785)
📖 Documentation
  • Mention #components import for dynamic component (#​22231)
  • Fix typo (#​22308)
  • Add information on how to type custom hooks (#​22312)
  • Correct manually typing runtime config example (#​22393)
  • Update .env section (#​22369)
  • Add example for accessing vite config programmatically (#​18812)
  • Add recommendation to install nuxtr (#​20808)
  • Add some more debugging tips (#​22415)
  • Document NuxtIsland (#​22434)
  • Escape ] in code-block filenames (#​22389)
  • Add temporary website for docs contribution (#​22469)
  • Update prerender documentation (#​22471)
  • Update hybrid rendering section (#​22475)
  • Fix typo in scrollToTop (#​22503)
  • Add status type for useAsyncData (#​22511)
  • Rephrase link to useSeoMeta parameters (#​22513)
  • Update api example for pick (#​22531)
  • Add closing blocks for ReadMore components (#​22541)
  • Update rendering error page (#​22523)
  • Mention adding auto-import of third party packages (#​22575)
  • Update and shorten server example (#​22583)
  • Update twitter/X logo (#​22569)
  • Added addServerHandler example to modules author guide (#​22603)
  • Clarify server: false doesn't await on initial load (#​22619)
  • Fix link to deployment page (#​22618)
  • Warn directives must be registered on both server/client (#​22627)
  • Revert import.meta.* update until v3.7 release (98c17e5d4)
  • Improve custom component dirs example (#​22697)
  • Mention NuxtIsland in server only components docs (#​22685)
  • Add additional type generics to useFetch docs (#​22755)
  • Add additional type generics to useAsyncData (#​22760)
  • Add instructions for Bun package manager (#​22779)
  • Fix typo in bun package manager name (#​22781)
📦 Build
🏡 Chore
✅ Tests
  • Remove separate test for baseurl (#​22467)
  • Remove JS payload test + add non-async context test (#​22530)
  • Refactor test suite and reduce networkidle dependency (#​22596)
  • Reduce verbose log outputs (c8cba7a06)
  • Add regression test for escaping payload (#​22774)
🤖 CI
  • Add ecosystem-ci pr comment trigger (#​22239)
  • Add semantic pull request workflow (#​22241)
  • Grant permission to comment on prs (6f1a557e5)
  • Harden GitHub actions (#​22321)
  • Pin actionlint script (#​22324)
  • Skip semantic validation on release branches (459dc7d2d)
  • Update issue label for reproduire (4e0a499a0)
  • Pin version of actionlint used (b702adc24)
  • Try another way to disable semantic validation of release prs (eff05e1d4)
  • Bump timeout minutes for windows fixtures 🙈 (33389dc4e)
❤️ Contributors

v3.6.5

Compare Source

3.6.5 is a hotfix patch release addressing the regression with nuxt/content introduced in v3.6.4.

v3.6.4 release notes

✅ Upgrading

As usual, our recommendation for upgrading is to run:

nuxi 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

🩹 Fixes
  • nuxt: Remove dist from the default ignore list (#​22227)
❤️ Contributors
  • Anthony Fu <anthonyfu117@​hotmail.com>

v3.6.4

Compare Source

3.6.4 is a patch release, brought forward to allow releasing some important bug fixes before work begins on 3.7.

Warning
We're currently investigating a regression with nuxt/content and will be releasing 3.6.5 later today.

✅ Upgrading

As usual, our recommendation for upgrading is to run:

nuxi 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,schema: Do not watch buildDir and node_modules (#​22214)
🩹 Fixes
  • nuxt: Correctly use toLowerCase for possible moduleResolution (#​22160)
  • nuxt: Don't redirect if initial path has trailing slash (#​22192)
  • nuxt: Work around payload extraction issue (#​22162)
  • nuxt: Add baseURL to island fetch requests (#​22009)
  • nuxt: Resolve race condition regenerating auto imports (#​22201)
  • nuxt: Ensure we only increment hydrating count once (#​22200)
  • nuxt: Avoid premature hydration when using async layouts (#​22198)
  • cli: Support --inspect in dev mode (#​22205)
  • test-utils: Pass along error if server can't start (#​22216)
📖 Documentation
  • Add runtime storage configuration examples (#​22189)
  • Add instruction on how to use other modules in a module (#​22081)
  • Standardize indentation and tag positioning (#​22157)
❤️ Contributors

v3.6.3

Compare Source

3.6.3 is the next patch release, including a number of fixes. It's anticipated this will be the last patch release before 3.7.

✅ Upgrading

As usual, our recommendation for upgrading is to run:

nuxi 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: Prepopulate island payloads from rendered html (#​22049)
🩹 Fixes
  • kit: Module compatibility not working with module names (6cabe69ce)
  • schema: Correct type of unctx options (4e32e70bb)
  • vite: Pass modulesDir to isExternal (#​21966)
  • nuxt: Add pages in correct hook when generating (#​22088)
  • test-utils: Export from core playwright package (#​22122)
  • nuxt: Skip view transitions where there is no route change (#​22140)
  • nuxt: Skip scanning components that do not produce a name (#​22074)
  • cli: Add aliases to monorepo paths to tsconfig includes (#​21997)
  • cli: Allow non-existent experimental option (0643d4315)
💅 Refactors
  • cli,schema: Add bundler module resolution flag (#​22142)
📖 Documentation
🏡 Chore
❤️ Contributors

v3.6.2

Compare Source

3.6.2 is the next patch release, with a raft of fixes including preparations for use without --shamefully-hoist and some fixes for data fetching within nested layouts/pages.

✅ Upgrading

As usual, our recommendation for upgrading is to run:

nuxi 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: Don't run island transform plugin if disabled (#​21844)
  • nuxt: Allow hmr for server components in dev mode (#​21916)
  • nuxt: Use getters when constructing reactive routes (#​21957)
🩹 Fixes
  • nuxt: Only redirect if path is not the same as initial url (#​21815)
  • cli: Resolve @nuxt/ui-templates from modulesDir (#​21836)
  • nuxt, vite: Do not use cjs utils to resolve/alias vue (#​21837)
  • nuxt: Improve default prerender behaviour (#​21817)
  • vite: Greater type-safety within runtime vite-node (#​21849)
  • nuxt: Ensure static presets equivalent to nuxi generate (#​21860)
  • nuxt: Handle injecting multiple entry ids for styles (#​21864)
  • nuxt: Stop loading indicator on navigation failure (#​21751)
  • cli: Respect nitro ssl cert/key variables (#​21912)
  • nuxt: Include external layers in tsconfig.json scope (#​21917)
  • nuxt: Support custom route name meta with typedPages (#​21659)
  • vite: Remove @​vue/ scoped libraries from resolutions (#​21922)
  • nuxt: Add layers in node_modules to tsconfig include (#​21929)
  • nuxt: Regenerate imports after template (#​21934)
  • vite: Fix issue detecting shadowed keyed composables (#​21891)
  • nuxt: Use $fetch.raw in dev client mode for islands (#​21904)
  • schema: Warn if user provides vite.publicDir (#​21847)
  • nuxt: Preserve old vnode when leaving nested route (#​21823)
  • kit: Ignore telemetry startup time (as it has prompt) (#​21959)
📖 Documentation
  • Add warning about dynamic import of css (#​21805)
  • Update example links (#​21811)
  • Fix broken spaLoadingTemplate link (#​21845)
  • Update useFetch return values (#​21852)
  • Describe environment override feature (#​21879)
  • Add Daniel example for hybrid rendering and Vercel (20d59d1cf)
  • Improve hybrid rendering (3fb329cc8)
  • rendering: Add end of sentence (565787183)
  • Add closing bracket (#​21887)
  • Added a note about server dynamic routes limitation (#​21919)
  • Update docs for <NuxtLoadingIndicator> (#​21952)
  • Update more links to examples repo (13a892361)
  • Add JetBrains IDEs debug configuration (#​21965)
🏡 Chore
  • Prune internal unused code and exports (#​21809)
  • Add codeflow overrides configuration (d7267663f)
✅ Tests
  • Add nuxt-vitest and composable unit tests (#​21884)
❤️ Contributors

v3.6.1

Compare Source

3.6.1 is a bugfix/patch release with some significant patches merged since 3.6.0

✅ Upgrading

As usual, our recommendation for upgrading is to run:

nuxi 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

🩹 Fixes
  • nuxt: Use esbuild/acorn instead of typescript dep (#​21729)
  • nuxt: Proxy headers to islands + returned prerender hints (#​21740)
  • nuxt: Respect false to disable spa loading template (#​21739)
  • nuxt: Remove path from SPA payload (#​21732)
  • nuxt: Only remove one item from middleware (#​21730)
  • nuxt: Escape colons in page paths (#​21731)
  • nuxt: Augment nitro config within server context as well (#​21724)
  • nuxt: Inline global css with ssr: false route rule (#​21763)
  • vite: Resolve css files without importer id first (#​21770)
  • vite: Emit assets referenced in inline css (#​21790)
  • nuxt: Support importing types from #imports (#​21796)
  • nuxt: Use starting index when transforming islands (#​21795)
📖 Documentation
  • Add defineNuxtRouteMiddleware migration (#​21718)
  • Add a link to Docus layer nuxt config file (#​21742)
  • Remove outdated reference to stable version (#​21785)
  • Centre example loading spinner (#​21792)
✅ Tests
❤️ Contributors

v3.6.0

Compare Source

3.6.0 is the next minor release, packed with improvements and bug fixes.

📣 Upcoming news

In the coming week you can expect two announcements:

  1. The open-sourcing of nuxt/cli by @​pi0 - a new, drop-in replacement for nuxi featuring more extensibility and better DX. We are aiming to release this alongside Nuxt 3.7, but you would be very welcome to test and contribute to nuxi-ng before then!
  2. Three significant RFCs: Nuxt Font, Nuxt Assets and Nuxt Scripts. We're expecting an initial POC to take shape in the next month, and would very much appreciate community feedback on this.

👀 Highlights

This minor release contains quite a lot, and we have big plans

 SPA loading indicator

If your site is served with ssr: false or you have disabled server-rendering on some of your pages, you might be particularly interested in the new built-in SPA loading indicator.

You can now place an HTML file in ~/app/spa-loading-template.html with some HTML you would like to use to render a loading screen that will be rendered until your app is hydrated on these pages.

👉 By default an animated Nuxt icon is rendered. You can completely disable this indicator by setting spaLoadingTemplate: false in your nuxt configuration file.

⚡️ Performance improvements

The first thing that happens when your app is hydrated is that your plugins run, and so we now perform build-time optimisations on your plugins, meaning they do not need to be normalised or reordered at runtime.

We also include your error component JS in your main entrypoint, meaning that if an error occurs when a user has no connectivity, you can still handle it with your ~/error.vue. (This also should decrease your total bundle size.)

👉 Compared to Nuxt 3.5.3, the minimal client bundle has decreased by ~0.7kB. Let's keep this up!

🔥 Fully static server components

It has been possible to use server components on static pages, but until now they would increase the payload size of your application. That is no longer true. We now store rendered server components as separate files, which are preloaded before navigation.

👉 This does rely on the new, richer JSON payload format, so make sure you have not disabled this by setting experimental.renderJsonPayloads to false.

🎨 Better style inlining

If you're monitoring your metrics closely and have not turned off experimental.inlineSSRStyles, you should see more CSS inlined in your page, and a significantly external CSS file. We're now better at deduplicating global CSS, particularly added by libraries like tailwind or unocss.

🎬 Animation controls

To give you more fine-grained control over your page/layout components, for example to create custom transitions with GSAP or other libraries, we now allow you to set pageRef on <NuxtPage> and layoutRef on <NuxtLayout. These will get passed through to the underlying DOM elements.


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 is behind base branch, 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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Jul 27, 2023
@renovate renovate bot force-pushed the renovate/major-nuxtjs-monorepo branch 3 times, most recently from cb5f132 to 21a90e5 Compare August 3, 2023 15:10
@renovate renovate bot force-pushed the renovate/major-nuxtjs-monorepo branch 4 times, most recently from 4e27abc to 8cf1560 Compare August 9, 2023 21:02
@renovate renovate bot force-pushed the renovate/major-nuxtjs-monorepo branch 2 times, most recently from d9d75b4 to 9aae9e3 Compare August 19, 2023 00:43
@renovate renovate bot force-pushed the renovate/major-nuxtjs-monorepo branch from 9aae9e3 to 151e6ac Compare August 26, 2023 01:51
@renovate renovate bot force-pushed the renovate/major-nuxtjs-monorepo branch 2 times, most recently from deff1ce to 97c6eae Compare September 8, 2023 14:26
@renovate renovate bot force-pushed the renovate/major-nuxtjs-monorepo branch from 97c6eae to 494694f Compare September 12, 2023 22:36
@renovate renovate bot force-pushed the renovate/major-nuxtjs-monorepo branch from 494694f to cfa1c4d Compare September 13, 2023 23:07
@renovate renovate bot changed the title fix(deps): update dependency nuxt to v3 fix(deps): update dependency nuxt to v3 - autoclosed Sep 15, 2023
@renovate renovate bot closed this Sep 15, 2023
@renovate renovate bot deleted the renovate/major-nuxtjs-monorepo branch September 15, 2023 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants