chore(deps): update all non-major dependencies
This PR contains the following updates:
Release Notes
nuxt/content
v2.1.1
🩹 Fixes
📖 Documentation
- document-driven: Remove edge channel info (#1462)
- Update title & description (#1505)
- document-driven: Fix typo (#1512)
❤️ Contributors
- Ahad Birang
- Nobkd
- Okoro Redemption
- Sébastien Chopin
nuxt/framework
v3.0.0-rc.11
💬 Join the release discussion
🚀 How to Upgrade
Note Make sure to recreate the lock file in the project in case of any issues after the upgrade.
-
Automated:
npx nuxi@latest upgrade --force -
Manual: Bump
nuxtdependency to3.0.0-rc.11and then usenpx nuxi@latest cleanupto cleanup any local caches
⭐ What is New?
Full Static Enhancements
We have introduced Full-Static mode payload extraction in RC.10. Many of the issues from the initial implementation are resolved with this release thanks to your amazing feedback! Notably for SPA routes and state that is now in the initial state.
🧪 We understand that there might be still issues with the new implementation. Please report if spotted any. You can use new experimental.payloadExtraction: false flag in nuxt.config to opt-out as well.
IPv6 and HTTPS support for nuxi dev and vite
Nuxi CLI and unjs/listhen are improved and now support --https flag and ipv6 hosts out of the box with an auto-generated certificate. You can use --ssl-cert and --ssl-key to provide own generated SSL certificates with mkcert for example as well.
Issues with vite HMR and vite-node should be resolved as well. If you were previously using NODE_TLS_REJECT_UNAUTHORIZED or custom vite.server.hmr options for a workaround, you can try to remove them.
Note: If you see something like http://[::]:3000/ when running nuxi preview, it is all normal! The New IPv6 URL works in all modern browsers and is also backward compatible with IPv4 interfaces. If for some reason encountered any issues, try setting HOST to 0.0.0.0 to disable IPv6 listener.
Nitro Improvements
Nitro is the server engine for Nuxt 3. We had landed several fixes in 0.5.2 and 0.5.3 versions improving stability and bug fixes.
Full Changelog
🚀 Enhancements
🩹 Fixes
- nuxt: Disable payload extraction for spa generated pages (#7535)
- nuxt: Do not pass prefetched class to custom link (#7522)
-
cli: Improved self-signed certificate for
nuxi dev --https(#7545) -
vite:
nuxi dev --httpsworking out of the box (#7547) -
schema: Update resolver for
cssSourceMapwith newsourcemapformat [bridge] (#7541) - nuxt: Pass fully resolved path to nitro dist files (#7494)
-
nuxt: Remove modulepreload for spa fallback routes with
ssr:true(#7553) - schema: Only disallow vite server port and host (#7554)
-
nuxi, vite: Ipv6 support for
nuxi dev(#7560) - cli: Print resolved public directory after generate (#7577)
- nuxt: Load payload after middleware and once final route is resolved (#7574)
-
nuxt: Keep
statein the initial state instead of extracting it (#7567) - vite: Normalize vite-node error data from server (#7589)
-
vite: Include id and stack in
vite-nodefallback error handler (#7575) -
vite: Respect
ctx.nuxt.options.modulesDirfor resolving externals withvite-node(#7612) -
nuxt: Add missing
process.clientfor early redirect innavigateTo(#7625) - vite-node: Include importer in error stack (#7607)
- vite, webpack: Avoid generating keys where a key is already provided (#7622)
- vite, webpack: Handle auto keys for composables without args (#7651)
- nuxt: Don't tree shake client-only fallback templates (#7659)
-
nuxt: Strip non-
.vueextensions from component types (#7673) -
nuxt: Only observe tag elements for
<NuxtLink>prefetching (#7679) - nuxi, vite: Support HTTPS with custom domain and HMR (#7680)
📖 Documentation
- Update auto-imports link (#7530)
- Add note about link prefetching (#7540)
- Improve NuxtLink prefetch explanation (#7540)
- Add testing and
addComponentto modules and updateaddImports(#7543) - Fix typo on directory-structure/pages (#7601)
- Fix typo in custom router example (8621c860)
- Fix typo in nitro options in wasm example (#7639)
- Add
addImportsSourcesto list of kit utils (#7636) -
api: Add
defineNuxtComponentpage (#7618) - testing: Move modules testing section to module authors guide (#7643)
- getting-started: Add views page (#7556)
❤️ Contributors
- Alexander Lichter
- Alper Doğan
- Chenying
- Clément Ollivier
- Damian Głowala
- Daniel Roe
- Julien Huang
- Krutie Patel
- Lexpeartha
- Pooya Parsa
- YIngChenIt
v3.0.0-rc.10
💬 Join the release discussion
🚀 How to Upgrade
Note Make sure to recreate the lock file in the project in case of any issues after the upgrade.
-
Automated:
npx nuxi@latest upgrade --force -
Manual: Bump
nuxtdependency to3.0.0-rc.10and then usenpx nuxi@latest cleanupto cleanup any local caches
⭐ What is new?
Critical Styles are Inlined
Global styles and used component styles are now automatically inlined when server-side rendering a page. This feature helps to improve the First Contentful Paint (FCP) metric.
🧪 You can disable the feature from nuxt.config using experimental: { inlineSSRStyles: false } in case of any issues.
Full Static Generation with Payload Rendering
In Nuxt 2, we introduced an amazing feature called Full Static Generation. When using nuxt generate, the payload of each page containing asyncData and state is extracted to a .js chunk and we can deploy output to any static hosting without requiring a hosted API server. This feature also introduced performance benefits to reduce page size and allow smartly prefetching payload of next pages ahead of time when using nuxt generate but kept limited to it.
This feature is now back in Nuxt 3 but much better! Payload is not only extracted during prerendering phase (nuxt generate) but also can be rendered on demand by simply appending /_payload.js to the end of any URL. This made implementation much simpler and also unlocks future development to enable payload rendering for hybrid static server and incremental generated pages. Followup #6411 for the roadmap.
Link Prefetching
Another goodie ported from Nuxt 2, is automatically prefetching the next pages when a <NuxtLink> is in the viewport.
This feature is integrated with vue-router to prefetch components of the next route and also payload extraction to prefetch the payload of the next pages ahead of time! You can also hook into link:prefetch to do more prefetches.
Better Workspace Support
Nuxt has several configurations for directories including rootDir where nuxt.config, package.json, etc is, and srcDir which is the same as rootDir by default but can be customized to move project code such as pages/ to the src/ directory. With Monorepo becoming more popular, it became clear we need another new option to act smarter in a monorepo.
We have introduced a new workspaceDir configuration. It is automatically detected from rootDir using different heuristics (how?). This option is used to extend the search path for node_modules via #7439 but we will keep spreading its use in other places.
🧪 You can manually set workspaceDir from nuxt.config in case of any issues.
defineNuxtConfig is Auto Imported
Nuxt uses unjs/jiti in order to support typescript and ESM syntax for nuxt.config.
When importing { defineNuxtConfig } from 'nuxt' in Nuxt 3, it causes the whole nuxt package to be loaded. It was making startup time slower.
We have introduced a new nuxt/config subpath export that only exports defineNuxtConfig for type support but you don't even need this anymore! Just remove import and enjoy shorter syntax!
-- import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
})
More Powerful nuxt init
We have switched to unjs/giget for a much more powerful template init engine.
Normally nuxi init command should work as it was before. If you were using nuxt init org/repo to clone the 3rd party GitHub repository, you should use nuxi init gh:org/repo now.
Experimental Zero-Client-JS Mode
This new experimental flag allows turning off all Nuxt client js code when server-side rendering a page.
Using this feature is advisable for the very small minority of sites that would not benefit from client-side JS.
You can try this feature by setting experimental: { noScripts: true } and let us know what you think!
Changelog
🚀 Enhancements
- nuxt, vite: Inline global and component styles in server response (#7160)
-
nuxt: Custom
historyandroutesforapp/router.options.ts(#7129) - nuxt: Router with hash mode (#6980)
- nuxt: Allow extending routes with custom alias (#7074)
-
test-utils: Add
mockFnandmockLoggerutils (#6235) - nuxt: Support experimental flag to render no client-side js (#7248)
-
kit: Add
addImportsSourcesutility (#7270) -
nuxt: Add
immediateoption foruseAsyncDataanduseFetch(#5500) -
nuxt: Add
clearNuxtData(#5227) - Allow client-side sourcemaps in production (#7313)
-
nuxt: Filter support for
clearNuxtData(#7323) -
cli: Switch to
unjs/gigetfornuxi init(#7361) -
cli: ⚠️ Use giget 0.1x with template registry for
nuxi init(#7404) - nuxt: Payload rendering support (#6455)
- nuxt: Allow exposing type augmentations from extends layers (#7442)
-
nuxt: Add
workspaceDiroption and add it tomodulesDir(#7439) -
nuxt: Support prefetching
<nuxt-link>(#4329) -
nuxt: Allow passing transition & keepalive props to
<NuxtPage>(#7492) -
nuxt, kit: Auto import
defineNuxtConfig(#7497) -
nuxt: Generate spa fallback for
nuxt generate(#7507)
🔥 Performance
-
nuxt: Cache
createClientOnlywrapper using weakmap (#7297) - vite: Remove duplicate css links from rendered page when inlined (#7264)
- nuxt: Only inject preload helper when webpack is used (#7460)
-
nuxt: Import
defineNuxtConfigfromnuxt/config(#7485) - Enable
treeshakeClientOnlyflag by default (#7484)
🩹 Fixes
-
nuxt: Update default redirect code of
navigateToto302 Found(#7189) -
head: Case
http-equivcorrectly (#7190) -
kit, nuxi: Semver regexp to support
nuxt-edgecurrent releases (bridge) (#7193) - vite: Use baseURL + assetsDir as base in dev mode (#7234)
-
vite: Pass ssr condition to
getModuleByUrl(#7260) - nuxt: Import and wrap client-only components once (#7245)
-
cli: Pass value of
httpsthrough to vite-node (#7271) - nuxt: Don't override payload error if it is present (#7290)
- nuxt: Don't try to set cookie after redirect (#7288)
-
webpack: Promisify webpack dev/hot handlers using
h3.promisifyHandler(#7275) - schema: Disallow setting vite server properties (#7317)
- schema: Mark vite server as optional (#7327)
-
nuxt: Allow
abortMiddlewareto receive a nuxt error or error options (#7335) - webpack: Don't parse styles for composable keys (#7333)
- vite: Allow overriding vite sourcemap (#7342)
-
schema: Resolve
ssr(#7359) -
kit: Add default config layer without
nuxt.configfile (#7358) - vite: Update render if it is invalidated (#7347)
- vite: Warmup improvements (#7377)
- cli: Don't include an array of paths within an array (#7378)
- vite: Write dev manifest before spa build (#7380)
- nuxt: De-default layout/component imports (#7389)
- nuxt: Always inline entry styles (#7386)
- nuxt: Do not apply import protection to top-level resolution (#7344)
-
nuxt: Use more specific
FetchErrorforuseFetcherrors (#7435) - vite: Use same asset filenames between server and client (#7436)
-
nuxt: Augment GlobalComponents from
@vue/runtime-core(#7448) - vite: Don't fail builds for virtual modules that don't support inlining (#7440)
- nuxt: Only delete assets when building (#7486)
- vite: Show formatted vite-node errors (#7509)
-
vite: Disable server warmup with
vite-node(#7512)
💅 Refactors
- vite: Reuse resolved server entry from context (#7268)
- schema: Upgrade to untyped 0.5 (#7452)
- nuxt: Use relative imports into composables (#7487)
📖 Documentation
- Add note about
useFetchauto generated key (#7044) -
api: Enhance
useHeadcomposable (#7072) - Add note about fetching data on initial load (#7120)
- Document
externaloption ofnavigateTo(#7188) -
guide: Add
.clientand.servercomponents (#7084) - Fix markdown file name (#7231)
- api: Navigate to first item in list (#7232)
- Extend description of server handlers (#7187)
- api: Add example for fetch interceptors (#7180)
- deploy: Add node cluster mode (#7089)
-
api: Fix
useAsyncDatasignature (#7242) - Add
app-configexample (#7247) - Fix typo (#7262)
- Fix typo in url (#7272)
- Rename
AppConfigtoAppConfigInput(#7293) - api: Fix typo in use-fetch (#7310)
-
api: Add
nuxi preparecommand (#7349) - head: Enhance usehead and fix broken links (#7364)
- Remove duplicate word (#7387)
-
api: Add
useRuntimeConfigpage (#7406) - Fix typo (#7437)
- Update structure (#7047)
- Update name of the generated
imports.d.tsfile (#7474) - getting-started: Add routing page (#7495)
- Update codesandbox link (#7499)
-
schema: Change
srcDirexample tosrc/(#7503)
🏡 Chore
- Update CodeSandbox links (#7318)
📦 Build
-
cli: Add
nodeto export conditions (0cc49e2a)
✅ Tests
- Use semantic
runIfandskipIfhelpers (#7312) - nuxt: Add tests for import protection plugin (#7416)
🤖 CI
- Crawl docs site for new deployments to track broken links (#7473)
❤️ Contributors
- Adewale Abati
- Alex Kozack
- Alex Liu
- Alexander Lichter
- AndreyYolkin
- Anthony Fu
- Clément Ollivier
- Corey Richardson
- Damian Głowala
- Daniel Roe
- Harlan Wilton
- HomWang
- Julien Huang
- Krutie Patel
- Kévin Schnekenburger
- Leon Si
- Mahdi Boomeri
- Mastercuber
- Pooya Parsa
- Ricardo Gobbo De Souza
- Sébastien Chopin
- Tobias Diez
- Tobias SN
- Vasily Stepanov
- Victorkwok97
- Vl4dimyr
postcss/autoprefixer
v10.4.12
- Fixed support of unit-less zero angle in backgrounds (by 一丝).
v10.4.11
- Fixed
text-decorationprefixes by moving to MDN data (by Romain Menke).
v10.4.10
- Fixed
unicode-bidiprefixes by moving to MDN data.
v10.4.9
- Fixed
css-unicode-bidiissue from latest Can I Use.
postcss/postcss
v8.4.16
- Fixed
RootAST migration.
v8.4.15
- Fixed AST normalization after using custom parser with old PostCSS AST.
csstools/postcss-plugins (postcss-custom-properties)
v12.1.9
- Prevent duplicate code generation.
.foo {
order: 1;
order: var(--my-order, 1);
}
/* becomes */
.foo {
order: 1;
- order: 1;
order: var(--my-order, 1);
}
vitest-dev/vitest
v0.23.4
🚀 Features
- Give helpful message, when using vi.mock - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2047
- benchmark: Only mode - by @Aslemammad in https://github.com/vitest-dev/vitest/issues/2039
🐞 Bug Fixes
- Move outputFile to benchmark, allow --reporter for benchmark - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2037
- cli: Forward node wasm flags - by @Peeterush in https://github.com/vitest-dev/vitest/issues/2041
-
coverage:
istanbul-reportsto supportprojectRoot- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2051
View changes on GitHub
v0.23.2
🚀 Features
- Added fastify example - by @irvile in https://github.com/vitest-dev/vitest/issues/1991
- bench: Improve summary - by @antfu (d0167)
🐞 Bug Fixes
- Update tinybench to 2.1.5 - by @Aslemammad in https://github.com/vitest-dev/vitest/issues/1990
-
bench:
- Rank sorting, fix #2006 - by @nickmccurdy in https://github.com/vitest-dev/vitest/issues/2007
- Do not group benchmarks - by @Aslemammad and @antfu in https://github.com/vitest-dev/vitest/issues/2016
View changes on GitHub
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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.