From a49ce7f494d5303442f246add7f94078f899ab75 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Tue, 1 Aug 2023 22:47:31 +0300 Subject: [PATCH 01/16] perf(nuxt): experimental support of `capo.js` head tag order (#22431) --- packages/nuxt/package.json | 4 +- packages/nuxt/src/head/module.ts | 4 + .../nuxt/src/head/runtime/plugins/capo.ts | 9 + packages/schema/package.json | 2 +- packages/schema/src/config/experimental.ts | 7 +- pnpm-lock.yaml | 195 +++++++++++++++--- test/bundle.test.ts | 4 +- 7 files changed, 187 insertions(+), 38 deletions(-) create mode 100644 packages/nuxt/src/head/runtime/plugins/capo.ts diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index ba75460eec..b09eb26977 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -58,8 +58,8 @@ "@nuxt/telemetry": "^2.3.2", "@nuxt/ui-templates": "^1.3.1", "@nuxt/vite-builder": "workspace:../vite", - "@unhead/ssr": "^1.1.35", - "@unhead/vue": "^1.1.35", + "@unhead/ssr": "^1.2.1", + "@unhead/vue": "^1.2.1", "@vue/shared": "^3.3.4", "acorn": "8.10.0", "c12": "^1.4.2", diff --git a/packages/nuxt/src/head/module.ts b/packages/nuxt/src/head/module.ts index fa8f83118d..dfbba3cc31 100644 --- a/packages/nuxt/src/head/module.ts +++ b/packages/nuxt/src/head/module.ts @@ -54,6 +54,10 @@ export default defineNuxtModule({ addPlugin({ src: resolve(runtimeDir, 'plugins/vueuse-head-polyfill') }) } + if (nuxt.options.experimental.headCapoPlugin) { + addPlugin({ src: resolve(runtimeDir, 'plugins/capo') }) + } + // Add library-specific plugin addPlugin({ src: resolve(runtimeDir, 'plugins/unhead') }) } diff --git a/packages/nuxt/src/head/runtime/plugins/capo.ts b/packages/nuxt/src/head/runtime/plugins/capo.ts new file mode 100644 index 0000000000..548a6e5bd4 --- /dev/null +++ b/packages/nuxt/src/head/runtime/plugins/capo.ts @@ -0,0 +1,9 @@ +import { CapoPlugin, injectHead } from '@unhead/vue' +import { defineNuxtPlugin } from '#app/nuxt' + +export default defineNuxtPlugin({ + name: 'nuxt:head:capo', + setup () { + injectHead().use(CapoPlugin()) + } +}) diff --git a/packages/schema/package.json b/packages/schema/package.json index 2379d5f0c7..a1a285381a 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -30,7 +30,7 @@ "@types/file-loader": "5.0.1", "@types/pug": "2.0.6", "@types/sass-loader": "8.0.5", - "@unhead/schema": "1.1.35", + "@unhead/schema": "1.2.1", "@vitejs/plugin-vue": "4.2.3", "@vitejs/plugin-vue-jsx": "3.0.1", "@vue/compiler-core": "3.3.4", diff --git a/packages/schema/src/config/experimental.ts b/packages/schema/src/config/experimental.ts index 5399ed7724..f81a145311 100644 --- a/packages/schema/src/config/experimental.ts +++ b/packages/schema/src/config/experimental.ts @@ -207,6 +207,11 @@ export default defineUntypedSchema({ * @see https://github.com/parcel-bundler/watcher * @type {'chokidar' | 'parcel' | 'chokidar-granular'} */ - watcher: 'chokidar-granular' + watcher: 'chokidar-granular', + + /** + * Add the CAPO head plugin in order to render tags in of the head in a more performant way. + */ + headCapoPlugin: false } }) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 21820af6f9..466ff6aa95 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -359,11 +359,11 @@ importers: specifier: ^14.18.0 || >=16.10.0 version: 18.17.1 '@unhead/ssr': - specifier: ^1.1.35 - version: 1.1.35 + specifier: ^1.2.1 + version: 1.2.1 '@unhead/vue': - specifier: ^1.1.35 - version: 1.1.35(vue@3.3.4) + specifier: ^1.2.1 + version: 1.2.1(vue@3.3.4) '@vue/shared': specifier: ^3.3.4 version: 3.3.4 @@ -568,8 +568,8 @@ importers: specifier: 8.0.5 version: 8.0.5 '@unhead/schema': - specifier: 1.1.35 - version: 1.1.35 + specifier: 1.2.1 + version: 1.2.1 '@vitejs/plugin-vue': specifier: 4.2.3 version: 4.2.3(vite@4.4.7)(vue@3.3.4) @@ -988,7 +988,7 @@ importers: version: 1.1.1 vitest: specifier: latest - version: 0.33.0(happy-dom@10.5.2) + version: 0.34.0(happy-dom@10.5.2) vue: specifier: 3.3.4 version: 3.3.4 @@ -2789,41 +2789,41 @@ packages: eslint-visitor-keys: 3.4.2 dev: true - /@unhead/dom@1.1.35: - resolution: {integrity: sha512-/VAwHHiZGHAKS9V0JaYBWxIBc8OpPMfjVk0TRcKoerFCmYRMsuWtpWauWx644j177kCbzCCT1HOA2fB7R07uXQ==} + /@unhead/dom@1.2.1: + resolution: {integrity: sha512-Kjo6bJpo2RFUlhPq/fGQbUpTdfNSwbwg3vjMmqxCPcTWg87sv+a3kNnIP3c/CV0Sc34OsMY/0Melx+0BAu937g==} dependencies: - '@unhead/schema': 1.1.35 - '@unhead/shared': 1.1.35 + '@unhead/schema': 1.2.1 + '@unhead/shared': 1.2.1 dev: false - /@unhead/schema@1.1.35: - resolution: {integrity: sha512-hB1uHbK38+WoZn2PHRl0eJJ2Lip374+eHHxUbHY4rFQeL4mTgxAFL0KltpMZr5Eo7ZMV/zNL7LZ89KBd9L43Zg==} + /@unhead/schema@1.2.1: + resolution: {integrity: sha512-b0NVAXqFEP2K5Tu3Zkv+MUGnwDMjetEEa8Dw4i0z4rrO3J5Kg1TCp4C+wWCx2d8M6US6yI1TE636K9ll8WophQ==} dependencies: hookable: 5.5.3 zhead: 2.0.10 - /@unhead/shared@1.1.35: - resolution: {integrity: sha512-SmR2tyAVYfvN+bPp71Bp4igHpv19X6VAoVP14qq3Yqdw1nWJKknla2QEkpqAgygit9b69Gyu+Wi5WABpZKUA+A==} + /@unhead/shared@1.2.1: + resolution: {integrity: sha512-tZa/vm2LKoaduPIaol/lQQSX1eY0YCqoktHDO+Vyc9hhoT/oqP2L9LbUjgunQysxbAPKLsgqS0rrXGP+j1fShw==} dependencies: - '@unhead/schema': 1.1.35 + '@unhead/schema': 1.2.1 dev: false - /@unhead/ssr@1.1.35: - resolution: {integrity: sha512-VFIWcqGX358v05tzEPgZ8N7YhAhrrGxeecmRVE/jHtwimKCXa/xsQnhHe5ytswDiuTCTd/qBHEqVTVg8tGseUg==} + /@unhead/ssr@1.2.1: + resolution: {integrity: sha512-Bho966xG896mfq/8QxN8kkWJhju+pwTZLc6Z3ixKUnYshXAYHocxRpbRJYGZaqnIDAFeIPX9pkhuXfQJ6NuAVA==} dependencies: - '@unhead/schema': 1.1.35 - '@unhead/shared': 1.1.35 + '@unhead/schema': 1.2.1 + '@unhead/shared': 1.2.1 dev: false - /@unhead/vue@1.1.35(vue@3.3.4): - resolution: {integrity: sha512-U0iM9B8pq06FS1DLK7g25+ddMqDnQkqy+fgQyC0Gv+e4m8XEKsI7JKSbzAjFnsG69orCKd8M6jvcOyst8gvn5g==} + /@unhead/vue@1.2.1(vue@3.3.4): + resolution: {integrity: sha512-UwL4SSn2Mwe6iNHg/KryDVGGPMp3PR56rl6l5j5+W3oii1E3ZgJk7sNUCcKrOkfITirU2IAkmdfiDfQdc0KTow==} peerDependencies: vue: '>=2.7 || >=3' dependencies: - '@unhead/schema': 1.1.35 - '@unhead/shared': 1.1.35 + '@unhead/schema': 1.2.1 + '@unhead/shared': 1.2.1 hookable: 5.5.3 - unhead: 1.1.35 + unhead: 1.2.1 vue: 3.3.4 dev: false @@ -2880,6 +2880,14 @@ packages: chai: 4.3.7 dev: true + /@vitest/expect@0.34.0: + resolution: {integrity: sha512-d1ZU0XomWFAFyYIc6uNuY0N8NJIWESyO/6ZmwLvlHZw0GevH4AEEpq178KjXIvSCrbHN0GnzYzitd0yjfy7+Ow==} + dependencies: + '@vitest/spy': 0.34.0 + '@vitest/utils': 0.34.0 + chai: 4.3.7 + dev: true + /@vitest/runner@0.33.0: resolution: {integrity: sha512-UPfACnmCB6HKRHTlcgCoBh6ppl6fDn+J/xR8dTufWiKt/74Y9bHci5CKB8tESSV82zKYtkBJo9whU3mNvfaisg==} dependencies: @@ -2888,6 +2896,14 @@ packages: pathe: 1.1.1 dev: true + /@vitest/runner@0.34.0: + resolution: {integrity: sha512-xaqM+oArJothtYXzy/dwu/iHe93Khq5QkvnYbzTxiLA0enD2peft1cask3yE6cJpwMkr7C2D1uMJwnTt4mquDw==} + dependencies: + '@vitest/utils': 0.34.0 + p-limit: 4.0.0 + pathe: 1.1.1 + dev: true + /@vitest/snapshot@0.33.0: resolution: {integrity: sha512-tJjrl//qAHbyHajpFvr8Wsk8DIOODEebTu7pgBrP07iOepR5jYkLFiqLq2Ltxv+r0uptUb4izv1J8XBOwKkVYA==} dependencies: @@ -2896,12 +2912,26 @@ packages: pretty-format: 29.6.2 dev: true + /@vitest/snapshot@0.34.0: + resolution: {integrity: sha512-eGN5XBZHYOghxCOQbf8dcn6/3g7IW77GOOOC/mNFYwRXsPeoQgcgWnhj+6wgJ04pVv25wpxWL9jUkzaQ7LoFtg==} + dependencies: + magic-string: 0.30.2 + pathe: 1.1.1 + pretty-format: 29.6.2 + dev: true + /@vitest/spy@0.33.0: resolution: {integrity: sha512-Kv+yZ4hnH1WdiAkPUQTpRxW8kGtH8VRTnus7ZTGovFYM1ZezJpvGtb9nPIjPnptHbsyIAxYZsEpVPYgtpjGnrg==} dependencies: tinyspy: 2.1.1 dev: true + /@vitest/spy@0.34.0: + resolution: {integrity: sha512-0SZaWrQvL9ZiF/uJvyWSvsKjfuMvD1M6dE5BbE4Dmt8Vh3k4htwCV8g3ce8YOYmJSxkbh6TNOpippD6NVsxW6w==} + dependencies: + tinyspy: 2.1.1 + dev: true + /@vitest/ui@0.33.0(vitest@0.33.0): resolution: {integrity: sha512-7gbAjLqt30R4bodkJAutdpy4ncv+u5IKTHYTow1c2q+FOxZUC9cKOSqMUxjwaaTwLN+EnDnmXYPtg3CoahaUzQ==} peerDependencies: @@ -2925,6 +2955,14 @@ packages: pretty-format: 29.6.2 dev: true + /@vitest/utils@0.34.0: + resolution: {integrity: sha512-IktrDLhBKf3dEUUxH+lcHiPnaw952+GdGvoxg99liMscgP6IePf6LuMY7B9dEIHkFunB1R8VMR/wmI/4UGg1aw==} + dependencies: + diff-sequences: 29.4.3 + loupe: 2.3.6 + pretty-format: 29.6.2 + dev: true + /@volar/language-core@1.10.0: resolution: {integrity: sha512-ddyWwSYqcbEZNFHm+Z3NZd6M7Ihjcwl/9B5cZd8kECdimVXUFdFi60XHWD27nrWtUQIsUYIG7Ca1WBwV2u2LSQ==} dependencies: @@ -6165,7 +6203,7 @@ packages: graceful-fs: 4.2.11 /jstransformer@1.0.0: - resolution: {integrity: sha512-C9YK3Rf8q6VAPDCCU9fnqo3mAfOH6vUGnMcP4AQAYIEpWtfGLpwOTmZ+igtdK5y+VvI2n3CyYSzy4Qh34eq24A==} + resolution: {integrity: sha1-7Yvwkh4vPx7U1cGkT2hwntJHIsM=} dependencies: is-promise: 2.2.2 promise: 7.3.1 @@ -8459,6 +8497,11 @@ packages: engines: {node: '>=14.0.0'} dev: true + /tinypool@0.7.0: + resolution: {integrity: sha512-zSYNUlYSMhJ6Zdou4cJwo/p7w5nmAH17GRfU/ui3ctvjXFErXXkruT4MWW6poDeXgCaIBlGLrfU6TbTXxyGMww==} + engines: {node: '>=14.0.0'} + dev: true + /tinyspy@2.1.1: resolution: {integrity: sha512-XPJL2uSzcOyBMky6OFrusqWlzfFrXtE0hPuMgW8A2HmaqrPo4ZQHRN/V0QXN3FSjKxpsbRrFc5LI7KOwBsT1/w==} engines: {node: '>=14.0.0'} @@ -8488,7 +8531,7 @@ packages: engines: {node: '>=0.6'} /token-stream@1.0.0: - resolution: {integrity: sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg==} + resolution: {integrity: sha1-zCAOqyYT9BZtJ/+a/HylbUnfbrQ=} dev: false /totalist@1.1.0: @@ -8662,12 +8705,12 @@ packages: node-fetch-native: 1.2.0 pathe: 1.1.1 - /unhead@1.1.35: - resolution: {integrity: sha512-YEHXxJeSM313yPRcJdBQOSCnkcck1uhg7e2ZoEO+X0KVLuhqV1iYXU+tzvLU+ZId6IZOcEVDfsJ0hHfLkM6Itw==} + /unhead@1.2.1: + resolution: {integrity: sha512-Ox00j8my2mcTa5RtCbLexuIUAOxAQnQ2z/t8l7lHcAw4f5Ewq8vLaRYg/2Y+2WAXVC4ab+am2kYf/Sjj6VBpSw==} dependencies: - '@unhead/dom': 1.1.35 - '@unhead/schema': 1.1.35 - '@unhead/shared': 1.1.35 + '@unhead/dom': 1.2.1 + '@unhead/schema': 1.2.1 + '@unhead/shared': 1.2.1 hookable: 5.5.3 dev: false @@ -8860,6 +8903,28 @@ packages: - supports-color - terser + /vite-node@0.34.0(@types/node@18.17.1): + resolution: {integrity: sha512-rGZMvpb052rjUwJA/a17xMfOibzNF7byMdRSTcN2Lw8uxX08s5EfjWW5mBkm3MSFTPctMSVtT2yC+8ShrZbT5g==} + engines: {node: '>=v14.18.0'} + hasBin: true + dependencies: + cac: 6.7.14 + debug: 4.3.4 + mlly: 1.4.0 + pathe: 1.1.1 + picocolors: 1.0.0 + vite: 4.4.7(@types/node@18.17.1) + transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + dev: true + /vite-plugin-checker@0.6.1(eslint@8.46.0)(typescript@5.1.6)(vite@4.4.7)(vue-tsc@1.8.8): resolution: {integrity: sha512-4fAiu3W/IwRJuJkkUZlWbLunSzsvijDf0eDN6g/MGh6BUK4SMclOTGbLJCPvdAcMOQvVmm8JyJeYLYd4//8CkA==} engines: {node: '>=14.16'} @@ -9047,6 +9112,72 @@ packages: - terser dev: true + /vitest@0.34.0(happy-dom@10.5.2): + resolution: {integrity: sha512-8Pnc1fVt1P6uBncdUZ++hgiJGgxIRKuz4bmS/PQziaEcUj0D1g9cGiR1MbLrcsvFTC6fgrqDhYoTAdBG356WMA==} + engines: {node: '>=v14.18.0'} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@vitest/browser': '*' + '@vitest/ui': '*' + happy-dom: '*' + jsdom: '*' + playwright: '*' + safaridriver: '*' + webdriverio: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + playwright: + optional: true + safaridriver: + optional: true + webdriverio: + optional: true + dependencies: + '@types/chai': 4.3.5 + '@types/chai-subset': 1.3.3 + '@types/node': 18.17.1 + '@vitest/expect': 0.34.0 + '@vitest/runner': 0.34.0 + '@vitest/snapshot': 0.34.0 + '@vitest/spy': 0.34.0 + '@vitest/utils': 0.34.0 + acorn: 8.10.0 + acorn-walk: 8.2.0 + cac: 6.7.14 + chai: 4.3.7 + debug: 4.3.4 + happy-dom: 10.5.2 + local-pkg: 0.4.3 + magic-string: 0.30.2 + pathe: 1.1.1 + picocolors: 1.0.0 + std-env: 3.3.3 + strip-literal: 1.0.1 + tinybench: 2.5.0 + tinypool: 0.7.0 + vite: 4.4.7(@types/node@18.17.1) + vite-node: 0.34.0(@types/node@18.17.1) + why-is-node-running: 2.2.2 + transitivePeerDependencies: + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + dev: true + /void-elements@3.1.0: resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} engines: {node: '>=0.10.0'} diff --git a/test/bundle.test.ts b/test/bundle.test.ts index 3f6ea0c161..dc1ddc8722 100644 --- a/test/bundle.test.ts +++ b/test/bundle.test.ts @@ -35,7 +35,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"64.4k"') const modules = await analyzeSizes('node_modules/**/*', serverDir) - expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"2330k"') + expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"2331k"') const packages = modules.files .filter(m => m.endsWith('package.json')) @@ -95,7 +95,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"370k"') const modules = await analyzeSizes('node_modules/**/*', serverDir) - expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"591k"') + expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"593k"') const packages = modules.files .filter(m => m.endsWith('package.json')) From 586e1ba3ee8c788a5fb6eb03221960c43dbc347b Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Wed, 2 Aug 2023 09:31:22 +0200 Subject: [PATCH 02/16] docs: document `NuxtIsland` (#22434) --- docs/3.api/2.components/8.nuxt-island.md | 50 +++++++++++++++++++ .../{8.teleports.md => 9.teleports.md} | 0 2 files changed, 50 insertions(+) create mode 100644 docs/3.api/2.components/8.nuxt-island.md rename docs/3.api/2.components/{8.teleports.md => 9.teleports.md} (100%) diff --git a/docs/3.api/2.components/8.nuxt-island.md b/docs/3.api/2.components/8.nuxt-island.md new file mode 100644 index 0000000000..6368506ec1 --- /dev/null +++ b/docs/3.api/2.components/8.nuxt-island.md @@ -0,0 +1,50 @@ +--- +title: "" +description: "Nuxt provides `` component to render a non-interactive component without any client JS" +--- + +# `` + +Nuxt provide `` to render components only server side. + +When rendering an island component, the content of the island component is static, thus no JS is downloaded client-side. +Changing the island component props triggers a refetch of the island component to re-render it again. + +::alert{type=warning} +This component is experimental and in order to use it you must enable the `experimental.componentsIsland` option in your `nuxt.config`. +:: + +::alert{type=info} +Global styles of your application are sent with the response +:: + +::alert{type=info} +Server only components use `` under the hood +:: + +## Props + +- **name** : Name of the component to render. + - **type**: `string` + - **required** +- **lazy**: Make the component non-blocking. + - **type**: `boolean` + - **default**: `false` +- **props**: Props to send to the component to render. + - **type**: `Record` +- **source**: Remote source to call the island to render. + - **type**: `string` + +::alert{type=warning} +Remote islands need `experimental.componentsIsland` to be `'local+remote'` in your `nuxt.config`. +:: + +## `Slots` + +Slots can be passed to an island component if declared. + +Every slot is interactive since the parent component is the one providing it. + +Some slots are reserved to `NuxtIsland` for special cases. + +- **fallback**: Specify the content to be rendered before the island loads (if the component is lazy) or if `NuxtIsland` fails to fetch the component. diff --git a/docs/3.api/2.components/8.teleports.md b/docs/3.api/2.components/9.teleports.md similarity index 100% rename from docs/3.api/2.components/8.teleports.md rename to docs/3.api/2.components/9.teleports.md From 7489b7d7cc88dd279eb5a26982738985a99a3a97 Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Wed, 2 Aug 2023 12:17:27 +0200 Subject: [PATCH 03/16] fix(nuxt): print name of missing island component (#22440) --- packages/nuxt/src/app/components/island-renderer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/app/components/island-renderer.ts b/packages/nuxt/src/app/components/island-renderer.ts index 07f5409803..421e3863ab 100644 --- a/packages/nuxt/src/app/components/island-renderer.ts +++ b/packages/nuxt/src/app/components/island-renderer.ts @@ -18,7 +18,7 @@ export default defineComponent({ if (!component) { throw createError({ statusCode: 404, - statusMessage: `Island component not found: ${JSON.stringify(component)}` + statusMessage: `Island component not found: ${props.context.name}` }) } From ac93558aa6a2b8d3fa513a4365085717870963b8 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Thu, 3 Aug 2023 09:15:43 +0300 Subject: [PATCH 04/16] fix(nuxt): broken capo.js `injectHead` usage (#22447) --- packages/nuxt/package.json | 4 +- .../nuxt/src/head/runtime/plugins/capo.ts | 6 +- packages/schema/package.json | 2 +- packages/schema/src/config/experimental.ts | 4 +- pnpm-lock.yaml | 106 +++++++++--------- test/bundle.test.ts | 2 +- test/fixtures/basic/nuxt.config.ts | 3 +- 7 files changed, 65 insertions(+), 62 deletions(-) diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index b09eb26977..34cbdf652b 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -58,8 +58,8 @@ "@nuxt/telemetry": "^2.3.2", "@nuxt/ui-templates": "^1.3.1", "@nuxt/vite-builder": "workspace:../vite", - "@unhead/ssr": "^1.2.1", - "@unhead/vue": "^1.2.1", + "@unhead/ssr": "^1.2.2", + "@unhead/vue": "^1.2.2", "@vue/shared": "^3.3.4", "acorn": "8.10.0", "c12": "^1.4.2", diff --git a/packages/nuxt/src/head/runtime/plugins/capo.ts b/packages/nuxt/src/head/runtime/plugins/capo.ts index 548a6e5bd4..3623a51885 100644 --- a/packages/nuxt/src/head/runtime/plugins/capo.ts +++ b/packages/nuxt/src/head/runtime/plugins/capo.ts @@ -1,9 +1,9 @@ -import { CapoPlugin, injectHead } from '@unhead/vue' +import { CapoPlugin } from '@unhead/vue' import { defineNuxtPlugin } from '#app/nuxt' export default defineNuxtPlugin({ name: 'nuxt:head:capo', - setup () { - injectHead().use(CapoPlugin()) + setup (nuxtApp) { + nuxtApp.vueApp._context.provides.usehead.use(CapoPlugin({ track: true })) } }) diff --git a/packages/schema/package.json b/packages/schema/package.json index a1a285381a..9c467d1f48 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -30,7 +30,7 @@ "@types/file-loader": "5.0.1", "@types/pug": "2.0.6", "@types/sass-loader": "8.0.5", - "@unhead/schema": "1.2.1", + "@unhead/schema": "1.2.2", "@vitejs/plugin-vue": "4.2.3", "@vitejs/plugin-vue-jsx": "3.0.1", "@vue/compiler-core": "3.3.4", diff --git a/packages/schema/src/config/experimental.ts b/packages/schema/src/config/experimental.ts index f81a145311..3eb28b2973 100644 --- a/packages/schema/src/config/experimental.ts +++ b/packages/schema/src/config/experimental.ts @@ -210,7 +210,9 @@ export default defineUntypedSchema({ watcher: 'chokidar-granular', /** - * Add the CAPO head plugin in order to render tags in of the head in a more performant way. + * Add the capo.js head plugin in order to render tags in of the head in a more performant way. + * + * @see https://rviscomi.github.io/capo.js/user/rules/ */ headCapoPlugin: false } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 466ff6aa95..7ef0ed4983 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -359,11 +359,11 @@ importers: specifier: ^14.18.0 || >=16.10.0 version: 18.17.1 '@unhead/ssr': - specifier: ^1.2.1 - version: 1.2.1 + specifier: ^1.2.2 + version: 1.2.2 '@unhead/vue': - specifier: ^1.2.1 - version: 1.2.1(vue@3.3.4) + specifier: ^1.2.2 + version: 1.2.2(vue@3.3.4) '@vue/shared': specifier: ^3.3.4 version: 3.3.4 @@ -568,8 +568,8 @@ importers: specifier: 8.0.5 version: 8.0.5 '@unhead/schema': - specifier: 1.2.1 - version: 1.2.1 + specifier: 1.2.2 + version: 1.2.2 '@vitejs/plugin-vue': specifier: 4.2.3 version: 4.2.3(vite@4.4.7)(vue@3.3.4) @@ -988,7 +988,7 @@ importers: version: 1.1.1 vitest: specifier: latest - version: 0.34.0(happy-dom@10.5.2) + version: 0.34.1(happy-dom@10.5.2) vue: specifier: 3.3.4 version: 3.3.4 @@ -2789,41 +2789,41 @@ packages: eslint-visitor-keys: 3.4.2 dev: true - /@unhead/dom@1.2.1: - resolution: {integrity: sha512-Kjo6bJpo2RFUlhPq/fGQbUpTdfNSwbwg3vjMmqxCPcTWg87sv+a3kNnIP3c/CV0Sc34OsMY/0Melx+0BAu937g==} + /@unhead/dom@1.2.2: + resolution: {integrity: sha512-ohganmg4i1Dd4wwQ2A9oLWEkJNpJRoERJNmFgzmScw9Vi3zMqoS4gPIofT20zUR5rhyyAsFojuDPojJ5vKcmqw==} dependencies: - '@unhead/schema': 1.2.1 - '@unhead/shared': 1.2.1 + '@unhead/schema': 1.2.2 + '@unhead/shared': 1.2.2 dev: false - /@unhead/schema@1.2.1: - resolution: {integrity: sha512-b0NVAXqFEP2K5Tu3Zkv+MUGnwDMjetEEa8Dw4i0z4rrO3J5Kg1TCp4C+wWCx2d8M6US6yI1TE636K9ll8WophQ==} + /@unhead/schema@1.2.2: + resolution: {integrity: sha512-cGtNvadL76eGl7QxGjWHZxFqLv9a2VrmRpeEb1d7sm0cvnN0bWngdXDTdUyXzn7RVv/Um+/yae6eiT6A+pyQOw==} dependencies: hookable: 5.5.3 zhead: 2.0.10 - /@unhead/shared@1.2.1: - resolution: {integrity: sha512-tZa/vm2LKoaduPIaol/lQQSX1eY0YCqoktHDO+Vyc9hhoT/oqP2L9LbUjgunQysxbAPKLsgqS0rrXGP+j1fShw==} + /@unhead/shared@1.2.2: + resolution: {integrity: sha512-bWRjRyVzFsunih9GbHctvS8Aenj6KBe5ycql1JE4LawBL/NRYvCYUCPpdK5poVOqjYr0yDAf9m4JGaM2HwpVLw==} dependencies: - '@unhead/schema': 1.2.1 + '@unhead/schema': 1.2.2 dev: false - /@unhead/ssr@1.2.1: - resolution: {integrity: sha512-Bho966xG896mfq/8QxN8kkWJhju+pwTZLc6Z3ixKUnYshXAYHocxRpbRJYGZaqnIDAFeIPX9pkhuXfQJ6NuAVA==} + /@unhead/ssr@1.2.2: + resolution: {integrity: sha512-mpWSNNbrQFJZolAfdVInPPiSGUva08bK9UbNV1zgDScUz+p+FnRg4cj77X+PpVeJ0+KPgjXfOsI8VQKYt+buYA==} dependencies: - '@unhead/schema': 1.2.1 - '@unhead/shared': 1.2.1 + '@unhead/schema': 1.2.2 + '@unhead/shared': 1.2.2 dev: false - /@unhead/vue@1.2.1(vue@3.3.4): - resolution: {integrity: sha512-UwL4SSn2Mwe6iNHg/KryDVGGPMp3PR56rl6l5j5+W3oii1E3ZgJk7sNUCcKrOkfITirU2IAkmdfiDfQdc0KTow==} + /@unhead/vue@1.2.2(vue@3.3.4): + resolution: {integrity: sha512-AxOmY5JPn4fS34ovaivPnqg2my+InIkZDNSxCKfRkmbBtstFre/Fyf0d92Qfx0u8PJiSRPOjthEHx5vKDgTEJQ==} peerDependencies: vue: '>=2.7 || >=3' dependencies: - '@unhead/schema': 1.2.1 - '@unhead/shared': 1.2.1 + '@unhead/schema': 1.2.2 + '@unhead/shared': 1.2.2 hookable: 5.5.3 - unhead: 1.2.1 + unhead: 1.2.2 vue: 3.3.4 dev: false @@ -2880,11 +2880,11 @@ packages: chai: 4.3.7 dev: true - /@vitest/expect@0.34.0: - resolution: {integrity: sha512-d1ZU0XomWFAFyYIc6uNuY0N8NJIWESyO/6ZmwLvlHZw0GevH4AEEpq178KjXIvSCrbHN0GnzYzitd0yjfy7+Ow==} + /@vitest/expect@0.34.1: + resolution: {integrity: sha512-q2CD8+XIsQ+tHwypnoCk8Mnv5e6afLFvinVGCq3/BOT4kQdVQmY6rRfyKkwcg635lbliLPqbunXZr+L1ssUWiQ==} dependencies: - '@vitest/spy': 0.34.0 - '@vitest/utils': 0.34.0 + '@vitest/spy': 0.34.1 + '@vitest/utils': 0.34.1 chai: 4.3.7 dev: true @@ -2896,10 +2896,10 @@ packages: pathe: 1.1.1 dev: true - /@vitest/runner@0.34.0: - resolution: {integrity: sha512-xaqM+oArJothtYXzy/dwu/iHe93Khq5QkvnYbzTxiLA0enD2peft1cask3yE6cJpwMkr7C2D1uMJwnTt4mquDw==} + /@vitest/runner@0.34.1: + resolution: {integrity: sha512-YfQMpYzDsYB7yqgmlxZ06NI4LurHWfrH7Wy3Pvf/z/vwUSgq1zLAb1lWcItCzQG+NVox+VvzlKQrYEXb47645g==} dependencies: - '@vitest/utils': 0.34.0 + '@vitest/utils': 0.34.1 p-limit: 4.0.0 pathe: 1.1.1 dev: true @@ -2912,8 +2912,8 @@ packages: pretty-format: 29.6.2 dev: true - /@vitest/snapshot@0.34.0: - resolution: {integrity: sha512-eGN5XBZHYOghxCOQbf8dcn6/3g7IW77GOOOC/mNFYwRXsPeoQgcgWnhj+6wgJ04pVv25wpxWL9jUkzaQ7LoFtg==} + /@vitest/snapshot@0.34.1: + resolution: {integrity: sha512-0O9LfLU0114OqdF8lENlrLsnn024Tb1CsS9UwG0YMWY2oGTQfPtkW+B/7ieyv0X9R2Oijhi3caB1xgGgEgclSQ==} dependencies: magic-string: 0.30.2 pathe: 1.1.1 @@ -2926,8 +2926,8 @@ packages: tinyspy: 2.1.1 dev: true - /@vitest/spy@0.34.0: - resolution: {integrity: sha512-0SZaWrQvL9ZiF/uJvyWSvsKjfuMvD1M6dE5BbE4Dmt8Vh3k4htwCV8g3ce8YOYmJSxkbh6TNOpippD6NVsxW6w==} + /@vitest/spy@0.34.1: + resolution: {integrity: sha512-UT4WcI3EAPUNO8n6y9QoEqynGGEPmmRxC+cLzneFFXpmacivjHZsNbiKD88KUScv5DCHVDgdBsLD7O7s1enFcQ==} dependencies: tinyspy: 2.1.1 dev: true @@ -2955,8 +2955,8 @@ packages: pretty-format: 29.6.2 dev: true - /@vitest/utils@0.34.0: - resolution: {integrity: sha512-IktrDLhBKf3dEUUxH+lcHiPnaw952+GdGvoxg99liMscgP6IePf6LuMY7B9dEIHkFunB1R8VMR/wmI/4UGg1aw==} + /@vitest/utils@0.34.1: + resolution: {integrity: sha512-/ql9dsFi4iuEbiNcjNHQWXBum7aL8pyhxvfnD9gNtbjR9fUKAjxhj4AA3yfLXg6gJpMGGecvtF8Au2G9y3q47Q==} dependencies: diff-sequences: 29.4.3 loupe: 2.3.6 @@ -8705,12 +8705,12 @@ packages: node-fetch-native: 1.2.0 pathe: 1.1.1 - /unhead@1.2.1: - resolution: {integrity: sha512-Ox00j8my2mcTa5RtCbLexuIUAOxAQnQ2z/t8l7lHcAw4f5Ewq8vLaRYg/2Y+2WAXVC4ab+am2kYf/Sjj6VBpSw==} + /unhead@1.2.2: + resolution: {integrity: sha512-9wDuiso7YWNe0BTA5NGsHR0dtqn0YrL/5+NumfuXDxxYykavc6N27pzZxTXiuvVHbod8tFicsxA6pC9WhQvzqg==} dependencies: - '@unhead/dom': 1.2.1 - '@unhead/schema': 1.2.1 - '@unhead/shared': 1.2.1 + '@unhead/dom': 1.2.2 + '@unhead/schema': 1.2.2 + '@unhead/shared': 1.2.2 hookable: 5.5.3 dev: false @@ -8903,8 +8903,8 @@ packages: - supports-color - terser - /vite-node@0.34.0(@types/node@18.17.1): - resolution: {integrity: sha512-rGZMvpb052rjUwJA/a17xMfOibzNF7byMdRSTcN2Lw8uxX08s5EfjWW5mBkm3MSFTPctMSVtT2yC+8ShrZbT5g==} + /vite-node@0.34.1(@types/node@18.17.1): + resolution: {integrity: sha512-odAZAL9xFMuAg8aWd7nSPT+hU8u2r9gU3LRm9QKjxBEF2rRdWpMuqkrkjvyVQEdNFiBctqr2Gg4uJYizm5Le6w==} engines: {node: '>=v14.18.0'} hasBin: true dependencies: @@ -9112,8 +9112,8 @@ packages: - terser dev: true - /vitest@0.34.0(happy-dom@10.5.2): - resolution: {integrity: sha512-8Pnc1fVt1P6uBncdUZ++hgiJGgxIRKuz4bmS/PQziaEcUj0D1g9cGiR1MbLrcsvFTC6fgrqDhYoTAdBG356WMA==} + /vitest@0.34.1(happy-dom@10.5.2): + resolution: {integrity: sha512-G1PzuBEq9A75XSU88yO5G4vPT20UovbC/2osB2KEuV/FisSIIsw7m5y2xMdB7RsAGHAfg2lPmp2qKr3KWliVlQ==} engines: {node: '>=v14.18.0'} hasBin: true peerDependencies: @@ -9146,11 +9146,11 @@ packages: '@types/chai': 4.3.5 '@types/chai-subset': 1.3.3 '@types/node': 18.17.1 - '@vitest/expect': 0.34.0 - '@vitest/runner': 0.34.0 - '@vitest/snapshot': 0.34.0 - '@vitest/spy': 0.34.0 - '@vitest/utils': 0.34.0 + '@vitest/expect': 0.34.1 + '@vitest/runner': 0.34.1 + '@vitest/snapshot': 0.34.1 + '@vitest/spy': 0.34.1 + '@vitest/utils': 0.34.1 acorn: 8.10.0 acorn-walk: 8.2.0 cac: 6.7.14 @@ -9166,7 +9166,7 @@ packages: tinybench: 2.5.0 tinypool: 0.7.0 vite: 4.4.7(@types/node@18.17.1) - vite-node: 0.34.0(@types/node@18.17.1) + vite-node: 0.34.1(@types/node@18.17.1) why-is-node-running: 2.2.2 transitivePeerDependencies: - less diff --git a/test/bundle.test.ts b/test/bundle.test.ts index dc1ddc8722..2615ea0331 100644 --- a/test/bundle.test.ts +++ b/test/bundle.test.ts @@ -35,7 +35,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"64.4k"') const modules = await analyzeSizes('node_modules/**/*', serverDir) - expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"2331k"') + expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"2332k"') const packages = modules.files .filter(m => m.endsWith('package.json')) diff --git a/test/fixtures/basic/nuxt.config.ts b/test/fixtures/basic/nuxt.config.ts index 82ea65ef03..f63a5e15a7 100644 --- a/test/fixtures/basic/nuxt.config.ts +++ b/test/fixtures/basic/nuxt.config.ts @@ -187,7 +187,8 @@ export default defineNuxtConfig({ componentIslands: true, reactivityTransform: true, treeshakeClientOnly: true, - payloadExtraction: true + payloadExtraction: true, + headCapoPlugin: true }, appConfig: { fromNuxtConfig: true, From 69b07a03b7de5b6bf3cdb68c0635113745659b08 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 3 Aug 2023 10:34:19 +0100 Subject: [PATCH 05/16] chore(deps): update all non-major dependencies (main) (#22423) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe --- package.json | 6 +- packages/kit/package.json | 4 +- packages/nuxi/package.json | 4 +- packages/nuxt/package.json | 10 +- packages/schema/package.json | 6 +- packages/vite/package.json | 4 +- packages/webpack/package.json | 2 +- pnpm-lock.yaml | 274 ++++++++++++++++++++-------------- test/bundle.test.ts | 4 +- 9 files changed, 185 insertions(+), 129 deletions(-) diff --git a/package.json b/package.json index bc542f8e3c..b842cb9aa3 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@nuxt/webpack-builder": "workspace:*", "nuxi": "workspace:*", "nuxt": "workspace:*", - "vite": "4.4.7", + "vite": "4.4.8", "vue": "3.3.4", "magic-string": "^0.30.2" }, @@ -61,7 +61,7 @@ "fs-extra": "11.1.1", "globby": "13.2.2", "h3": "1.7.1", - "happy-dom": "10.5.2", + "happy-dom": "10.6.3", "jiti": "1.19.1", "markdownlint-cli": "^0.33.0", "nitropack": "2.5.2", @@ -76,7 +76,7 @@ "std-env": "3.3.3", "typescript": "5.1.6", "ufo": "1.2.0", - "vite": "4.4.7", + "vite": "4.4.8", "vitest": "0.33.0", "vitest-environment-nuxt": "0.10.2", "vue": "3.3.4", diff --git a/packages/kit/package.json b/packages/kit/package.json index f6d92b4304..a6291d25f3 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -36,7 +36,7 @@ "semver": "^7.5.4", "ufo": "^1.2.0", "unctx": "^2.3.1", - "unimport": "^3.1.0", + "unimport": "^3.1.2", "untyped": "^1.4.0" }, "devDependencies": { @@ -46,7 +46,7 @@ "lodash-es": "4.17.21", "nitropack": "2.5.2", "unbuild": "latest", - "vite": "4.4.7", + "vite": "4.4.8", "vitest": "0.33.0", "webpack": "5.88.2" }, diff --git a/packages/nuxi/package.json b/packages/nuxi/package.json index f001e3eaf0..3db6cc94a1 100644 --- a/packages/nuxi/package.json +++ b/packages/nuxi/package.json @@ -32,13 +32,13 @@ "consola": "3.2.3", "deep-object-diff": "1.1.9", "defu": "6.1.2", - "destr": "2.0.0", + "destr": "2.0.1", "execa": "7.2.0", "flat": "5.0.2", "giget": "1.1.2", "h3": "1.7.1", "jiti": "1.19.1", - "listhen": "1.1.2", + "listhen": "1.2.2", "mlly": "1.4.0", "mri": "1.2.0", "ohash": "1.1.2", diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 34cbdf652b..23420e7ff1 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -66,7 +66,7 @@ "chokidar": "^3.5.3", "cookie-es": "^1.0.0", "defu": "^6.1.2", - "destr": "^2.0.0", + "destr": "^2.0.1", "devalue": "^4.3.2", "esbuild": "^0.18.17", "escape-string-regexp": "^5.0.0", @@ -90,13 +90,13 @@ "pkg-types": "^1.0.3", "prompts": "^2.4.2", "scule": "^1.0.0", - "strip-literal": "^1.0.1", + "strip-literal": "^1.2.0", "ufo": "^1.2.0", "ultrahtml": "^1.3.0", "uncrypto": "^0.1.3", "unctx": "^2.3.1", - "unenv": "^1.5.2", - "unimport": "^3.1.0", + "unenv": "^1.6.1", + "unimport": "^3.1.2", "unplugin": "^1.4.0", "unplugin-vue-router": "^0.6.4", "untyped": "^1.4.0", @@ -112,7 +112,7 @@ "@types/prompts": "2.4.4", "@vitejs/plugin-vue": "4.2.3", "unbuild": "latest", - "vite": "4.4.7", + "vite": "4.4.8", "vitest": "0.33.0" }, "peerDependencies": { diff --git a/packages/schema/package.json b/packages/schema/package.json index 9c467d1f48..0db988c274 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -34,13 +34,13 @@ "@vitejs/plugin-vue": "4.2.3", "@vitejs/plugin-vue-jsx": "3.0.1", "@vue/compiler-core": "3.3.4", - "esbuild-loader": "3.0.1", + "esbuild-loader": "3.1.0", "h3": "1.7.1", "ignore": "5.2.4", "nitropack": "2.5.2", "unbuild": "latest", "unctx": "2.3.1", - "vite": "4.4.7", + "vite": "4.4.8", "vue": "3.3.4", "vue-bundle-renderer": "2.0.0", "vue-loader": "17.2.2", @@ -57,7 +57,7 @@ "postcss-import-resolver": "^2.0.0", "std-env": "^3.3.3", "ufo": "^1.2.0", - "unimport": "^3.1.0", + "unimport": "^3.1.2", "untyped": "^1.4.0" }, "engines": { diff --git a/packages/vite/package.json b/packages/vite/package.json index b11fac9ee6..e53415ebb6 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -54,10 +54,10 @@ "postcss-url": "^10.1.3", "rollup-plugin-visualizer": "^5.9.2", "std-env": "^3.3.3", - "strip-literal": "^1.0.1", + "strip-literal": "^1.2.0", "ufo": "^1.2.0", "unplugin": "^1.4.0", - "vite": "^4.4.7", + "vite": "^4.4.8", "vite-node": "^0.33.0", "vite-plugin-checker": "^0.6.1", "vue-bundle-renderer": "^2.0.0" diff --git a/packages/webpack/package.json b/packages/webpack/package.json index 77cff01dc3..cee8fb64d7 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -26,7 +26,7 @@ "css-minimizer-webpack-plugin": "^5.0.1", "cssnano": "^6.0.1", "defu": "^6.1.2", - "esbuild-loader": "^3.0.1", + "esbuild-loader": "^3.1.0", "escape-string-regexp": "^5.0.0", "estree-walker": "^3.0.3", "file-loader": "^6.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7ef0ed4983..786db5e034 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,7 +12,7 @@ overrides: '@nuxt/webpack-builder': workspace:* nuxi: workspace:* nuxt: workspace:* - vite: 4.4.7 + vite: 4.4.8 vue: 3.3.4 magic-string: ^0.30.2 @@ -84,8 +84,8 @@ importers: specifier: 1.7.1 version: 1.7.1 happy-dom: - specifier: 10.5.2 - version: 10.5.2 + specifier: 10.6.3 + version: 10.6.3 jiti: specifier: 1.19.1 version: 1.19.1 @@ -103,7 +103,7 @@ importers: version: link:packages/nuxt nuxt-vitest: specifier: 0.10.2 - version: 0.10.2(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(happy-dom@10.5.2)(vite@4.4.7)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) + version: 0.10.2(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(happy-dom@10.6.3)(vite@4.4.8)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) ofetch: specifier: 1.1.1 version: 1.1.1 @@ -129,14 +129,14 @@ importers: specifier: 1.2.0 version: 1.2.0 vite: - specifier: 4.4.7 - version: 4.4.7(@types/node@18.17.1) + specifier: 4.4.8 + version: 4.4.8(@types/node@18.17.1) vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@10.5.2) + version: 0.33.0(happy-dom@10.6.3) vitest-environment-nuxt: specifier: 0.10.2 - version: 0.10.2(happy-dom@10.5.2)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) + version: 0.10.2(happy-dom@10.6.3)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) vue: specifier: 3.3.4 version: 3.3.4 @@ -201,8 +201,8 @@ importers: specifier: ^2.3.1 version: 2.3.1 unimport: - specifier: ^3.1.0 - version: 3.1.0(rollup@3.26.3) + specifier: ^3.1.2 + version: 3.1.2(rollup@3.26.3) untyped: specifier: ^1.4.0 version: 1.4.0 @@ -226,11 +226,11 @@ importers: specifier: latest version: 1.2.1 vite: - specifier: 4.4.7 - version: 4.4.7(@types/node@18.17.1) + specifier: 4.4.8 + version: 4.4.8(@types/node@18.17.1) vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@10.5.2) + version: 0.33.0(happy-dom@10.6.3) webpack: specifier: 5.88.2 version: 5.88.2 @@ -284,8 +284,8 @@ importers: specifier: 6.1.2 version: 6.1.2 destr: - specifier: 2.0.0 - version: 2.0.0 + specifier: 2.0.1 + version: 2.0.1 execa: specifier: 7.2.0 version: 7.2.0 @@ -302,8 +302,8 @@ importers: specifier: 1.19.1 version: 1.19.1 listhen: - specifier: 1.1.2 - version: 1.1.2 + specifier: 1.2.2 + version: 1.2.2 mlly: specifier: 1.4.0 version: 1.4.0 @@ -383,8 +383,8 @@ importers: specifier: ^6.1.2 version: 6.1.2 destr: - specifier: ^2.0.0 - version: 2.0.0 + specifier: ^2.0.1 + version: 2.0.1 devalue: specifier: ^4.3.2 version: 4.3.2 @@ -455,8 +455,8 @@ importers: specifier: ^1.0.0 version: 1.0.0 strip-literal: - specifier: ^1.0.1 - version: 1.0.1 + specifier: ^1.2.0 + version: 1.2.0 ufo: specifier: ^1.2.0 version: 1.2.0 @@ -470,11 +470,11 @@ importers: specifier: ^2.3.1 version: 2.3.1 unenv: - specifier: ^1.5.2 - version: 1.5.2 + specifier: ^1.6.1 + version: 1.6.1 unimport: - specifier: ^3.1.0 - version: 3.1.0(rollup@3.26.3) + specifier: ^3.1.2 + version: 3.1.2(rollup@3.26.3) unplugin: specifier: ^1.4.0 version: 1.4.0 @@ -511,16 +511,16 @@ importers: version: 2.4.4 '@vitejs/plugin-vue': specifier: 4.2.3 - version: 4.2.3(vite@4.4.7)(vue@3.3.4) + version: 4.2.3(vite@4.4.8)(vue@3.3.4) unbuild: specifier: latest version: 1.2.1 vite: - specifier: 4.4.7 - version: 4.4.7(@types/node@18.17.1) + specifier: 4.4.8 + version: 4.4.8(@types/node@18.17.1) vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@10.5.2) + version: 0.33.0(happy-dom@10.6.3) packages/schema: dependencies: @@ -549,8 +549,8 @@ importers: specifier: ^1.2.0 version: 1.2.0 unimport: - specifier: ^3.1.0 - version: 3.1.0(rollup@3.26.3) + specifier: ^3.1.2 + version: 3.1.2(rollup@3.26.3) untyped: specifier: ^1.4.0 version: 1.4.0 @@ -572,16 +572,16 @@ importers: version: 1.2.2 '@vitejs/plugin-vue': specifier: 4.2.3 - version: 4.2.3(vite@4.4.7)(vue@3.3.4) + version: 4.2.3(vite@4.4.8)(vue@3.3.4) '@vitejs/plugin-vue-jsx': specifier: 3.0.1 - version: 3.0.1(vite@4.4.7)(vue@3.3.4) + version: 3.0.1(vite@4.4.8)(vue@3.3.4) '@vue/compiler-core': specifier: 3.3.4 version: 3.3.4 esbuild-loader: - specifier: 3.0.1 - version: 3.0.1(webpack@5.88.2) + specifier: 3.1.0 + version: 3.1.0(webpack@5.88.2) h3: specifier: 1.7.1 version: 1.7.1 @@ -598,8 +598,8 @@ importers: specifier: 2.3.1 version: 2.3.1 vite: - specifier: 4.4.7 - version: 4.4.7(@types/node@18.17.1) + specifier: 4.4.8 + version: 4.4.8(@types/node@18.17.1) vue: specifier: 3.3.4 version: 3.3.4 @@ -663,7 +663,7 @@ importers: version: 1.2.1 vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@10.5.2) + version: 0.33.0(happy-dom@10.6.3) packages/vite: dependencies: @@ -675,10 +675,10 @@ importers: version: 5.0.2(rollup@3.26.3) '@vitejs/plugin-vue': specifier: ^4.2.3 - version: 4.2.3(vite@4.4.7)(vue@3.3.4) + version: 4.2.3(vite@4.4.8)(vue@3.3.4) '@vitejs/plugin-vue-jsx': specifier: ^3.0.1 - version: 3.0.1(vite@4.4.7)(vue@3.3.4) + version: 3.0.1(vite@4.4.8)(vue@3.3.4) autoprefixer: specifier: ^10.4.14 version: 10.4.14(postcss@8.4.27) @@ -752,8 +752,8 @@ importers: specifier: ^3.3.3 version: 3.3.3 strip-literal: - specifier: ^1.0.1 - version: 1.0.1 + specifier: ^1.2.0 + version: 1.2.0 ufo: specifier: ^1.2.0 version: 1.2.0 @@ -761,14 +761,14 @@ importers: specifier: ^1.4.0 version: 1.4.0 vite: - specifier: 4.4.7 - version: 4.4.7(@types/node@18.17.1) + specifier: 4.4.8 + version: 4.4.8(@types/node@18.17.1) vite-node: specifier: ^0.33.0 version: 0.33.0(@types/node@18.17.1) vite-plugin-checker: specifier: ^0.6.1 - version: 0.6.1(eslint@8.46.0)(typescript@5.1.6)(vite@4.4.7)(vue-tsc@1.8.8) + version: 0.6.1(eslint@8.46.0)(typescript@5.1.6)(vite@4.4.8)(vue-tsc@1.8.8) vue-bundle-renderer: specifier: ^2.0.0 version: 2.0.0 @@ -816,8 +816,8 @@ importers: specifier: ^6.1.2 version: 6.1.2 esbuild-loader: - specifier: ^3.0.1 - version: 3.0.1(webpack@5.88.2) + specifier: ^3.1.0 + version: 3.1.0(webpack@5.88.2) escape-string-regexp: specifier: ^5.0.0 version: 5.0.0 @@ -988,7 +988,7 @@ importers: version: 1.1.1 vitest: specifier: latest - version: 0.34.1(happy-dom@10.5.2) + version: 0.34.1(happy-dom@10.6.3) vue: specifier: 3.3.4 version: 3.3.4 @@ -1447,6 +1447,7 @@ packages: cpu: [arm64] os: [android] requiresBuild: true + dev: true optional: true /@esbuild/android-arm64@0.18.17: @@ -1463,6 +1464,7 @@ packages: cpu: [arm] os: [android] requiresBuild: true + dev: true optional: true /@esbuild/android-arm@0.18.17: @@ -1479,6 +1481,7 @@ packages: cpu: [x64] os: [android] requiresBuild: true + dev: true optional: true /@esbuild/android-x64@0.18.17: @@ -1495,6 +1498,7 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true + dev: true optional: true /@esbuild/darwin-arm64@0.18.17: @@ -1511,6 +1515,7 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true + dev: true optional: true /@esbuild/darwin-x64@0.18.17: @@ -1527,6 +1532,7 @@ packages: cpu: [arm64] os: [freebsd] requiresBuild: true + dev: true optional: true /@esbuild/freebsd-arm64@0.18.17: @@ -1543,6 +1549,7 @@ packages: cpu: [x64] os: [freebsd] requiresBuild: true + dev: true optional: true /@esbuild/freebsd-x64@0.18.17: @@ -1559,6 +1566,7 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true + dev: true optional: true /@esbuild/linux-arm64@0.18.17: @@ -1575,6 +1583,7 @@ packages: cpu: [arm] os: [linux] requiresBuild: true + dev: true optional: true /@esbuild/linux-arm@0.18.17: @@ -1591,6 +1600,7 @@ packages: cpu: [ia32] os: [linux] requiresBuild: true + dev: true optional: true /@esbuild/linux-ia32@0.18.17: @@ -1607,6 +1617,7 @@ packages: cpu: [loong64] os: [linux] requiresBuild: true + dev: true optional: true /@esbuild/linux-loong64@0.18.17: @@ -1623,6 +1634,7 @@ packages: cpu: [mips64el] os: [linux] requiresBuild: true + dev: true optional: true /@esbuild/linux-mips64el@0.18.17: @@ -1639,6 +1651,7 @@ packages: cpu: [ppc64] os: [linux] requiresBuild: true + dev: true optional: true /@esbuild/linux-ppc64@0.18.17: @@ -1655,6 +1668,7 @@ packages: cpu: [riscv64] os: [linux] requiresBuild: true + dev: true optional: true /@esbuild/linux-riscv64@0.18.17: @@ -1671,6 +1685,7 @@ packages: cpu: [s390x] os: [linux] requiresBuild: true + dev: true optional: true /@esbuild/linux-s390x@0.18.17: @@ -1687,6 +1702,7 @@ packages: cpu: [x64] os: [linux] requiresBuild: true + dev: true optional: true /@esbuild/linux-x64@0.18.17: @@ -1703,6 +1719,7 @@ packages: cpu: [x64] os: [netbsd] requiresBuild: true + dev: true optional: true /@esbuild/netbsd-x64@0.18.17: @@ -1719,6 +1736,7 @@ packages: cpu: [x64] os: [openbsd] requiresBuild: true + dev: true optional: true /@esbuild/openbsd-x64@0.18.17: @@ -1735,6 +1753,7 @@ packages: cpu: [x64] os: [sunos] requiresBuild: true + dev: true optional: true /@esbuild/sunos-x64@0.18.17: @@ -1751,6 +1770,7 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true + dev: true optional: true /@esbuild/win32-arm64@0.18.17: @@ -1767,6 +1787,7 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true + dev: true optional: true /@esbuild/win32-ia32@0.18.17: @@ -1783,6 +1804,7 @@ packages: cpu: [x64] os: [win32] requiresBuild: true + dev: true optional: true /@esbuild/win32-x64@0.18.17: @@ -2067,7 +2089,7 @@ packages: consola: 3.2.3 create-require: 1.1.1 defu: 6.1.2 - destr: 2.0.0 + destr: 2.0.1 dotenv: 16.3.1 fs-extra: 11.1.1 git-url-parse: 13.1.0 @@ -2197,6 +2219,14 @@ packages: dev: true optional: true + /@parcel/watcher-wasm@2.3.0-alpha.1: + resolution: {integrity: sha512-wo6065l1MQ6SJPPchYw/q8J+pFL40qBXLu4Td2CXeQ/+mUk8NenNqC75P/P1Cyvpam0kfk91iszd+XL+xKDQww==} + engines: {node: '>= 10.0.0'} + dependencies: + is-glob: 4.0.3 + micromatch: 4.0.5 + napi-wasm: 1.1.0 + /@parcel/watcher-win32-arm64@2.2.0: resolution: {integrity: sha512-z225cPn3aygJsyVUOWwfyW+fY0Tvk7N3XCOl66qUPFxpbuXeZuiuuJemmtm8vxyqa3Ur7peU/qJxrpC64aeI7Q==} engines: {node: '>= 10.0.0'} @@ -2847,7 +2877,7 @@ packages: - encoding - supports-color - /@vitejs/plugin-vue-jsx@3.0.1(vite@4.4.7)(vue@3.3.4): + /@vitejs/plugin-vue-jsx@3.0.1(vite@4.4.8)(vue@3.3.4): resolution: {integrity: sha512-+Jb7ggL48FSPS1uhPnJbJwWa9Sr90vQ+d0InW+AhBM22n+cfuYqJZDckBc+W3QSHe1WDvewMZfa4wZOtk5pRgw==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -2857,19 +2887,19 @@ packages: '@babel/core': 7.22.9 '@babel/plugin-transform-typescript': 7.21.0(@babel/core@7.22.9) '@vue/babel-plugin-jsx': 1.1.1(@babel/core@7.22.9) - vite: 4.4.7(@types/node@18.17.1) + vite: 4.4.8(@types/node@18.17.1) vue: 3.3.4 transitivePeerDependencies: - supports-color - /@vitejs/plugin-vue@4.2.3(vite@4.4.7)(vue@3.3.4): + /@vitejs/plugin-vue@4.2.3(vite@4.4.8)(vue@3.3.4): resolution: {integrity: sha512-R6JDUfiZbJA9cMiguQ7jxALsgiprjBeHL5ikpXfJCH62pPHtI+JdJ5xWj6Ev73yXSlYl86+blXn1kZHQ7uElxw==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.4.7(@types/node@18.17.1) + vite: 4.4.8(@types/node@18.17.1) vue: 3.3.4 /@vitest/expect@0.33.0: @@ -2944,7 +2974,7 @@ packages: pathe: 1.1.1 picocolors: 1.0.0 sirv: 2.0.3 - vitest: 0.33.0(happy-dom@10.5.2) + vitest: 0.33.0(happy-dom@10.6.3) dev: true /@vitest/utils@0.33.0: @@ -4315,8 +4345,8 @@ packages: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} - /destr@2.0.0: - resolution: {integrity: sha512-FJ9RDpf3GicEBvzI3jxc2XhHzbqD8p4ANw/1kPsFBfTvP1b7Gn/Lg1vO7R9J4IVgoMbyUmFrFGZafJ1hPZpvlg==} + /destr@2.0.1: + resolution: {integrity: sha512-M1Ob1zPSIvlARiJUkKqvAZ3VAqQY6Jcuth/pBKQ2b1dX/Qx0OnJ8Vux6J2H5PTMQeRzWrrbTu70VxBfv/OPDJA==} /destroy@1.2.0: resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} @@ -4549,13 +4579,13 @@ packages: is-symbol: 1.0.4 dev: true - /esbuild-loader@3.0.1(webpack@5.88.2): - resolution: {integrity: sha512-aZfGybqTeuyCd4AsVvWOOfkhIuN+wfZFjMyh3gyQEU1Uvsl8L6vye9HqP93iRa0iTA+6Jclap514PJIC3cLnMA==} + /esbuild-loader@3.1.0(webpack@5.88.2): + resolution: {integrity: sha512-BoI+QDtBNcXuuhLWxa+ooAy3e6RDVQr4cadFFYo0T7KE9cBs0nuGnv8ExL77lfqRmeGVAd3NqVzC8GWNj6su6A==} peerDependencies: webpack: ^4.40.0 || ^5.0.0 dependencies: - esbuild: 0.17.19 - get-tsconfig: 4.5.0 + esbuild: 0.18.17 + get-tsconfig: 4.6.2 loader-utils: 2.0.4 webpack: 5.88.2 webpack-sources: 1.4.3 @@ -4588,6 +4618,7 @@ packages: '@esbuild/win32-arm64': 0.17.19 '@esbuild/win32-ia32': 0.17.19 '@esbuild/win32-x64': 0.17.19 + dev: true /esbuild@0.18.17: resolution: {integrity: sha512-1GJtYnUxsJreHYA0Y+iQz2UEykonY66HNWOb0yXYZi9/kNrORUEHVg87eQsCtqh59PEJ5YVZJO98JHznMJSWjg==} @@ -4678,7 +4709,7 @@ packages: eslint: 8.46.0 eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.59.9)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.46.0) eslint-plugin-import: 2.28.0(@typescript-eslint/parser@5.59.9)(eslint-import-resolver-typescript@3.5.5)(eslint@8.46.0) - get-tsconfig: 4.5.0 + get-tsconfig: 4.6.2 globby: 13.2.2 is-core-module: 2.12.1 is-glob: 4.0.3 @@ -5355,8 +5386,10 @@ packages: get-intrinsic: 1.2.1 dev: true - /get-tsconfig@4.5.0: - resolution: {integrity: sha512-MjhiaIWCJ1sAU4pIQ5i5OfOuHHxVo1oYeNsWTON7jxYkod8pHocXeh+SSbmu5OZZZK73B6cbJ2XADzXehLyovQ==} + /get-tsconfig@4.6.2: + resolution: {integrity: sha512-E5XrT4CbbXcXWy+1jChlZmrmCwd5KGx502kDCXJJ7y898TtWW9FwoG5HfOLVRKmlmDGkWN2HM9Ho+/Y8F0sJDg==} + dependencies: + resolve-pkg-maps: 1.0.0 /giget@1.1.2: resolution: {integrity: sha512-HsLoS07HiQ5oqvObOI+Qb2tyZH4Gj5nYGfF9qQcZNrPw+uEFhdXtgJr01aO2pWadGHucajYDLxxbtQkm97ON2A==} @@ -5518,14 +5551,26 @@ packages: dependencies: cookie-es: 1.0.0 defu: 6.1.2 - destr: 2.0.0 + destr: 2.0.1 iron-webcrypto: 0.7.0 radix3: 1.0.1 ufo: 1.2.0 uncrypto: 0.1.3 - /happy-dom@10.5.2: - resolution: {integrity: sha512-dTA1cDcLOPIkAdykLd9Wo1k8Ly36Hh2OdKGkWEHWuAHb89KcVVRLSj1OFev7ir90xhRLSGCGrEdDvS6u9l13kg==} + /h3@1.8.0-rc.2: + resolution: {integrity: sha512-2VSDQOuVElZ7QCSTbti5fTkfyrsOIYSG9SXQQ+xO/dI3O2n2k6cbA1/rapNOJZtC2tO7cN8N/JlGhlUsFh5LoA==} + dependencies: + cookie-es: 1.0.0 + defu: 6.1.2 + destr: 2.0.1 + iron-webcrypto: 0.8.0 + radix3: 1.0.1 + ufo: 1.2.0 + uncrypto: 0.1.3 + unenv: 1.6.1 + + /happy-dom@10.6.3: + resolution: {integrity: sha512-se+f89YhkhoaZ52WrsfLWIS77FwzdbHi2lbPyyrIEnSeoTU4kAdvDIdezfs+IN23ZBDL7PkqAwscNWqkIp4Gyw==} dependencies: css.escape: 1.5.1 entities: 4.5.0 @@ -5749,6 +5794,9 @@ packages: /iron-webcrypto@0.7.0: resolution: {integrity: sha512-WkX32iTcwd79ZsWRPP5wq1Jq6XXfPwO783ZiUBY8uMw4/AByx5WvBmxvYGnpVt6AOVJ0F41Qo420r8lIneT9Wg==} + /iron-webcrypto@0.8.0: + resolution: {integrity: sha512-gScdcWHjTGclCU15CIv2r069NoQrys1UeUFFfaO1hL++ytLHkVw7N5nXJmFf3J2LEDMz1PkrvC0m62JEeu1axQ==} + /is-array-buffer@3.0.2: resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==} dependencies: @@ -6203,7 +6251,7 @@ packages: graceful-fs: 4.2.11 /jstransformer@1.0.0: - resolution: {integrity: sha1-7Yvwkh4vPx7U1cGkT2hwntJHIsM=} + resolution: {integrity: sha512-C9YK3Rf8q6VAPDCCU9fnqo3mAfOH6vUGnMcP4AQAYIEpWtfGLpwOTmZ+igtdK5y+VvI2n3CyYSzy4Qh34eq24A==} dependencies: is-promise: 2.2.2 promise: 7.3.1 @@ -6247,15 +6295,17 @@ packages: uc.micro: 1.0.6 dev: true - /listhen@1.1.2: - resolution: {integrity: sha512-rLX5V57oonazmc6zoZ2LzfbSOfGzDOLdQ/eTEh/d3f1xYMACH1yIU8nr0YGl2WiR+l31o3QCN4/VH2dUNyYvTA==} + /listhen@1.2.2: + resolution: {integrity: sha512-fQaXe+DAQ5QiYP1B4uXfAgwqIwNS+0WMIwRd5l2a3npQAEhlCJ1pN11d41yHtbeReE7oRtfL+h6Nzxq+Wc4vIg==} hasBin: true dependencies: + '@parcel/watcher-wasm': 2.3.0-alpha.1 citty: 0.1.2 clipboardy: 3.0.0 consola: 3.2.3 defu: 6.1.2 get-port-please: 3.0.1 + h3: 1.8.0-rc.2 http-shutdown: 1.2.2 jiti: 1.19.1 mlly: 1.4.0 @@ -6662,6 +6712,9 @@ packages: engines: {node: ^14 || ^16 || >=18} hasBin: true + /napi-wasm@1.1.0: + resolution: {integrity: sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg==} + /natural-compare-lite@1.4.0: resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} dev: true @@ -6698,7 +6751,7 @@ packages: consola: 3.2.3 cookie-es: 1.0.0 defu: 6.1.2 - destr: 2.0.0 + destr: 2.0.1 dot-prop: 7.2.0 esbuild: 0.18.17 escape-string-regexp: 5.0.0 @@ -6714,7 +6767,7 @@ packages: jiti: 1.19.1 klona: 2.0.6 knitwork: 1.0.0 - listhen: 1.1.2 + listhen: 1.2.2 magic-string: 0.30.2 mime: 3.0.0 mlly: 1.4.0 @@ -6738,8 +6791,8 @@ packages: std-env: 3.3.3 ufo: 1.2.0 uncrypto: 0.1.3 - unenv: 1.5.2 - unimport: 3.1.0(rollup@3.26.3) + unenv: 1.6.1 + unimport: 3.1.2(rollup@3.26.3) unstorage: 1.7.0 transitivePeerDependencies: - '@azure/app-configuration' @@ -6862,7 +6915,7 @@ packages: dependencies: boolbase: 1.0.0 - /nuxt-vitest@0.10.2(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(happy-dom@10.5.2)(vite@4.4.7)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4): + /nuxt-vitest@0.10.2(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(happy-dom@10.6.3)(vite@4.4.8)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4): resolution: {integrity: sha512-cYEvFY5iU0fV3xccdunV1vAlgyda3Tf7HEyPGrI/4KMAouwtIDIyuu2SgU3WOFqpNbhbAQbI5COLISodOeUHBQ==} peerDependencies: '@vitejs/plugin-vue': '*' @@ -6871,16 +6924,16 @@ packages: vitest: ^0.24.5 || ^0.26.0 || ^0.27.0 || ^0.28.0 || ^0.29.0 || ^0.30.0 || ^0.33.0 dependencies: '@nuxt/kit': link:packages/kit - '@vitejs/plugin-vue': 4.2.3(vite@4.4.7)(vue@3.3.4) - '@vitejs/plugin-vue-jsx': 3.0.1(vite@4.4.7)(vue@3.3.4) + '@vitejs/plugin-vue': 4.2.3(vite@4.4.8)(vue@3.3.4) + '@vitejs/plugin-vue-jsx': 3.0.1(vite@4.4.8)(vue@3.3.4) '@vitest/ui': 0.33.0(vitest@0.33.0) defu: 6.1.2 get-port-please: 3.0.1 perfect-debounce: 1.0.0 std-env: 3.3.3 - vite: 4.4.7(@types/node@18.17.1) - vitest: 0.33.0(happy-dom@10.5.2) - vitest-environment-nuxt: 0.10.2(happy-dom@10.5.2)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) + vite: 4.4.8(@types/node@18.17.1) + vitest: 0.33.0(happy-dom@10.6.3) + vitest-environment-nuxt: 0.10.2(happy-dom@10.6.3)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) transitivePeerDependencies: - '@vue/compiler-dom' - '@vue/server-renderer' @@ -6950,7 +7003,7 @@ packages: /ofetch@1.1.1: resolution: {integrity: sha512-SSMoktrp9SNLi20BWfB/BnnKcL0RDigXThD/mZBeQxkIRv1xrd9183MtLdsqRYLYSqW0eTr5t8w8MqjNhvoOQQ==} dependencies: - destr: 2.0.0 + destr: 2.0.1 node-fetch-native: 1.2.0 ufo: 1.2.0 @@ -7766,7 +7819,7 @@ packages: resolution: {integrity: sha512-lNeOl38Ws0eNxpO3+wD1I9rkHGQyj1NU1jlzv4go2CtEnEQEUfqnIvZG7W+bC/aXdJ27n5x/yUjb6RoT9tko+Q==} dependencies: defu: 6.1.2 - destr: 2.0.0 + destr: 2.0.1 flat: 5.0.2 /react-is@18.2.0: @@ -7876,6 +7929,9 @@ packages: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} + /resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + /resolve@1.22.2: resolution: {integrity: sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==} hasBin: true @@ -8326,8 +8382,8 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - /strip-literal@1.0.1: - resolution: {integrity: sha512-QZTsipNpa2Ppr6v1AmJHESqJ3Uz247MUS0OjrnnZjFAvEoWqxuyFuXn2xLgMtRnijJShAa1HL0gtJyUs7u7n3Q==} + /strip-literal@1.2.0: + resolution: {integrity: sha512-tbehiynUAVoOhVKgpGG/xSIEPq3mDH3MmZ3957hiCBt2SnxkgOfXnZ8X2Kjfzb2L/6Vsv8Lnh8WT9qV5zQ0tMA==} dependencies: acorn: 8.10.0 @@ -8531,7 +8587,7 @@ packages: engines: {node: '>=0.6'} /token-stream@1.0.0: - resolution: {integrity: sha1-zCAOqyYT9BZtJ/+a/HylbUnfbrQ=} + resolution: {integrity: sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg==} dev: false /totalist@1.1.0: @@ -8696,8 +8752,8 @@ packages: dependencies: busboy: 1.6.0 - /unenv@1.5.2: - resolution: {integrity: sha512-fpQW0nx3hGx0q0wq/35+ng9Dm4m1/2V00UmU5Jxdr1woyrMbT4RydQn5eh/hZyM81HKAPzaf50TKX0XfYpBaqg==} + /unenv@1.6.1: + resolution: {integrity: sha512-cjQnvJctZluBwOCBtFT4ZRR1cCJOVrcDK/TXzdqc6I+ZKWBFVDs6JjH0qkK6d8RsFSRHbQkWRgSzu66e52FHBA==} dependencies: consola: 3.2.3 defu: 6.1.2 @@ -8714,8 +8770,8 @@ packages: hookable: 5.5.3 dev: false - /unimport@3.1.0(rollup@3.26.3): - resolution: {integrity: sha512-ybK3NVWh30MdiqSyqakrrQOeiXyu5507tDA0tUf7VJHrsq4DM6S43gR7oAsZaFojM32hzX982Lqw02D3yf2aiA==} + /unimport@3.1.2(rollup@3.26.3): + resolution: {integrity: sha512-+R1IpnTGR+YNaUoe/nVy8+srpkrIDLRM+VFbxqBzCHPMUDdbi8r3R28ZoodA4Cv8BO2b5CoYBO6G+l+1ljpAwQ==} dependencies: '@rollup/pluginutils': 5.0.2(rollup@3.26.3) escape-string-regexp: 5.0.0 @@ -8726,7 +8782,7 @@ packages: pathe: 1.1.1 pkg-types: 1.0.3 scule: 1.0.0 - strip-literal: 1.0.1 + strip-literal: 1.2.0 unplugin: 1.4.0 transitivePeerDependencies: - rollup @@ -8804,10 +8860,10 @@ packages: dependencies: anymatch: 3.1.3 chokidar: 3.5.3 - destr: 2.0.0 + destr: 2.0.1 h3: 1.7.1 ioredis: 5.3.2 - listhen: 1.1.2 + listhen: 1.2.2 lru-cache: 10.0.0 mri: 1.2.0 node-fetch-native: 1.2.0 @@ -8892,7 +8948,7 @@ packages: mlly: 1.4.0 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.7(@types/node@18.17.1) + vite: 4.4.8(@types/node@18.17.1) transitivePeerDependencies: - '@types/node' - less @@ -8913,7 +8969,7 @@ packages: mlly: 1.4.0 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.7(@types/node@18.17.1) + vite: 4.4.8(@types/node@18.17.1) transitivePeerDependencies: - '@types/node' - less @@ -8925,7 +8981,7 @@ packages: - terser dev: true - /vite-plugin-checker@0.6.1(eslint@8.46.0)(typescript@5.1.6)(vite@4.4.7)(vue-tsc@1.8.8): + /vite-plugin-checker@0.6.1(eslint@8.46.0)(typescript@5.1.6)(vite@4.4.8)(vue-tsc@1.8.8): resolution: {integrity: sha512-4fAiu3W/IwRJuJkkUZlWbLunSzsvijDf0eDN6g/MGh6BUK4SMclOTGbLJCPvdAcMOQvVmm8JyJeYLYd4//8CkA==} engines: {node: '>=14.16'} peerDependencies: @@ -8971,7 +9027,7 @@ packages: strip-ansi: 6.0.1 tiny-invariant: 1.3.1 typescript: 5.1.6 - vite: 4.4.7(@types/node@18.17.1) + vite: 4.4.8(@types/node@18.17.1) vscode-languageclient: 7.0.0 vscode-languageserver: 7.0.0 vscode-languageserver-textdocument: 1.0.8 @@ -8979,8 +9035,8 @@ packages: vue-tsc: 1.8.8(typescript@5.1.6) dev: false - /vite@4.4.7(@types/node@18.17.1): - resolution: {integrity: sha512-6pYf9QJ1mHylfVh39HpuSfMPojPSKVxZvnclX1K1FyZ1PXDOcLBibdq5t1qxJSnL63ca8Wf4zts6mD8u8oc9Fw==} + /vite@4.4.8(@types/node@18.17.1): + resolution: {integrity: sha512-LONawOUUjxQridNWGQlNizfKH89qPigK36XhMI7COMGztz8KNY0JHim7/xDd71CZwGT4HtSRgI7Hy+RlhG0Gvg==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: @@ -9014,7 +9070,7 @@ packages: optionalDependencies: fsevents: 2.3.2 - /vitest-environment-nuxt@0.10.2(happy-dom@10.5.2)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4): + /vitest-environment-nuxt@0.10.2(happy-dom@10.6.3)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4): resolution: {integrity: sha512-CgOS0KW0zhyDVvfHbq+CbkCa/sA2Ui/SMrp0W0vDgzhaUTCuo7WtJ211HwYqGhj3YvSRopOByRPkUDFQjr3wiw==} peerDependencies: happy-dom: ^9.10.9 || ^10.0.0 @@ -9033,11 +9089,11 @@ packages: defu: 6.1.2 estree-walker: 3.0.3 h3: 1.7.1 - happy-dom: 10.5.2 + happy-dom: 10.6.3 magic-string: 0.30.2 ofetch: 1.1.1 - unenv: 1.5.2 - vitest: 0.33.0(happy-dom@10.5.2) + unenv: 1.6.1 + vitest: 0.33.0(happy-dom@10.6.3) vue: 3.3.4 vue-router: 4.2.4(vue@3.3.4) whatwg-fetch: 3.6.17 @@ -9046,7 +9102,7 @@ packages: - '@vue/server-renderer' dev: true - /vitest@0.33.0(happy-dom@10.5.2): + /vitest@0.33.0(happy-dom@10.6.3): resolution: {integrity: sha512-1CxaugJ50xskkQ0e969R/hW47za4YXDUfWJDxip1hwbnhUjYolpfUn2AMOulqG/Dtd9WYAtkHmM/m3yKVrEejQ==} engines: {node: '>=v14.18.0'} hasBin: true @@ -9090,16 +9146,16 @@ packages: cac: 6.7.14 chai: 4.3.7 debug: 4.3.4 - happy-dom: 10.5.2 + happy-dom: 10.6.3 local-pkg: 0.4.3 magic-string: 0.30.2 pathe: 1.1.1 picocolors: 1.0.0 std-env: 3.3.3 - strip-literal: 1.0.1 + strip-literal: 1.2.0 tinybench: 2.5.0 tinypool: 0.6.0 - vite: 4.4.7(@types/node@18.17.1) + vite: 4.4.8(@types/node@18.17.1) vite-node: 0.33.0(@types/node@18.17.1) why-is-node-running: 2.2.2 transitivePeerDependencies: @@ -9112,7 +9168,7 @@ packages: - terser dev: true - /vitest@0.34.1(happy-dom@10.5.2): + /vitest@0.34.1(happy-dom@10.6.3): resolution: {integrity: sha512-G1PzuBEq9A75XSU88yO5G4vPT20UovbC/2osB2KEuV/FisSIIsw7m5y2xMdB7RsAGHAfg2lPmp2qKr3KWliVlQ==} engines: {node: '>=v14.18.0'} hasBin: true @@ -9156,16 +9212,16 @@ packages: cac: 6.7.14 chai: 4.3.7 debug: 4.3.4 - happy-dom: 10.5.2 + happy-dom: 10.6.3 local-pkg: 0.4.3 magic-string: 0.30.2 pathe: 1.1.1 picocolors: 1.0.0 std-env: 3.3.3 - strip-literal: 1.0.1 + strip-literal: 1.2.0 tinybench: 2.5.0 tinypool: 0.7.0 - vite: 4.4.7(@types/node@18.17.1) + vite: 4.4.8(@types/node@18.17.1) vite-node: 0.34.1(@types/node@18.17.1) why-is-node-running: 2.2.2 transitivePeerDependencies: diff --git a/test/bundle.test.ts b/test/bundle.test.ts index 2615ea0331..dee30eeefb 100644 --- a/test/bundle.test.ts +++ b/test/bundle.test.ts @@ -35,7 +35,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"64.4k"') const modules = await analyzeSizes('node_modules/**/*', serverDir) - expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"2332k"') + expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"2343k"') const packages = modules.files .filter(m => m.endsWith('package.json')) @@ -95,7 +95,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"370k"') const modules = await analyzeSizes('node_modules/**/*', serverDir) - expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"593k"') + expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"605k"') const packages = modules.files .filter(m => m.endsWith('package.json')) From f7e2b2bf6e2d88289b0cc6021d014734fce5df2a Mon Sep 17 00:00:00 2001 From: nobkd <44443899+nobkd@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:05:29 +0200 Subject: [PATCH 06/16] docs: escape `]` in code-block filenames (#22389) --- docs/1.getting-started/5.routing.md | 4 ++-- docs/1.getting-started/5.transitions.md | 2 +- docs/1.getting-started/8.error-handling.md | 2 +- docs/2.guide/2.directory-structure/1.content.md | 2 +- docs/2.guide/2.directory-structure/1.pages.md | 4 ++-- docs/2.guide/2.directory-structure/1.server.md | 12 ++++++------ docs/3.api/1.composables/use-route.md | 2 +- docs/3.api/3.utils/create-error.md | 2 +- docs/7.migration/7.component-options.md | 4 ++-- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/1.getting-started/5.routing.md b/docs/1.getting-started/5.routing.md index 9209b85255..3f5ce8de01 100644 --- a/docs/1.getting-started/5.routing.md +++ b/docs/1.getting-started/5.routing.md @@ -71,7 +71,7 @@ When a `` enters the viewport on the client side, Nuxt will automatica The `useRoute()` composable can be used in a `