From fe9667939a37331f1d109aff3ef3558d99db5efe Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 2 Apr 2024 12:45:12 +0100 Subject: [PATCH 01/21] chore(deps): update all non-major dependencies (main) (#26584) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe --- package.json | 4 +- packages/nuxt/package.json | 6 +- packages/schema/package.json | 2 +- packages/webpack/package.json | 2 +- pnpm-lock.yaml | 290 +++++++++------------------------- test/bundle.test.ts | 2 +- 6 files changed, 83 insertions(+), 223 deletions(-) diff --git a/package.json b/package.json index 3117a858cd..2cf5df8463 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "fs-extra": "11.2.0", "globby": "14.0.1", "h3": "1.11.1", - "happy-dom": "14.3.9", + "happy-dom": "14.3.10", "jiti": "1.21.0", "markdownlint-cli": "0.39.0", "nitropack": "2.9.5", @@ -89,7 +89,7 @@ "vue-router": "4.3.0", "vue-tsc": "2.0.7" }, - "packageManager": "pnpm@8.15.5", + "packageManager": "pnpm@8.15.6", "engines": { "node": "^14.18.0 || >=16.10.0" }, diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 83fffa363c..1de62cf8d7 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -66,9 +66,9 @@ "@nuxt/telemetry": "^2.5.3", "@nuxt/ui-templates": "^1.3.1", "@nuxt/vite-builder": "workspace:*", - "@unhead/dom": "^1.9.3", - "@unhead/ssr": "^1.9.3", - "@unhead/vue": "^1.9.3", + "@unhead/dom": "^1.9.4", + "@unhead/ssr": "^1.9.4", + "@unhead/vue": "^1.9.4", "@vue/shared": "^3.4.21", "acorn": "8.11.3", "c12": "^1.10.0", diff --git a/packages/schema/package.json b/packages/schema/package.json index 3cb0df058c..358a1c1353 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.9.3", + "@unhead/schema": "1.9.4", "@vitejs/plugin-vue": "5.0.4", "@vitejs/plugin-vue-jsx": "3.1.0", "@vue/compiler-core": "3.4.21", diff --git a/packages/webpack/package.json b/packages/webpack/package.json index ed5ac84992..9a9b4567c6 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -42,7 +42,7 @@ "hash-sum": "^2.0.0", "lodash-es": "4.17.21", "magic-string": "^0.30.8", - "memfs": "^4.8.0", + "memfs": "^4.8.1", "mini-css-extract-plugin": "^2.8.1", "mlly": "^1.6.1", "ohash": "^1.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7c470e8f81..34b8b70a87 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,7 +27,7 @@ importers: version: link:packages/kit '@nuxt/test-utils': specifier: 3.12.0 - version: 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.9)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + version: 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) '@nuxt/webpack-builder': specifier: workspace:* version: link:packages/webpack @@ -92,8 +92,8 @@ importers: specifier: 1.11.1 version: 1.11.1 happy-dom: - specifier: 14.3.9 - version: 14.3.9 + specifier: 14.3.10 + version: 14.3.10 jiti: specifier: 1.21.0 version: 1.21.0 @@ -138,10 +138,10 @@ importers: version: 1.5.3 vitest: specifier: 1.4.0 - version: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.9) + version: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.10) vitest-environment-nuxt: specifier: 1.0.0 - version: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.9)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + version: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) vue: specifier: 3.4.21 version: 3.4.21(typescript@5.4.3) @@ -232,7 +232,7 @@ importers: version: 5.2.7(@types/node@20.12.2) vitest: specifier: 1.4.0 - version: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.9) + version: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.10) webpack: specifier: 5.91.0 version: 5.91.0 @@ -262,16 +262,16 @@ importers: version: link:../vite '@types/node': specifier: ^14.18.0 || >=16.10.0 - version: 20.11.30 + version: 20.12.2 '@unhead/dom': - specifier: ^1.9.3 - version: 1.9.3 + specifier: ^1.9.4 + version: 1.9.4 '@unhead/ssr': - specifier: ^1.9.3 - version: 1.9.3 + specifier: ^1.9.4 + version: 1.9.4 '@unhead/vue': - specifier: ^1.9.3 - version: 1.9.3(vue@3.4.21) + specifier: ^1.9.4 + version: 1.9.4(vue@3.4.21) '@vue/shared': specifier: ^3.4.21 version: 3.4.21 @@ -428,10 +428,10 @@ importers: version: 2.0.0(typescript@5.4.3) vite: specifier: 5.2.7 - version: 5.2.7(@types/node@20.11.30) + version: 5.2.7(@types/node@20.12.2) vitest: specifier: 1.4.0 - version: 1.4.0(@types/node@20.11.30)(happy-dom@14.3.9) + version: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.10) packages/schema: dependencies: @@ -482,8 +482,8 @@ importers: specifier: 8.0.8 version: 8.0.8 '@unhead/schema': - specifier: 1.9.3 - version: 1.9.3 + specifier: 1.9.4 + version: 1.9.4 '@vitejs/plugin-vue': specifier: 5.0.4 version: 5.0.4(vite@5.2.7)(vue@3.4.21) @@ -723,8 +723,8 @@ importers: specifier: ^0.30.8 version: 0.30.8 memfs: - specifier: ^4.8.0 - version: 4.8.0 + specifier: ^4.8.1 + version: 4.8.1 mini-css-extract-plugin: specifier: ^2.8.1 version: 2.8.1(webpack@5.91.0) @@ -852,7 +852,7 @@ importers: version: 1.5.3 unplugin: specifier: latest - version: 1.10.0 + version: 1.10.1 vue: specifier: 3.4.21 version: 3.4.21(typescript@5.4.3) @@ -868,7 +868,7 @@ importers: version: 1.3.4 vitest: specifier: 1.0.2 - version: 1.0.2(@types/node@20.12.2)(happy-dom@14.3.9) + version: 1.0.2(@types/node@20.12.2)(happy-dom@14.3.10) vue: specifier: 3.4.21 version: 3.4.21(typescript@5.4.3) @@ -2188,7 +2188,7 @@ packages: '@nuxt/schema': link:packages/schema execa: 7.2.0 nuxt: link:packages/nuxt - vite: 5.2.7(@types/node@20.11.30) + vite: 5.2.7(@types/node@20.12.2) dev: false /@nuxt/devtools-wizard@1.1.5: @@ -2249,7 +2249,7 @@ packages: simple-git: 3.23.0 sirv: 2.0.4 unimport: 3.7.1(rollup@4.13.2) - vite: 5.2.7(@types/node@20.11.30) + vite: 5.2.7(@types/node@20.12.2) vite-plugin-inspect: 0.8.3(@nuxt/kit@packages+kit)(rollup@4.13.2)(vite@5.2.7) vite-plugin-vue-inspector: 4.0.2(vite@5.2.7) which: 3.0.1 @@ -2328,7 +2328,7 @@ packages: rc9: 2.1.1 std-env: 3.7.0 - /@nuxt/test-utils@3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.9)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): + /@nuxt/test-utils@3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): resolution: {integrity: sha512-Q3HP53TDIYeqHT65r31HZhK/gRwVBmchSdVj1tfiYECyqstckvsQ4Cyt/GX/XmD7cLdD3d5aHow8LaMfP+BSqQ==} engines: {node: ^14.18.0 || >=16.10.0} peerDependencies: @@ -2381,7 +2381,7 @@ packages: fake-indexeddb: 5.0.2 get-port-please: 3.1.2 h3: 1.11.1 - happy-dom: 14.3.9 + happy-dom: 14.3.10 local-pkg: 0.5.0 magic-string: 0.30.8 node-fetch-native: 1.6.4 @@ -2396,8 +2396,8 @@ packages: unenv: 1.9.0 unplugin: 1.10.1 vite: 5.2.7(@types/node@20.12.2) - vitest: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.9) - vitest-environment-nuxt: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.9)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + vitest: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.10) + vitest-environment-nuxt: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) vue: 3.4.21(typescript@5.4.3) vue-router: 4.3.0(vue@3.4.21) dev: true @@ -3018,7 +3018,7 @@ packages: resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: '@types/jsonfile': 6.1.2 - '@types/node': 20.11.30 + '@types/node': 20.12.2 dev: true /@types/hash-sum@1.0.2: @@ -3090,11 +3090,6 @@ packages: '@types/node': 20.12.2 dev: true - /@types/node@20.11.30: - resolution: {integrity: sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==} - dependencies: - undici-types: 5.26.5 - /@types/node@20.12.2: resolution: {integrity: sha512-zQ0NYO87hyN6Xrclcqp7f8ZbXNbRfoGWNcMvHTPQp9UUrwI0mI7XBz+cu7/W6/VClYo2g63B0cjull/srU7LgQ==} dependencies: @@ -3118,7 +3113,7 @@ packages: /@types/sass-loader@8.0.8: resolution: {integrity: sha512-hjP8aUyTDde2blD6clAGso/+ctC+9Rch/mDpvMe/kZrpXGZBDqf1K/48jWzXOX7hbd4jXQKQMPWdbBv4MRp0yQ==} dependencies: - '@types/node': 20.11.30 + '@types/node': 20.12.2 '@types/node-sass': 4.11.6 '@types/webpack': 4.41.34 sass: 1.69.4 @@ -3157,7 +3152,7 @@ packages: /@types/webpack-bundle-analyzer@4.7.0: resolution: {integrity: sha512-c5i2ThslSNSG8W891BRvOd/RoCjI2zwph8maD22b1adtSns20j+0azDDMCK06DiVrzTgnwiDl5Ntmu1YRJw8Sg==} dependencies: - '@types/node': 20.11.30 + '@types/node': 20.12.2 tapable: 2.2.1 webpack: 5.91.0 transitivePeerDependencies: @@ -3358,41 +3353,41 @@ packages: /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} - /@unhead/dom@1.9.3: - resolution: {integrity: sha512-l7KO6zv8T/yKpWOtcKww3k6RLENEiwiapoiPwtKlwWBFJekSjgM1+1AVu58yWqadFYHGP0/XhMwxKrOaOL+Vkw==} + /@unhead/dom@1.9.4: + resolution: {integrity: sha512-nEaHOcCL0u56g4XOV5XGwRMFZ05eEINfp8nxVrPiIGLrS9BoFrZS7/6IYSkalkNRTmw8M5xqxt6BalBr594SaA==} dependencies: - '@unhead/schema': 1.9.3 - '@unhead/shared': 1.9.3 + '@unhead/schema': 1.9.4 + '@unhead/shared': 1.9.4 dev: false - /@unhead/schema@1.9.3: - resolution: {integrity: sha512-emFHDYxn6u5SVwSRXMpYBCYKBua+GCjUwTLLdUupInthW3UraSUuXakmv06wDvejE8pTrBOPrGWescIYmwm69A==} + /@unhead/schema@1.9.4: + resolution: {integrity: sha512-/J6KYQ+aqKO5uLDTU9BXfiRAfJ3mQNmF5gh3Iyd4qZaWfqjsDGYIaAe4xAGPnJxwBn6FHlnvQvZBSGqru1MByw==} dependencies: hookable: 5.5.3 zhead: 2.2.4 - /@unhead/shared@1.9.3: - resolution: {integrity: sha512-9wJ+wNmAVDCsCFKE3YHMwNkmFqKzCqQfp53ABJHQFOvY336s4nMWtiMNMjxF4aY4pJk8Qpwd8dRlgpLlyH0KZg==} + /@unhead/shared@1.9.4: + resolution: {integrity: sha512-ErP6SUzPPRX9Df4fqGlwlLInoG+iBiH0nDudRuIpoFGyTnv1uO9BQ+lfFld8s1gI1WCdoBwVkISBp9/f/E/GLA==} dependencies: - '@unhead/schema': 1.9.3 + '@unhead/schema': 1.9.4 dev: false - /@unhead/ssr@1.9.3: - resolution: {integrity: sha512-oFFynkmAoHoDU2uG3otBnYOj5rmi14fqaUpA4tzsRlyLiwyF3Hd8nXec9YM7JaBzstoiy2NGf7dTfY7eNc8NoQ==} + /@unhead/ssr@1.9.4: + resolution: {integrity: sha512-+32lSX6q+c+PcF0NsywBMmwDgxApjo4R7yxjRBB0gmeEcr58hejS/Ju82D8dLKvHqafLB1cQA7I4XUPyrDUx3Q==} dependencies: - '@unhead/schema': 1.9.3 - '@unhead/shared': 1.9.3 + '@unhead/schema': 1.9.4 + '@unhead/shared': 1.9.4 dev: false - /@unhead/vue@1.9.3(vue@3.4.21): - resolution: {integrity: sha512-DrTOTUOvKZlL7nVhsu9gCNXiGv/ErqHqSOrbNGqahlnOFJgJQD+9VVr904K/u75ISg00ksAzKfFPN15FgMovMw==} + /@unhead/vue@1.9.4(vue@3.4.21): + resolution: {integrity: sha512-F37bDhhieWQJyXvFV8NmrOXoIVJMhxVI/0ZUDrI9uTkMCofjfKWDJ+Gz0iYdhYF9mjQ5BN+pM31Zpxi+fN5Cfg==} peerDependencies: vue: 3.4.21 dependencies: - '@unhead/schema': 1.9.3 - '@unhead/shared': 1.9.3 + '@unhead/schema': 1.9.4 + '@unhead/shared': 1.9.4 hookable: 5.5.3 - unhead: 1.9.3 + unhead: 1.9.4 vue: 3.4.21(typescript@5.4.3) dev: false @@ -3407,7 +3402,7 @@ packages: '@unocss/core': 0.58.6 '@unocss/reset': 0.58.6 '@unocss/vite': 0.58.6(rollup@4.13.2)(vite@5.2.7) - vite: 5.2.7(@types/node@20.11.30) + vite: 5.2.7(@types/node@20.12.2) transitivePeerDependencies: - rollup dev: false @@ -3605,7 +3600,7 @@ packages: chokidar: 3.6.0 fast-glob: 3.3.2 magic-string: 0.30.8 - vite: 5.2.7(@types/node@20.11.30) + vite: 5.2.7(@types/node@20.12.2) transitivePeerDependencies: - rollup dev: false @@ -3653,7 +3648,7 @@ packages: vite: 5.2.7 vue: 3.4.21 dependencies: - vite: 5.2.7(@types/node@20.11.30) + vite: 5.2.7(@types/node@20.12.2) vue: 3.4.21(typescript@5.4.3) /@vitest/coverage-v8@1.4.0(vitest@1.4.0): @@ -3675,7 +3670,7 @@ packages: strip-literal: 2.1.0 test-exclude: 6.0.0 v8-to-istanbul: 9.2.0 - vitest: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.9) + vitest: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.10) transitivePeerDependencies: - supports-color dev: true @@ -5059,9 +5054,6 @@ packages: /convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} - /cookie-es@1.0.0: - resolution: {integrity: sha512-mWYvfOLrfEc996hlKcdABeIiPHUPC6DM2QYZdGGOvhOTbA3tjm2eBwqlJpoFdjC89NI4Qt6h0Pu06Mp+1Pj5OQ==} - /cookie-es@1.1.0: resolution: {integrity: sha512-L2rLOcK0wzWSfSDA33YR+PUHDG10a8px7rUHKWbGLP4YfbsMed2KFUw5fczvDPbT98DDe3LEzviswl810apTEw==} @@ -6788,8 +6780,8 @@ packages: transitivePeerDependencies: - uWebSockets.js - /happy-dom@14.3.9: - resolution: {integrity: sha512-0kPQchwthekcYpYN8CvCiq+/z5bqFYDLbTxZ+yDLwT8AFRVJDFadShHRxp3VAZRy7a5isOZ1j/LzsU1dtAIZMQ==} + /happy-dom@14.3.10: + resolution: {integrity: sha512-Rh5li9vA9MF9Gkg85CbFABKTa3uoSAByILRNGb92u/vswDd561gBg2p1UW1ZauvDWWwRxPcbACK5zv3BR+gHnQ==} engines: {node: '>=16.0.0'} dependencies: entities: 4.5.0 @@ -7523,10 +7515,6 @@ packages: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} requiresBuild: true - /js-tokens@8.0.2: - resolution: {integrity: sha512-Olnt+V7xYdvGze9YTbGFZIfQXuGV4R3nQwwl8BrtgaPE/wq8UFpUHWuTNc05saowhSr1ZO6tx+V6RjE9D5YQog==} - dev: true - /js-tokens@9.0.0: resolution: {integrity: sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==} @@ -8076,8 +8064,8 @@ packages: fs-monkey: 1.0.5 dev: false - /memfs@4.8.0: - resolution: {integrity: sha512-fcs7trFxZlOMadmTw5nyfOwS3il9pr3y+6xzLfXNwmuR/D0i4wz6rJURxArAbcJDGalbpbMvQ/IFI0NojRZgRg==} + /memfs@4.8.1: + resolution: {integrity: sha512-7q/AdPzf2WpwPlPL4v1kE2KsJsHl7EF4+hAeVzlyanr2+YnR21NVn9mDqo+7DEaKDRsQy8nvxPlKH4WqMtiO0w==} engines: {node: '>= 4.0.0'} dependencies: tslib: 2.6.2 @@ -8625,7 +8613,7 @@ packages: chokidar: 3.6.0 citty: 0.1.6 consola: 3.2.3 - cookie-es: 1.0.0 + cookie-es: 1.1.0 croner: 8.0.1 crossws: 0.2.4 db0: 0.1.4 @@ -10778,12 +10766,6 @@ packages: dependencies: acorn: 8.11.3 - /strip-literal@2.0.0: - resolution: {integrity: sha512-f9vHgsCWBq2ugHAkGMiiYY+AYG0D/cbloKKg0nhaaaSNsujdGIpVXCNsrJpCKr5M0f4aI31mr13UjY6GAuXCKA==} - dependencies: - js-tokens: 8.0.2 - dev: true - /strip-literal@2.1.0: resolution: {integrity: sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==} dependencies: @@ -11203,7 +11185,7 @@ packages: acorn: 8.11.3 estree-walker: 3.0.3 magic-string: 0.30.8 - unplugin: 1.10.0 + unplugin: 1.10.1 /undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} @@ -11223,12 +11205,12 @@ packages: node-fetch-native: 1.6.4 pathe: 1.1.2 - /unhead@1.9.3: - resolution: {integrity: sha512-nV6d4ALJph73hCJT1tAd4z30Q2Gv8vNUvK0netM/EetL2scdggf9brcX3OyPqWhZbnFIOE+AouH2oE1KPznkcw==} + /unhead@1.9.4: + resolution: {integrity: sha512-QVU0y3KowRu2cLjXxfemTKNohK4vdEwyahoszlEnRz0E5BTNRZQSs8AnommorGmVM7DvB2t4dwWadB51wDlPzw==} dependencies: - '@unhead/dom': 1.9.3 - '@unhead/schema': 1.9.3 - '@unhead/shared': 1.9.3 + '@unhead/dom': 1.9.4 + '@unhead/schema': 1.9.4 + '@unhead/shared': 1.9.4 hookable: 5.5.3 dev: false @@ -11361,7 +11343,7 @@ packages: '@unocss/transformer-directives': 0.58.6 '@unocss/transformer-variant-group': 0.58.6 '@unocss/vite': 0.58.6(rollup@4.13.2)(vite@5.2.7) - vite: 5.2.7(@types/node@20.11.30) + vite: 5.2.7(@types/node@20.12.2) transitivePeerDependencies: - postcss - rollup @@ -11395,15 +11377,6 @@ packages: - vue dev: false - /unplugin@1.10.0: - resolution: {integrity: sha512-CuZtvvO8ua2Wl+9q2jEaqH6m3DoQ38N7pvBYQbbaeNlWGvK2l6GHiKi29aIHDPoSxdUzQ7Unevf1/ugil5X6Pg==} - engines: {node: '>=14.0.0'} - dependencies: - acorn: 8.11.3 - chokidar: 3.6.0 - webpack-sources: 3.2.3 - webpack-virtual-modules: 0.6.1 - /unplugin@1.10.1: resolution: {integrity: sha512-d6Mhq8RJeGA8UfKCu54Um4lFA0eSaRa3XxdAJg8tIdxbu1ubW0hBCZUL7yI2uGyYCRndvbK8FLHzqy2XKfeMsg==} engines: {node: '>=14.0.0'} @@ -11598,7 +11571,7 @@ packages: peerDependencies: vite: 5.2.7 dependencies: - vite: 5.2.7(@types/node@20.11.30) + vite: 5.2.7(@types/node@20.12.2) dev: false /vite-node@1.0.2(@types/node@20.12.2): @@ -11622,27 +11595,6 @@ packages: - terser dev: true - /vite-node@1.4.0(@types/node@20.11.30): - resolution: {integrity: sha512-VZDAseqjrHgNd4Kh8icYHWzTKSCZMhia7GyHfhtzLW33fZlG9SwsB6CEhgyVOWkJfJ2pFLrp/Gj1FSfAiqH9Lw==} - 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.2.7(@types/node@20.11.30) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - dev: true - /vite-node@1.4.0(@types/node@20.12.2): resolution: {integrity: sha512-VZDAseqjrHgNd4Kh8icYHWzTKSCZMhia7GyHfhtzLW33fZlG9SwsB6CEhgyVOWkJfJ2pFLrp/Gj1FSfAiqH9Lw==} engines: {node: ^18.0.0 || >=20.0.0} @@ -11735,7 +11687,7 @@ packages: perfect-debounce: 1.0.0 picocolors: 1.0.0 sirv: 2.0.4 - vite: 5.2.7(@types/node@20.11.30) + vite: 5.2.7(@types/node@20.12.2) transitivePeerDependencies: - rollup - supports-color @@ -11755,46 +11707,11 @@ packages: '@vue/compiler-dom': 3.4.21 kolorist: 1.8.0 magic-string: 0.30.8 - vite: 5.2.7(@types/node@20.11.30) + vite: 5.2.7(@types/node@20.12.2) transitivePeerDependencies: - supports-color dev: false - /vite@5.2.7(@types/node@20.11.30): - resolution: {integrity: sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==} - 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.30 - esbuild: 0.20.2 - postcss: 8.4.38 - rollup: 4.13.2 - optionalDependencies: - fsevents: 2.3.3 - /vite@5.2.7(@types/node@20.12.2): resolution: {integrity: sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -11830,10 +11747,10 @@ packages: optionalDependencies: fsevents: 2.3.3 - /vitest-environment-nuxt@1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.9)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): + /vitest-environment-nuxt@1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): resolution: {integrity: sha512-AWMO9h4HdbaFdPWZw34gALFI8gbBiOpvfbyeZwHIPfh4kWg/TwElYHvYMQ61WPUlCGaS5LebfHkaI0WPyb//Iw==} dependencies: - '@nuxt/test-utils': 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.9)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + '@nuxt/test-utils': 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) transitivePeerDependencies: - '@cucumber/cucumber' - '@jest/globals' @@ -11851,7 +11768,7 @@ packages: - vue-router dev: true - /vitest@1.0.2(@types/node@20.12.2)(happy-dom@14.3.9): + /vitest@1.0.2(@types/node@20.12.2)(happy-dom@14.3.10): resolution: {integrity: sha512-F3NVwwpXfRSDnJmyv+ALPwSRVt0zDkRRE18pwUHSUPXAlWQ47rY1dc99ziMW5bBHyqwK2ERjMisLNoef64qk9w==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -11887,7 +11804,7 @@ packages: chai: 4.3.10 debug: 4.3.4 execa: 8.0.1 - happy-dom: 14.3.9 + happy-dom: 14.3.10 local-pkg: 0.5.0 magic-string: 0.30.8 pathe: 1.1.2 @@ -11909,64 +11826,7 @@ packages: - terser dev: true - /vitest@1.4.0(@types/node@20.11.30)(happy-dom@14.3.9): - resolution: {integrity: sha512-gujzn0g7fmwf83/WzrDTnncZt2UiXP41mHuFYFrdwaLRVQ6JYQEiME2IfEjU3vcFL3VKa75XhI3lFgn+hfVsQw==} - 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.4.0 - '@vitest/ui': 1.4.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.30 - '@vitest/expect': 1.4.0 - '@vitest/runner': 1.4.0 - '@vitest/snapshot': 1.4.0 - '@vitest/spy': 1.4.0 - '@vitest/utils': 1.4.0 - acorn-walk: 8.3.2 - chai: 4.3.10 - debug: 4.3.4 - execa: 8.0.1 - happy-dom: 14.3.9 - local-pkg: 0.5.0 - magic-string: 0.30.8 - pathe: 1.1.2 - picocolors: 1.0.0 - std-env: 3.7.0 - strip-literal: 2.0.0 - tinybench: 2.5.1 - tinypool: 0.8.2 - vite: 5.2.7(@types/node@20.11.30) - vite-node: 1.4.0(@types/node@20.11.30) - why-is-node-running: 2.2.2 - transitivePeerDependencies: - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - dev: true - - /vitest@1.4.0(@types/node@20.12.2)(happy-dom@14.3.9): + /vitest@1.4.0(@types/node@20.12.2)(happy-dom@14.3.10): resolution: {integrity: sha512-gujzn0g7fmwf83/WzrDTnncZt2UiXP41mHuFYFrdwaLRVQ6JYQEiME2IfEjU3vcFL3VKa75XhI3lFgn+hfVsQw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -12001,13 +11861,13 @@ packages: chai: 4.3.10 debug: 4.3.4 execa: 8.0.1 - happy-dom: 14.3.9 + happy-dom: 14.3.10 local-pkg: 0.5.0 magic-string: 0.30.8 pathe: 1.1.2 picocolors: 1.0.0 std-env: 3.7.0 - strip-literal: 2.0.0 + strip-literal: 2.1.0 tinybench: 2.5.1 tinypool: 0.8.2 vite: 5.2.7(@types/node@20.12.2) @@ -12250,7 +12110,7 @@ packages: optional: true dependencies: colorette: 2.0.20 - memfs: 4.8.0 + memfs: 4.8.1 mime-types: 2.1.35 on-finished: 2.4.1 range-parser: 1.2.1 diff --git a/test/bundle.test.ts b/test/bundle.test.ts index 63ce5418d5..5eb102893a 100644 --- a/test/bundle.test.ts +++ b/test/bundle.test.ts @@ -75,7 +75,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"526k"') const modules = await analyzeSizes('node_modules/**/*', serverDir) - expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"75.5k"') + expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"75.6k"') const packages = modules.files .filter(m => m.endsWith('package.json')) From 386be0b866382caddf31eba9965a0fd5cef94d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20G=C5=82owala?= Date: Tue, 2 Apr 2024 13:46:05 +0200 Subject: [PATCH 02/21] docs: replace `process.*` with `import.meta.*` (#26611) --- docs/1.getting-started/7.state-management.md | 4 ++-- docs/2.guide/2.directory-structure/1.middleware.md | 6 +++--- docs/2.guide/2.directory-structure/1.plugins.md | 2 +- docs/2.guide/3.going-further/10.runtime-config.md | 2 +- docs/2.guide/3.going-further/8.custom-routing.md | 2 +- docs/3.api/2.composables/use-nuxt-app.md | 6 +++--- docs/3.api/5.kit/10.templates.md | 2 +- docs/3.api/5.kit/9.plugins.md | 2 +- test/fixtures/basic/pages/preview/index.vue | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/1.getting-started/7.state-management.md b/docs/1.getting-started/7.state-management.md index b9d58a4402..d9edf3f161 100644 --- a/docs/1.getting-started/7.state-management.md +++ b/docs/1.getting-started/7.state-management.md @@ -130,12 +130,12 @@ export const useLocale = () => { export const useDefaultLocale = (fallback = 'en-US') => { const locale = ref(fallback) - if (process.server) { + if (import.meta.server) { const reqLocale = useRequestHeaders()['accept-language']?.split(',')[0] if (reqLocale) { locale.value = reqLocale } - } else if (process.client) { + } else if (import.meta.client) { const navLang = navigator.language if (navLang) { locale.value = navLang diff --git a/docs/2.guide/2.directory-structure/1.middleware.md b/docs/2.guide/2.directory-structure/1.middleware.md index 22c63eb24a..e4e97484d3 100644 --- a/docs/2.guide/2.directory-structure/1.middleware.md +++ b/docs/2.guide/2.directory-structure/1.middleware.md @@ -125,12 +125,12 @@ However, if you want to avoid this behaviour you can do so: ```ts twoslash [middleware/example.ts] export default defineNuxtRouteMiddleware(to => { // skip middleware on server - if (process.server) return + if (import.meta.server) return // skip middleware on client side entirely - if (process.client) return + if (import.meta.client) return // or only skip middleware on initial client load const nuxtApp = useNuxtApp() - if (process.client && nuxtApp.isHydrating && nuxtApp.payload.serverRendered) return + if (import.meta.client && nuxtApp.isHydrating && nuxtApp.payload.serverRendered) return }) ``` diff --git a/docs/2.guide/2.directory-structure/1.plugins.md b/docs/2.guide/2.directory-structure/1.plugins.md index 995e6212d1..4de600585d 100644 --- a/docs/2.guide/2.directory-structure/1.plugins.md +++ b/docs/2.guide/2.directory-structure/1.plugins.md @@ -78,7 +78,7 @@ export default defineNuxtPlugin({ ::note If you are using the object-syntax, the properties may be statically analyzed in future to produce a more optimized build. So you should not define them at runtime. :br -For example, setting `enforce: process.server ? 'pre' : 'post'` would defeat any future optimization Nuxt is able to do for your plugins. +For example, setting `enforce: import.meta.server ? 'pre' : 'post'` would defeat any future optimization Nuxt is able to do for your plugins. :: ## Registration Order diff --git a/docs/2.guide/3.going-further/10.runtime-config.md b/docs/2.guide/3.going-further/10.runtime-config.md index 192f73df94..e84823704c 100644 --- a/docs/2.guide/3.going-further/10.runtime-config.md +++ b/docs/2.guide/3.going-further/10.runtime-config.md @@ -98,7 +98,7 @@ The behavior is different between the client-side and server-side: const config = useRuntimeConfig() console.log('Runtime config:', config) -if (process.server) { +if (import.meta.server) { console.log('API secret:', config.apiSecret) } diff --git a/docs/2.guide/3.going-further/8.custom-routing.md b/docs/2.guide/3.going-further/8.custom-routing.md index b8f39b048d..3d88d20c03 100644 --- a/docs/2.guide/3.going-further/8.custom-routing.md +++ b/docs/2.guide/3.going-further/8.custom-routing.md @@ -172,6 +172,6 @@ import { createMemoryHistory } from 'vue-router' export default { // https://router.vuejs.org/api/interfaces/routeroptions.html - history: base => process.client ? createMemoryHistory(base) : null /* default */ + history: base => import.meta.client ? createMemoryHistory(base) : null /* default */ } ``` diff --git a/docs/3.api/2.composables/use-nuxt-app.md b/docs/3.api/2.composables/use-nuxt-app.md index c1d91933d5..29a920cdb1 100644 --- a/docs/3.api/2.composables/use-nuxt-app.md +++ b/docs/3.api/2.composables/use-nuxt-app.md @@ -51,7 +51,7 @@ export default defineNuxtPlugin((nuxtApp) => { }) nuxtApp.hook('vue:error', (..._args) => { console.log('vue:error') - // if (process.client) { + // if (import.meta.client) { // console.log(..._args) // } }) @@ -120,7 +120,7 @@ Nuxt exposes the following properties through `ssrContext`: export const useColor = () => useState('color', () => 'pink') export default defineNuxtPlugin((nuxtApp) => { - if (process.server) { + if (import.meta.server) { const color = useColor() } }) @@ -159,7 +159,7 @@ export default defineComponent({ setup (_props, { slots, emit }) { const nuxtApp = useNuxtApp() onErrorCaptured((err) => { - if (process.client && !nuxtApp.isHydrating) { + if (import.meta.client && !nuxtApp.isHydrating) { // ... } }) diff --git a/docs/3.api/5.kit/10.templates.md b/docs/3.api/5.kit/10.templates.md index d748246942..db6fdff969 100644 --- a/docs/3.api/5.kit/10.templates.md +++ b/docs/3.api/5.kit/10.templates.md @@ -117,7 +117,7 @@ import { defineNuxtPlugin } from '#imports' import metaConfig from '#build/meta.config.mjs' export default defineNuxtPlugin((nuxtApp) => { - const createHead = process.server ? createServerHead : createClientHead + const createHead = import.meta.server ? createServerHead : createClientHead const head = createHead() head.push(metaConfig.globalMeta) diff --git a/docs/3.api/5.kit/9.plugins.md b/docs/3.api/5.kit/9.plugins.md index af538cb142..aec172f0ec 100644 --- a/docs/3.api/5.kit/9.plugins.md +++ b/docs/3.api/5.kit/9.plugins.md @@ -251,7 +251,7 @@ export default defineNuxtPlugin((nuxtApp) => { nuxtApp.vueApp.use(VueFire, { firebaseApp }) <% if(options.ssr) { %> - if (process.server) { + if (import.meta.server) { nuxtApp.payload.vuefire = useSSRInitialState(undefined, firebaseApp) } else if (nuxtApp.payload?.vuefire) { useSSRInitialState(nuxtApp.payload.vuefire, firebaseApp) diff --git a/test/fixtures/basic/pages/preview/index.vue b/test/fixtures/basic/pages/preview/index.vue index df9c2c6dd1..ce33ac9cd5 100644 --- a/test/fixtures/basic/pages/preview/index.vue +++ b/test/fixtures/basic/pages/preview/index.vue @@ -4,7 +4,7 @@ const { enabled: isPreview } = usePreviewMode() const { data } = await useAsyncData(async () => { await new Promise(resolve => setTimeout(resolve, 200)) - const fetchedOnClient = process.client + const fetchedOnClient = import.meta.client console.log(fetchedOnClient) From 2f8915127df96648e1137217de954b59c579fd42 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Apr 2024 09:51:05 +0100 Subject: [PATCH 03/21] fix(nuxt): suppress warning about resolve cache-driver (#26595) --- packages/nuxt/src/core/nitro.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nuxt/src/core/nitro.ts b/packages/nuxt/src/core/nitro.ts index 128e08b198..5f35fc145f 100644 --- a/packages/nuxt/src/core/nitro.ts +++ b/packages/nuxt/src/core/nitro.ts @@ -12,6 +12,7 @@ import escapeRE from 'escape-string-regexp' import { defu } from 'defu' import fsExtra from 'fs-extra' import { dynamicEventHandler } from 'h3' +import { isWindows } from 'std-env' import type { Nuxt, NuxtOptions, RuntimeConfig } from 'nuxt/schema' // @ts-expect-error TODO: add legacy type support for subpath imports import { template as defaultSpaLoadingTemplate } from '@nuxt/ui-templates/templates/spa-loading-icon.mjs' @@ -416,10 +417,12 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) { }) const cacheDir = resolve(nuxt.options.buildDir, 'cache/nitro/prerender') + const cacheDriverPath = await resolvePath(join(distDir, 'core/runtime/nitro/cache-driver')) await fsp.rm(cacheDir, { recursive: true, force: true }).catch(() => {}) nitro.options._config.storage = defu(nitro.options._config.storage, { 'internal:nuxt:prerender': { - driver: pathToFileURL(await resolvePath(join(distDir, 'core/runtime/nitro/cache-driver'))).href, + // TODO: resolve upstream where file URLs are not being resolved/inlined correctly + driver: isWindows ? pathToFileURL(cacheDriverPath).href : cacheDriverPath, base: cacheDir } }) From cbb4a1cb61f1121399b3ee4889a7a50cdddcb837 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Apr 2024 10:15:21 +0100 Subject: [PATCH 04/21] perf(nuxt): unsubscribe from watch when scope is disposed (#26554) --- packages/nuxt/src/app/composables/asyncData.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/nuxt/src/app/composables/asyncData.ts b/packages/nuxt/src/app/composables/asyncData.ts index 6e8de20f3b..3fdb7a0bfa 100644 --- a/packages/nuxt/src/app/composables/asyncData.ts +++ b/packages/nuxt/src/app/composables/asyncData.ts @@ -1,4 +1,4 @@ -import { computed, getCurrentInstance, onBeforeMount, onServerPrefetch, onUnmounted, ref, shallowRef, toRef, unref, watch } from 'vue' +import { computed, getCurrentInstance, getCurrentScope, onBeforeMount, onScopeDispose, onServerPrefetch, onUnmounted, ref, shallowRef, toRef, unref, watch } from 'vue' import type { Ref, WatchSource } from 'vue' import type { NuxtApp } from '../nuxt' import { useNuxtApp } from '../nuxt' @@ -223,8 +223,8 @@ export function useAsyncData< const promise = nuxtApp.runWithContext(_handler) - nuxtApp.ssrContext!._sharedPrerenderCache!.set(key, promise) - return promise + nuxtApp.ssrContext!._sharedPrerenderCache!.set(key, promise) + return promise } // Used to get default values @@ -370,16 +370,20 @@ export function useAsyncData< // 4. Navigation (lazy: false) - or plugin usage: await fetch initialFetch() } + const hasScope = getCurrentScope() if (options.watch) { - watch(options.watch, () => asyncData.refresh()) + const unsub = watch(options.watch, () => asyncData.refresh()) + if (hasScope) { + onScopeDispose(unsub) + } } const off = nuxtApp.hook('app:data:refresh', async (keys) => { if (!keys || keys.includes(key)) { await asyncData.refresh() } }) - if (instance) { - onUnmounted(off) + if (hasScope) { + onScopeDispose(off) } } From 1019ed9fbad760db46f08c3180cba42e5173c1da Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Apr 2024 10:15:36 +0100 Subject: [PATCH 05/21] fix(nuxt): handle auto-importing named components (#26556) --- packages/nuxt/src/components/transform.ts | 15 ++- .../nuxt/test/components-transform.test.ts | 112 ++++++++++++++++++ 2 files changed, 121 insertions(+), 6 deletions(-) create mode 100644 packages/nuxt/test/components-transform.test.ts diff --git a/packages/nuxt/src/components/transform.ts b/packages/nuxt/src/components/transform.ts index 39258224e3..38acd08b3b 100644 --- a/packages/nuxt/src/components/transform.ts +++ b/packages/nuxt/src/components/transform.ts @@ -6,6 +6,7 @@ import { createUnplugin } from 'unplugin' import { parseURL } from 'ufo' import { parseQuery } from 'vue-router' import { normalize, resolve } from 'pathe' +import { genImport } from 'knitwork' import { distDir } from '../dirs' import type { getComponentsT } from './module' @@ -27,7 +28,7 @@ export function createTransformPlugin (nuxt: Nuxt, getComponents: getComponentsT const components = getComponents(mode) return components.flatMap((c): Import[] => { const withMode = (mode: string | undefined) => mode - ? `${c.filePath}${c.filePath.includes('?') ? '&' : '?'}nuxt_component=${mode}&nuxt_component_name=${c.pascalName}` + ? `${c.filePath}${c.filePath.includes('?') ? '&' : '?'}nuxt_component=${mode}&nuxt_component_name=${c.pascalName}&nuxt_component_export=${c.export || 'default'}` : c.filePath const mode = !c._raw && c.mode && ['client', 'server'].includes(c.mode) ? c.mode : undefined @@ -60,20 +61,22 @@ export function createTransformPlugin (nuxt: Nuxt, getComponents: getComponentsT const query = parseQuery(search) const mode = query.nuxt_component const bare = id.replace(/\?.*/, '') + const componentExport = query.nuxt_component_export as string || 'default' + const exportWording = componentExport === 'default' ? 'export default' : `export const ${componentExport} =` if (mode === 'async') { return { code: [ 'import { defineAsyncComponent } from "vue"', - `export default defineAsyncComponent(() => import(${JSON.stringify(bare)}).then(r => r.default))` + `${exportWording} defineAsyncComponent(() => import(${JSON.stringify(bare)}).then(r => r[${JSON.stringify(componentExport)}] || r.default || r))` ].join('\n'), map: null } } else if (mode === 'client') { return { code: [ - `import __component from ${JSON.stringify(bare)}`, + genImport(bare, [{ name: componentExport, as: '__component' }]), 'import { createClientOnly } from "#app/components/client-only"', - 'export default createClientOnly(__component)' + `${exportWording} createClientOnly(__component)` ].join('\n'), map: null } @@ -82,7 +85,7 @@ export function createTransformPlugin (nuxt: Nuxt, getComponents: getComponentsT code: [ 'import { defineAsyncComponent } from "vue"', 'import { createClientOnly } from "#app/components/client-only"', - `export default defineAsyncComponent(() => import(${JSON.stringify(bare)}).then(r => createClientOnly(r.default)))` + `${exportWording} defineAsyncComponent(() => import(${JSON.stringify(bare)}).then(r => createClientOnly(r[${JSON.stringify(componentExport)}] || r.default || r)))` ].join('\n'), map: null } @@ -91,7 +94,7 @@ export function createTransformPlugin (nuxt: Nuxt, getComponents: getComponentsT return { code: [ `import { createServerComponent } from ${JSON.stringify(serverComponentRuntime)}`, - `export default createServerComponent(${JSON.stringify(name)})` + `${exportWording} createServerComponent(${JSON.stringify(name)})` ].join('\n'), map: null } diff --git a/packages/nuxt/test/components-transform.test.ts b/packages/nuxt/test/components-transform.test.ts new file mode 100644 index 0000000000..b3a5127a26 --- /dev/null +++ b/packages/nuxt/test/components-transform.test.ts @@ -0,0 +1,112 @@ +import { fileURLToPath } from 'node:url' +import { describe, expect, it } from 'vitest' +import type { Component, Nuxt } from '@nuxt/schema' +import { kebabCase } from 'scule' + +import { createTransformPlugin } from '../src/components/transform' + +describe('components:transform', () => { + it('should transform #components imports', async () => { + const transform = createTransformer([ + createComponent('Foo'), + createComponent('Bar', { export: 'Bar' }) + ]) + + const code = await transform('import { Foo, Bar } from \'#components\'', '/app.vue') + expect(code).toMatchInlineSnapshot(` + "import Foo from '/Foo.vue'; + import { Bar } from '/Bar.vue'; + " + `) + }) + + it('should correctly resolve server-only components', async () => { + const transform = createTransformer([ + createComponent('Foo', { mode: 'server' }) + ]) + + const code = await transform('import { Foo, LazyFoo } from \'#components\'', '/app.vue') + expect(code).toMatchInlineSnapshot(` + "import Foo from '/Foo.vue?nuxt_component=server&nuxt_component_name=Foo&nuxt_component_export=default'; + import LazyFoo from '/Foo.vue?nuxt_component=server,async&nuxt_component_name=Foo&nuxt_component_export=default'; + " + `) + + expect(await transform('', '/Foo.vue?nuxt_component=server&nuxt_component_name=Foo&nuxt_component_export=default')).toMatchInlineSnapshot(` + "import { createServerComponent } from "/nuxt/src/components/runtime/server-component" + export default createServerComponent("Foo")" + `) + expect(await transform('', '/Foo.vue?nuxt_component=server,async&nuxt_component_name=Foo&nuxt_component_export=default')).toMatchInlineSnapshot(` + "import { createServerComponent } from "/nuxt/src/components/runtime/server-component" + export default createServerComponent("Foo")" + `) + expect(await transform('', '/Foo.vue?nuxt_component=server&nuxt_component_name=Foo&nuxt_component_export=Foo')).toMatchInlineSnapshot(` + "import { createServerComponent } from "/nuxt/src/components/runtime/server-component" + export const Foo = createServerComponent("Foo")" + `) + }) + + it('should correctly resolve client-only components', async () => { + const transform = createTransformer([ + createComponent('Foo', { mode: 'client' }) + ]) + + const code = await transform('import { Foo, LazyFoo } from \'#components\'', '/app.vue') + expect(code).toMatchInlineSnapshot(` + "import Foo from '/Foo.vue?nuxt_component=client&nuxt_component_name=Foo&nuxt_component_export=default'; + import LazyFoo from '/Foo.vue?nuxt_component=client,async&nuxt_component_name=Foo&nuxt_component_export=default'; + " + `) + + expect(await transform('', '/Foo.vue?nuxt_component=client&nuxt_component_name=Foo&nuxt_component_export=default')).toMatchInlineSnapshot(` + "import { default as __component } from "/Foo.vue"; + import { createClientOnly } from "#app/components/client-only" + export default createClientOnly(__component)" + `) + expect(await transform('', '/Foo.vue?nuxt_component=client,async&nuxt_component_name=Foo&nuxt_component_export=default')).toMatchInlineSnapshot(` + "import { defineAsyncComponent } from "vue" + import { createClientOnly } from "#app/components/client-only" + export default defineAsyncComponent(() => import("/Foo.vue").then(r => createClientOnly(r["default"] || r.default || r)))" + `) + expect(await transform('', '/Foo.vue?nuxt_component=client,async&nuxt_component_name=Foo&nuxt_component_export=Foo')).toMatchInlineSnapshot(` + "import { defineAsyncComponent } from "vue" + import { createClientOnly } from "#app/components/client-only" + export const Foo = defineAsyncComponent(() => import("/Foo.vue").then(r => createClientOnly(r["Foo"] || r.default || r)))" + `) + }) +}) + +const rootDir = fileURLToPath(new URL('../..', import.meta.url)) + +function createTransformer (components: Component[], mode: 'client' | 'server' | 'all' = 'all') { + const stubNuxt = { + options: { + buildDir: '/', + sourcemap: { + server: false, + client: false + } + } + } as Nuxt + const plugin = createTransformPlugin(stubNuxt, () => components, mode).vite() + + return async (code: string, id: string) => { + const result = await (plugin as any).transform!(code, id) + return (typeof result === 'string' ? result : result?.code)?.replaceAll(rootDir, '/') + } +} + +function createComponent (pascalName: string, options: Partial = {}) { + return { + filePath: `/${pascalName}.vue`, + pascalName, + export: 'default', + chunkName: `components/${pascalName.toLowerCase()}`, + kebabName: kebabCase(pascalName), + mode: 'all', + prefetch: false, + preload: false, + shortPath: `components/${pascalName}.vue`, + ...options + } satisfies Component +} From 9bb8976470c66352ee901a2db3216c6b3b060290 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Apr 2024 10:16:15 +0100 Subject: [PATCH 06/21] fix(schema): update webpack `transformAssetUrls` + pass `hoistStatic` to vite plugin (#26563) --- packages/schema/build.config.ts | 1 + packages/schema/package.json | 1 + packages/schema/src/config/app.ts | 8 ++++++++ packages/schema/src/config/typescript.ts | 1 + packages/schema/src/config/vite.ts | 6 ++++++ packages/schema/src/config/webpack.ts | 16 +++++++++------- packages/schema/src/types/config.ts | 2 +- packages/vite/src/vite.ts | 11 ----------- pnpm-lock.yaml | 10 +++++++--- 9 files changed, 34 insertions(+), 22 deletions(-) diff --git a/packages/schema/build.config.ts b/packages/schema/build.config.ts index 49c2520e6f..283258f95f 100644 --- a/packages/schema/build.config.ts +++ b/packages/schema/build.config.ts @@ -56,6 +56,7 @@ export default defineBuildConfig({ '@vue/language-core', // Implicit '@vue/compiler-core', + '@vue/compiler-sfc', '@vue/shared', 'untyped' ] diff --git a/packages/schema/package.json b/packages/schema/package.json index 358a1c1353..1e532ada5e 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -42,6 +42,7 @@ "@vitejs/plugin-vue": "5.0.4", "@vitejs/plugin-vue-jsx": "3.1.0", "@vue/compiler-core": "3.4.21", + "@vue/compiler-sfc": "^3.4.21", "@vue/language-core": "2.0.7", "c12": "1.10.0", "esbuild-loader": "4.1.0", diff --git a/packages/schema/src/config/app.ts b/packages/schema/src/config/app.ts index 8f8cfb8c1d..83559fb12a 100644 --- a/packages/schema/src/config/app.ts +++ b/packages/schema/src/config/app.ts @@ -8,6 +8,14 @@ export default defineUntypedSchema({ * Vue.js config */ vue: { + /** @type {typeof import('@vue/compiler-sfc').AssetURLTagConfig} */ + transformAssetUrls: { + video: ['src', 'poster'], + source: ['src'], + img: ['src'], + image: ['xlink:href', 'href'], + use: ['xlink:href', 'href'] + }, /** * Options for the Vue compiler that will be passed at build time. * @see [documentation](https://vuejs.org/api/application.html#app-config-compileroptions) diff --git a/packages/schema/src/config/typescript.ts b/packages/schema/src/config/typescript.ts index d67d6497ee..95e074d602 100644 --- a/packages/schema/src/config/typescript.ts +++ b/packages/schema/src/config/typescript.ts @@ -43,6 +43,7 @@ export default defineUntypedSchema({ '@unhead/vue', 'vue', '@vue/runtime-core', + '@vue/compiler-sfc', '@vue/runtime-dom', 'vue-router', '@nuxt/schema', diff --git a/packages/schema/src/config/vite.ts b/packages/schema/src/config/vite.ts index 070c3eb4b8..9e0e6d7e6d 100644 --- a/packages/schema/src/config/vite.ts +++ b/packages/schema/src/config/vite.ts @@ -49,11 +49,17 @@ export default defineUntypedSchema({ template: { compilerOptions: { $resolve: async (val, get) => val ?? (await get('vue') as Record).compilerOptions + }, + transformAssetUrls: { + $resolve: async (val, get) => val ?? (await get('vue') as Record).transformAssetUrls } }, script: { propsDestructure: { $resolve: async (val, get) => val ?? Boolean((await get('vue') as Record).propsDestructure) + }, + hoistStatic: { + $resolve: async (val, get) => val ?? (await get('vue') as Record).compilerOptions?.hoistStatic } } }, diff --git a/packages/schema/src/config/webpack.ts b/packages/schema/src/config/webpack.ts index ab24ac603c..6dc0d53582 100644 --- a/packages/schema/src/config/webpack.ts +++ b/packages/schema/src/config/webpack.ts @@ -1,5 +1,6 @@ import { defu } from 'defu' import { defineUntypedSchema } from 'untyped' +import type { VueLoaderOptions } from 'vue-loader' export default defineUntypedSchema({ webpack: { @@ -200,14 +201,15 @@ export default defineUntypedSchema({ */ vue: { transformAssetUrls: { - video: 'src', - source: 'src', - object: 'src', - embed: 'src' + $resolve: async (val, get) => (val ?? (await get('vue.transformAssetUrls'))) as VueLoaderOptions['transformAssetUrls'] }, - compilerOptions: { $resolve: async (val, get) => val ?? (await get('vue.compilerOptions')) }, - propsDestructure: { $resolve: async (val, get) => val ?? Boolean(await get('vue.propsDestructure')) } - }, + compilerOptions: { + $resolve: async (val, get) => (val ?? (await get('vue.compilerOptions'))) as VueLoaderOptions['compilerOptions'] + }, + propsDestructure: { + $resolve: async (val, get) => Boolean(val ?? await get('vue.propsDestructure')) + } + } satisfies { [K in keyof VueLoaderOptions]: { $resolve: (val: unknown, get: (id: string) => Promise) => Promise } }, css: { importLoaders: 0, diff --git a/packages/schema/src/types/config.ts b/packages/schema/src/types/config.ts index aa8197d299..b2e317e7bf 100644 --- a/packages/schema/src/types/config.ts +++ b/packages/schema/src/types/config.ts @@ -70,7 +70,7 @@ export type NuxtConfigLayer = ConfigLayer export interface NuxtBuilder { - bundle: (nuxt: Nuxt) => Promise + bundle: (nuxt: Nuxt) => Promise } // Normalized Nuxt options available as `nuxt.options.*` diff --git a/packages/vite/src/vite.ts b/packages/vite/src/vite.ts index 9c11437d90..3953928011 100644 --- a/packages/vite/src/vite.ts +++ b/packages/vite/src/vite.ts @@ -112,17 +112,6 @@ export const bundle: NuxtBuilder['bundle'] = async (nuxt) => { }), virtual(nuxt.vfs) ], - vue: { - template: { - transformAssetUrls: { - video: ['src', 'poster'], - source: ['src'], - img: ['src'], - image: ['xlink:href', 'href'], - use: ['xlink:href', 'href'] - } - } - }, server: { watch: { ignored: isIgnored }, fs: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 34b8b70a87..87feaf430e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -493,6 +493,9 @@ importers: '@vue/compiler-core': specifier: 3.4.21 version: 3.4.21 + '@vue/compiler-sfc': + specifier: ^3.4.21 + version: 3.4.21 '@vue/language-core': specifier: 2.0.7 version: 2.0.7(typescript@5.4.3) @@ -534,7 +537,7 @@ importers: version: 2.0.0 vue-loader: specifier: 17.4.2 - version: 17.4.2(vue@3.4.21)(webpack@5.91.0) + version: 17.4.2(@vue/compiler-sfc@3.4.21)(vue@3.4.21)(webpack@5.91.0) vue-router: specifier: 4.3.0 version: 4.3.0(vue@3.4.21) @@ -781,7 +784,7 @@ importers: version: 2.0.0 vue-loader: specifier: ^17.4.2 - version: 17.4.2(vue@3.4.21)(webpack@5.91.0) + version: 17.4.2(@vue/compiler-sfc@3.4.21)(vue@3.4.21)(webpack@5.91.0) webpack: specifier: ^5.91.0 version: 5.91.0 @@ -11974,7 +11977,7 @@ packages: - supports-color dev: true - /vue-loader@17.4.2(vue@3.4.21)(webpack@5.91.0): + /vue-loader@17.4.2(@vue/compiler-sfc@3.4.21)(vue@3.4.21)(webpack@5.91.0): resolution: {integrity: sha512-yTKOA4R/VN4jqjw4y5HrynFL8AK0Z3/Jt7eOJXEitsm0GMRHDBjCfCiuTiLP7OESvsZYo2pATCWhDqxC5ZrM6w==} peerDependencies: '@vue/compiler-sfc': '*' @@ -11986,6 +11989,7 @@ packages: vue: optional: true dependencies: + '@vue/compiler-sfc': 3.4.21 chalk: 4.1.2 hash-sum: 2.0.0 vue: 3.4.21(typescript@5.4.3) From 5f603610a5252b7557ec94d0003469701b49a3a6 Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Wed, 3 Apr 2024 11:16:32 +0200 Subject: [PATCH 07/21] fix(schema): document use case for `typescript.shim` (#26607) --- packages/schema/src/config/typescript.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/schema/src/config/typescript.ts b/packages/schema/src/config/typescript.ts index 95e074d602..21e36a4be2 100644 --- a/packages/schema/src/config/typescript.ts +++ b/packages/schema/src/config/typescript.ts @@ -79,6 +79,9 @@ export default defineUntypedSchema({ * * We recommend instead letting the [official Vue extension](https://marketplace.visualstudio.com/items?itemName=Vue.volar) * generate accurate types for your components. + * + * Note that if you may wish to set this to `true` if you are using other libraries, such as ESLint, + * that are unable to understand the type of `.vue` files. */ shim: false } From d38d7e59b28bf705a8c65e2b912c12b9360e3d27 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 10:33:06 +0100 Subject: [PATCH 08/21] chore(deps): pin devdependency @vue/compiler-sfc to 3.4.21 (main) (#26621) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/schema/package.json | 2 +- pnpm-lock.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/schema/package.json b/packages/schema/package.json index 1e532ada5e..ba60f50c99 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -42,7 +42,7 @@ "@vitejs/plugin-vue": "5.0.4", "@vitejs/plugin-vue-jsx": "3.1.0", "@vue/compiler-core": "3.4.21", - "@vue/compiler-sfc": "^3.4.21", + "@vue/compiler-sfc": "3.4.21", "@vue/language-core": "2.0.7", "c12": "1.10.0", "esbuild-loader": "4.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 87feaf430e..ed22d178fe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -494,7 +494,7 @@ importers: specifier: 3.4.21 version: 3.4.21 '@vue/compiler-sfc': - specifier: ^3.4.21 + specifier: 3.4.21 version: 3.4.21 '@vue/language-core': specifier: 2.0.7 From be49918139f3ab3224ce62cb1bc02038977456c3 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Apr 2024 10:56:27 +0100 Subject: [PATCH 09/21] perf(nuxt): reduce router resolutions (#26519) --- .../nuxt/src/pages/runtime/plugins/router.ts | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/packages/nuxt/src/pages/runtime/plugins/router.ts b/packages/nuxt/src/pages/runtime/plugins/router.ts index a53a73dab6..d46a3c5ad5 100644 --- a/packages/nuxt/src/pages/runtime/plugins/router.ts +++ b/packages/nuxt/src/pages/runtime/plugins/router.ts @@ -9,7 +9,7 @@ import { createWebHistory } from '#vue-router' import { createError } from 'h3' -import { isEqual, withoutBase } from 'ufo' +import { isEqual, isSamePath, withoutBase } from 'ufo' import type { PageMeta } from '../composables' @@ -70,9 +70,6 @@ const plugin: Plugin<{ router: Router }> = defineNuxtPlugin({ const routes = routerOptions.routes?.(_routes) ?? _routes let startPosition: Parameters[2] | null - const initialURL = import.meta.server - ? nuxtApp.ssrContext!.url - : createCurrentLocation(routerBase, window.location, nuxtApp.payload.path) const router = createRouter({ ...routerOptions, @@ -111,8 +108,12 @@ const plugin: Plugin<{ router: Router }> = defineNuxtPlugin({ get: () => previousRoute.value }) + const initialURL = import.meta.server + ? nuxtApp.ssrContext!.url + : createCurrentLocation(routerBase, window.location, nuxtApp.payload.path) + // Allows suspending the route object until page navigation completes - const _route = shallowRef(router.resolve(initialURL) as RouteLocation) + const _route = shallowRef(router.currentRoute.value) const syncCurrentRoute = () => { _route.value = router.currentRoute.value } nuxtApp.hook('page:finish', syncCurrentRoute) router.afterEach((to, from) => { @@ -138,19 +139,21 @@ const plugin: Plugin<{ router: Router }> = defineNuxtPlugin({ named: {} } - const error = useError() - try { if (import.meta.server) { await router.push(initialURL) } - await router.isReady() } catch (error: any) { // We'll catch 404s here await nuxtApp.runWithContext(() => showError(error)) } + const resolvedInitialRoute = import.meta.client && initialURL !== router.currentRoute.value.fullPath + ? router.resolve(initialURL) + : router.currentRoute.value + syncCurrentRoute() + if (import.meta.server && nuxtApp.ssrContext?.islandContext) { // We're in an island context, and don't need to handle middleware or redirections return { provide: { router } } @@ -225,6 +228,7 @@ const plugin: Plugin<{ router: Router }> = defineNuxtPlugin({ await nuxtApp.callHook('page:loading:end') }) + const error = useError() router.afterEach(async (to, _from, failure) => { delete nuxtApp._processingMiddleware @@ -247,18 +251,19 @@ const plugin: Plugin<{ router: Router }> = defineNuxtPlugin({ path: to.fullPath } }))) - } else if (import.meta.server && to.redirectedFrom && to.fullPath !== initialURL) { + } else if (import.meta.server && to.fullPath !== initialURL && (to.redirectedFrom || !isSamePath(to.fullPath, initialURL))) { await nuxtApp.runWithContext(() => navigateTo(to.fullPath || '/')) } }) nuxtApp.hooks.hookOnce('app:created', async () => { try { - const to = router.resolve(initialURL) // #4920, #4982 - if ('name' in to) { to.name = undefined } + if ('name' in resolvedInitialRoute) { + resolvedInitialRoute.name = undefined + } await router.replace({ - ...to, + ...resolvedInitialRoute, force: true }) // reset scroll behavior to initial value From 59b58b8485c9d1fce10503fe94ab5222262a8666 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 11:34:56 +0100 Subject: [PATCH 10/21] chore(deps): update all non-major dependencies (main) (#26613) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe --- package.json | 6 +- packages/kit/package.json | 2 +- packages/nuxt/package.json | 4 +- packages/schema/package.json | 6 +- packages/webpack/package.json | 2 +- pnpm-lock.yaml | 444 +++++++++++++++++----------------- test/bundle.test.ts | 4 +- 7 files changed, 234 insertions(+), 234 deletions(-) diff --git a/package.json b/package.json index 2cf5df8463..06b4c630d6 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "@nuxt/schema": "workspace:*", "@nuxt/vite-builder": "workspace:*", "@nuxt/webpack-builder": "workspace:*", - "rollup": "^4.13.2", + "rollup": "^4.14.0", "nuxt": "workspace:*", "vite": "5.2.7", "vue": "3.4.21", @@ -50,7 +50,7 @@ "@nuxt/webpack-builder": "workspace:*", "@testing-library/vue": "8.0.3", "@types/fs-extra": "11.0.4", - "@types/node": "20.12.2", + "@types/node": "20.12.3", "@types/semver": "7.5.8", "@vitest/coverage-v8": "1.4.0", "@vue/test-utils": "2.4.5", @@ -71,7 +71,7 @@ "happy-dom": "14.3.10", "jiti": "1.21.0", "markdownlint-cli": "0.39.0", - "nitropack": "2.9.5", + "nitropack": "2.9.6", "nuxi": "3.11.1", "nuxt": "workspace:*", "nuxt-content-twoslash": "0.0.10", diff --git a/packages/kit/package.json b/packages/kit/package.json index b81b39c497..229966ecc8 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -50,7 +50,7 @@ "@types/lodash-es": "4.17.12", "@types/semver": "7.5.8", "lodash-es": "4.17.21", - "nitropack": "2.9.5", + "nitropack": "2.9.6", "unbuild": "latest", "vite": "5.2.7", "vitest": "1.4.0", diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 1de62cf8d7..3580b3b963 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -64,7 +64,7 @@ "@nuxt/kit": "workspace:*", "@nuxt/schema": "workspace:*", "@nuxt/telemetry": "^2.5.3", - "@nuxt/ui-templates": "^1.3.1", + "@nuxt/ui-templates": "^1.3.2", "@nuxt/vite-builder": "workspace:*", "@unhead/dom": "^1.9.4", "@unhead/ssr": "^1.9.4", @@ -89,7 +89,7 @@ "knitwork": "^1.1.0", "magic-string": "^0.30.8", "mlly": "^1.6.1", - "nitropack": "^2.9.5", + "nitropack": "^2.9.6", "nuxi": "^3.11.1", "nypm": "^0.3.8", "ofetch": "^1.3.4", diff --git a/packages/schema/package.json b/packages/schema/package.json index ba60f50c99..0e94157ff2 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -48,7 +48,7 @@ "esbuild-loader": "4.1.0", "h3": "1.11.1", "ignore": "5.3.1", - "nitropack": "2.9.5", + "nitropack": "2.9.6", "ofetch": "1.3.4", "unbuild": "latest", "unctx": "2.3.1", @@ -59,10 +59,10 @@ "vue-loader": "17.4.2", "vue-router": "4.3.0", "webpack": "5.91.0", - "webpack-dev-middleware": "7.2.0" + "webpack-dev-middleware": "7.2.1" }, "dependencies": { - "@nuxt/ui-templates": "^1.3.1", + "@nuxt/ui-templates": "^1.3.2", "consola": "^3.2.3", "defu": "^6.1.4", "hookable": "^5.5.3", diff --git a/packages/webpack/package.json b/packages/webpack/package.json index 9a9b4567c6..b40b978920 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -64,7 +64,7 @@ "vue-loader": "^17.4.2", "webpack": "^5.91.0", "webpack-bundle-analyzer": "^4.10.1", - "webpack-dev-middleware": "^7.2.0", + "webpack-dev-middleware": "^7.2.1", "webpack-hot-middleware": "^2.26.1", "webpack-virtual-modules": "^0.6.1", "webpackbar": "^6.0.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ed22d178fe..b2e9ef1d44 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,7 +9,7 @@ overrides: '@nuxt/schema': workspace:* '@nuxt/vite-builder': workspace:* '@nuxt/webpack-builder': workspace:* - rollup: ^4.13.2 + rollup: ^4.14.0 nuxt: workspace:* vite: 5.2.7 vue: 3.4.21 @@ -38,8 +38,8 @@ importers: specifier: 11.0.4 version: 11.0.4 '@types/node': - specifier: 20.12.2 - version: 20.12.2 + specifier: 20.12.3 + version: 20.12.3 '@types/semver': specifier: 7.5.8 version: 7.5.8 @@ -101,8 +101,8 @@ importers: specifier: 0.39.0 version: 0.39.0 nitropack: - specifier: 2.9.5 - version: 2.9.5 + specifier: 2.9.6 + version: 2.9.6 nuxi: specifier: 3.11.1 version: 3.11.1 @@ -138,7 +138,7 @@ importers: version: 1.5.3 vitest: specifier: 1.4.0 - version: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.10) + version: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) vitest-environment-nuxt: specifier: 1.0.0 version: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) @@ -204,7 +204,7 @@ importers: version: 2.3.1 unimport: specifier: ^3.7.1 - version: 3.7.1(rollup@4.13.2) + version: 3.7.1(rollup@4.14.0) untyped: specifier: ^1.4.2 version: 1.4.2 @@ -222,17 +222,17 @@ importers: specifier: 4.17.21 version: 4.17.21 nitropack: - specifier: 2.9.5 - version: 2.9.5 + specifier: 2.9.6 + version: 2.9.6 unbuild: specifier: latest version: 2.0.0(typescript@5.4.3) vite: specifier: 5.2.7 - version: 5.2.7(@types/node@20.12.2) + version: 5.2.7(@types/node@20.12.3) vitest: specifier: 1.4.0 - version: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.10) + version: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) webpack: specifier: 5.91.0 version: 5.91.0 @@ -244,7 +244,7 @@ importers: version: 2.0.2 '@nuxt/devtools': specifier: ^1.1.5 - version: 1.1.5(@unocss/reset@0.58.6)(floating-vue@5.2.2)(nuxt@packages+nuxt)(rollup@4.13.2)(unocss@0.58.6)(vite@5.2.7)(vue@3.4.21) + version: 1.1.5(@unocss/reset@0.58.6)(floating-vue@5.2.2)(nuxt@packages+nuxt)(rollup@4.14.0)(unocss@0.58.6)(vite@5.2.7)(vue@3.4.21) '@nuxt/kit': specifier: workspace:* version: link:../kit @@ -255,14 +255,14 @@ importers: specifier: ^2.5.3 version: 2.5.3 '@nuxt/ui-templates': - specifier: ^1.3.1 - version: 1.3.1 + specifier: ^1.3.2 + version: 1.3.2 '@nuxt/vite-builder': specifier: workspace:* version: link:../vite '@types/node': specifier: ^14.18.0 || >=16.10.0 - version: 20.12.2 + version: 20.12.3 '@unhead/dom': specifier: ^1.9.4 version: 1.9.4 @@ -333,8 +333,8 @@ importers: specifier: ^1.6.1 version: 1.6.1 nitropack: - specifier: ^2.9.5 - version: 2.9.5 + specifier: ^2.9.6 + version: 2.9.6 nuxi: specifier: ^3.11.1 version: 3.11.1 @@ -385,13 +385,13 @@ importers: version: 1.9.0 unimport: specifier: ^3.7.1 - version: 3.7.1(rollup@4.13.2) + version: 3.7.1(rollup@4.14.0) unplugin: specifier: ^1.10.1 version: 1.10.1 unplugin-vue-router: specifier: ^0.7.0 - version: 0.7.0(rollup@4.13.2)(vue-router@4.3.0)(vue@3.4.21) + version: 0.7.0(rollup@4.14.0)(vue-router@4.3.0)(vue@3.4.21) unstorage: specifier: ^1.10.2 version: 1.10.2(ioredis@5.3.2) @@ -428,16 +428,16 @@ importers: version: 2.0.0(typescript@5.4.3) vite: specifier: 5.2.7 - version: 5.2.7(@types/node@20.12.2) + version: 5.2.7(@types/node@20.12.3) vitest: specifier: 1.4.0 - version: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.10) + version: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) packages/schema: dependencies: '@nuxt/ui-templates': - specifier: ^1.3.1 - version: 1.3.1 + specifier: ^1.3.2 + version: 1.3.2 consola: specifier: ^3.2.3 version: 3.2.3 @@ -464,7 +464,7 @@ importers: version: 1.5.3 unimport: specifier: ^3.7.1 - version: 3.7.1(rollup@4.13.2) + version: 3.7.1(rollup@4.14.0) untyped: specifier: ^1.4.2 version: 1.4.2 @@ -512,8 +512,8 @@ importers: specifier: 5.3.1 version: 5.3.1 nitropack: - specifier: 2.9.5 - version: 2.9.5 + specifier: 2.9.6 + version: 2.9.6 ofetch: specifier: 1.3.4 version: 1.3.4 @@ -528,7 +528,7 @@ importers: version: 1.9.0 vite: specifier: 5.2.7 - version: 5.2.7(@types/node@20.12.2) + version: 5.2.7(@types/node@20.12.3) vue: specifier: 3.4.21 version: 3.4.21(typescript@5.4.3) @@ -545,8 +545,8 @@ importers: specifier: 5.91.0 version: 5.91.0 webpack-dev-middleware: - specifier: 7.2.0 - version: 7.2.0(webpack@5.91.0) + specifier: 7.2.1 + version: 7.2.1(webpack@5.91.0) packages/vite: dependencies: @@ -555,7 +555,7 @@ importers: version: link:../kit '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.13.2) + version: 5.0.5(rollup@4.14.0) '@vitejs/plugin-vue': specifier: ^5.0.4 version: 5.0.4(vite@5.2.7)(vue@3.4.21) @@ -624,7 +624,7 @@ importers: version: 8.4.38 rollup-plugin-visualizer: specifier: ^5.12.0 - version: 5.12.0(rollup@4.13.2) + version: 5.12.0(rollup@4.14.0) std-env: specifier: ^3.7.0 version: 3.7.0 @@ -642,10 +642,10 @@ importers: version: 1.10.1 vite: specifier: 5.2.7 - version: 5.2.7(@types/node@20.12.2) + version: 5.2.7(@types/node@20.12.3) vite-node: specifier: ^1.4.0 - version: 1.4.0(@types/node@20.12.2) + version: 1.4.0(@types/node@20.12.3) vite-plugin-checker: specifier: ^0.6.4 version: 0.6.4(eslint@8.57.0)(typescript@5.4.3)(vite@5.2.7)(vue-tsc@2.0.7) @@ -792,8 +792,8 @@ importers: specifier: ^4.10.1 version: 4.10.1 webpack-dev-middleware: - specifier: ^7.2.0 - version: 7.2.0(webpack@5.91.0) + specifier: ^7.2.1 + version: 7.2.1(webpack@5.91.0) webpack-hot-middleware: specifier: ^2.26.1 version: 2.26.1 @@ -871,7 +871,7 @@ importers: version: 1.3.4 vitest: specifier: 1.0.2 - version: 1.0.2(@types/node@20.12.2)(happy-dom@14.3.10) + version: 1.0.2(@types/node@20.12.3)(happy-dom@14.3.10) vue: specifier: 3.4.21 version: 3.4.21(typescript@5.4.3) @@ -2007,7 +2007,7 @@ packages: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.5 '@types/istanbul-reports': 3.0.3 - '@types/node': 20.12.2 + '@types/node': 20.12.3 '@types/yargs': 17.0.28 chalk: 4.1.2 dev: false @@ -2191,7 +2191,7 @@ packages: '@nuxt/schema': link:packages/schema execa: 7.2.0 nuxt: link:packages/nuxt - vite: 5.2.7(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) dev: false /@nuxt/devtools-wizard@1.1.5: @@ -2210,7 +2210,7 @@ packages: semver: 7.6.0 dev: false - /@nuxt/devtools@1.1.5(@unocss/reset@0.58.6)(floating-vue@5.2.2)(nuxt@packages+nuxt)(rollup@4.13.2)(unocss@0.58.6)(vite@5.2.7)(vue@3.4.21): + /@nuxt/devtools@1.1.5(@unocss/reset@0.58.6)(floating-vue@5.2.2)(nuxt@packages+nuxt)(rollup@4.14.0)(unocss@0.58.6)(vite@5.2.7)(vue@3.4.21): resolution: {integrity: sha512-aDEqz4L1GDj4DDnX7PL9ety3Wx0kLyKTb2JOSoJR8uX09fC3gonCvj/gYHLSSIKqhPasUjoOO5RPCtT+r9dtsA==} hasBin: true peerDependencies: @@ -2251,9 +2251,9 @@ packages: semver: 7.6.0 simple-git: 3.23.0 sirv: 2.0.4 - unimport: 3.7.1(rollup@4.13.2) - vite: 5.2.7(@types/node@20.12.2) - vite-plugin-inspect: 0.8.3(@nuxt/kit@packages+kit)(rollup@4.13.2)(vite@5.2.7) + unimport: 3.7.1(rollup@4.14.0) + vite: 5.2.7(@types/node@20.12.3) + vite-plugin-inspect: 0.8.3(@nuxt/kit@packages+kit)(rollup@4.14.0)(vite@5.2.7) vite-plugin-vue-inspector: 4.0.2(vite@5.2.7) which: 3.0.1 ws: 8.16.0 @@ -2398,15 +2398,15 @@ packages: ufo: 1.5.3 unenv: 1.9.0 unplugin: 1.10.1 - vite: 5.2.7(@types/node@20.12.2) - vitest: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.10) + vite: 5.2.7(@types/node@20.12.3) + vitest: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) vitest-environment-nuxt: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) vue: 3.4.21(typescript@5.4.3) vue-router: 4.3.0(vue@3.4.21) dev: true - /@nuxt/ui-templates@1.3.1: - resolution: {integrity: sha512-5gc02Pu1HycOVUWJ8aYsWeeXcSTPe8iX8+KIrhyEtEoOSkY0eMBuo0ssljB8wALuEmepv31DlYe5gpiRwkjESA==} + /@nuxt/ui-templates@1.3.2: + resolution: {integrity: sha512-aLHpV7Nj2cAHM2hPtwOtT2OIeOy4p6GN5qvNm6zBt6wke33t1jn0PR/FNwvKROIxM0xTAwB6jdmRJLXRPVGNhA==} dev: false /@nuxtjs/mdc@0.5.0: @@ -2446,7 +2446,7 @@ packages: unified: 11.0.4 unist-builder: 4.0.0 unist-util-visit: 5.0.0 - unwasm: 0.3.8 + unwasm: 0.3.9 transitivePeerDependencies: - supports-color dev: true @@ -2592,101 +2592,101 @@ packages: resolution: {integrity: sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==} dev: false - /@rollup/plugin-alias@5.1.0(rollup@4.13.2): + /@rollup/plugin-alias@5.1.0(rollup@4.14.0): resolution: {integrity: sha512-lpA3RZ9PdIG7qqhEfv79tBffNaoDuukFDrmhLqg9ifv99u/ehn+lOg30x2zmhf8AQqQUZaMk/B9fZraQ6/acDQ==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^4.13.2 + rollup: ^4.14.0 peerDependenciesMeta: rollup: optional: true dependencies: - rollup: 4.13.2 + rollup: 4.14.0 slash: 4.0.0 - /@rollup/plugin-commonjs@25.0.7(rollup@4.13.2): + /@rollup/plugin-commonjs@25.0.7(rollup@4.14.0): resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^4.13.2 + rollup: ^4.14.0 peerDependenciesMeta: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) commondir: 1.0.1 estree-walker: 2.0.2 glob: 8.1.0 is-reference: 1.2.1 magic-string: 0.30.8 - rollup: 4.13.2 + rollup: 4.14.0 - /@rollup/plugin-inject@5.0.5(rollup@4.13.2): + /@rollup/plugin-inject@5.0.5(rollup@4.14.0): resolution: {integrity: sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^4.13.2 + rollup: ^4.14.0 peerDependenciesMeta: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) estree-walker: 2.0.2 magic-string: 0.30.8 - rollup: 4.13.2 + rollup: 4.14.0 - /@rollup/plugin-json@6.1.0(rollup@4.13.2): + /@rollup/plugin-json@6.1.0(rollup@4.14.0): resolution: {integrity: sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^4.13.2 + rollup: ^4.14.0 peerDependenciesMeta: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) - rollup: 4.13.2 + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) + rollup: 4.14.0 - /@rollup/plugin-node-resolve@15.2.3(rollup@4.13.2): + /@rollup/plugin-node-resolve@15.2.3(rollup@4.14.0): resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^4.13.2 + rollup: ^4.14.0 peerDependenciesMeta: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) '@types/resolve': 1.20.2 deepmerge: 4.3.1 is-builtin-module: 3.2.1 is-module: 1.0.0 resolve: 1.22.8 - rollup: 4.13.2 + rollup: 4.14.0 - /@rollup/plugin-replace@5.0.5(rollup@4.13.2): + /@rollup/plugin-replace@5.0.5(rollup@4.14.0): resolution: {integrity: sha512-rYO4fOi8lMaTg/z5Jb+hKnrHHVn8j2lwkqwyS4kTRhKyWOLf2wST2sWXr4WzWiTcoHTp2sTjqUbqIj2E39slKQ==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^4.13.2 + rollup: ^4.14.0 peerDependenciesMeta: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) magic-string: 0.30.8 - rollup: 4.13.2 + rollup: 4.14.0 - /@rollup/plugin-terser@0.4.4(rollup@4.13.2): + /@rollup/plugin-terser@0.4.4(rollup@4.14.0): resolution: {integrity: sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^4.13.2 + rollup: ^4.14.0 peerDependenciesMeta: rollup: optional: true dependencies: - rollup: 4.13.2 + rollup: 4.14.0 serialize-javascript: 6.0.2 smob: 1.4.1 terser: 5.27.0 @@ -2698,11 +2698,11 @@ packages: estree-walker: 2.0.2 picomatch: 2.3.1 - /@rollup/pluginutils@5.1.0(rollup@4.13.2): + /@rollup/pluginutils@5.1.0(rollup@4.14.0): resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^4.13.2 + rollup: ^4.14.0 peerDependenciesMeta: rollup: optional: true @@ -2710,108 +2710,108 @@ packages: '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 4.13.2 + rollup: 4.14.0 - /@rollup/rollup-android-arm-eabi@4.13.2: - resolution: {integrity: sha512-3XFIDKWMFZrMnao1mJhnOT1h2g0169Os848NhhmGweEcfJ4rCi+3yMCOLG4zA61rbJdkcrM/DjVZm9Hg5p5w7g==} + /@rollup/rollup-android-arm-eabi@4.14.0: + resolution: {integrity: sha512-jwXtxYbRt1V+CdQSy6Z+uZti7JF5irRKF8hlKfEnF/xJpcNGuuiZMBvuoYM+x9sr9iWGnzrlM0+9hvQ1kgkf1w==} cpu: [arm] os: [android] requiresBuild: true optional: true - /@rollup/rollup-android-arm64@4.13.2: - resolution: {integrity: sha512-GdxxXbAuM7Y/YQM9/TwwP+L0omeE/lJAR1J+olu36c3LqqZEBdsIWeQ91KBe6nxwOnb06Xh7JS2U5ooWU5/LgQ==} + /@rollup/rollup-android-arm64@4.14.0: + resolution: {integrity: sha512-fI9nduZhCccjzlsA/OuAwtFGWocxA4gqXGTLvOyiF8d+8o0fZUeSztixkYjcGq1fGZY3Tkq4yRvHPFxU+jdZ9Q==} cpu: [arm64] os: [android] requiresBuild: true optional: true - /@rollup/rollup-darwin-arm64@4.13.2: - resolution: {integrity: sha512-mCMlpzlBgOTdaFs83I4XRr8wNPveJiJX1RLfv4hggyIVhfB5mJfN4P8Z6yKh+oE4Luz+qq1P3kVdWrCKcMYrrA==} + /@rollup/rollup-darwin-arm64@4.14.0: + resolution: {integrity: sha512-BcnSPRM76/cD2gQC+rQNGBN6GStBs2pl/FpweW8JYuz5J/IEa0Fr4AtrPv766DB/6b2MZ/AfSIOSGw3nEIP8SA==} cpu: [arm64] os: [darwin] requiresBuild: true optional: true - /@rollup/rollup-darwin-x64@4.13.2: - resolution: {integrity: sha512-yUoEvnH0FBef/NbB1u6d3HNGyruAKnN74LrPAfDQL3O32e3k3OSfLrPgSJmgb3PJrBZWfPyt6m4ZhAFa2nZp2A==} + /@rollup/rollup-darwin-x64@4.14.0: + resolution: {integrity: sha512-LDyFB9GRolGN7XI6955aFeI3wCdCUszFWumWU0deHA8VpR3nWRrjG6GtGjBrQxQKFevnUTHKCfPR4IvrW3kCgQ==} cpu: [x64] os: [darwin] requiresBuild: true optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.13.2: - resolution: {integrity: sha512-GYbLs5ErswU/Xs7aGXqzc3RrdEjKdmoCrgzhJWyFL0r5fL3qd1NPcDKDowDnmcoSiGJeU68/Vy+OMUluRxPiLQ==} + /@rollup/rollup-linux-arm-gnueabihf@4.14.0: + resolution: {integrity: sha512-ygrGVhQP47mRh0AAD0zl6QqCbNsf0eTo+vgwkY6LunBcg0f2Jv365GXlDUECIyoXp1kKwL5WW6rsO429DBY/bA==} cpu: [arm] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-arm64-gnu@4.13.2: - resolution: {integrity: sha512-L1+D8/wqGnKQIlh4Zre9i4R4b4noxzH5DDciyahX4oOz62CphY7WDWqJoQ66zNR4oScLNOqQJfNSIAe/6TPUmQ==} + /@rollup/rollup-linux-arm64-gnu@4.14.0: + resolution: {integrity: sha512-x+uJ6MAYRlHGe9wi4HQjxpaKHPM3d3JjqqCkeC5gpnnI6OWovLdXTpfa8trjxPLnWKyBsSi5kne+146GAxFt4A==} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-arm64-musl@4.13.2: - resolution: {integrity: sha512-tK5eoKFkXdz6vjfkSTCupUzCo40xueTOiOO6PeEIadlNBkadH1wNOH8ILCPIl8by/Gmb5AGAeQOFeLev7iZDOA==} + /@rollup/rollup-linux-arm64-musl@4.14.0: + resolution: {integrity: sha512-nrRw8ZTQKg6+Lttwqo6a2VxR9tOroa2m91XbdQ2sUUzHoedXlsyvY1fN4xWdqz8PKmf4orDwejxXHjh7YBGUCA==} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-powerpc64le-gnu@4.13.2: - resolution: {integrity: sha512-zvXvAUGGEYi6tYhcDmb9wlOckVbuD+7z3mzInCSTACJ4DQrdSLPNUeDIcAQW39M3q6PDquqLWu7pnO39uSMRzQ==} + /@rollup/rollup-linux-powerpc64le-gnu@4.14.0: + resolution: {integrity: sha512-xV0d5jDb4aFu84XKr+lcUJ9y3qpIWhttO3Qev97z8DKLXR62LC3cXT/bMZXrjLF9X+P5oSmJTzAhqwUbY96PnA==} cpu: [ppc64le] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-riscv64-gnu@4.13.2: - resolution: {integrity: sha512-C3GSKvMtdudHCN5HdmAMSRYR2kkhgdOfye4w0xzyii7lebVr4riCgmM6lRiSCnJn2w1Xz7ZZzHKuLrjx5620kw==} + /@rollup/rollup-linux-riscv64-gnu@4.14.0: + resolution: {integrity: sha512-SDDhBQwZX6LPRoPYjAZWyL27LbcBo7WdBFWJi5PI9RPCzU8ijzkQn7tt8NXiXRiFMJCVpkuMkBf4OxSxVMizAw==} cpu: [riscv64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-s390x-gnu@4.13.2: - resolution: {integrity: sha512-l4U0KDFwzD36j7HdfJ5/TveEQ1fUTjFFQP5qIt9gBqBgu1G8/kCaq5Ok05kd5TG9F8Lltf3MoYsUMw3rNlJ0Yg==} + /@rollup/rollup-linux-s390x-gnu@4.14.0: + resolution: {integrity: sha512-RxB/qez8zIDshNJDufYlTT0ZTVut5eCpAZ3bdXDU9yTxBzui3KhbGjROK2OYTTor7alM7XBhssgoO3CZ0XD3qA==} cpu: [s390x] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-x64-gnu@4.13.2: - resolution: {integrity: sha512-xXMLUAMzrtsvh3cZ448vbXqlUa7ZL8z0MwHp63K2IIID2+DeP5iWIT6g1SN7hg1VxPzqx0xZdiDM9l4n9LRU1A==} + /@rollup/rollup-linux-x64-gnu@4.14.0: + resolution: {integrity: sha512-C6y6z2eCNCfhZxT9u+jAM2Fup89ZjiG5pIzZIDycs1IwESviLxwkQcFRGLjnDrP+PT+v5i4YFvlcfAs+LnreXg==} cpu: [x64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-x64-musl@4.13.2: - resolution: {integrity: sha512-M/JYAWickafUijWPai4ehrjzVPKRCyDb1SLuO+ZyPfoXgeCEAlgPkNXewFZx0zcnoIe3ay4UjXIMdXQXOZXWqA==} + /@rollup/rollup-linux-x64-musl@4.14.0: + resolution: {integrity: sha512-i0QwbHYfnOMYsBEyjxcwGu5SMIi9sImDVjDg087hpzXqhBSosxkE7gyIYFHgfFl4mr7RrXksIBZ4DoLoP4FhJg==} cpu: [x64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-win32-arm64-msvc@4.13.2: - resolution: {integrity: sha512-2YWwoVg9KRkIKaXSh0mz3NmfurpmYoBBTAXA9qt7VXk0Xy12PoOP40EFuau+ajgALbbhi4uTj3tSG3tVseCjuA==} + /@rollup/rollup-win32-arm64-msvc@4.14.0: + resolution: {integrity: sha512-Fq52EYb0riNHLBTAcL0cun+rRwyZ10S9vKzhGKKgeD+XbwunszSY0rVMco5KbOsTlwovP2rTOkiII/fQ4ih/zQ==} cpu: [arm64] os: [win32] requiresBuild: true optional: true - /@rollup/rollup-win32-ia32-msvc@4.13.2: - resolution: {integrity: sha512-2FSsE9aQ6OWD20E498NYKEQLneShWes0NGMPQwxWOdws35qQXH+FplabOSP5zEe1pVjurSDOGEVCE2agFwSEsw==} + /@rollup/rollup-win32-ia32-msvc@4.14.0: + resolution: {integrity: sha512-e/PBHxPdJ00O9p5Ui43+vixSgVf4NlLsmV6QneGERJ3lnjIua/kim6PRFe3iDueT1rQcgSkYP8ZBBXa/h4iPvw==} cpu: [ia32] os: [win32] requiresBuild: true optional: true - /@rollup/rollup-win32-x64-msvc@4.13.2: - resolution: {integrity: sha512-7h7J2nokcdPePdKykd8wtc8QqqkqxIrUz7MHj6aNr8waBRU//NLDVnNjQnqQO6fqtjrtCdftpbTuOKAyrAQETQ==} + /@rollup/rollup-win32-x64-msvc@4.14.0: + resolution: {integrity: sha512-aGg7iToJjdklmxlUlJh/PaPNa4PmqHfyRMLunbL3eaMO0gp656+q1zOKkpJ/CVe9CryJv6tAN1HDoR8cNGzkag==} cpu: [x64] os: [win32] requiresBuild: true @@ -2987,7 +2987,7 @@ packages: /@types/connect@3.4.37: resolution: {integrity: sha512-zBUSRqkfZ59OcwXon4HVxhx5oWCJmc0OtBTK05M+p0dYjgN6iTwIL2T/WbsQZrEsdnwaF9cWQ+azOnpPvIqY3Q==} dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 dev: true /@types/debug@4.1.12: @@ -3021,7 +3021,7 @@ packages: resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: '@types/jsonfile': 6.1.2 - '@types/node': 20.12.2 + '@types/node': 20.12.3 dev: true /@types/hash-sum@1.0.2: @@ -3037,7 +3037,7 @@ packages: /@types/http-proxy@1.17.14: resolution: {integrity: sha512-SSrD0c1OQzlFX7pGu1eXxSEjemej64aaNPRhhVYUGqXh0BtldAAx37MG8btcumvpgKyZp1F5Gn3JkktdxiFv6w==} dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 /@types/istanbul-lib-coverage@2.0.5: resolution: {integrity: sha512-zONci81DZYCZjiLe0r6equvZut0b+dBRPBN5kBDjsONnutYNtJMoWQ9uR2RkL1gLG9NMTzvf+29e5RFfPbeKhQ==} @@ -3064,7 +3064,7 @@ packages: /@types/jsonfile@6.1.2: resolution: {integrity: sha512-8t92P+oeW4d/CRQfJaSqEwXujrhH4OEeHRjGU3v1Q8mUS8GPF3yiX26sw4svv6faL2HfBtGTe2xWIoVgN3dy9w==} dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 dev: true /@types/lodash-es@4.17.12: @@ -3090,11 +3090,11 @@ packages: /@types/node-sass@4.11.6: resolution: {integrity: sha512-Qkf5Fs9zzsXchenUY7oVdIHyv8FtPgqIXqOJzhh3FDqpYjqvc/gtZ3hlZVFmKQhl7wyI4+WkRbYufYC5pfY7iw==} dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 dev: true - /@types/node@20.12.2: - resolution: {integrity: sha512-zQ0NYO87hyN6Xrclcqp7f8ZbXNbRfoGWNcMvHTPQp9UUrwI0mI7XBz+cu7/W6/VClYo2g63B0cjull/srU7LgQ==} + /@types/node@20.12.3: + resolution: {integrity: sha512-sD+ia2ubTeWrOu+YMF+MTAB7E+O7qsMqAbMfW7DG3K1URwhZ5hN1pLlRVGbf4wDFzSfikL05M17EyorS86jShw==} dependencies: undici-types: 5.26.5 @@ -3116,7 +3116,7 @@ packages: /@types/sass-loader@8.0.8: resolution: {integrity: sha512-hjP8aUyTDde2blD6clAGso/+ctC+9Rch/mDpvMe/kZrpXGZBDqf1K/48jWzXOX7hbd4jXQKQMPWdbBv4MRp0yQ==} dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 '@types/node-sass': 4.11.6 '@types/webpack': 4.41.34 sass: 1.69.4 @@ -3155,7 +3155,7 @@ packages: /@types/webpack-bundle-analyzer@4.7.0: resolution: {integrity: sha512-c5i2ThslSNSG8W891BRvOd/RoCjI2zwph8maD22b1adtSns20j+0azDDMCK06DiVrzTgnwiDl5Ntmu1YRJw8Sg==} dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 tapable: 2.2.1 webpack: 5.91.0 transitivePeerDependencies: @@ -3181,7 +3181,7 @@ packages: /@types/webpack-sources@3.2.1: resolution: {integrity: sha512-iLC3Fsx62ejm3ST3PQ8vBMC54Rb3EoCprZjeJGI5q+9QjfDLGt9jeg/k245qz1G9AQnORGk0vqPicJFPT1QODQ==} dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 '@types/source-list-map': 0.1.4 source-map: 0.7.4 dev: true @@ -3196,7 +3196,7 @@ packages: /@types/webpack@4.41.34: resolution: {integrity: sha512-CN2aOGrR3zbMc2v+cKqzaClYP1ldkpPOgtdNvgX+RmlWCSWxHxpzz6WSCVQZRkF8D60ROlkRzAoEpgjWQ+bd2g==} dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 '@types/tapable': 1.0.10 '@types/uglify-js': 3.17.3 '@types/webpack-sources': 3.2.1 @@ -3394,7 +3394,7 @@ packages: vue: 3.4.21(typescript@5.4.3) dev: false - /@unocss/astro@0.58.6(rollup@4.13.2)(vite@5.2.7): + /@unocss/astro@0.58.6(rollup@4.14.0)(vite@5.2.7): resolution: {integrity: sha512-0BvbhEp5Ln6wFNnhISusB2hcfycWkdgnjlFMcLT69efvj4G39MzB6JYT/1qiidLfpj35HcqkpBz7TfZ4bUmOAw==} peerDependencies: vite: 5.2.7 @@ -3404,19 +3404,19 @@ packages: dependencies: '@unocss/core': 0.58.6 '@unocss/reset': 0.58.6 - '@unocss/vite': 0.58.6(rollup@4.13.2)(vite@5.2.7) - vite: 5.2.7(@types/node@20.12.2) + '@unocss/vite': 0.58.6(rollup@4.14.0)(vite@5.2.7) + vite: 5.2.7(@types/node@20.12.3) transitivePeerDependencies: - rollup dev: false - /@unocss/cli@0.58.6(rollup@4.13.2): + /@unocss/cli@0.58.6(rollup@4.14.0): resolution: {integrity: sha512-cfJBiEAKElo9vcA4ZU1WTXeUha5qVBtn3+ZjgdgOvveSX0oY0gOheG+DD2LaEjwWzjCstFU38lblUHWzHRv0sQ==} engines: {node: '>=14'} hasBin: true dependencies: '@ampproject/remapping': 2.3.0 - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) '@unocss/config': 0.58.6 '@unocss/core': 0.58.6 '@unocss/preset-uno': 0.58.6 @@ -3588,13 +3588,13 @@ packages: '@unocss/core': 0.58.6 dev: false - /@unocss/vite@0.58.6(rollup@4.13.2)(vite@5.2.7): + /@unocss/vite@0.58.6(rollup@4.14.0)(vite@5.2.7): resolution: {integrity: sha512-DPXCoYU/Ozqc/Jeptd41XvtW8MSgVxmtTyhpMAsm/hJuBfwIV7Fy3TZquf4V9BpaTb4ao1LVXzgXmVUmj2HXpA==} peerDependencies: vite: 5.2.7 dependencies: '@ampproject/remapping': 2.3.0 - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) '@unocss/config': 0.58.6 '@unocss/core': 0.58.6 '@unocss/inspector': 0.58.6 @@ -3603,7 +3603,7 @@ packages: chokidar: 3.6.0 fast-glob: 3.3.2 magic-string: 0.30.8 - vite: 5.2.7(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) transitivePeerDependencies: - rollup dev: false @@ -3639,7 +3639,7 @@ packages: '@babel/core': 7.24.1 '@babel/plugin-transform-typescript': 7.24.1(@babel/core@7.24.1) '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.24.1) - vite: 5.2.7(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) vue: 3.4.21(typescript@5.4.3) transitivePeerDependencies: - supports-color @@ -3651,7 +3651,7 @@ packages: vite: 5.2.7 vue: 3.4.21 dependencies: - vite: 5.2.7(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) vue: 3.4.21(typescript@5.4.3) /@vitest/coverage-v8@1.4.0(vitest@1.4.0): @@ -3673,7 +3673,7 @@ packages: strip-literal: 2.1.0 test-exclude: 6.0.0 v8-to-istanbul: 9.2.0 - vitest: 1.4.0(@types/node@20.12.2)(happy-dom@14.3.10) + vitest: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) transitivePeerDependencies: - supports-color dev: true @@ -3783,7 +3783,7 @@ packages: '@volar/language-core': 2.1.3 path-browserify: 1.0.1 - /@vue-macros/common@1.10.1(rollup@4.13.2)(vue@3.4.21): + /@vue-macros/common@1.10.1(rollup@4.14.0)(vue@3.4.21): resolution: {integrity: sha512-uftSpfwdwitcQT2lM8aVxcfe5rKQBzC9jMrtJM5sG4hEuFyfIvnJihpPpnaWxY+X4p64k+YYXtBFv+1O5Bq3dg==} engines: {node: '>=16.14.0'} peerDependencies: @@ -3793,9 +3793,9 @@ packages: optional: true dependencies: '@babel/types': 7.24.0 - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) '@vue/compiler-sfc': 3.4.21 - ast-kit: 0.11.3(rollup@4.13.2) + ast-kit: 0.11.3(rollup@4.14.0) local-pkg: 0.5.0 magic-string-ast: 0.3.0 vue: 3.4.21(typescript@5.4.3) @@ -3941,7 +3941,7 @@ packages: colord: 2.9.3 floating-vue: 5.2.2(@nuxt/kit@packages+kit)(vue@3.4.21) focus-trap: 7.5.4 - unocss: 0.58.6(postcss@8.4.38)(rollup@4.13.2)(vite@5.2.7) + unocss: 0.58.6(postcss@8.4.38)(rollup@4.14.0)(vite@5.2.7) vue: 3.4.21(typescript@5.4.3) transitivePeerDependencies: - '@vue/composition-api' @@ -4521,34 +4521,34 @@ packages: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} dev: true - /ast-kit@0.11.3(rollup@4.13.2): + /ast-kit@0.11.3(rollup@4.14.0): resolution: {integrity: sha512-qdwwKEhckRk0XE22/xDdmU3v/60E8Edu4qFhgTLIhGGDs/PAJwLw9pQn8Rj99PitlbBZbYpx0k/lbir4kg0SuA==} engines: {node: '>=16.14.0'} dependencies: '@babel/parser': 7.24.1 - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) pathe: 1.1.2 transitivePeerDependencies: - rollup dev: false - /ast-kit@0.9.5(rollup@4.13.2): + /ast-kit@0.9.5(rollup@4.14.0): resolution: {integrity: sha512-kbL7ERlqjXubdDd+szuwdlQ1xUxEz9mCz1+m07ftNVStgwRb2RWw+U6oKo08PAvOishMxiqz1mlJyLl8yQx2Qg==} engines: {node: '>=16.14.0'} dependencies: '@babel/parser': 7.24.1 - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) pathe: 1.1.2 transitivePeerDependencies: - rollup dev: false - /ast-walker-scope@0.5.0(rollup@4.13.2): + /ast-walker-scope@0.5.0(rollup@4.14.0): resolution: {integrity: sha512-NsyHMxBh4dmdEHjBo1/TBZvCKxffmZxRYhmclfu0PP6Aftre47jOHYaYaNqJcV0bxihxFXhDkzLHUwHc0ocd0Q==} engines: {node: '>=16.14.0'} dependencies: '@babel/parser': 7.24.1 - ast-kit: 0.9.5(rollup@4.13.2) + ast-kit: 0.9.5(rollup@4.14.0) transitivePeerDependencies: - rollup dev: false @@ -7470,7 +7470,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 20.12.2 + '@types/node': 20.12.3 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -7481,7 +7481,7 @@ packages: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -7489,7 +7489,7 @@ packages: resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -8588,8 +8588,8 @@ packages: /neo-async@2.6.2: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} - /nitropack@2.9.5: - resolution: {integrity: sha512-ClanSILi9O6HX95QNIC+TwxojpRpOSn9n3e3wmHExAHhLN5HdnHGmHN4LwtJdE2p91nse3kDULOTR7k1xRVJ/g==} + /nitropack@2.9.6: + resolution: {integrity: sha512-HP2PE0dREcDIBVkL8Zm6eVyrDd10/GI9hTL00PHvjUM8I9Y/2cv73wRDmxNyInfrx/CJKHATb2U/pQrqpzJyXA==} engines: {node: ^16.11.0 || >=17.0.0} hasBin: true peerDependencies: @@ -8600,14 +8600,14 @@ packages: dependencies: '@cloudflare/kv-asset-handler': 0.3.1 '@netlify/functions': 2.6.0 - '@rollup/plugin-alias': 5.1.0(rollup@4.13.2) - '@rollup/plugin-commonjs': 25.0.7(rollup@4.13.2) - '@rollup/plugin-inject': 5.0.5(rollup@4.13.2) - '@rollup/plugin-json': 6.1.0(rollup@4.13.2) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.13.2) - '@rollup/plugin-replace': 5.0.5(rollup@4.13.2) - '@rollup/plugin-terser': 0.4.4(rollup@4.13.2) - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/plugin-alias': 5.1.0(rollup@4.14.0) + '@rollup/plugin-commonjs': 25.0.7(rollup@4.14.0) + '@rollup/plugin-inject': 5.0.5(rollup@4.14.0) + '@rollup/plugin-json': 6.1.0(rollup@4.14.0) + '@rollup/plugin-node-resolve': 15.2.3(rollup@4.14.0) + '@rollup/plugin-replace': 5.0.5(rollup@4.14.0) + '@rollup/plugin-terser': 0.4.4(rollup@4.14.0) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) '@types/http-proxy': 1.17.14 '@vercel/nft': 0.26.4 archiver: 7.0.1 @@ -8651,8 +8651,8 @@ packages: pkg-types: 1.0.3 pretty-bytes: 6.1.1 radix3: 1.1.2 - rollup: 4.13.2 - rollup-plugin-visualizer: 5.12.0(rollup@4.13.2) + rollup: 4.14.0 + rollup-plugin-visualizer: 5.12.0(rollup@4.14.0) scule: 1.3.0 semver: 7.6.0 serve-placeholder: 2.0.1 @@ -8662,9 +8662,9 @@ packages: uncrypto: 0.1.3 unctx: 2.3.1 unenv: 1.9.0 - unimport: 3.7.1(rollup@4.13.2) + unimport: 3.7.1(rollup@4.14.0) unstorage: 1.10.2(ioredis@5.3.2) - unwasm: 0.3.8 + unwasm: 0.3.9 transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -10209,58 +10209,58 @@ packages: glob: 10.3.10 dev: true - /rollup-plugin-dts@6.1.0(rollup@4.13.2)(typescript@5.4.3): + /rollup-plugin-dts@6.1.0(rollup@4.14.0)(typescript@5.4.3): resolution: {integrity: sha512-ijSCPICkRMDKDLBK9torss07+8dl9UpY9z1N/zTeA1cIqdzMlpkV3MOOC7zukyvQfDyxa1s3Dl2+DeiP/G6DOw==} engines: {node: '>=16'} peerDependencies: - rollup: ^4.13.2 + rollup: ^4.14.0 typescript: ^4.5 || ^5.0 dependencies: magic-string: 0.30.8 - rollup: 4.13.2 + rollup: 4.14.0 typescript: 5.4.3 optionalDependencies: '@babel/code-frame': 7.24.2 dev: true - /rollup-plugin-visualizer@5.12.0(rollup@4.13.2): + /rollup-plugin-visualizer@5.12.0(rollup@4.14.0): resolution: {integrity: sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ==} engines: {node: '>=14'} hasBin: true peerDependencies: - rollup: ^4.13.2 + rollup: ^4.14.0 peerDependenciesMeta: rollup: optional: true dependencies: open: 8.4.2 picomatch: 2.3.1 - rollup: 4.13.2 + rollup: 4.14.0 source-map: 0.7.4 yargs: 17.7.2 - /rollup@4.13.2: - resolution: {integrity: sha512-MIlLgsdMprDBXC+4hsPgzWUasLO9CE4zOkj/u6j+Z6j5A4zRY+CtiXAdJyPtgCsc42g658Aeh1DlrdVEJhsL2g==} + /rollup@4.14.0: + resolution: {integrity: sha512-Qe7w62TyawbDzB4yt32R0+AbIo6m1/sqO7UPzFS8Z/ksL5mrfhA0v4CavfdmFav3D+ub4QeAgsGEe84DoWe/nQ==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.13.2 - '@rollup/rollup-android-arm64': 4.13.2 - '@rollup/rollup-darwin-arm64': 4.13.2 - '@rollup/rollup-darwin-x64': 4.13.2 - '@rollup/rollup-linux-arm-gnueabihf': 4.13.2 - '@rollup/rollup-linux-arm64-gnu': 4.13.2 - '@rollup/rollup-linux-arm64-musl': 4.13.2 - '@rollup/rollup-linux-powerpc64le-gnu': 4.13.2 - '@rollup/rollup-linux-riscv64-gnu': 4.13.2 - '@rollup/rollup-linux-s390x-gnu': 4.13.2 - '@rollup/rollup-linux-x64-gnu': 4.13.2 - '@rollup/rollup-linux-x64-musl': 4.13.2 - '@rollup/rollup-win32-arm64-msvc': 4.13.2 - '@rollup/rollup-win32-ia32-msvc': 4.13.2 - '@rollup/rollup-win32-x64-msvc': 4.13.2 + '@rollup/rollup-android-arm-eabi': 4.14.0 + '@rollup/rollup-android-arm64': 4.14.0 + '@rollup/rollup-darwin-arm64': 4.14.0 + '@rollup/rollup-darwin-x64': 4.14.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.14.0 + '@rollup/rollup-linux-arm64-gnu': 4.14.0 + '@rollup/rollup-linux-arm64-musl': 4.14.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.14.0 + '@rollup/rollup-linux-riscv64-gnu': 4.14.0 + '@rollup/rollup-linux-s390x-gnu': 4.14.0 + '@rollup/rollup-linux-x64-gnu': 4.14.0 + '@rollup/rollup-linux-x64-musl': 4.14.0 + '@rollup/rollup-win32-arm64-msvc': 4.14.0 + '@rollup/rollup-win32-ia32-msvc': 4.14.0 + '@rollup/rollup-win32-x64-msvc': 4.14.0 fsevents: 2.3.3 /run-applescript@5.0.0: @@ -11140,12 +11140,12 @@ packages: typescript: optional: true dependencies: - '@rollup/plugin-alias': 5.1.0(rollup@4.13.2) - '@rollup/plugin-commonjs': 25.0.7(rollup@4.13.2) - '@rollup/plugin-json': 6.1.0(rollup@4.13.2) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.13.2) - '@rollup/plugin-replace': 5.0.5(rollup@4.13.2) - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/plugin-alias': 5.1.0(rollup@4.14.0) + '@rollup/plugin-commonjs': 25.0.7(rollup@4.14.0) + '@rollup/plugin-json': 6.1.0(rollup@4.14.0) + '@rollup/plugin-node-resolve': 15.2.3(rollup@4.14.0) + '@rollup/plugin-replace': 5.0.5(rollup@4.14.0) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) chalk: 5.3.0 citty: 0.1.6 consola: 3.2.3 @@ -11160,8 +11160,8 @@ packages: pathe: 1.1.2 pkg-types: 1.0.3 pretty-bytes: 6.1.1 - rollup: 4.13.2 - rollup-plugin-dts: 6.1.0(rollup@4.13.2)(typescript@5.4.3) + rollup: 4.14.0 + rollup-plugin-dts: 6.1.0(rollup@4.14.0)(typescript@5.4.3) scule: 1.3.0 typescript: 5.4.3 untyped: 1.4.2 @@ -11238,10 +11238,10 @@ packages: vfile: 6.0.1 dev: true - /unimport@3.7.1(rollup@4.13.2): + /unimport@3.7.1(rollup@4.14.0): resolution: {integrity: sha512-V9HpXYfsZye5bPPYUgs0Otn3ODS1mDUciaBlXljI4C2fTwfFpvFZRywmlOu943puN9sncxROMZhsZCjNXEpzEQ==} dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) acorn: 8.11.3 escape-string-regexp: 5.0.0 estree-walker: 3.0.3 @@ -11314,7 +11314,7 @@ packages: resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} engines: {node: '>= 10.0.0'} - /unocss@0.58.6(postcss@8.4.38)(rollup@4.13.2)(vite@5.2.7): + /unocss@0.58.6(postcss@8.4.38)(rollup@4.14.0)(vite@5.2.7): resolution: {integrity: sha512-HBstDtC6KKD5yCYh5hHpPdHGZai0B/iLlDwkOIK+xfQYrvl8tNBvKfRz3xgiaI5MJ+fLmEOxbfXQIjleU1A0iA==} engines: {node: '>=14'} peerDependencies: @@ -11326,8 +11326,8 @@ packages: vite: optional: true dependencies: - '@unocss/astro': 0.58.6(rollup@4.13.2)(vite@5.2.7) - '@unocss/cli': 0.58.6(rollup@4.13.2) + '@unocss/astro': 0.58.6(rollup@4.14.0)(vite@5.2.7) + '@unocss/cli': 0.58.6(rollup@4.14.0) '@unocss/core': 0.58.6 '@unocss/extractor-arbitrary-variants': 0.58.6 '@unocss/postcss': 0.58.6(postcss@8.4.38) @@ -11345,15 +11345,15 @@ packages: '@unocss/transformer-compile-class': 0.58.6 '@unocss/transformer-directives': 0.58.6 '@unocss/transformer-variant-group': 0.58.6 - '@unocss/vite': 0.58.6(rollup@4.13.2)(vite@5.2.7) - vite: 5.2.7(@types/node@20.12.2) + '@unocss/vite': 0.58.6(rollup@4.14.0)(vite@5.2.7) + vite: 5.2.7(@types/node@20.12.3) transitivePeerDependencies: - postcss - rollup - supports-color dev: false - /unplugin-vue-router@0.7.0(rollup@4.13.2)(vue-router@4.3.0)(vue@3.4.21): + /unplugin-vue-router@0.7.0(rollup@4.14.0)(vue-router@4.3.0)(vue@3.4.21): resolution: {integrity: sha512-ddRreGq0t5vlSB7OMy4e4cfU1w2AwBQCwmvW3oP/0IHQiokzbx4hd3TpwBu3eIAFVuhX2cwNQwp1U32UybTVCw==} peerDependencies: vue-router: ^4.1.0 @@ -11362,9 +11362,9 @@ packages: optional: true dependencies: '@babel/types': 7.24.0 - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) - '@vue-macros/common': 1.10.1(rollup@4.13.2)(vue@3.4.21) - ast-walker-scope: 0.5.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) + '@vue-macros/common': 1.10.1(rollup@4.14.0)(vue@3.4.21) + ast-walker-scope: 0.5.0(rollup@4.14.0) chokidar: 3.6.0 fast-glob: 3.3.2 json5: 2.2.3 @@ -11474,8 +11474,8 @@ packages: transitivePeerDependencies: - supports-color - /unwasm@0.3.8: - resolution: {integrity: sha512-nIJQXxGl/gTUp5dZkSc8jbxAqSOa9Vv4jjSZXNI6OK0JXdvW3SQUHR+KY66rjI0W//km59jivGgd5TCvBUWsnA==} + /unwasm@0.3.9: + resolution: {integrity: sha512-LDxTx/2DkFURUd+BU1vUsF/moj0JsoTvl+2tcg2AUOiEzVturhGGx17/IMgGvKUYdZwr33EJHtChCJuhu9Ouvg==} dependencies: knitwork: 1.1.0 magic-string: 0.30.8 @@ -11574,10 +11574,10 @@ packages: peerDependencies: vite: 5.2.7 dependencies: - vite: 5.2.7(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) dev: false - /vite-node@1.0.2(@types/node@20.12.2): + /vite-node@1.0.2(@types/node@20.12.3): resolution: {integrity: sha512-h7BbMJf46fLvFW/9Ygo3snkIBEHFh6fHpB4lge98H5quYrDhPFeI3S0LREz328uqPWSnii2yeJXktQ+Pmqk5BQ==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -11586,7 +11586,7 @@ packages: debug: 4.3.4 pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.2.7(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) transitivePeerDependencies: - '@types/node' - less @@ -11598,7 +11598,7 @@ packages: - terser dev: true - /vite-node@1.4.0(@types/node@20.12.2): + /vite-node@1.4.0(@types/node@20.12.3): resolution: {integrity: sha512-VZDAseqjrHgNd4Kh8icYHWzTKSCZMhia7GyHfhtzLW33fZlG9SwsB6CEhgyVOWkJfJ2pFLrp/Gj1FSfAiqH9Lw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -11607,7 +11607,7 @@ packages: debug: 4.3.4 pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.2.7(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) transitivePeerDependencies: - '@types/node' - less @@ -11662,7 +11662,7 @@ packages: strip-ansi: 6.0.1 tiny-invariant: 1.3.1 typescript: 5.4.3 - vite: 5.2.7(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) vscode-languageclient: 7.0.0 vscode-languageserver: 7.0.0 vscode-languageserver-textdocument: 1.0.11 @@ -11670,7 +11670,7 @@ packages: vue-tsc: 2.0.7(typescript@5.4.3) dev: false - /vite-plugin-inspect@0.8.3(@nuxt/kit@packages+kit)(rollup@4.13.2)(vite@5.2.7): + /vite-plugin-inspect@0.8.3(@nuxt/kit@packages+kit)(rollup@4.14.0)(vite@5.2.7): resolution: {integrity: sha512-SBVzOIdP/kwe6hjkt7LSW4D0+REqqe58AumcnCfRNw4Kt3mbS9pEBkch+nupu2PBxv2tQi69EQHQ1ZA1vgB/Og==} engines: {node: '>=14'} peerDependencies: @@ -11682,7 +11682,7 @@ packages: dependencies: '@antfu/utils': 0.7.7 '@nuxt/kit': link:packages/kit - '@rollup/pluginutils': 5.1.0(rollup@4.13.2) + '@rollup/pluginutils': 5.1.0(rollup@4.14.0) debug: 4.3.4 error-stack-parser-es: 0.1.1 fs-extra: 11.2.0 @@ -11690,7 +11690,7 @@ packages: perfect-debounce: 1.0.0 picocolors: 1.0.0 sirv: 2.0.4 - vite: 5.2.7(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) transitivePeerDependencies: - rollup - supports-color @@ -11710,12 +11710,12 @@ packages: '@vue/compiler-dom': 3.4.21 kolorist: 1.8.0 magic-string: 0.30.8 - vite: 5.2.7(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) transitivePeerDependencies: - supports-color dev: false - /vite@5.2.7(@types/node@20.12.2): + /vite@5.2.7(@types/node@20.12.3): resolution: {integrity: sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -11743,10 +11743,10 @@ packages: terser: optional: true dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 esbuild: 0.20.2 postcss: 8.4.38 - rollup: 4.13.2 + rollup: 4.14.0 optionalDependencies: fsevents: 2.3.3 @@ -11771,7 +11771,7 @@ packages: - vue-router dev: true - /vitest@1.0.2(@types/node@20.12.2)(happy-dom@14.3.10): + /vitest@1.0.2(@types/node@20.12.3)(happy-dom@14.3.10): resolution: {integrity: sha512-F3NVwwpXfRSDnJmyv+ALPwSRVt0zDkRRE18pwUHSUPXAlWQ47rY1dc99ziMW5bBHyqwK2ERjMisLNoef64qk9w==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -11796,7 +11796,7 @@ packages: jsdom: optional: true dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 '@vitest/expect': 1.0.2 '@vitest/runner': 1.0.2 '@vitest/snapshot': 1.0.2 @@ -11816,8 +11816,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.8.2 - vite: 5.2.7(@types/node@20.12.2) - vite-node: 1.0.2(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) + vite-node: 1.0.2(@types/node@20.12.3) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -11829,7 +11829,7 @@ packages: - terser dev: true - /vitest@1.4.0(@types/node@20.12.2)(happy-dom@14.3.10): + /vitest@1.4.0(@types/node@20.12.3)(happy-dom@14.3.10): resolution: {integrity: sha512-gujzn0g7fmwf83/WzrDTnncZt2UiXP41mHuFYFrdwaLRVQ6JYQEiME2IfEjU3vcFL3VKa75XhI3lFgn+hfVsQw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -11854,7 +11854,7 @@ packages: jsdom: optional: true dependencies: - '@types/node': 20.12.2 + '@types/node': 20.12.3 '@vitest/expect': 1.4.0 '@vitest/runner': 1.4.0 '@vitest/snapshot': 1.4.0 @@ -11873,8 +11873,8 @@ packages: strip-literal: 2.1.0 tinybench: 2.5.1 tinypool: 0.8.2 - vite: 5.2.7(@types/node@20.12.2) - vite-node: 1.4.0(@types/node@20.12.2) + vite: 5.2.7(@types/node@20.12.3) + vite-node: 1.4.0(@types/node@20.12.3) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -12104,8 +12104,8 @@ packages: - utf-8-validate dev: false - /webpack-dev-middleware@7.2.0(webpack@5.91.0): - resolution: {integrity: sha512-VLzmsjJrf+3UVf3QsT3E7xZ9F9bdhUhQFGRxyl6bmYR+W519UWnK6/teZeqAFFjWEtpVs+JqNPCVqB/s7P4tGg==} + /webpack-dev-middleware@7.2.1(webpack@5.91.0): + resolution: {integrity: sha512-hRLz+jPQXo999Nx9fXVdKlg/aehsw1ajA9skAneGmT03xwmyuhvF93p6HUKKbWhXdcERtGTzUCtIQr+2IQegrA==} engines: {node: '>= 18.12.0'} peerDependencies: webpack: ^5.0.0 diff --git a/test/bundle.test.ts b/test/bundle.test.ts index 5eb102893a..5ed2a5ab48 100644 --- a/test/bundle.test.ts +++ b/test/bundle.test.ts @@ -32,7 +32,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM const serverDir = join(rootDir, '.output/server') const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir) - expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"208k"') + expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"209k"') const modules = await analyzeSizes('node_modules/**/*', serverDir) expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"1335k"') @@ -72,7 +72,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM const serverDir = join(rootDir, '.output-inline/server') const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir) - expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"526k"') + expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"527k"') const modules = await analyzeSizes('node_modules/**/*', serverDir) expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"75.6k"') From 2dc4505c8ab4be0c089851b583a2d10424602727 Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Wed, 3 Apr 2024 12:36:15 +0200 Subject: [PATCH 11/21] fix(nuxt): normalise rollup opts in island transform w/o nuxt (#26589) --- .../nuxt/src/components/islandsTransform.ts | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/packages/nuxt/src/components/islandsTransform.ts b/packages/nuxt/src/components/islandsTransform.ts index 583ed724c3..a5fe8f33a8 100644 --- a/packages/nuxt/src/components/islandsTransform.ts +++ b/packages/nuxt/src/components/islandsTransform.ts @@ -8,6 +8,7 @@ import MagicString from 'magic-string' import { ELEMENT_NODE, parse, walk } from 'ultrahtml' import { hash } from 'ohash' import { resolvePath } from '@nuxt/kit' +import defu from 'defu' import { isVue } from '../core/utils' interface ServerOnlyComponentTransformPluginOptions { @@ -146,7 +147,7 @@ export const islandsTransform = createUnplugin((options: ServerOnlyComponentTran * extract attributes from a node */ function extractAttributes (attributes: Record, names: string[]) { - const extracted:Record = {} + const extracted: Record = {} for (const name of names) { if (name in attributes) { extracted[name] = attributes[name] @@ -182,15 +183,27 @@ export const componentsChunkPlugin = createUnplugin((options: ComponentChunkOpti vite: { async config (config) { const components = options.getComponents() - config.build = config.build || {} - config.build.rollupOptions = config.build.rollupOptions || {} - config.build.rollupOptions.output = config.build.rollupOptions.output || {} - config.build.rollupOptions.input = config.build.rollupOptions.input || {} + + config.build = defu(config.build, { + rollupOptions: { + input: {}, + output: {} + } + }) + + const rollupOptions = config.build.rollupOptions! + + if (typeof rollupOptions.input === 'string') { + rollupOptions.input = { entry: rollupOptions.input } + } else if (typeof rollupOptions.input === 'object' && Array.isArray(rollupOptions.input)) { + rollupOptions.input = rollupOptions.input.reduce<{ [key: string]: string }>((acc, input) => { acc[input] = input; return acc }, {}) + } + // don't use 'strict', this would create another "facade" chunk for the entry file, causing the ssr styles to not detect everything - config.build.rollupOptions.preserveEntrySignatures = 'allow-extension' + rollupOptions.preserveEntrySignatures = 'allow-extension' for (const component of components) { if (component.mode === 'client' || component.mode === 'all') { - (config.build.rollupOptions.input as Record)[component.pascalName] = await resolvePath(component.filePath) + rollupOptions.input![component.pascalName] = await resolvePath(component.filePath) } } }, From 8ae37e7e5c454e7fe7d26af7205778f616839f91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20G=C5=82owala?= Date: Wed, 3 Apr 2024 16:46:46 +0200 Subject: [PATCH 12/21] docs: correct grammar in `typescript.shim` JSDoc (#26626) --- packages/schema/src/config/typescript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schema/src/config/typescript.ts b/packages/schema/src/config/typescript.ts index 21e36a4be2..6f20545eb7 100644 --- a/packages/schema/src/config/typescript.ts +++ b/packages/schema/src/config/typescript.ts @@ -80,7 +80,7 @@ export default defineUntypedSchema({ * We recommend instead letting the [official Vue extension](https://marketplace.visualstudio.com/items?itemName=Vue.volar) * generate accurate types for your components. * - * Note that if you may wish to set this to `true` if you are using other libraries, such as ESLint, + * Note that you may wish to set this to `true` if you are using other libraries, such as ESLint, * that are unable to understand the type of `.vue` files. */ shim: false From 0d63921be1e032f7385712329848623091ee920c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:51:08 +0100 Subject: [PATCH 13/21] chore(deps): update dependency vite to v5.2.8 (main) (#26627) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- packages/kit/package.json | 2 +- packages/nuxt/package.json | 2 +- packages/schema/package.json | 2 +- packages/vite/package.json | 2 +- pnpm-lock.yaml | 152 +++++++++++++++++------------------ 6 files changed, 81 insertions(+), 81 deletions(-) diff --git a/package.json b/package.json index 06b4c630d6..f002277b6d 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@nuxt/webpack-builder": "workspace:*", "rollup": "^4.14.0", "nuxt": "workspace:*", - "vite": "5.2.7", + "vite": "5.2.8", "vue": "3.4.21", "magic-string": "^0.30.8" }, diff --git a/packages/kit/package.json b/packages/kit/package.json index 229966ecc8..4993f6a6b0 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -52,7 +52,7 @@ "lodash-es": "4.17.21", "nitropack": "2.9.6", "unbuild": "latest", - "vite": "5.2.7", + "vite": "5.2.8", "vitest": "1.4.0", "webpack": "5.91.0" }, diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 3580b3b963..dc2fdc339f 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -122,7 +122,7 @@ "@types/fs-extra": "11.0.4", "@vitejs/plugin-vue": "5.0.4", "unbuild": "latest", - "vite": "5.2.7", + "vite": "5.2.8", "vitest": "1.4.0" }, "peerDependencies": { diff --git a/packages/schema/package.json b/packages/schema/package.json index 0e94157ff2..275993b10a 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -53,7 +53,7 @@ "unbuild": "latest", "unctx": "2.3.1", "unenv": "1.9.0", - "vite": "5.2.7", + "vite": "5.2.8", "vue": "3.4.21", "vue-bundle-renderer": "2.0.0", "vue-loader": "17.4.2", diff --git a/packages/vite/package.json b/packages/vite/package.json index 82f029c141..ce50c6443e 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -62,7 +62,7 @@ "ufo": "^1.5.3", "unenv": "^1.9.0", "unplugin": "^1.10.1", - "vite": "^5.2.7", + "vite": "^5.2.8", "vite-node": "^1.4.0", "vite-plugin-checker": "^0.6.4", "vue-bundle-renderer": "^2.0.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b2e9ef1d44..265ee660cd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,7 +11,7 @@ overrides: '@nuxt/webpack-builder': workspace:* rollup: ^4.14.0 nuxt: workspace:* - vite: 5.2.7 + vite: 5.2.8 vue: 3.4.21 magic-string: ^0.30.8 @@ -27,7 +27,7 @@ importers: version: link:packages/kit '@nuxt/test-utils': specifier: 3.12.0 - version: 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + version: 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) '@nuxt/webpack-builder': specifier: workspace:* version: link:packages/webpack @@ -141,7 +141,7 @@ importers: version: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) vitest-environment-nuxt: specifier: 1.0.0 - version: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + version: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) vue: specifier: 3.4.21 version: 3.4.21(typescript@5.4.3) @@ -228,8 +228,8 @@ importers: specifier: latest version: 2.0.0(typescript@5.4.3) vite: - specifier: 5.2.7 - version: 5.2.7(@types/node@20.12.3) + specifier: 5.2.8 + version: 5.2.8(@types/node@20.12.3) vitest: specifier: 1.4.0 version: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) @@ -244,7 +244,7 @@ importers: version: 2.0.2 '@nuxt/devtools': specifier: ^1.1.5 - version: 1.1.5(@unocss/reset@0.58.6)(floating-vue@5.2.2)(nuxt@packages+nuxt)(rollup@4.14.0)(unocss@0.58.6)(vite@5.2.7)(vue@3.4.21) + version: 1.1.5(@unocss/reset@0.58.6)(floating-vue@5.2.2)(nuxt@packages+nuxt)(rollup@4.14.0)(unocss@0.58.6)(vite@5.2.8)(vue@3.4.21) '@nuxt/kit': specifier: workspace:* version: link:../kit @@ -422,13 +422,13 @@ importers: version: 11.0.4 '@vitejs/plugin-vue': specifier: 5.0.4 - version: 5.0.4(vite@5.2.7)(vue@3.4.21) + version: 5.0.4(vite@5.2.8)(vue@3.4.21) unbuild: specifier: latest version: 2.0.0(typescript@5.4.3) vite: - specifier: 5.2.7 - version: 5.2.7(@types/node@20.12.3) + specifier: 5.2.8 + version: 5.2.8(@types/node@20.12.3) vitest: specifier: 1.4.0 version: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) @@ -486,10 +486,10 @@ importers: version: 1.9.4 '@vitejs/plugin-vue': specifier: 5.0.4 - version: 5.0.4(vite@5.2.7)(vue@3.4.21) + version: 5.0.4(vite@5.2.8)(vue@3.4.21) '@vitejs/plugin-vue-jsx': specifier: 3.1.0 - version: 3.1.0(vite@5.2.7)(vue@3.4.21) + version: 3.1.0(vite@5.2.8)(vue@3.4.21) '@vue/compiler-core': specifier: 3.4.21 version: 3.4.21 @@ -527,8 +527,8 @@ importers: specifier: 1.9.0 version: 1.9.0 vite: - specifier: 5.2.7 - version: 5.2.7(@types/node@20.12.3) + specifier: 5.2.8 + version: 5.2.8(@types/node@20.12.3) vue: specifier: 3.4.21 version: 3.4.21(typescript@5.4.3) @@ -558,10 +558,10 @@ importers: version: 5.0.5(rollup@4.14.0) '@vitejs/plugin-vue': specifier: ^5.0.4 - version: 5.0.4(vite@5.2.7)(vue@3.4.21) + version: 5.0.4(vite@5.2.8)(vue@3.4.21) '@vitejs/plugin-vue-jsx': specifier: ^3.1.0 - version: 3.1.0(vite@5.2.7)(vue@3.4.21) + version: 3.1.0(vite@5.2.8)(vue@3.4.21) autoprefixer: specifier: ^10.4.19 version: 10.4.19(postcss@8.4.38) @@ -641,14 +641,14 @@ importers: specifier: ^1.10.1 version: 1.10.1 vite: - specifier: 5.2.7 - version: 5.2.7(@types/node@20.12.3) + specifier: 5.2.8 + version: 5.2.8(@types/node@20.12.3) vite-node: specifier: ^1.4.0 version: 1.4.0(@types/node@20.12.3) vite-plugin-checker: specifier: ^0.6.4 - version: 0.6.4(eslint@8.57.0)(typescript@5.4.3)(vite@5.2.7)(vue-tsc@2.0.7) + version: 0.6.4(eslint@8.57.0)(typescript@5.4.3)(vite@5.2.8)(vue-tsc@2.0.7) vue-bundle-renderer: specifier: ^2.0.0 version: 2.0.0 @@ -2181,17 +2181,17 @@ packages: resolution: {integrity: sha512-GBzP8zOc7CGWyFQS6dv1lQz8VVpz5C2yRszbXufwG/9zhStTIH50EtD87NmWbTMwXDvZLNg8GIpb1UFdH93JCA==} dev: false - /@nuxt/devtools-kit@1.1.5(nuxt@packages+nuxt)(vite@5.2.7): + /@nuxt/devtools-kit@1.1.5(nuxt@packages+nuxt)(vite@5.2.8): resolution: {integrity: sha512-Nb/NKFCRtxyqcPD6snB52rXtbRQMjGtn3ncpa8cLWsnoqnkd9emQ4uwV8IwCNxTnqUBtbGU79/TlJ79SKH9TAw==} peerDependencies: nuxt: workspace:* - vite: 5.2.7 + vite: 5.2.8 dependencies: '@nuxt/kit': link:packages/kit '@nuxt/schema': link:packages/schema execa: 7.2.0 nuxt: link:packages/nuxt - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) dev: false /@nuxt/devtools-wizard@1.1.5: @@ -2210,19 +2210,19 @@ packages: semver: 7.6.0 dev: false - /@nuxt/devtools@1.1.5(@unocss/reset@0.58.6)(floating-vue@5.2.2)(nuxt@packages+nuxt)(rollup@4.14.0)(unocss@0.58.6)(vite@5.2.7)(vue@3.4.21): + /@nuxt/devtools@1.1.5(@unocss/reset@0.58.6)(floating-vue@5.2.2)(nuxt@packages+nuxt)(rollup@4.14.0)(unocss@0.58.6)(vite@5.2.8)(vue@3.4.21): resolution: {integrity: sha512-aDEqz4L1GDj4DDnX7PL9ety3Wx0kLyKTb2JOSoJR8uX09fC3gonCvj/gYHLSSIKqhPasUjoOO5RPCtT+r9dtsA==} hasBin: true peerDependencies: nuxt: workspace:* - vite: 5.2.7 + vite: 5.2.8 dependencies: '@antfu/utils': 0.7.7 - '@nuxt/devtools-kit': 1.1.5(nuxt@packages+nuxt)(vite@5.2.7) + '@nuxt/devtools-kit': 1.1.5(nuxt@packages+nuxt)(vite@5.2.8) '@nuxt/devtools-wizard': 1.1.5 '@nuxt/kit': link:packages/kit - '@vue/devtools-applet': 7.0.25(@unocss/reset@0.58.6)(floating-vue@5.2.2)(unocss@0.58.6)(vite@5.2.7)(vue@3.4.21) - '@vue/devtools-core': 7.0.25(vite@5.2.7)(vue@3.4.21) + '@vue/devtools-applet': 7.0.25(@unocss/reset@0.58.6)(floating-vue@5.2.2)(unocss@0.58.6)(vite@5.2.8)(vue@3.4.21) + '@vue/devtools-core': 7.0.25(vite@5.2.8)(vue@3.4.21) '@vue/devtools-kit': 7.0.25(vue@3.4.21) birpc: 0.2.17 consola: 3.2.3 @@ -2252,9 +2252,9 @@ packages: simple-git: 3.23.0 sirv: 2.0.4 unimport: 3.7.1(rollup@4.14.0) - vite: 5.2.7(@types/node@20.12.3) - vite-plugin-inspect: 0.8.3(@nuxt/kit@packages+kit)(rollup@4.14.0)(vite@5.2.7) - vite-plugin-vue-inspector: 4.0.2(vite@5.2.7) + vite: 5.2.8(@types/node@20.12.3) + vite-plugin-inspect: 0.8.3(@nuxt/kit@packages+kit)(rollup@4.14.0)(vite@5.2.8) + vite-plugin-vue-inspector: 4.0.2(vite@5.2.8) which: 3.0.1 ws: 8.16.0 transitivePeerDependencies: @@ -2331,7 +2331,7 @@ packages: rc9: 2.1.1 std-env: 3.7.0 - /@nuxt/test-utils@3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): + /@nuxt/test-utils@3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): resolution: {integrity: sha512-Q3HP53TDIYeqHT65r31HZhK/gRwVBmchSdVj1tfiYECyqstckvsQ4Cyt/GX/XmD7cLdD3d5aHow8LaMfP+BSqQ==} engines: {node: ^14.18.0 || >=16.10.0} peerDependencies: @@ -2345,7 +2345,7 @@ packages: happy-dom: ^9.10.9 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 jsdom: ^22.0.0 || ^23.0.0 || ^24.0.0 playwright-core: ^1.34.3 - vite: 5.2.7 + vite: 5.2.8 vitest: ^0.34.6 || ^1.0.0 vue: 3.4.21 vue-router: ^4.0.0 @@ -2398,9 +2398,9 @@ packages: ufo: 1.5.3 unenv: 1.9.0 unplugin: 1.10.1 - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) vitest: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) - vitest-environment-nuxt: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + vitest-environment-nuxt: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) vue: 3.4.21(typescript@5.4.3) vue-router: 4.3.0(vue@3.4.21) dev: true @@ -3394,18 +3394,18 @@ packages: vue: 3.4.21(typescript@5.4.3) dev: false - /@unocss/astro@0.58.6(rollup@4.14.0)(vite@5.2.7): + /@unocss/astro@0.58.6(rollup@4.14.0)(vite@5.2.8): resolution: {integrity: sha512-0BvbhEp5Ln6wFNnhISusB2hcfycWkdgnjlFMcLT69efvj4G39MzB6JYT/1qiidLfpj35HcqkpBz7TfZ4bUmOAw==} peerDependencies: - vite: 5.2.7 + vite: 5.2.8 peerDependenciesMeta: vite: optional: true dependencies: '@unocss/core': 0.58.6 '@unocss/reset': 0.58.6 - '@unocss/vite': 0.58.6(rollup@4.14.0)(vite@5.2.7) - vite: 5.2.7(@types/node@20.12.3) + '@unocss/vite': 0.58.6(rollup@4.14.0)(vite@5.2.8) + vite: 5.2.8(@types/node@20.12.3) transitivePeerDependencies: - rollup dev: false @@ -3588,10 +3588,10 @@ packages: '@unocss/core': 0.58.6 dev: false - /@unocss/vite@0.58.6(rollup@4.14.0)(vite@5.2.7): + /@unocss/vite@0.58.6(rollup@4.14.0)(vite@5.2.8): resolution: {integrity: sha512-DPXCoYU/Ozqc/Jeptd41XvtW8MSgVxmtTyhpMAsm/hJuBfwIV7Fy3TZquf4V9BpaTb4ao1LVXzgXmVUmj2HXpA==} peerDependencies: - vite: 5.2.7 + vite: 5.2.8 dependencies: '@ampproject/remapping': 2.3.0 '@rollup/pluginutils': 5.1.0(rollup@4.14.0) @@ -3603,7 +3603,7 @@ packages: chokidar: 3.6.0 fast-glob: 3.3.2 magic-string: 0.30.8 - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) transitivePeerDependencies: - rollup dev: false @@ -3629,29 +3629,29 @@ packages: - encoding - supports-color - /@vitejs/plugin-vue-jsx@3.1.0(vite@5.2.7)(vue@3.4.21): + /@vitejs/plugin-vue-jsx@3.1.0(vite@5.2.8)(vue@3.4.21): resolution: {integrity: sha512-w9M6F3LSEU5kszVb9An2/MmXNxocAnUb3WhRr8bHlimhDrXNt6n6D2nJQR3UXpGlZHh/EsgouOHCsM8V3Ln+WA==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - vite: 5.2.7 + vite: 5.2.8 vue: 3.4.21 dependencies: '@babel/core': 7.24.1 '@babel/plugin-transform-typescript': 7.24.1(@babel/core@7.24.1) '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.24.1) - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) vue: 3.4.21(typescript@5.4.3) transitivePeerDependencies: - supports-color - /@vitejs/plugin-vue@5.0.4(vite@5.2.7)(vue@3.4.21): + /@vitejs/plugin-vue@5.0.4(vite@5.2.8)(vue@3.4.21): resolution: {integrity: sha512-WS3hevEszI6CEVEx28F8RjTX97k3KsrcY6kvTg7+Whm5y3oYvcqzVeGCU3hxSAn4uY2CLCkeokkGKpoctccilQ==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: - vite: 5.2.7 + vite: 5.2.8 vue: 3.4.21 dependencies: - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) vue: 3.4.21(typescript@5.4.3) /@vitest/coverage-v8@1.4.0(vitest@1.4.0): @@ -3861,12 +3861,12 @@ packages: /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} - /@vue/devtools-applet@7.0.25(@unocss/reset@0.58.6)(floating-vue@5.2.2)(unocss@0.58.6)(vite@5.2.7)(vue@3.4.21): + /@vue/devtools-applet@7.0.25(@unocss/reset@0.58.6)(floating-vue@5.2.2)(unocss@0.58.6)(vite@5.2.8)(vue@3.4.21): resolution: {integrity: sha512-9JwnjRO2tAHxFjA+cHSpQ/DKIqUKILvYaWJkOt1KqkedXPHzUWU1NfQAto+p6ycaKInA5A0VdXdmIl4N8YJCrw==} peerDependencies: vue: 3.4.21 dependencies: - '@vue/devtools-core': 7.0.25(vite@5.2.7)(vue@3.4.21) + '@vue/devtools-core': 7.0.25(vite@5.2.8)(vue@3.4.21) '@vue/devtools-kit': 7.0.25(vue@3.4.21) '@vue/devtools-shared': 7.0.25 '@vue/devtools-ui': 7.0.25(@unocss/reset@0.58.6)(floating-vue@5.2.2)(unocss@0.58.6)(vue@3.4.21) @@ -3893,7 +3893,7 @@ packages: - vite dev: false - /@vue/devtools-core@7.0.25(vite@5.2.7)(vue@3.4.21): + /@vue/devtools-core@7.0.25(vite@5.2.8)(vue@3.4.21): resolution: {integrity: sha512-aCsY4J6SvSBDuGdYADszByT0wy0GgpgdCApxcZzQEqYlyVchX7vqznJQrm7Y1GCLqAvoLaxsQqew7Cz+KQ3Idg==} dependencies: '@vue/devtools-kit': 7.0.25(vue@3.4.21) @@ -3901,7 +3901,7 @@ packages: mitt: 3.0.1 nanoid: 3.3.7 pathe: 1.1.2 - vite-hot-client: 0.2.3(vite@5.2.7) + vite-hot-client: 0.2.3(vite@5.2.8) transitivePeerDependencies: - vite - vue @@ -3941,7 +3941,7 @@ packages: colord: 2.9.3 floating-vue: 5.2.2(@nuxt/kit@packages+kit)(vue@3.4.21) focus-trap: 7.5.4 - unocss: 0.58.6(postcss@8.4.38)(rollup@4.14.0)(vite@5.2.7) + unocss: 0.58.6(postcss@8.4.38)(rollup@4.14.0)(vite@5.2.8) vue: 3.4.21(typescript@5.4.3) transitivePeerDependencies: - '@vue/composition-api' @@ -11314,19 +11314,19 @@ packages: resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} engines: {node: '>= 10.0.0'} - /unocss@0.58.6(postcss@8.4.38)(rollup@4.14.0)(vite@5.2.7): + /unocss@0.58.6(postcss@8.4.38)(rollup@4.14.0)(vite@5.2.8): resolution: {integrity: sha512-HBstDtC6KKD5yCYh5hHpPdHGZai0B/iLlDwkOIK+xfQYrvl8tNBvKfRz3xgiaI5MJ+fLmEOxbfXQIjleU1A0iA==} engines: {node: '>=14'} peerDependencies: '@unocss/webpack': 0.58.6 - vite: 5.2.7 + vite: 5.2.8 peerDependenciesMeta: '@unocss/webpack': optional: true vite: optional: true dependencies: - '@unocss/astro': 0.58.6(rollup@4.14.0)(vite@5.2.7) + '@unocss/astro': 0.58.6(rollup@4.14.0)(vite@5.2.8) '@unocss/cli': 0.58.6(rollup@4.14.0) '@unocss/core': 0.58.6 '@unocss/extractor-arbitrary-variants': 0.58.6 @@ -11345,8 +11345,8 @@ packages: '@unocss/transformer-compile-class': 0.58.6 '@unocss/transformer-directives': 0.58.6 '@unocss/transformer-variant-group': 0.58.6 - '@unocss/vite': 0.58.6(rollup@4.14.0)(vite@5.2.7) - vite: 5.2.7(@types/node@20.12.3) + '@unocss/vite': 0.58.6(rollup@4.14.0)(vite@5.2.8) + vite: 5.2.8(@types/node@20.12.3) transitivePeerDependencies: - postcss - rollup @@ -11569,12 +11569,12 @@ packages: vfile-message: 4.0.2 dev: true - /vite-hot-client@0.2.3(vite@5.2.7): + /vite-hot-client@0.2.3(vite@5.2.8): resolution: {integrity: sha512-rOGAV7rUlUHX89fP2p2v0A2WWvV3QMX2UYq0fRqsWSvFvev4atHWqjwGoKaZT1VTKyLGk533ecu3eyd0o59CAg==} peerDependencies: - vite: 5.2.7 + vite: 5.2.8 dependencies: - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) dev: false /vite-node@1.0.2(@types/node@20.12.3): @@ -11586,7 +11586,7 @@ packages: debug: 4.3.4 pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) transitivePeerDependencies: - '@types/node' - less @@ -11607,7 +11607,7 @@ packages: debug: 4.3.4 pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) transitivePeerDependencies: - '@types/node' - less @@ -11618,7 +11618,7 @@ packages: - supports-color - terser - /vite-plugin-checker@0.6.4(eslint@8.57.0)(typescript@5.4.3)(vite@5.2.7)(vue-tsc@2.0.7): + /vite-plugin-checker@0.6.4(eslint@8.57.0)(typescript@5.4.3)(vite@5.2.8)(vue-tsc@2.0.7): resolution: {integrity: sha512-2zKHH5oxr+ye43nReRbC2fny1nyARwhxdm0uNYp/ERy4YvU9iZpNOsueoi/luXw5gnpqRSvjcEPxXbS153O2wA==} engines: {node: '>=14.16'} peerDependencies: @@ -11627,7 +11627,7 @@ packages: optionator: ^0.9.1 stylelint: '>=13' typescript: '*' - vite: 5.2.7 + vite: 5.2.8 vls: '*' vti: '*' vue-tsc: '>=1.3.9' @@ -11662,7 +11662,7 @@ packages: strip-ansi: 6.0.1 tiny-invariant: 1.3.1 typescript: 5.4.3 - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) vscode-languageclient: 7.0.0 vscode-languageserver: 7.0.0 vscode-languageserver-textdocument: 1.0.11 @@ -11670,12 +11670,12 @@ packages: vue-tsc: 2.0.7(typescript@5.4.3) dev: false - /vite-plugin-inspect@0.8.3(@nuxt/kit@packages+kit)(rollup@4.14.0)(vite@5.2.7): + /vite-plugin-inspect@0.8.3(@nuxt/kit@packages+kit)(rollup@4.14.0)(vite@5.2.8): resolution: {integrity: sha512-SBVzOIdP/kwe6hjkt7LSW4D0+REqqe58AumcnCfRNw4Kt3mbS9pEBkch+nupu2PBxv2tQi69EQHQ1ZA1vgB/Og==} engines: {node: '>=14'} peerDependencies: '@nuxt/kit': '*' - vite: 5.2.7 + vite: 5.2.8 peerDependenciesMeta: '@nuxt/kit': optional: true @@ -11690,16 +11690,16 @@ packages: perfect-debounce: 1.0.0 picocolors: 1.0.0 sirv: 2.0.4 - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) transitivePeerDependencies: - rollup - supports-color dev: false - /vite-plugin-vue-inspector@4.0.2(vite@5.2.7): + /vite-plugin-vue-inspector@4.0.2(vite@5.2.8): resolution: {integrity: sha512-KPvLEuafPG13T7JJuQbSm5PwSxKFnVS965+MP1we2xGw9BPkkc/+LPix5MMWenpKWqtjr0ws8THrR+KuoDC8hg==} peerDependencies: - vite: 5.2.7 + vite: 5.2.8 dependencies: '@babel/core': 7.24.1 '@babel/plugin-proposal-decorators': 7.23.2(@babel/core@7.24.1) @@ -11710,13 +11710,13 @@ packages: '@vue/compiler-dom': 3.4.21 kolorist: 1.8.0 magic-string: 0.30.8 - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) transitivePeerDependencies: - supports-color dev: false - /vite@5.2.7(@types/node@20.12.3): - resolution: {integrity: sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==} + /vite@5.2.8(@types/node@20.12.3): + resolution: {integrity: sha512-OyZR+c1CE8yeHw5V5t59aXsUPPVTHMDjEZz8MgguLL/Q7NblxhZUlTu9xSPqlsUO/y+X7dlU05jdhvyycD55DA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -11750,10 +11750,10 @@ packages: optionalDependencies: fsevents: 2.3.3 - /vitest-environment-nuxt@1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): + /vitest-environment-nuxt@1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): resolution: {integrity: sha512-AWMO9h4HdbaFdPWZw34gALFI8gbBiOpvfbyeZwHIPfh4kWg/TwElYHvYMQ61WPUlCGaS5LebfHkaI0WPyb//Iw==} dependencies: - '@nuxt/test-utils': 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.7)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + '@nuxt/test-utils': 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) transitivePeerDependencies: - '@cucumber/cucumber' - '@jest/globals' @@ -11816,7 +11816,7 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.8.2 - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) vite-node: 1.0.2(@types/node@20.12.3) why-is-node-running: 2.2.2 transitivePeerDependencies: @@ -11873,7 +11873,7 @@ packages: strip-literal: 2.1.0 tinybench: 2.5.1 tinypool: 0.8.2 - vite: 5.2.7(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.3) vite-node: 1.4.0(@types/node@20.12.3) why-is-node-running: 2.2.2 transitivePeerDependencies: From 0931d0d90f3de2ea147bf6dd946ba75893b88909 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 20:56:31 +0100 Subject: [PATCH 14/21] chore(deps): update devdependency eslint-plugin-unicorn to v52 (main) (#26632) --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f002277b6d..25cfb1484d 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "eslint-plugin-import": "2.29.1", "eslint-plugin-jsdoc": "48.2.2", "eslint-plugin-no-only-tests": "3.1.0", - "eslint-plugin-unicorn": "51.0.1", + "eslint-plugin-unicorn": "52.0.0", "execa": "8.0.1", "fs-extra": "11.2.0", "globby": "14.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 265ee660cd..e7b4aa3184 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -77,8 +77,8 @@ importers: specifier: 3.1.0 version: 3.1.0 eslint-plugin-unicorn: - specifier: 51.0.1 - version: 51.0.1(eslint@8.57.0) + specifier: 52.0.0 + version: 52.0.0(eslint@8.57.0) execa: specifier: 8.0.1 version: 8.0.1 @@ -6082,8 +6082,8 @@ packages: eslint: 8.57.0 dev: true - /eslint-plugin-unicorn@51.0.1(eslint@8.57.0): - resolution: {integrity: sha512-MuR/+9VuB0fydoI0nIn2RDA5WISRn4AsJyNSaNKLVwie9/ONvQhxOBbkfSICBPnzKrB77Fh6CZZXjgTt/4Latw==} + /eslint-plugin-unicorn@52.0.0(eslint@8.57.0): + resolution: {integrity: sha512-1Yzm7/m+0R4djH0tjDjfVei/ju2w3AzUGjG6q8JnuNIL5xIwsflyCooW5sfBvQp2pMYQFSWWCFONsjCax1EHng==} engines: {node: '>=16'} peerDependencies: eslint: '>=8.56.0' From 2abc1a58152220fc02062855e7d10f86157df4ee Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 20:56:42 +0100 Subject: [PATCH 15/21] chore(deps): update dependency css-loader to ^6.11.0 (main) (#26631) --- packages/webpack/package.json | 2 +- pnpm-lock.yaml | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/webpack/package.json b/packages/webpack/package.json index b40b978920..55ec467f11 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -28,7 +28,7 @@ "@nuxt/friendly-errors-webpack-plugin": "^2.6.0", "@nuxt/kit": "workspace:*", "autoprefixer": "^10.4.19", - "css-loader": "^6.10.0", + "css-loader": "^6.11.0", "css-minimizer-webpack-plugin": "^6.0.0", "cssnano": "^6.1.2", "defu": "^6.1.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7b4aa3184..b9a44a62da 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -684,8 +684,8 @@ importers: specifier: ^10.4.19 version: 10.4.19(postcss@8.4.38) css-loader: - specifier: ^6.10.0 - version: 6.10.0(webpack@5.91.0) + specifier: ^6.11.0 + version: 6.11.0(webpack@5.91.0) css-minimizer-webpack-plugin: specifier: ^6.0.0 version: 6.0.0(webpack@5.91.0) @@ -5150,8 +5150,8 @@ packages: postcss: 8.4.38 dev: false - /css-loader@6.10.0(webpack@5.91.0): - resolution: {integrity: sha512-LTSA/jWbwdMlk+rhmElbDR2vbtQoTBPr7fkJE+mxrHj+7ru0hUmHafDRzWIjIHTwpitWVaqY2/UWGRca3yUgRw==} + /css-loader@6.11.0(webpack@5.91.0): + resolution: {integrity: sha512-CTJ+AEQJjq5NzLga5pE39qdiSV56F8ywCIsqNIRF0r7BDgWsN25aazToqAFg7ZrtA/U016xudB3ffgweORxX7g==} engines: {node: '>= 12.13.0'} peerDependencies: '@rspack/core': 0.x || 1.x @@ -5164,9 +5164,9 @@ packages: dependencies: icss-utils: 5.1.0(postcss@8.4.38) postcss: 8.4.38 - postcss-modules-extract-imports: 3.0.0(postcss@8.4.38) - postcss-modules-local-by-default: 4.0.4(postcss@8.4.38) - postcss-modules-scope: 3.1.1(postcss@8.4.38) + postcss-modules-extract-imports: 3.1.0(postcss@8.4.38) + postcss-modules-local-by-default: 4.0.5(postcss@8.4.38) + postcss-modules-scope: 3.2.0(postcss@8.4.38) postcss-modules-values: 4.0.0(postcss@8.4.38) postcss-value-parser: 4.2.0 semver: 7.6.0 @@ -9463,8 +9463,8 @@ packages: postcss-selector-parser: 6.0.16 dev: false - /postcss-modules-extract-imports@3.0.0(postcss@8.4.38): - resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==} + /postcss-modules-extract-imports@3.1.0(postcss@8.4.38): + resolution: {integrity: sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: postcss: ^8.1.0 @@ -9472,8 +9472,8 @@ packages: postcss: 8.4.38 dev: false - /postcss-modules-local-by-default@4.0.4(postcss@8.4.38): - resolution: {integrity: sha512-L4QzMnOdVwRm1Qb8m4x8jsZzKAaPAgrUF1r/hjDR2Xj7R+8Zsf97jAlSQzWtKx5YNiNGN8QxmPFIc/sh+RQl+Q==} + /postcss-modules-local-by-default@4.0.5(postcss@8.4.38): + resolution: {integrity: sha512-6MieY7sIfTK0hYfafw1OMEG+2bg8Q1ocHCpoWLqOKj3JXlKu4G7btkmM/B7lFubYkYWmRSPLZi5chid63ZaZYw==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: postcss: ^8.1.0 @@ -9484,8 +9484,8 @@ packages: postcss-value-parser: 4.2.0 dev: false - /postcss-modules-scope@3.1.1(postcss@8.4.38): - resolution: {integrity: sha512-uZgqzdTleelWjzJY+Fhti6F3C9iF1JR/dODLs/JDefozYcKTBCdD8BIl6nNPbTbcLnGrk56hzwZC2DaGNvYjzA==} + /postcss-modules-scope@3.2.0(postcss@8.4.38): + resolution: {integrity: sha512-oq+g1ssrsZOsx9M96c5w8laRmvEu9C3adDSjI8oTcbfkrTE8hx/zfyobUoWIxaKPO8bt6S62kxpw5GqypEw1QQ==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: postcss: ^8.1.0 From a3a28a913e0d3a47fc195b30d9a1feeea57e2a3f Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 3 Apr 2024 21:46:58 +0100 Subject: [PATCH 16/21] chore: migrate to ESLint flat config (#26583) --- .eslintrc | 224 ----------------- eslint.config.mjs | 280 +++++++++++++++++++++ package.json | 6 +- packages/nuxt/config.cjs | 1 + packages/nuxt/src/app/compat/capi.ts | 1 + packages/nuxt/src/components/tree-shake.ts | 2 +- packages/nuxt/types.d.mts | 3 +- pnpm-lock.yaml | 42 ++++ 8 files changed, 331 insertions(+), 228 deletions(-) delete mode 100644 .eslintrc create mode 100644 eslint.config.mjs diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index a72cf012da..0000000000 --- a/.eslintrc +++ /dev/null @@ -1,224 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/eslintrc", - "ignorePatterns": [ - "dist", - "public", - "node_modules", - "packages/schema/schema" - ], - "globals": { - "NodeJS": true, - "$fetch": true - }, - "plugins": ["jsdoc", "import", "unicorn", "no-only-tests"], - "extends": [ - "standard", - "plugin:jsdoc/recommended", - "@nuxt/eslint-config", - "plugin:import/typescript" - ], - "rules": { - // Imports should come first - "import/first": "error", - // Other import rules - "import/no-mutable-exports": "error", - // Allow unresolved imports - "import/no-unresolved": "off", - // Allow paren-less arrow functions only when there's no braces - "arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }], - // Allow async-await - "generator-star-spacing": "off", - // Prefer const over let - "prefer-const": ["error", { "destructuring": "any", "ignoreReadBeforeAssign": false }], - // No single if in an "else" block - "no-lonely-if": "error", - // Force curly braces for control flow, - // including if blocks with a single statement - "curly": ["error", "all" - ], - // No async function without await - "require-await": "error", - // Force dot notation when possible - "dot-notation": "error", - - "no-var": "error", - // Force object shorthand where possible - "object-shorthand": "error", - // No useless destructuring/importing/exporting renames - "no-useless-rename": "error", - /**********************/ - /* Unicorn Rules */ - /**********************/ - // Pass error message when throwing errors - "unicorn/error-message": "error", - // Uppercase regex escapes - "unicorn/escape-case": "error", - // Array.isArray instead of instanceof - "unicorn/no-array-instanceof": "error", - // Prevent deprecated `new Buffer()` - "unicorn/no-new-buffer": "error", - // Keep regex literals safe! - "unicorn/no-unsafe-regex": "off", - // Lowercase number formatting for octal, hex, binary (0x12 instead of 0X12) - "unicorn/number-literal-case": "error", - // ** instead of Math.pow() - "unicorn/prefer-exponentiation-operator": "error", - // includes over indexOf when checking for existence - "unicorn/prefer-includes": "error", - // String methods startsWith/endsWith instead of more complicated stuff - "unicorn/prefer-starts-ends-with": "error", - // textContent instead of innerText - "unicorn/prefer-text-content": "error", - // Enforce throwing type error when throwing error while checking typeof - "unicorn/prefer-type-error": "error", - // Use new when throwing error - "unicorn/throw-new-error": "error", - "sort-imports": [ - "error", - { - "ignoreDeclarationSort": true - } - ], - "no-only-tests/no-only-tests": "error", - "unicorn/prefer-node-protocol": "error", - "no-console": "warn", - "vue/one-component-per-file": "off", - "vue/require-default-prop": "off", - - // Vue stylistic rules from `@antfu/eslint-config` - "vue/array-bracket-spacing": ["error", "never"], - "vue/arrow-spacing": ["error", { "after": true, "before": true }], - "vue/block-spacing": ["error", "always"], - "vue/block-tag-newline": [ - "error", - { - "multiline": "always", - "singleline": "always" - } - ], - "vue/brace-style": ["error", "stroustrup", { "allowSingleLine": true }], - "vue/comma-dangle": ["error", "always-multiline"], - "vue/comma-spacing": ["error", { "after": true, "before": false }], - "vue/comma-style": ["error", "last"], - "vue/html-comment-content-spacing": [ - "error", - "always", - { - "exceptions": ["-"] - } - ], - "vue/key-spacing": ["error", { "afterColon": true, "beforeColon": false }], - "vue/keyword-spacing": ["error", { "after": true, "before": true }], - "vue/object-curly-newline": "off", - "vue/object-curly-spacing": ["error", "always"], - "vue/object-property-newline": [ - "error", - { "allowMultiplePropertiesPerLine": true } - ], - "vue/operator-linebreak": ["error", "before"], - "vue/padding-line-between-blocks": ["error", "always"], - "vue/quote-props": ["error", "consistent-as-needed"], - "vue/space-in-parens": ["error", "never"], - "vue/template-curly-spacing": "error", - - "jsdoc/require-jsdoc": "off", - "jsdoc/require-param": "off", - "jsdoc/require-returns": "off", - "jsdoc/require-param-type": "off", - "import/order": [ - "error", - { - "pathGroups": [ - { - "pattern": "#vue-router", - "group": "external" - } - ] - } - ], - "import/no-restricted-paths": [ - "error", - { - "zones": [ - { - "from": "packages/nuxt/src/!(core)/**/*", - "target": "packages/nuxt/src/core", - "message": "core should not directly import from modules." - }, - { - "from": "packages/nuxt/src/!(app)/**/*", - "target": "packages/nuxt/src/app", - "message": "app should not directly import from modules." - }, - { - "from": "packages/nuxt/src/app/**/index.ts", - "target": "packages/nuxt/src", - "message": "should not import from barrel/index files" - }, - { - "from": "packages/nitro", - "target": "packages/!(nitro)/**/*", - "message": "nitro should not directly import other packages." - } - ] - } - ], - "@typescript-eslint/consistent-type-imports": [ - "error", - { - "disallowTypeAnnotations": false - } - ], - "@typescript-eslint/ban-ts-comment": [ - "error", - { - "ts-expect-error": "allow-with-description", - "ts-ignore": true - } - ], - "@typescript-eslint/prefer-ts-expect-error": "error", - "@typescript-eslint/no-unused-vars": [ - "error", - { - "argsIgnorePattern": "^_", - "varsIgnorePattern": "^_", - "ignoreRestSiblings": true - } - ], - "jsdoc/check-tag-names": [ - "error", - { - "definedTags": ["__NO_SIDE_EFFECTS__"] - } - ] - }, - "overrides": [ - { - "files": ["packages/schema/**"], - "rules": { - "jsdoc/valid-types": "off", - "jsdoc/check-tag-names": [ - "error", - { - "definedTags": ["experimental"] - } - ] - } - }, - { - "files": ["packages/nuxt/src/app/**", "test/**", "**/runtime/**"], - "rules": { - "no-console": "off" - } - } - ], - "settings": { - "jsdoc": { - "ignoreInternal": true, - "tagNamePreference": { - "warning": "warning", - "note": "note" - } - } - } -} diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000000..9287eddea3 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,280 @@ +// Configs +// import standard from "eslint-config-standard" +// import nuxt from '@nuxt/eslint-config' + +// Plugins +import path from 'node:path' +import { fileURLToPath } from 'node:url' +import jsdoc from 'eslint-plugin-jsdoc' +import esImport from 'eslint-plugin-import' +import unicorn from 'eslint-plugin-unicorn' +import noOnlyTests from 'eslint-plugin-no-only-tests' + +/** + * eslintrc compatibility + * @see https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config + * @see https://github.com/eslint/eslintrc#usage-esm + */ +import { FlatCompat } from '@eslint/eslintrc' +import js from '@eslint/js' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended +}) + +// TODO: Type definition? +export default [ + { + ignores: [ + '**/dist/**', + '**/.nuxt/**', + '**/.nuxt-*/**', + '**/.output/**', + '**/.output-*/**', + '**/public/**', + '**/node_modules/**', + 'packages/schema/schema', + + // TODO: remove when fully migrated to flat config + '**/*.d.mts' + ] + }, + // standard, + ...compat.extends('eslint-config-standard'), + jsdoc.configs['flat/recommended'], + // nuxt, + ...compat.extends('@nuxt/eslint-config'), + esImport.configs.typescript, + { + rules: { + 'import/export': 'off' + } + }, + { + files: ['**/*.vue', '**/*.ts', '**/*.mts', '**/*.js', '**/*.cjs', '**/*.mjs'], + languageOptions: { + globals: { + NodeJS: 'readonly', + $fetch: 'readonly' + } + }, + plugins: { + jsdoc, + import: esImport, + unicorn, + 'no-only-tests': noOnlyTests + }, + rules: { + // Imports should come first + 'import/first': 'error', + // Other import rules + 'import/no-mutable-exports': 'error', + // Allow unresolved imports + 'import/no-unresolved': 'off', + // Allow paren-less arrow functions only when there's no braces + 'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }], + // Allow async-await + 'generator-star-spacing': 'off', + // Prefer const over let + 'prefer-const': ['error', { destructuring: 'any', ignoreReadBeforeAssign: false }], + // No single if in an "else" block + 'no-lonely-if': 'error', + // Force curly braces for control flow, + // including if blocks with a single statement + curly: ['error', 'all'], + // No async function without await + 'require-await': 'error', + // Force dot notation when possible + 'dot-notation': 'error', + + 'no-var': 'error', + // Force object shorthand where possible + 'object-shorthand': 'error', + // No useless destructuring/importing/exporting renames + 'no-useless-rename': 'error', + /**********************/ + /* Unicorn Rules */ + /**********************/ + // Pass error message when throwing errors + 'unicorn/error-message': 'error', + // Uppercase regex escapes + 'unicorn/escape-case': 'error', + // Array.isArray instead of instanceof + 'unicorn/no-array-instanceof': 'error', + // Prevent deprecated `new Buffer()` + 'unicorn/no-new-buffer': 'error', + // Keep regex literals safe! + 'unicorn/no-unsafe-regex': 'off', + // Lowercase number formatting for octal, hex, binary (0x12 instead of 0X12) + 'unicorn/number-literal-case': 'error', + // ** instead of Math.pow() + 'unicorn/prefer-exponentiation-operator': 'error', + // includes over indexOf when checking for existence + 'unicorn/prefer-includes': 'error', + // String methods startsWith/endsWith instead of more complicated stuff + 'unicorn/prefer-starts-ends-with': 'error', + // textContent instead of innerText + 'unicorn/prefer-text-content': 'error', + // Enforce throwing type error when throwing error while checking typeof + 'unicorn/prefer-type-error': 'error', + // Use new when throwing error + 'unicorn/throw-new-error': 'error', + 'sort-imports': [ + 'error', + { + ignoreDeclarationSort: true + } + ], + 'no-only-tests/no-only-tests': 'error', + 'unicorn/prefer-node-protocol': 'error', + 'no-console': ['warn', { allow: ['warn', 'error', 'debug'] }], + 'vue/one-component-per-file': 'off', + 'vue/require-default-prop': 'off', + + // Vue stylistic rules from `@antfu/eslint-config` + 'vue/array-bracket-spacing': ['error', 'never'], + 'vue/arrow-spacing': ['error', { after: true, before: true }], + 'vue/block-spacing': ['error', 'always'], + 'vue/block-tag-newline': [ + 'error', + { + multiline: 'always', + singleline: 'always' + } + ], + 'vue/brace-style': ['error', 'stroustrup', { allowSingleLine: true }], + 'vue/comma-dangle': ['error', 'always-multiline'], + 'vue/comma-spacing': ['error', { after: true, before: false }], + 'vue/comma-style': ['error', 'last'], + 'vue/html-comment-content-spacing': [ + 'error', + 'always', + { + exceptions: ['-'] + } + ], + 'vue/key-spacing': ['error', { afterColon: true, beforeColon: false }], + 'vue/keyword-spacing': ['error', { after: true, before: true }], + 'vue/object-curly-newline': 'off', + 'vue/object-curly-spacing': ['error', 'always'], + 'vue/object-property-newline': [ + 'error', + { allowMultiplePropertiesPerLine: true } + ], + 'vue/operator-linebreak': ['error', 'before'], + 'vue/padding-line-between-blocks': ['error', 'always'], + 'vue/quote-props': ['error', 'consistent-as-needed'], + 'vue/space-in-parens': ['error', 'never'], + 'vue/template-curly-spacing': 'error', + + 'jsdoc/require-jsdoc': 'off', + 'jsdoc/require-param': 'off', + 'jsdoc/require-returns': 'off', + 'jsdoc/require-param-type': 'off', + 'import/order': [ + 'error', + { + pathGroups: [ + { + pattern: '#vue-router', + group: 'external' + } + ] + } + ], + 'import/no-restricted-paths': [ + 'error', + { + zones: [ + { + from: 'packages/nuxt/src/!(core)/**/*', + target: 'packages/nuxt/src/core', + message: 'core should not directly import from modules.' + }, + { + from: 'packages/nuxt/src/!(app)/**/*', + target: 'packages/nuxt/src/app', + message: 'app should not directly import from modules.' + }, + { + from: 'packages/nuxt/src/app/**/index.ts', + target: 'packages/nuxt/src', + message: 'should not import from barrel/index files' + }, + { + from: 'packages/nitro', + target: 'packages/!(nitro)/**/*', + message: 'nitro should not directly import other packages.' + } + ] + } + ], + '@typescript-eslint/consistent-type-imports': [ + 'error', + { + disallowTypeAnnotations: false + } + ], + '@typescript-eslint/ban-ts-comment': [ + 'error', + { + 'ts-expect-error': 'allow-with-description', + 'ts-ignore': true + } + ], + '@typescript-eslint/prefer-ts-expect-error': 'error', + '@typescript-eslint/no-unused-vars': [ + 'error', + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + ignoreRestSiblings: true + } + ], + 'jsdoc/check-tag-names': [ + 'error', + { + definedTags: ['__NO_SIDE_EFFECTS__'] + } + ] + }, + settings: { + jsdoc: { + ignoreInternal: true, + tagNamePreference: { + warning: 'warning', + note: 'note' + } + } + } + }, + { + files: ['packages/schema/**'], + rules: { + 'jsdoc/valid-types': 'off', + 'jsdoc/check-tag-names': [ + 'error', + { + definedTags: ['experimental'] + } + ] + } + }, + { + files: ['packages/nuxt/src/app/**', 'test/**', '**/runtime/**', '**/*.test.ts'], + rules: { + 'no-console': 'off' + } + }, + { + files: ['test/fixtures/**'], + rules: { + '@typescript-eslint/no-unused-vars': 'off', + 'vue/valid-v-for': 'off' + } + } +] diff --git a/package.json b/package.json index 25cfb1484d..5f13b19219 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "cleanup": "rimraf 'packages/**/node_modules' 'playground/node_modules' 'node_modules'", "dev": "pnpm play", "dev:prepare": "pnpm --filter './packages/**' prepack --stub", - "lint": "eslint --ext .vue,.ts,.js,.mjs .", - "lint:fix": "eslint --ext .vue,.ts,.js,.mjs . --fix", + "lint": "eslint .", + "lint:fix": "eslint . --fix", "lint:docs": "markdownlint ./docs && case-police 'docs/**/*.md' *.md", "lint:docs:fix": "markdownlint ./docs --fix && case-police 'docs/**/*.md' *.md --fix", "lint:knip": "pnpx knip", @@ -44,6 +44,8 @@ "magic-string": "^0.30.8" }, "devDependencies": { + "@eslint/eslintrc": "3.0.2", + "@eslint/js": "8.57.0", "@nuxt/eslint-config": "0.2.0", "@nuxt/kit": "workspace:*", "@nuxt/test-utils": "3.12.0", diff --git a/packages/nuxt/config.cjs b/packages/nuxt/config.cjs index cfdf3f8aa9..c21b9a6499 100644 --- a/packages/nuxt/config.cjs +++ b/packages/nuxt/config.cjs @@ -1,3 +1,4 @@ +/* eslint-disable jsdoc/require-jsdoc */ function defineNuxtConfig (config) { return config } diff --git a/packages/nuxt/src/app/compat/capi.ts b/packages/nuxt/src/app/compat/capi.ts index 2ef0b9f749..cd0736eeb7 100644 --- a/packages/nuxt/src/app/compat/capi.ts +++ b/packages/nuxt/src/app/compat/capi.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line import/export export * from 'vue' export const install = () => {} diff --git a/packages/nuxt/src/components/tree-shake.ts b/packages/nuxt/src/components/tree-shake.ts index e8b9d9d84d..915b794b2f 100644 --- a/packages/nuxt/src/components/tree-shake.ts +++ b/packages/nuxt/src/components/tree-shake.ts @@ -220,7 +220,7 @@ function isComponentNotCalledInSetup (codeAst: Node, name: string): string | voi /** * retrieve the component identifier being used on ssrRender callExpression - * @param {CallExpression} ssrRenderNode - ssrRender callExpression + * @param ssrRenderNode - ssrRender callExpression */ function getComponentName (ssrRenderNode: AcornNode): string { const componentCall = ssrRenderNode.arguments[0] as Identifier | MemberExpression | CallExpression diff --git a/packages/nuxt/types.d.mts b/packages/nuxt/types.d.mts index 043bf0c49e..706aa58991 100644 --- a/packages/nuxt/types.d.mts +++ b/packages/nuxt/types.d.mts @@ -1,5 +1,4 @@ /// -export * from './dist/index.js' import type { DefineNuxtConfig } from 'nuxt/config' import type { RuntimeConfig, SchemaDefinition } from 'nuxt/schema' @@ -7,6 +6,8 @@ import type { H3Event } from 'h3' import type { NuxtIslandContext, NuxtIslandResponse, NuxtRenderHTMLContext } from './dist/app/types.js' import type { LogObject } from 'consola' +export * from './dist/index.js' + declare global { const defineNuxtConfig: DefineNuxtConfig const defineNuxtSchema: (schema: SchemaDefinition) => SchemaDefinition diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b9a44a62da..078d915b62 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,6 +19,12 @@ importers: .: devDependencies: + '@eslint/eslintrc': + specifier: 3.0.2 + version: 3.0.2 + '@eslint/js': + specifier: 8.57.0 + version: 8.57.0 '@nuxt/eslint-config': specifier: 0.2.0 version: 0.2.0(eslint@8.57.0) @@ -1919,6 +1925,23 @@ packages: transitivePeerDependencies: - supports-color + /@eslint/eslintrc@3.0.2: + resolution: {integrity: sha512-wV19ZEGEMAC1eHgrS7UQPqsdEiCIbTKTasEfcXAigzoXICcqZSjBZEHlZwNVvKg6UBCjSlos84XiLqsRJnIcIg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + dependencies: + ajv: 6.12.6 + debug: 4.3.4 + espree: 10.0.1 + globals: 14.0.0 + ignore: 5.3.1 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + dev: true + /@eslint/js@8.57.0: resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -6145,6 +6168,11 @@ packages: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + /eslint-visitor-keys@4.0.0: + resolution: {integrity: sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + dev: true + /eslint@8.57.0: resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -6191,6 +6219,15 @@ packages: transitivePeerDependencies: - supports-color + /espree@10.0.1: + resolution: {integrity: sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + dependencies: + acorn: 8.11.3 + acorn-jsx: 5.3.2(acorn@8.11.3) + eslint-visitor-keys: 4.0.0 + dev: true + /espree@9.6.1: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -6702,6 +6739,11 @@ packages: dependencies: type-fest: 0.20.2 + /globals@14.0.0: + resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} + engines: {node: '>=18'} + dev: true + /globalthis@1.0.3: resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} engines: {node: '>= 0.4'} From af3594c7883bb399c100578707d6974fe15e227e Mon Sep 17 00:00:00 2001 From: Alex Liu Date: Thu, 4 Apr 2024 04:49:09 +0800 Subject: [PATCH 17/21] fix(nuxt): handle missing Nuxt context in `useRoute` (#26633) --- packages/nuxt/src/app/composables/router.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nuxt/src/app/composables/router.ts b/packages/nuxt/src/app/composables/router.ts index 717b14cf43..bf935e63d7 100644 --- a/packages/nuxt/src/app/composables/router.ts +++ b/packages/nuxt/src/app/composables/router.ts @@ -85,8 +85,7 @@ const isProcessingMiddleware = () => { return true } } catch { - // Within an async middleware - return true + return false } return false } From f40e8e538a1d7a55a6dd651aa306862b4f4fe580 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 09:12:49 +0100 Subject: [PATCH 18/21] chore(deps): update all non-major dependencies (main) (#26636) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- package.json | 4 +- pnpm-lock.yaml | 208 ++++++++++++++++++++++++++++++--------- 3 files changed, 166 insertions(+), 48 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0b25a87d5..50d8afa48b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -236,7 +236,7 @@ jobs: TEST_CONTEXT: ${{ matrix.context }} SKIP_BUNDLE_SIZE: ${{ github.event_name != 'push' || matrix.env == 'dev' || matrix.builder == 'webpack' || matrix.context == 'default' || runner.os == 'Windows' }} - - uses: codecov/codecov-action@c16abc29c95fcf9174b58eb7e1abf4c866893bc8 # v4.1.1 + - uses: codecov/codecov-action@7afa10ed9b269c561c2336fd862446844e0cbf71 # v4.2.0 if: github.event_name != 'push' && matrix.env == 'built' && matrix.builder == 'vite' && matrix.context == 'default' && matrix.os == 'ubuntu-latest' && matrix.manifest == 'manifest-on' with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/package.json b/package.json index 5f13b19219..b90045935e 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@nuxt/webpack-builder": "workspace:*", "@testing-library/vue": "8.0.3", "@types/fs-extra": "11.0.4", - "@types/node": "20.12.3", + "@types/node": "20.12.4", "@types/semver": "7.5.8", "@vitest/coverage-v8": "1.4.0", "@vue/test-utils": "2.4.5", @@ -70,7 +70,7 @@ "fs-extra": "11.2.0", "globby": "14.0.1", "h3": "1.11.1", - "happy-dom": "14.3.10", + "happy-dom": "14.4.0", "jiti": "1.21.0", "markdownlint-cli": "0.39.0", "nitropack": "2.9.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 078d915b62..3fd5f7a367 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,7 +33,7 @@ importers: version: link:packages/kit '@nuxt/test-utils': specifier: 3.12.0 - version: 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + version: 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.4.0)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) '@nuxt/webpack-builder': specifier: workspace:* version: link:packages/webpack @@ -44,8 +44,8 @@ importers: specifier: 11.0.4 version: 11.0.4 '@types/node': - specifier: 20.12.3 - version: 20.12.3 + specifier: 20.12.4 + version: 20.12.4 '@types/semver': specifier: 7.5.8 version: 7.5.8 @@ -98,8 +98,8 @@ importers: specifier: 1.11.1 version: 1.11.1 happy-dom: - specifier: 14.3.10 - version: 14.3.10 + specifier: 14.4.0 + version: 14.4.0 jiti: specifier: 1.21.0 version: 1.21.0 @@ -144,10 +144,10 @@ importers: version: 1.5.3 vitest: specifier: 1.4.0 - version: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) + version: 1.4.0(@types/node@20.12.4)(happy-dom@14.4.0) vitest-environment-nuxt: specifier: 1.0.0 - version: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + version: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.4.0)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) vue: specifier: 3.4.21 version: 3.4.21(typescript@5.4.3) @@ -235,10 +235,10 @@ importers: version: 2.0.0(typescript@5.4.3) vite: specifier: 5.2.8 - version: 5.2.8(@types/node@20.12.3) + version: 5.2.8(@types/node@20.12.4) vitest: specifier: 1.4.0 - version: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) + version: 1.4.0(@types/node@20.12.4)(happy-dom@14.4.0) webpack: specifier: 5.91.0 version: 5.91.0 @@ -437,7 +437,7 @@ importers: version: 5.2.8(@types/node@20.12.3) vitest: specifier: 1.4.0 - version: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) + version: 1.4.0(@types/node@20.12.3)(happy-dom@14.4.0) packages/schema: dependencies: @@ -534,7 +534,7 @@ importers: version: 1.9.0 vite: specifier: 5.2.8 - version: 5.2.8(@types/node@20.12.3) + version: 5.2.8(@types/node@20.12.4) vue: specifier: 3.4.21 version: 3.4.21(typescript@5.4.3) @@ -648,10 +648,10 @@ importers: version: 1.10.1 vite: specifier: 5.2.8 - version: 5.2.8(@types/node@20.12.3) + version: 5.2.8(@types/node@20.12.4) vite-node: specifier: ^1.4.0 - version: 1.4.0(@types/node@20.12.3) + version: 1.4.0(@types/node@20.12.4) vite-plugin-checker: specifier: ^0.6.4 version: 0.6.4(eslint@8.57.0)(typescript@5.4.3)(vite@5.2.8)(vue-tsc@2.0.7) @@ -877,7 +877,7 @@ importers: version: 1.3.4 vitest: specifier: 1.0.2 - version: 1.0.2(@types/node@20.12.3)(happy-dom@14.3.10) + version: 1.0.2(@types/node@20.12.4)(happy-dom@14.4.0) vue: specifier: 3.4.21 version: 3.4.21(typescript@5.4.3) @@ -2030,7 +2030,7 @@ packages: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.5 '@types/istanbul-reports': 3.0.3 - '@types/node': 20.12.3 + '@types/node': 20.12.4 '@types/yargs': 17.0.28 chalk: 4.1.2 dev: false @@ -2354,7 +2354,7 @@ packages: rc9: 2.1.1 std-env: 3.7.0 - /@nuxt/test-utils@3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): + /@nuxt/test-utils@3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.4.0)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): resolution: {integrity: sha512-Q3HP53TDIYeqHT65r31HZhK/gRwVBmchSdVj1tfiYECyqstckvsQ4Cyt/GX/XmD7cLdD3d5aHow8LaMfP+BSqQ==} engines: {node: ^14.18.0 || >=16.10.0} peerDependencies: @@ -2407,7 +2407,7 @@ packages: fake-indexeddb: 5.0.2 get-port-please: 3.1.2 h3: 1.11.1 - happy-dom: 14.3.10 + happy-dom: 14.4.0 local-pkg: 0.5.0 magic-string: 0.30.8 node-fetch-native: 1.6.4 @@ -2421,9 +2421,9 @@ packages: ufo: 1.5.3 unenv: 1.9.0 unplugin: 1.10.1 - vite: 5.2.8(@types/node@20.12.3) - vitest: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) - vitest-environment-nuxt: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + vite: 5.2.8(@types/node@20.12.4) + vitest: 1.4.0(@types/node@20.12.4)(happy-dom@14.4.0) + vitest-environment-nuxt: 1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.4.0)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) vue: 3.4.21(typescript@5.4.3) vue-router: 4.3.0(vue@3.4.21) dev: true @@ -3010,7 +3010,7 @@ packages: /@types/connect@3.4.37: resolution: {integrity: sha512-zBUSRqkfZ59OcwXon4HVxhx5oWCJmc0OtBTK05M+p0dYjgN6iTwIL2T/WbsQZrEsdnwaF9cWQ+azOnpPvIqY3Q==} dependencies: - '@types/node': 20.12.3 + '@types/node': 20.12.4 dev: true /@types/debug@4.1.12: @@ -3060,7 +3060,7 @@ packages: /@types/http-proxy@1.17.14: resolution: {integrity: sha512-SSrD0c1OQzlFX7pGu1eXxSEjemej64aaNPRhhVYUGqXh0BtldAAx37MG8btcumvpgKyZp1F5Gn3JkktdxiFv6w==} dependencies: - '@types/node': 20.12.3 + '@types/node': 20.12.4 /@types/istanbul-lib-coverage@2.0.5: resolution: {integrity: sha512-zONci81DZYCZjiLe0r6equvZut0b+dBRPBN5kBDjsONnutYNtJMoWQ9uR2RkL1gLG9NMTzvf+29e5RFfPbeKhQ==} @@ -3087,7 +3087,7 @@ packages: /@types/jsonfile@6.1.2: resolution: {integrity: sha512-8t92P+oeW4d/CRQfJaSqEwXujrhH4OEeHRjGU3v1Q8mUS8GPF3yiX26sw4svv6faL2HfBtGTe2xWIoVgN3dy9w==} dependencies: - '@types/node': 20.12.3 + '@types/node': 20.12.4 dev: true /@types/lodash-es@4.17.12: @@ -3113,7 +3113,7 @@ packages: /@types/node-sass@4.11.6: resolution: {integrity: sha512-Qkf5Fs9zzsXchenUY7oVdIHyv8FtPgqIXqOJzhh3FDqpYjqvc/gtZ3hlZVFmKQhl7wyI4+WkRbYufYC5pfY7iw==} dependencies: - '@types/node': 20.12.3 + '@types/node': 20.12.4 dev: true /@types/node@20.12.3: @@ -3121,6 +3121,11 @@ packages: dependencies: undici-types: 5.26.5 + /@types/node@20.12.4: + resolution: {integrity: sha512-E+Fa9z3wSQpzgYQdYmme5X3OTuejnnTx88A6p6vkkJosR3KBz+HpE3kqNm98VE6cfLFcISx7zW7MsJkH6KwbTw==} + dependencies: + undici-types: 5.26.5 + /@types/normalize-package-data@2.4.4: resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} dev: true @@ -3204,7 +3209,7 @@ packages: /@types/webpack-sources@3.2.1: resolution: {integrity: sha512-iLC3Fsx62ejm3ST3PQ8vBMC54Rb3EoCprZjeJGI5q+9QjfDLGt9jeg/k245qz1G9AQnORGk0vqPicJFPT1QODQ==} dependencies: - '@types/node': 20.12.3 + '@types/node': 20.12.4 '@types/source-list-map': 0.1.4 source-map: 0.7.4 dev: true @@ -3219,7 +3224,7 @@ packages: /@types/webpack@4.41.34: resolution: {integrity: sha512-CN2aOGrR3zbMc2v+cKqzaClYP1ldkpPOgtdNvgX+RmlWCSWxHxpzz6WSCVQZRkF8D60ROlkRzAoEpgjWQ+bd2g==} dependencies: - '@types/node': 20.12.3 + '@types/node': 20.12.4 '@types/tapable': 1.0.10 '@types/uglify-js': 3.17.3 '@types/webpack-sources': 3.2.1 @@ -3662,7 +3667,7 @@ packages: '@babel/core': 7.24.1 '@babel/plugin-transform-typescript': 7.24.1(@babel/core@7.24.1) '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.24.1) - vite: 5.2.8(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.4) vue: 3.4.21(typescript@5.4.3) transitivePeerDependencies: - supports-color @@ -3696,7 +3701,7 @@ packages: strip-literal: 2.1.0 test-exclude: 6.0.0 v8-to-istanbul: 9.2.0 - vitest: 1.4.0(@types/node@20.12.3)(happy-dom@14.3.10) + vitest: 1.4.0(@types/node@20.12.4)(happy-dom@14.4.0) transitivePeerDependencies: - supports-color dev: true @@ -6825,8 +6830,8 @@ packages: transitivePeerDependencies: - uWebSockets.js - /happy-dom@14.3.10: - resolution: {integrity: sha512-Rh5li9vA9MF9Gkg85CbFABKTa3uoSAByILRNGb92u/vswDd561gBg2p1UW1ZauvDWWwRxPcbACK5zv3BR+gHnQ==} + /happy-dom@14.4.0: + resolution: {integrity: sha512-H/vV0+/rGhdQeKGjvMVE4X0/pHNmymEnyGvo0nx9TYfo5DwByOqrnOpLRsepwROEkM0vi1ddw9yJW3sBzwzK1A==} engines: {node: '>=16.0.0'} dependencies: entities: 4.5.0 @@ -7512,7 +7517,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 20.12.3 + '@types/node': 20.12.4 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -7523,7 +7528,7 @@ packages: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 20.12.3 + '@types/node': 20.12.4 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -7531,7 +7536,7 @@ packages: resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 20.12.3 + '@types/node': 20.12.4 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -11619,7 +11624,7 @@ packages: vite: 5.2.8(@types/node@20.12.3) dev: false - /vite-node@1.0.2(@types/node@20.12.3): + /vite-node@1.0.2(@types/node@20.12.4): resolution: {integrity: sha512-h7BbMJf46fLvFW/9Ygo3snkIBEHFh6fHpB4lge98H5quYrDhPFeI3S0LREz328uqPWSnii2yeJXktQ+Pmqk5BQ==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -11628,7 +11633,7 @@ packages: debug: 4.3.4 pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.2.8(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.4) transitivePeerDependencies: - '@types/node' - less @@ -11659,6 +11664,27 @@ packages: - sugarss - supports-color - terser + dev: true + + /vite-node@1.4.0(@types/node@20.12.4): + resolution: {integrity: sha512-VZDAseqjrHgNd4Kh8icYHWzTKSCZMhia7GyHfhtzLW33fZlG9SwsB6CEhgyVOWkJfJ2pFLrp/Gj1FSfAiqH9Lw==} + 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.2.8(@types/node@20.12.4) + transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser /vite-plugin-checker@0.6.4(eslint@8.57.0)(typescript@5.4.3)(vite@5.2.8)(vue-tsc@2.0.7): resolution: {integrity: sha512-2zKHH5oxr+ye43nReRbC2fny1nyARwhxdm0uNYp/ERy4YvU9iZpNOsueoi/luXw5gnpqRSvjcEPxXbS153O2wA==} @@ -11704,7 +11730,7 @@ packages: strip-ansi: 6.0.1 tiny-invariant: 1.3.1 typescript: 5.4.3 - vite: 5.2.8(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.4) vscode-languageclient: 7.0.0 vscode-languageserver: 7.0.0 vscode-languageserver-textdocument: 1.0.11 @@ -11792,10 +11818,45 @@ packages: optionalDependencies: fsevents: 2.3.3 - /vitest-environment-nuxt@1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): + /vite@5.2.8(@types/node@20.12.4): + resolution: {integrity: sha512-OyZR+c1CE8yeHw5V5t59aXsUPPVTHMDjEZz8MgguLL/Q7NblxhZUlTu9xSPqlsUO/y+X7dlU05jdhvyycD55DA==} + 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.12.4 + esbuild: 0.20.2 + postcss: 8.4.38 + rollup: 4.14.0 + optionalDependencies: + fsevents: 2.3.3 + + /vitest-environment-nuxt@1.0.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.4.0)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21): resolution: {integrity: sha512-AWMO9h4HdbaFdPWZw34gALFI8gbBiOpvfbyeZwHIPfh4kWg/TwElYHvYMQ61WPUlCGaS5LebfHkaI0WPyb//Iw==} dependencies: - '@nuxt/test-utils': 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.3.10)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) + '@nuxt/test-utils': 3.12.0(@testing-library/vue@8.0.3)(@vue/test-utils@2.4.5)(h3@1.11.1)(happy-dom@14.4.0)(playwright-core@1.42.1)(vite@5.2.8)(vitest@1.4.0)(vue-router@4.3.0)(vue@3.4.21) transitivePeerDependencies: - '@cucumber/cucumber' - '@jest/globals' @@ -11813,7 +11874,7 @@ packages: - vue-router dev: true - /vitest@1.0.2(@types/node@20.12.3)(happy-dom@14.3.10): + /vitest@1.0.2(@types/node@20.12.4)(happy-dom@14.4.0): resolution: {integrity: sha512-F3NVwwpXfRSDnJmyv+ALPwSRVt0zDkRRE18pwUHSUPXAlWQ47rY1dc99ziMW5bBHyqwK2ERjMisLNoef64qk9w==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -11838,7 +11899,7 @@ packages: jsdom: optional: true dependencies: - '@types/node': 20.12.3 + '@types/node': 20.12.4 '@vitest/expect': 1.0.2 '@vitest/runner': 1.0.2 '@vitest/snapshot': 1.0.2 @@ -11849,7 +11910,7 @@ packages: chai: 4.3.10 debug: 4.3.4 execa: 8.0.1 - happy-dom: 14.3.10 + happy-dom: 14.4.0 local-pkg: 0.5.0 magic-string: 0.30.8 pathe: 1.1.2 @@ -11858,8 +11919,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.8.2 - vite: 5.2.8(@types/node@20.12.3) - vite-node: 1.0.2(@types/node@20.12.3) + vite: 5.2.8(@types/node@20.12.4) + vite-node: 1.0.2(@types/node@20.12.4) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -11871,7 +11932,7 @@ packages: - terser dev: true - /vitest@1.4.0(@types/node@20.12.3)(happy-dom@14.3.10): + /vitest@1.4.0(@types/node@20.12.3)(happy-dom@14.4.0): resolution: {integrity: sha512-gujzn0g7fmwf83/WzrDTnncZt2UiXP41mHuFYFrdwaLRVQ6JYQEiME2IfEjU3vcFL3VKa75XhI3lFgn+hfVsQw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -11906,7 +11967,7 @@ packages: chai: 4.3.10 debug: 4.3.4 execa: 8.0.1 - happy-dom: 14.3.10 + happy-dom: 14.4.0 local-pkg: 0.5.0 magic-string: 0.30.8 pathe: 1.1.2 @@ -11928,6 +11989,63 @@ packages: - terser dev: true + /vitest@1.4.0(@types/node@20.12.4)(happy-dom@14.4.0): + resolution: {integrity: sha512-gujzn0g7fmwf83/WzrDTnncZt2UiXP41mHuFYFrdwaLRVQ6JYQEiME2IfEjU3vcFL3VKa75XhI3lFgn+hfVsQw==} + 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.4.0 + '@vitest/ui': 1.4.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.12.4 + '@vitest/expect': 1.4.0 + '@vitest/runner': 1.4.0 + '@vitest/snapshot': 1.4.0 + '@vitest/spy': 1.4.0 + '@vitest/utils': 1.4.0 + acorn-walk: 8.3.2 + chai: 4.3.10 + debug: 4.3.4 + execa: 8.0.1 + happy-dom: 14.4.0 + local-pkg: 0.5.0 + magic-string: 0.30.8 + pathe: 1.1.2 + picocolors: 1.0.0 + std-env: 3.7.0 + strip-literal: 2.1.0 + tinybench: 2.5.1 + tinypool: 0.8.2 + vite: 5.2.8(@types/node@20.12.4) + vite-node: 1.4.0(@types/node@20.12.4) + 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'} From bb65d91ae72f72fbf67fb28810e9c0a3a4d9c108 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:02:35 +0100 Subject: [PATCH 19/21] chore(deps): update dependency magic-string to ^0.30.9 (main) (#26641) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- packages/nuxt/package.json | 2 +- packages/vite/package.json | 2 +- packages/webpack/package.json | 2 +- pnpm-lock.yaml | 64 +++++++++++++++++------------------ 5 files changed, 36 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index b90045935e..1c8d81fd52 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "nuxt": "workspace:*", "vite": "5.2.8", "vue": "3.4.21", - "magic-string": "^0.30.8" + "magic-string": "^0.30.9" }, "devDependencies": { "@eslint/eslintrc": "3.0.2", diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index dc2fdc339f..26c6b8aedc 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -87,7 +87,7 @@ "jiti": "^1.21.0", "klona": "^2.0.6", "knitwork": "^1.1.0", - "magic-string": "^0.30.8", + "magic-string": "^0.30.9", "mlly": "^1.6.1", "nitropack": "^2.9.6", "nuxi": "^3.11.1", diff --git a/packages/vite/package.json b/packages/vite/package.json index ce50c6443e..35074f4a4c 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -49,7 +49,7 @@ "get-port-please": "^3.1.2", "h3": "^1.11.1", "knitwork": "^1.1.0", - "magic-string": "^0.30.8", + "magic-string": "^0.30.9", "mlly": "^1.6.1", "ohash": "^1.1.3", "pathe": "^1.1.2", diff --git a/packages/webpack/package.json b/packages/webpack/package.json index 55ec467f11..d4045a5529 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -41,7 +41,7 @@ "h3": "^1.11.1", "hash-sum": "^2.0.0", "lodash-es": "4.17.21", - "magic-string": "^0.30.8", + "magic-string": "^0.30.9", "memfs": "^4.8.1", "mini-css-extract-plugin": "^2.8.1", "mlly": "^1.6.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3fd5f7a367..e40c8a21e8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,7 +13,7 @@ overrides: nuxt: workspace:* vite: 5.2.8 vue: 3.4.21 - magic-string: ^0.30.8 + magic-string: ^0.30.9 importers: @@ -333,8 +333,8 @@ importers: specifier: ^1.1.0 version: 1.1.0 magic-string: - specifier: ^0.30.8 - version: 0.30.8 + specifier: ^0.30.9 + version: 0.30.9 mlly: specifier: ^1.6.1 version: 1.6.1 @@ -608,8 +608,8 @@ importers: specifier: ^1.1.0 version: 1.1.0 magic-string: - specifier: ^0.30.8 - version: 0.30.8 + specifier: ^0.30.9 + version: 0.30.9 mlly: specifier: ^1.6.1 version: 1.6.1 @@ -729,8 +729,8 @@ importers: specifier: 4.17.21 version: 4.17.21 magic-string: - specifier: ^0.30.8 - version: 0.30.8 + specifier: ^0.30.9 + version: 0.30.9 memfs: specifier: ^4.8.1 version: 4.8.1 @@ -2409,7 +2409,7 @@ packages: h3: 1.11.1 happy-dom: 14.4.0 local-pkg: 0.5.0 - magic-string: 0.30.8 + magic-string: 0.30.9 node-fetch-native: 1.6.4 ofetch: 1.3.4 pathe: 1.1.2 @@ -2641,7 +2641,7 @@ packages: estree-walker: 2.0.2 glob: 8.1.0 is-reference: 1.2.1 - magic-string: 0.30.8 + magic-string: 0.30.9 rollup: 4.14.0 /@rollup/plugin-inject@5.0.5(rollup@4.14.0): @@ -2655,7 +2655,7 @@ packages: dependencies: '@rollup/pluginutils': 5.1.0(rollup@4.14.0) estree-walker: 2.0.2 - magic-string: 0.30.8 + magic-string: 0.30.9 rollup: 4.14.0 /@rollup/plugin-json@6.1.0(rollup@4.14.0): @@ -2697,7 +2697,7 @@ packages: optional: true dependencies: '@rollup/pluginutils': 5.1.0(rollup@4.14.0) - magic-string: 0.30.8 + magic-string: 0.30.9 rollup: 4.14.0 /@rollup/plugin-terser@0.4.4(rollup@4.14.0): @@ -3453,7 +3453,7 @@ packages: colorette: 2.0.20 consola: 3.2.3 fast-glob: 3.3.2 - magic-string: 0.30.8 + magic-string: 0.30.9 pathe: 1.1.2 perfect-debounce: 1.0.0 transitivePeerDependencies: @@ -3498,7 +3498,7 @@ packages: '@unocss/rule-utils': 0.58.6 css-tree: 2.3.1 fast-glob: 3.3.2 - magic-string: 0.30.8 + magic-string: 0.30.9 postcss: 8.4.38 dev: false @@ -3572,7 +3572,7 @@ packages: engines: {node: '>=14'} dependencies: '@unocss/core': 0.58.6 - magic-string: 0.30.8 + magic-string: 0.30.9 dev: false /@unocss/scope@0.58.6: @@ -3630,7 +3630,7 @@ packages: '@unocss/transformer-directives': 0.58.6 chokidar: 3.6.0 fast-glob: 3.3.2 - magic-string: 0.30.8 + magic-string: 0.30.9 vite: 5.2.8(@types/node@20.12.3) transitivePeerDependencies: - rollup @@ -3694,7 +3694,7 @@ packages: istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 5.0.4 istanbul-reports: 3.1.6 - magic-string: 0.30.8 + magic-string: 0.30.9 magicast: 0.3.3 picocolors: 1.0.0 std-env: 3.7.0 @@ -3741,7 +3741,7 @@ packages: /@vitest/snapshot@1.0.2: resolution: {integrity: sha512-9ClDz2/aV5TfWA4reV7XR9p+hE0e7bifhwxlURugj3Fw0YXeTFzHmKCNEHd6wOIFMfthbGGwhlq7TOJ2jDO4/g==} dependencies: - magic-string: 0.30.8 + magic-string: 0.30.9 pathe: 1.1.2 pretty-format: 29.7.0 dev: true @@ -3749,7 +3749,7 @@ packages: /@vitest/snapshot@1.4.0: resolution: {integrity: sha512-saAFnt5pPIA5qDGxOHxJ/XxhMFKkUSBJmVt5VgDsAqPTX6JP326r5C/c9UuCMPoXNzuudTPsYDZCoJ5ilpqG2A==} dependencies: - magic-string: 0.30.8 + magic-string: 0.30.9 pathe: 1.1.2 pretty-format: 29.7.0 dev: true @@ -3876,7 +3876,7 @@ packages: '@vue/compiler-ssr': 3.4.21 '@vue/shared': 3.4.21 estree-walker: 2.0.2 - magic-string: 0.30.8 + magic-string: 0.30.9 postcss: 8.4.38 source-map-js: 1.2.0 @@ -7836,11 +7836,11 @@ packages: resolution: {integrity: sha512-0shqecEPgdFpnI3AP90epXyxZy9g6CRZ+SZ7BcqFwYmtFEnZ1jpevcV5HoyVnlDS9gCnc1UIg3Rsvp3Ci7r8OA==} engines: {node: '>=16.14.0'} dependencies: - magic-string: 0.30.8 + magic-string: 0.30.9 dev: false - /magic-string@0.30.8: - resolution: {integrity: sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==} + /magic-string@0.30.9: + resolution: {integrity: sha512-S1+hd+dIrC8EZqKyT9DstTH/0Z+f76kmmvZnkfQVmOpDEF9iVgdYif3Q/pIWHmCoo59bQVGW0kVL3e2nl+9+Sw==} engines: {node: '>=12'} dependencies: '@jridgewell/sourcemap-codec': 1.4.15 @@ -8685,7 +8685,7 @@ packages: klona: 2.0.6 knitwork: 1.1.0 listhen: 1.7.2 - magic-string: 0.30.8 + magic-string: 0.30.9 mime: 4.0.1 mlly: 1.6.1 mri: 1.2.0 @@ -10263,7 +10263,7 @@ packages: rollup: ^4.14.0 typescript: ^4.5 || ^5.0 dependencies: - magic-string: 0.30.8 + magic-string: 0.30.9 rollup: 4.14.0 typescript: 5.4.3 optionalDependencies: @@ -11201,7 +11201,7 @@ packages: globby: 13.2.2 hookable: 5.5.3 jiti: 1.21.0 - magic-string: 0.30.8 + magic-string: 0.30.9 mkdist: 1.3.0(typescript@5.4.3) mlly: 1.6.1 pathe: 1.1.2 @@ -11234,7 +11234,7 @@ packages: dependencies: acorn: 8.11.3 estree-walker: 3.0.3 - magic-string: 0.30.8 + magic-string: 0.30.9 unplugin: 1.10.1 /undici-types@5.26.5: @@ -11294,7 +11294,7 @@ packages: estree-walker: 3.0.3 fast-glob: 3.3.2 local-pkg: 0.5.0 - magic-string: 0.30.8 + magic-string: 0.30.9 mlly: 1.6.1 pathe: 1.1.2 pkg-types: 1.0.3 @@ -11525,7 +11525,7 @@ packages: resolution: {integrity: sha512-LDxTx/2DkFURUd+BU1vUsF/moj0JsoTvl+2tcg2AUOiEzVturhGGx17/IMgGvKUYdZwr33EJHtChCJuhu9Ouvg==} dependencies: knitwork: 1.1.0 - magic-string: 0.30.8 + magic-string: 0.30.9 mlly: 1.6.1 pathe: 1.1.2 pkg-types: 1.0.3 @@ -11777,7 +11777,7 @@ packages: '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.24.1) '@vue/compiler-dom': 3.4.21 kolorist: 1.8.0 - magic-string: 0.30.8 + magic-string: 0.30.9 vite: 5.2.8(@types/node@20.12.3) transitivePeerDependencies: - supports-color @@ -11912,7 +11912,7 @@ packages: execa: 8.0.1 happy-dom: 14.4.0 local-pkg: 0.5.0 - magic-string: 0.30.8 + magic-string: 0.30.9 pathe: 1.1.2 picocolors: 1.0.0 std-env: 3.7.0 @@ -11969,7 +11969,7 @@ packages: execa: 8.0.1 happy-dom: 14.4.0 local-pkg: 0.5.0 - magic-string: 0.30.8 + magic-string: 0.30.9 pathe: 1.1.2 picocolors: 1.0.0 std-env: 3.7.0 @@ -12026,7 +12026,7 @@ packages: execa: 8.0.1 happy-dom: 14.4.0 local-pkg: 0.5.0 - magic-string: 0.30.8 + magic-string: 0.30.9 pathe: 1.1.2 picocolors: 1.0.0 std-env: 3.7.0 From c5fe9ea8389fe3cd97d5f6c582f44ae8a83a5daf Mon Sep 17 00:00:00 2001 From: Nikita <118117345+nikitadmitr@users.noreply.github.com> Date: Thu, 4 Apr 2024 19:02:52 +0300 Subject: [PATCH 20/21] docs: add missing comma (#26644) --- docs/2.guide/3.going-further/8.custom-routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/2.guide/3.going-further/8.custom-routing.md b/docs/2.guide/3.going-further/8.custom-routing.md index 3d88d20c03..b3e408c2a3 100644 --- a/docs/2.guide/3.going-further/8.custom-routing.md +++ b/docs/2.guide/3.going-further/8.custom-routing.md @@ -105,7 +105,7 @@ export default defineNuxtConfig({ const resolver = createResolver(import.meta.url) // add a route files.push({ - path: resolver.resolve('./runtime/app/router-options') + path: resolver.resolve('./runtime/app/router-options'), optional: true }) } From 3c90aaf8e21955cf0644df2e0b09e3e33441e8e2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:04:48 +0100 Subject: [PATCH 21/21] v3.11.2 --- packages/kit/package.json | 2 +- packages/nuxt/package.json | 2 +- packages/schema/package.json | 2 +- packages/vite/package.json | 2 +- packages/webpack/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/kit/package.json b/packages/kit/package.json index 4993f6a6b0..ad6605f47c 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/kit", - "version": "3.11.1", + "version": "3.11.2", "repository": { "type": "git", "url": "git+https://github.com/nuxt/nuxt.git", diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 26c6b8aedc..44c67ce05d 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -1,6 +1,6 @@ { "name": "nuxt", - "version": "3.11.1", + "version": "3.11.2", "repository": { "type": "git", "url": "git+https://github.com/nuxt/nuxt.git", diff --git a/packages/schema/package.json b/packages/schema/package.json index 275993b10a..3b0a0209a7 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/schema", - "version": "3.11.1", + "version": "3.11.2", "repository": { "type": "git", "url": "git+https://github.com/nuxt/nuxt.git", diff --git a/packages/vite/package.json b/packages/vite/package.json index 35074f4a4c..a8ce75dd3d 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/vite-builder", - "version": "3.11.1", + "version": "3.11.2", "repository": { "type": "git", "url": "git+https://github.com/nuxt/nuxt.git", diff --git a/packages/webpack/package.json b/packages/webpack/package.json index d4045a5529..0d0d00d5cf 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/webpack-builder", - "version": "3.11.1", + "version": "3.11.2", "repository": { "type": "git", "url": "git+https://github.com/nuxt/nuxt.git",