diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index ab1f81cfa3..807dd84d37 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -65,9 +65,9 @@ "@nuxt/telemetry": "^2.5.3", "@nuxt/ui-templates": "^1.3.1", "@nuxt/vite-builder": "workspace:*", - "@unhead/dom": "^1.8.9", - "@unhead/ssr": "^1.8.9", - "@unhead/vue": "^1.8.9", + "@unhead/dom": "^1.8.10", + "@unhead/ssr": "^1.8.10", + "@unhead/vue": "^1.8.10", "@vue/shared": "^3.4.14", "acorn": "8.11.3", "c12": "^1.6.1", diff --git a/packages/schema/package.json b/packages/schema/package.json index 80883ba55a..77dba6650e 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -38,7 +38,7 @@ "@types/file-loader": "5.0.4", "@types/pug": "2.0.10", "@types/sass-loader": "8.0.8", - "@unhead/schema": "1.8.9", + "@unhead/schema": "1.8.10", "@vitejs/plugin-vue": "5.0.3", "@vitejs/plugin-vue-jsx": "3.1.0", "@vue/compiler-core": "3.4.14", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0242f51d45..ce9236affc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -256,16 +256,16 @@ importers: version: link:../vite '@types/node': specifier: ^14.18.0 || >=16.10.0 - version: 20.11.0 + version: 20.11.4 '@unhead/dom': - specifier: ^1.8.9 - version: 1.8.9 + specifier: ^1.8.10 + version: 1.8.10 '@unhead/ssr': - specifier: ^1.8.9 - version: 1.8.9 + specifier: ^1.8.10 + version: 1.8.10 '@unhead/vue': - specifier: ^1.8.9 - version: 1.8.9(vue@3.4.14) + specifier: ^1.8.10 + version: 1.8.10(vue@3.4.14) '@vue/shared': specifier: ^3.4.14 version: 3.4.14 @@ -419,10 +419,10 @@ importers: version: 2.0.0(typescript@5.3.3) vite: specifier: 5.0.11 - version: 5.0.11(@types/node@20.11.0) + version: 5.0.11(@types/node@20.11.4) vitest: specifier: 1.1.1 - version: 1.1.1(@types/node@20.11.0)(happy-dom@13.1.4) + version: 1.1.1(@types/node@20.11.4)(happy-dom@13.1.4) packages/schema: dependencies: @@ -473,8 +473,8 @@ importers: specifier: 8.0.8 version: 8.0.8 '@unhead/schema': - specifier: 1.8.9 - version: 1.8.9 + specifier: 1.8.10 + version: 1.8.10 '@vitejs/plugin-vue': specifier: 5.0.3 version: 5.0.3(vite@5.0.11)(vue@3.4.14) @@ -1894,7 +1894,7 @@ packages: '@nuxt/schema': link:packages/schema execa: 7.2.0 nuxt: link:packages/nuxt - vite: 5.0.11(@types/node@20.11.0) + vite: 5.0.11(@types/node@20.11.4) dev: false /@nuxt/devtools-wizard@1.0.8: @@ -1951,7 +1951,7 @@ packages: simple-git: 3.22.0 sirv: 2.0.4 unimport: 3.7.1(rollup@4.9.5) - vite: 5.0.11(@types/node@20.11.0) + vite: 5.0.11(@types/node@20.11.4) vite-plugin-inspect: 0.8.1(@nuxt/kit@packages+kit)(rollup@4.9.5)(vite@5.0.11) vite-plugin-vue-inspector: 4.0.2(vite@5.0.11) which: 3.0.1 @@ -2551,7 +2551,7 @@ packages: resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: '@types/jsonfile': 6.1.2 - '@types/node': 20.11.0 + '@types/node': 20.11.4 dev: true /@types/hash-sum@1.0.2: @@ -2607,11 +2607,6 @@ packages: '@types/node': 20.11.4 dev: true - /@types/node@20.11.0: - resolution: {integrity: sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ==} - dependencies: - undici-types: 5.26.5 - /@types/node@20.11.4: resolution: {integrity: sha512-6I0fMH8Aoy2lOejL3s4LhyIYX34DPwY8bl5xlNjBvUEk8OHrcuzsFt+Ied4LvJihbtXPM+8zUqdydfIti86v9g==} dependencies: @@ -2635,7 +2630,7 @@ packages: /@types/sass-loader@8.0.8: resolution: {integrity: sha512-hjP8aUyTDde2blD6clAGso/+ctC+9Rch/mDpvMe/kZrpXGZBDqf1K/48jWzXOX7hbd4jXQKQMPWdbBv4MRp0yQ==} dependencies: - '@types/node': 20.11.0 + '@types/node': 20.11.4 '@types/node-sass': 4.11.6 '@types/webpack': 4.41.34 sass: 1.69.4 @@ -2662,7 +2657,7 @@ packages: /@types/webpack-bundle-analyzer@4.6.3: resolution: {integrity: sha512-XYU3m7oRb1tlE8YhwkKLi1xba2buNB9V4VkQtOVTfJuUm/413pE/UCMVcPDFFBwpzGkr9y1WbSEvdPjKVPt0gw==} dependencies: - '@types/node': 20.11.0 + '@types/node': 20.11.4 tapable: 2.2.1 webpack: 5.89.0 transitivePeerDependencies: @@ -2854,41 +2849,41 @@ packages: /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} - /@unhead/dom@1.8.9: - resolution: {integrity: sha512-qY4CUVNKEM7lEAcTz5t71QYca+NXgUY5RwhSzB6sBBzZxQTiFOeTVKC6uWXU0N+3jBUdP/zdD3iN1JIjziDlng==} + /@unhead/dom@1.8.10: + resolution: {integrity: sha512-dBeDbHrBjeU+eVgMsD91TGEazb1dwLrY0x/ve01CldMCmm+WcRu++SUW7s1QX84mzGH2EgFz78o1OPn6jpV3zw==} dependencies: - '@unhead/schema': 1.8.9 - '@unhead/shared': 1.8.9 + '@unhead/schema': 1.8.10 + '@unhead/shared': 1.8.10 dev: false - /@unhead/schema@1.8.9: - resolution: {integrity: sha512-Cumjt2uLfBMEXflvq7Nk8KNqa/JS4MlRGWkjXx/uUXJ1vUeQqeMV8o3hrnRvDDoTXr9LwPapTMUbtClN3TSBgw==} + /@unhead/schema@1.8.10: + resolution: {integrity: sha512-cy8RGOPkwOVY5EmRoCgGV8AqLjy/226xBVTY54kBct02Om3hBdpB9FZa9frM910pPUXMI8PNmFgABO23O7IdJA==} dependencies: hookable: 5.5.3 zhead: 2.2.4 - /@unhead/shared@1.8.9: - resolution: {integrity: sha512-0o4+CBCi9EnTKPF6cEuLacnUHUkF0u/FfiKrWnKWUiB8wTD1v3UCf5ZCrNCjuJmKHTqj6ZtZ2hIfXsqWfc+3tA==} + /@unhead/shared@1.8.10: + resolution: {integrity: sha512-pEFryAs3EmV+ShDQx2ZBwUnt5l3RrMrXSMZ50oFf+MImKZNARVvD4+3I8fEI9wZh+Zq0JYG3UAfzo51MUP+Juw==} dependencies: - '@unhead/schema': 1.8.9 + '@unhead/schema': 1.8.10 dev: false - /@unhead/ssr@1.8.9: - resolution: {integrity: sha512-sQaA4FDFD1tRD2JiiHfdEY5rF1i54qFxCRqdX0pB+15JJCYBfIPJMr5T1SLJBgc9pqX4rS3MPg2Fc9DW+0p9yw==} + /@unhead/ssr@1.8.10: + resolution: {integrity: sha512-7wKRKDd8c2NFmMyPetj8Ah5u2hXunDBZT5Y2DH83O16PiMxx4/uobGamTV1EfcqjTvOKJvAqkrYZNYSWss99NQ==} dependencies: - '@unhead/schema': 1.8.9 - '@unhead/shared': 1.8.9 + '@unhead/schema': 1.8.10 + '@unhead/shared': 1.8.10 dev: false - /@unhead/vue@1.8.9(vue@3.4.14): - resolution: {integrity: sha512-sL1d2IRBZd5rjzhgTYni2DiociSpt+Cfz3iVWKb0EZwQHgg0GzV8Hkoj5TjZYZow6EjDSPRfVPXDwOwxkVOgug==} + /@unhead/vue@1.8.10(vue@3.4.14): + resolution: {integrity: sha512-KF8pftHnxnlBlgNpKXWLTg3ZUtkuDCxRPUFSDBy9CtqRSX/qvAhLZ26mbqRVmHj8KigiRHP/wnPWNyGnUx20Bg==} peerDependencies: vue: 3.4.14 dependencies: - '@unhead/schema': 1.8.9 - '@unhead/shared': 1.8.9 + '@unhead/schema': 1.8.10 + '@unhead/shared': 1.8.10 hookable: 5.5.3 - unhead: 1.8.9 + unhead: 1.8.10 vue: 3.4.14(typescript@5.3.3) dev: false @@ -2934,7 +2929,7 @@ packages: vite: 5.0.11 vue: 3.4.14 dependencies: - vite: 5.0.11(@types/node@20.11.0) + vite: 5.0.11(@types/node@20.11.4) vue: 3.4.14(typescript@5.3.3) /@vitest/coverage-v8@1.1.1(vitest@1.1.1): @@ -3063,7 +3058,7 @@ packages: dependencies: '@babel/types': 7.23.4 '@rollup/pluginutils': 5.1.0(rollup@4.9.5) - '@vue/compiler-sfc': 3.4.13 + '@vue/compiler-sfc': 3.4.14 ast-kit: 0.11.2(rollup@4.9.5) local-pkg: 0.4.3 magic-string-ast: 0.3.0 @@ -3093,15 +3088,6 @@ packages: transitivePeerDependencies: - supports-color - /@vue/compiler-core@3.4.13: - resolution: {integrity: sha512-zGUdmB3j3Irn9z51GXLJ5s0EAHxmsm5/eXl0y6MBaajMeOAaiT4+zaDoxui4Ets98dwIRr8BBaqXXHtHSfm+KA==} - dependencies: - '@babel/parser': 7.23.6 - '@vue/shared': 3.4.13 - entities: 4.5.0 - estree-walker: 2.0.2 - source-map-js: 1.0.2 - /@vue/compiler-core@3.4.14: resolution: {integrity: sha512-ro4Zzl/MPdWs7XwxT7omHRxAjMbDFRZEEjD+2m3NBf8YzAe3HuoSEZosXQo+m1GQ1G3LQ1LdmNh1RKTYe+ssEg==} dependencies: @@ -3111,32 +3097,12 @@ packages: estree-walker: 2.0.2 source-map-js: 1.0.2 - /@vue/compiler-dom@3.4.13: - resolution: {integrity: sha512-XSNbpr5Rs3kCfVAmBqMu/HDwOS+RL6y28ZZjDlnDUuf146pRWt2sQkwhsOYc9uu2lxjjJy2NcyOkK7MBLVEc7w==} - dependencies: - '@vue/compiler-core': 3.4.13 - '@vue/shared': 3.4.13 - /@vue/compiler-dom@3.4.14: resolution: {integrity: sha512-nOZTY+veWNa0DKAceNWxorAbWm0INHdQq7cejFaWM1WYnoNSJbSEKYtE7Ir6lR/+mo9fttZpPVI9ZFGJ1juUEQ==} dependencies: '@vue/compiler-core': 3.4.14 '@vue/shared': 3.4.14 - /@vue/compiler-sfc@3.4.13: - resolution: {integrity: sha512-SkpmQN8xIFBd5onT413DFSDdjxULJf6jmJg/t3w/DZ9I8ZzyNlLIBLO0qFLewVHyHCiAgpPZlWqSRZXYrawk3Q==} - dependencies: - '@babel/parser': 7.23.6 - '@vue/compiler-core': 3.4.13 - '@vue/compiler-dom': 3.4.13 - '@vue/compiler-ssr': 3.4.13 - '@vue/shared': 3.4.13 - estree-walker: 2.0.2 - magic-string: 0.30.5 - postcss: 8.4.33 - source-map-js: 1.0.2 - dev: false - /@vue/compiler-sfc@3.4.14: resolution: {integrity: sha512-1vHc9Kv1jV+YBZC/RJxQJ9JCxildTI+qrhtDh6tPkR1O8S+olBUekimY0km0ZNn8nG1wjtFAe9XHij+YLR8cRQ==} dependencies: @@ -3150,13 +3116,6 @@ packages: postcss: 8.4.33 source-map-js: 1.0.2 - /@vue/compiler-ssr@3.4.13: - resolution: {integrity: sha512-rwnw9SVBgD6eGKh8UucnwztieQo/R3RQrEGpE0b0cxb2xxvJeLs/fe7DoYlhEfaSyzM/qD5odkK87hl3G3oW+A==} - dependencies: - '@vue/compiler-dom': 3.4.13 - '@vue/shared': 3.4.13 - dev: false - /@vue/compiler-ssr@3.4.14: resolution: {integrity: sha512-bXT6+oAGlFjTYVOTtFJ4l4Jab1wjsC0cfSfOe2B4Z0N2vD2zOBSQ9w694RsCfhjk+bC2DY5Gubb1rHZVii107Q==} dependencies: @@ -3176,7 +3135,7 @@ packages: dependencies: '@volar/language-core': 1.11.1 '@volar/source-map': 1.11.1 - '@vue/compiler-dom': 3.4.13 + '@vue/compiler-dom': 3.4.14 '@vue/shared': 3.4.14 computeds: 0.0.1 minimatch: 9.0.3 @@ -3212,9 +3171,6 @@ packages: '@vue/shared': 3.4.14 vue: 3.4.14(typescript@5.3.3) - /@vue/shared@3.4.13: - resolution: {integrity: sha512-56crFKLPpzk85WXX1L1c0QzPOuoapWlPVys8eMG8kkRmqdMjWUqK8KpFdE2d7BQA4CEbXwyyHPq6MpFr8H9rcg==} - /@vue/shared@3.4.14: resolution: {integrity: sha512-nmi3BtLpvqXAWoRZ6HQ+pFJOHBU4UnH3vD3opgmwXac7vhaHKA9nj1VeGjMggdB9eLtW83eHyPCmOU1qzdsC7Q==} @@ -9121,12 +9077,12 @@ packages: node-fetch-native: 1.6.1 pathe: 1.1.2 - /unhead@1.8.9: - resolution: {integrity: sha512-qqCNmA4KOEDjcl+OtRZTllGehXewcQ31zbHjvhl/jqCs2MfRcZoxFW1y7A4Y4BgR/O7PI89K+GoWGcxK3gn64Q==} + /unhead@1.8.10: + resolution: {integrity: sha512-dth8FvZkLriO5ZWWOBIYBNSfGiwJtKcqpPWpSOk/Z0e2jdlgwoZEWZHFyte0EKvmbZxKcsWNMqIuv7dEmS5yZQ==} dependencies: - '@unhead/dom': 1.8.9 - '@unhead/schema': 1.8.9 - '@unhead/shared': 1.8.9 + '@unhead/dom': 1.8.10 + '@unhead/schema': 1.8.10 + '@unhead/shared': 1.8.10 hookable: 5.5.3 dev: false @@ -9371,27 +9327,6 @@ packages: - terser dev: true - /vite-node@1.1.1(@types/node@20.11.0): - resolution: {integrity: sha512-2bGE5w4jvym5v8llF6Gu1oBrmImoNSs4WmRVcavnG2me6+8UQntTqLiAMFyiAobp+ZXhj5ZFhI7SmLiFr/jrow==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - dependencies: - cac: 6.7.14 - debug: 4.3.4 - pathe: 1.1.2 - picocolors: 1.0.0 - vite: 5.0.11(@types/node@20.11.0) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - dev: true - /vite-node@1.1.1(@types/node@20.11.4): resolution: {integrity: sha512-2bGE5w4jvym5v8llF6Gu1oBrmImoNSs4WmRVcavnG2me6+8UQntTqLiAMFyiAobp+ZXhj5ZFhI7SmLiFr/jrow==} engines: {node: ^18.0.0 || >=20.0.0} @@ -9485,7 +9420,7 @@ packages: open: 9.1.0 picocolors: 1.0.0 sirv: 2.0.4 - vite: 5.0.11(@types/node@20.11.0) + vite: 5.0.11(@types/node@20.11.4) transitivePeerDependencies: - rollup - supports-color @@ -9502,49 +9437,14 @@ packages: '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.23.3) '@babel/plugin-transform-typescript': 7.23.3(@babel/core@7.23.3) '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.23.3) - '@vue/compiler-dom': 3.4.13 + '@vue/compiler-dom': 3.4.14 kolorist: 1.8.0 magic-string: 0.30.5 - vite: 5.0.11(@types/node@20.11.0) + vite: 5.0.11(@types/node@20.11.4) transitivePeerDependencies: - supports-color dev: false - /vite@5.0.11(@types/node@20.11.0): - resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 - less: '*' - lightningcss: ^1.21.0 - sass: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - dependencies: - '@types/node': 20.11.0 - esbuild: 0.19.11 - postcss: 8.4.33 - rollup: 4.9.5 - optionalDependencies: - fsevents: 2.3.3 - /vite@5.0.11(@types/node@20.11.4): resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -9657,64 +9557,6 @@ packages: - terser dev: true - /vitest@1.1.1(@types/node@20.11.0)(happy-dom@13.1.4): - resolution: {integrity: sha512-Ry2qs4UOu/KjpXVfOCfQkTnwSXYGrqTbBZxw6reIYEFjSy1QUARRg5pxiI5BEXy+kBVntxUYNMlq4Co+2vD3fQ==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': ^1.0.0 - '@vitest/ui': ^1.0.0 - happy-dom: '*' - jsdom: '*' - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@types/node': - optional: true - '@vitest/browser': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - dependencies: - '@types/node': 20.11.0 - '@vitest/expect': 1.1.1 - '@vitest/runner': 1.1.1 - '@vitest/snapshot': 1.1.1 - '@vitest/spy': 1.1.1 - '@vitest/utils': 1.1.1 - acorn-walk: 8.3.1 - cac: 6.7.14 - chai: 4.3.10 - debug: 4.3.4 - execa: 8.0.1 - happy-dom: 13.1.4 - local-pkg: 0.5.0 - magic-string: 0.30.5 - pathe: 1.1.2 - picocolors: 1.0.0 - std-env: 3.7.0 - strip-literal: 1.3.0 - tinybench: 2.5.1 - tinypool: 0.8.1 - vite: 5.0.11(@types/node@20.11.0) - vite-node: 1.1.1(@types/node@20.11.0) - why-is-node-running: 2.2.2 - transitivePeerDependencies: - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - dev: true - /vitest@1.1.1(@types/node@20.11.4)(happy-dom@13.1.4): resolution: {integrity: sha512-Ry2qs4UOu/KjpXVfOCfQkTnwSXYGrqTbBZxw6reIYEFjSy1QUARRg5pxiI5BEXy+kBVntxUYNMlq4Co+2vD3fQ==} engines: {node: ^18.0.0 || >=20.0.0} diff --git a/test/bundle.test.ts b/test/bundle.test.ts index beab6a14de..a5e2600efb 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(`"201k"`) const modules = await analyzeSizes('node_modules/**/*', serverDir) - expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1335k"`) + expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1336k"`) const packages = modules.files .filter(m => m.endsWith('package.json')) @@ -75,7 +75,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"518k"`) const modules = await analyzeSizes('node_modules/**/*', serverDir) - expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"77.0k"') + expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"77.2k"`) const packages = modules.files .filter(m => m.endsWith('package.json'))