diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e021f5119e..946bf70bfb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,7 +86,7 @@ jobs: run: pnpm install - name: Initialize CodeQL - uses: github/codeql-action/init@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5 + uses: github/codeql-action/init@701f152f28d4350ad289a5e31435e9ab6169a7ca # v2.21.6 with: languages: javascript queries: +security-and-quality @@ -98,7 +98,7 @@ jobs: path: packages - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5 + uses: github/codeql-action/analyze@701f152f28d4350ad289a5e31435e9ab6169a7ca # v2.21.6 with: category: "/language:javascript" diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index d4ff06ab82..007f2733bc 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -66,6 +66,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard. - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5 + uses: github/codeql-action/upload-sarif@701f152f28d4350ad289a5e31435e9ab6169a7ca # v2.21.6 with: sarif_file: results.sarif diff --git a/package.json b/package.json index 89c4a4f1fe..625f79eb24 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "fs-extra": "11.1.1", "globby": "13.2.2", "h3": "1.8.1", - "happy-dom": "11.0.3", + "happy-dom": "11.0.6", "jiti": "1.20.0", "markdownlint-cli": "^0.33.0", "nitropack": "2.6.3", diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 168c91cd7a..d460bc1a9c 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -58,9 +58,9 @@ "@nuxt/telemetry": "^2.4.1", "@nuxt/ui-templates": "^1.3.1", "@nuxt/vite-builder": "workspace:*", - "@unhead/dom": "^1.7.0", - "@unhead/ssr": "^1.7.0", - "@unhead/vue": "^1.7.0", + "@unhead/dom": "^1.7.2", + "@unhead/ssr": "^1.7.2", + "@unhead/vue": "^1.7.2", "@vue/shared": "^3.3.4", "acorn": "8.10.0", "c12": "^1.4.2", diff --git a/packages/schema/package.json b/packages/schema/package.json index 32202e6545..81d0a40843 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -32,7 +32,7 @@ "@types/file-loader": "5.0.1", "@types/pug": "2.0.6", "@types/sass-loader": "8.0.5", - "@unhead/schema": "1.7.0", + "@unhead/schema": "1.7.2", "@vitejs/plugin-vue": "4.3.4", "@vitejs/plugin-vue-jsx": "3.0.2", "@vue/compiler-core": "3.3.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 04f4826092..ec3072ac88 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -83,8 +83,8 @@ importers: specifier: 1.8.1 version: 1.8.1 happy-dom: - specifier: 11.0.3 - version: 11.0.3 + specifier: 11.0.6 + version: 11.0.6 jiti: specifier: 1.20.0 version: 1.20.0 @@ -102,7 +102,7 @@ importers: version: link:packages/nuxt nuxt-vitest: specifier: 0.10.5 - version: 0.10.5(@vitejs/plugin-vue-jsx@3.0.2)(@vitejs/plugin-vue@4.3.4)(happy-dom@11.0.3)(vite@4.4.9)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) + version: 0.10.5(@vitejs/plugin-vue-jsx@3.0.2)(@vitejs/plugin-vue@4.3.4)(happy-dom@11.0.6)(vite@4.4.9)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) ofetch: specifier: 1.3.3 version: 1.3.3 @@ -132,10 +132,10 @@ importers: version: 4.4.9(@types/node@18.17.15) vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@11.0.3) + version: 0.33.0(happy-dom@11.0.6) vitest-environment-nuxt: specifier: 0.10.5 - version: 0.10.5(happy-dom@11.0.3)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) + version: 0.10.5(happy-dom@11.0.6)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) vue: specifier: 3.3.4 version: 3.3.4 @@ -235,7 +235,7 @@ importers: version: 4.4.9(@types/node@18.17.15) vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@11.0.3) + version: 0.33.0(happy-dom@11.0.6) webpack: specifier: 5.88.2 version: 5.88.2 @@ -264,14 +264,14 @@ importers: specifier: ^14.18.0 || >=16.10.0 version: 18.17.15 '@unhead/dom': - specifier: ^1.7.0 - version: 1.7.0 + specifier: ^1.7.2 + version: 1.7.2 '@unhead/ssr': - specifier: ^1.7.0 - version: 1.7.0 + specifier: ^1.7.2 + version: 1.7.2 '@unhead/vue': - specifier: ^1.7.0 - version: 1.7.0(vue@3.3.4) + specifier: ^1.7.2 + version: 1.7.2(vue@3.3.4) '@vue/shared': specifier: ^3.3.4 version: 3.3.4 @@ -431,7 +431,7 @@ importers: version: 4.4.9(@types/node@18.17.15) vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@11.0.3) + version: 0.33.0(happy-dom@11.0.6) packages/schema: dependencies: @@ -479,8 +479,8 @@ importers: specifier: 8.0.5 version: 8.0.5 '@unhead/schema': - specifier: 1.7.0 - version: 1.7.0 + specifier: 1.7.2 + version: 1.7.2 '@vitejs/plugin-vue': specifier: 4.3.4 version: 4.3.4(vite@4.4.9)(vue@3.3.4) @@ -574,7 +574,7 @@ importers: version: 2.0.0(typescript@5.2.2) vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@11.0.3) + version: 0.33.0(happy-dom@11.0.6) packages/vite: dependencies: @@ -899,7 +899,7 @@ importers: version: 1.3.3 vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@11.0.3) + version: 0.33.0(happy-dom@11.0.6) vue: specifier: 3.3.4 version: 3.3.4 @@ -3155,41 +3155,41 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@unhead/dom@1.7.0: - resolution: {integrity: sha512-stmQRicSlv5fvAi6hD2pGhjGTCg7HTqNdVbfZXMrNhqA11aLmsY0zB0Dqa+VxEQqM493ORojGywQJNfo+f7wog==} + /@unhead/dom@1.7.2: + resolution: {integrity: sha512-XQTBmVRP53170/YqdRTzuw/cs2lD2eoaFd28FZC2hLBpnrHsYZ8Wb0HSdHUF+HsKMT2ePANIB27HJNn08VjuXg==} dependencies: - '@unhead/schema': 1.7.0 - '@unhead/shared': 1.7.0 + '@unhead/schema': 1.7.2 + '@unhead/shared': 1.7.2 dev: false - /@unhead/schema@1.7.0: - resolution: {integrity: sha512-mXDBW3h8c2x3JUOTVyEGCM7Cvy8vnDERbdBh8mZgTOFu90xy317MYN6RGaZRHt5lTqQ0dWzotmNuoYJcHAIIjg==} + /@unhead/schema@1.7.2: + resolution: {integrity: sha512-3KraAvRF14T/tLVJblDa91+L4VqjYK0GnvCUwo9ZHuRYoqK7fplZ7DYlvflC5rNS0vtsLHrFw7QFltczvIx75A==} dependencies: hookable: 5.5.3 zhead: 2.1.1 - /@unhead/shared@1.7.0: - resolution: {integrity: sha512-Etbw+OcN/cAWS2BCQyPmSqvPpECMthHsRv+/mSh8ykuZ6baU/0JR+Jk/oh3bOAwtmoM1jJiBU37gz68icZev0w==} + /@unhead/shared@1.7.2: + resolution: {integrity: sha512-txvsqfzqxqsFGjYai5PKIVErKlGPZUaTHugvpeH+syhqKnVbcc9DGOI3A5Tyh2Wsr8Hn63hZq6O2JZnab9Sj4Q==} dependencies: - '@unhead/schema': 1.7.0 + '@unhead/schema': 1.7.2 dev: false - /@unhead/ssr@1.7.0: - resolution: {integrity: sha512-2bI1Goqr0TJqM/DI6D9Q/DWDw4Qs8Y+/RHaeb5UnavNjUHEpCrKY3XL7RMGWeMaGRcQ0hhn5hjv+SyanA4kf5w==} + /@unhead/ssr@1.7.2: + resolution: {integrity: sha512-J38E7lpwJPVjbF9OU9GWMd5t4+sJhyIoUfdzXtclIpnKxpFRyyxf/pWIHI9vnEClpafNYCJe7rJ2rHLAudnNiQ==} dependencies: - '@unhead/schema': 1.7.0 - '@unhead/shared': 1.7.0 + '@unhead/schema': 1.7.2 + '@unhead/shared': 1.7.2 dev: false - /@unhead/vue@1.7.0(vue@3.3.4): - resolution: {integrity: sha512-MnRqWbbwE9mAywM7dDsfVZZGDzf/b4t4YoKq88dM2qW/cJ7yOJZTeXag/6WwwQU9TWzAvDhmq6vUgUyv/ZTCnQ==} + /@unhead/vue@1.7.2(vue@3.3.4): + resolution: {integrity: sha512-TxIQe5IoeaIxN6pV8Rve7zi8Myw1DBoOIU74Tr7rLGVkgkoeVKS+gHYg4h85/R8uey0qfvyKSEX00OMt1gPSxg==} peerDependencies: vue: 3.3.4 dependencies: - '@unhead/schema': 1.7.0 - '@unhead/shared': 1.7.0 + '@unhead/schema': 1.7.2 + '@unhead/shared': 1.7.2 hookable: 5.5.3 - unhead: 1.7.0 + unhead: 1.7.2 vue: 3.3.4 dev: false @@ -3284,7 +3284,7 @@ packages: pathe: 1.1.1 picocolors: 1.0.0 sirv: 2.0.3 - vitest: 0.33.0(happy-dom@11.0.3) + vitest: 0.33.0(happy-dom@11.0.6) dev: true /@vitest/utils@0.33.0: @@ -6219,8 +6219,8 @@ packages: uncrypto: 0.1.3 unenv: 1.7.4 - /happy-dom@11.0.3: - resolution: {integrity: sha512-/41hvN3F+rBc+YEVAmJRWsY45HJk71NoOx5DusUuYF6oFkT0WRvpvSNKXV51zeF5xxoA+cQjZt+DrlUTcPmFww==} + /happy-dom@11.0.6: + resolution: {integrity: sha512-GiNIoNhc/ZAvB2r3tc1DRvRSUaMt4A4Ub0IVpxURxsIqks1Q1UnNsdY9uwVjAT4B6DGHVmSOdqL5S5BNim8o+g==} dependencies: css.escape: 1.5.1 entities: 4.5.0 @@ -8179,7 +8179,7 @@ packages: - vue dev: true - /nuxt-vitest@0.10.5(@vitejs/plugin-vue-jsx@3.0.2)(@vitejs/plugin-vue@4.3.4)(happy-dom@11.0.3)(vite@4.4.9)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4): + /nuxt-vitest@0.10.5(@vitejs/plugin-vue-jsx@3.0.2)(@vitejs/plugin-vue@4.3.4)(happy-dom@11.0.6)(vite@4.4.9)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4): resolution: {integrity: sha512-C2VPccMHA/NdYzpFyOw+Wvl+k1LM8gy++yNO7fxJtHBMQEAcZgtq/CS/mPI6oTnOBJC+THjKr51CW0Qk+6CkzQ==} peerDependencies: '@vitejs/plugin-vue': '*' @@ -8196,8 +8196,8 @@ packages: perfect-debounce: 1.0.0 std-env: 3.4.3 vite: 4.4.9(@types/node@18.17.15) - vitest: 0.33.0(happy-dom@11.0.3) - vitest-environment-nuxt: 0.10.5(happy-dom@11.0.3)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) + vitest: 0.33.0(happy-dom@11.0.6) + vitest-environment-nuxt: 0.10.5(happy-dom@11.0.6)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4) transitivePeerDependencies: - '@testing-library/vue' - '@vue/server-renderer' @@ -10423,12 +10423,12 @@ packages: node-fetch-native: 1.4.0 pathe: 1.1.1 - /unhead@1.7.0: - resolution: {integrity: sha512-ql8U2dEf6de+8Bfy6MyHNbhKLkDE8sxWOEcDvHUsoKQ3eGjCiQbdMw8ha8r/jBs12bpgauQRC0p6kvIVSjR/og==} + /unhead@1.7.2: + resolution: {integrity: sha512-dyfo7TIVk/uu0/yM34VH4vif7GUCWQwUho5TqQiEtHo7yycT0cZz0Xa51thlc8DHV/TsJ42fAqUhhkMgfj6Gaw==} dependencies: - '@unhead/dom': 1.7.0 - '@unhead/schema': 1.7.0 - '@unhead/shared': 1.7.0 + '@unhead/dom': 1.7.2 + '@unhead/schema': 1.7.2 + '@unhead/shared': 1.7.2 hookable: 5.5.3 dev: false @@ -10874,7 +10874,7 @@ packages: optionalDependencies: fsevents: 2.3.3 - /vitest-environment-nuxt@0.10.5(happy-dom@11.0.3)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4): + /vitest-environment-nuxt@0.10.5(happy-dom@11.0.6)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4): resolution: {integrity: sha512-78kVcG/xmI9IcnioJyhY6RasRVMC8ahzzqymPGuMXwMR0twkYMxWwEgQY7eAcb8FPlb24lXYO9l605IXB8X2xA==} peerDependencies: '@testing-library/vue': 7.0.0 @@ -10896,20 +10896,20 @@ packages: defu: 6.1.2 estree-walker: 3.0.3 h3: 1.8.1 - happy-dom: 11.0.3 + happy-dom: 11.0.6 local-pkg: 0.4.3 magic-string: 0.30.3 ofetch: 1.3.3 ufo: 1.3.0 unenv: 1.7.4 - vitest: 0.33.0(happy-dom@11.0.3) + vitest: 0.33.0(happy-dom@11.0.6) vue: 3.3.4 vue-router: 4.2.4(vue@3.3.4) transitivePeerDependencies: - '@vue/server-renderer' dev: true - /vitest@0.33.0(happy-dom@11.0.3): + /vitest@0.33.0(happy-dom@11.0.6): resolution: {integrity: sha512-1CxaugJ50xskkQ0e969R/hW47za4YXDUfWJDxip1hwbnhUjYolpfUn2AMOulqG/Dtd9WYAtkHmM/m3yKVrEejQ==} engines: {node: '>=v14.18.0'} hasBin: true @@ -10953,7 +10953,7 @@ packages: cac: 6.7.14 chai: 4.3.7 debug: 4.3.4 - happy-dom: 11.0.3 + happy-dom: 11.0.6 local-pkg: 0.4.3 magic-string: 0.30.3 pathe: 1.1.1 diff --git a/test/bundle.test.ts b/test/bundle.test.ts index 62152e3074..d60dbf6298 100644 --- a/test/bundle.test.ts +++ b/test/bundle.test.ts @@ -19,7 +19,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM for (const outputDir of ['.output', '.output-inline']) { it('default client bundle size', async () => { const clientStats = await analyzeSizes('**/*.js', join(rootDir, outputDir, 'public')) - expect.soft(roundToKilobytes(clientStats.totalBytes)).toMatchInlineSnapshot('"96.1k"') + expect.soft(roundToKilobytes(clientStats.totalBytes)).toMatchInlineSnapshot('"96.2k"') expect(clientStats.files.map(f => f.replace(/\..*\.js/, '.js'))).toMatchInlineSnapshot(` [ "_nuxt/entry.js", @@ -35,7 +35,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"300k"') const modules = await analyzeSizes('node_modules/**/*', serverDir) - expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"1825k"') + expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"1826k"') const packages = modules.files .filter(m => m.endsWith('package.json')) @@ -74,7 +74,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"607k"') const modules = await analyzeSizes('node_modules/**/*', serverDir) - expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"74.0k"') + expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"74.1k"') const packages = modules.files .filter(m => m.endsWith('package.json'))