diff --git a/.website/package.json b/.website/package.json index b62856bed5..3cb01d7ff8 100755 --- a/.website/package.json +++ b/.website/package.json @@ -9,6 +9,6 @@ "preview": "nuxt preview" }, "devDependencies": { - "@nuxt-themes/docus": "1.14.9" + "@nuxt-themes/docus": "1.15.0" } } diff --git a/package.json b/package.json index 4aca08def0..1a2687e9a3 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@nuxt/vite-builder": "workspace:*", "@nuxt/webpack-builder": "workspace:*", "nuxt": "workspace:*", - "vite": "4.4.9", + "vite": "4.4.11", "vue": "3.3.4", "magic-string": "^0.30.4" }, @@ -43,7 +43,7 @@ "@nuxt/webpack-builder": "workspace:*", "@nuxtjs/eslint-config-typescript": "12.1.0", "@types/fs-extra": "11.0.2", - "@types/node": "18.18.1", + "@types/node": "18.18.3", "@types/semver": "7.5.3", "case-police": "0.6.1", "changelogen": "0.5.5", @@ -57,13 +57,13 @@ "fs-extra": "11.1.1", "globby": "13.2.2", "h3": "1.8.2", - "happy-dom": "12.5.0", + "happy-dom": "12.9.0", "jiti": "1.20.0", "markdownlint-cli": "^0.33.0", "nitropack": "2.6.3", "nuxi": "3.9.0", "nuxt": "workspace:*", - "nuxt-vitest": "0.10.5", + "nuxt-vitest": "0.11.0", "ofetch": "1.3.3", "pathe": "1.1.1", "playwright-core": "1.38.1", @@ -72,9 +72,9 @@ "std-env": "3.4.3", "typescript": "5.2.2", "ufo": "1.3.1", - "vite": "4.4.9", + "vite": "4.4.11", "vitest": "0.33.0", - "vitest-environment-nuxt": "0.10.5", + "vitest-environment-nuxt": "0.11.0", "vue": "3.3.4", "vue-eslint-parser": "9.3.1", "vue-router": "4.2.5", diff --git a/packages/kit/package.json b/packages/kit/package.json index f40fe6edd5..99cba6f772 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -46,7 +46,7 @@ "lodash-es": "4.17.21", "nitropack": "2.6.3", "unbuild": "latest", - "vite": "4.4.9", + "vite": "4.4.11", "vitest": "0.33.0", "webpack": "5.88.2" }, diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 1a8b74c956..42adbf47b8 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -111,9 +111,9 @@ "@parcel/watcher": "2.3.0", "@types/estree": "1.0.2", "@types/fs-extra": "11.0.2", - "@vitejs/plugin-vue": "4.3.4", + "@vitejs/plugin-vue": "4.4.0", "unbuild": "latest", - "vite": "4.4.9", + "vite": "4.4.11", "vitest": "0.33.0" }, "peerDependencies": { diff --git a/packages/schema/package.json b/packages/schema/package.json index 370353ab42..53403b8447 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -33,7 +33,7 @@ "@types/pug": "2.0.7", "@types/sass-loader": "8.0.6", "@unhead/schema": "1.7.5", - "@vitejs/plugin-vue": "4.3.4", + "@vitejs/plugin-vue": "4.4.0", "@vitejs/plugin-vue-jsx": "3.0.2", "@vue/compiler-core": "3.3.4", "esbuild-loader": "4.0.2", @@ -42,7 +42,7 @@ "nitropack": "2.6.3", "unbuild": "latest", "unctx": "2.3.1", - "vite": "4.4.9", + "vite": "4.4.11", "vue": "3.3.4", "vue-bundle-renderer": "2.0.0", "vue-loader": "17.2.2", diff --git a/packages/vite/package.json b/packages/vite/package.json index e4fbdc6b5a..64ad7d49f0 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -27,8 +27,8 @@ }, "dependencies": { "@nuxt/kit": "workspace:*", - "@rollup/plugin-replace": "^5.0.2", - "@vitejs/plugin-vue": "^4.3.4", + "@rollup/plugin-replace": "^5.0.3", + "@vitejs/plugin-vue": "^4.4.0", "@vitejs/plugin-vue-jsx": "^3.0.2", "autoprefixer": "^10.4.16", "clear": "^0.1.0", @@ -57,7 +57,7 @@ "strip-literal": "^1.3.0", "ufo": "^1.3.1", "unplugin": "^1.5.0", - "vite": "^4.4.9", + "vite": "^4.4.11", "vite-node": "^0.33.0", "vite-plugin-checker": "^0.6.2", "vue-bundle-renderer": "^2.0.0" diff --git a/packages/webpack/package.json b/packages/webpack/package.json index 574ec16231..2901f4261d 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -58,7 +58,7 @@ "webpack-bundle-analyzer": "^4.9.1", "webpack-dev-middleware": "^6.1.1", "webpack-hot-middleware": "^2.25.4", - "webpack-virtual-modules": "^0.5.0", + "webpack-virtual-modules": "^0.6.0", "webpackbar": "^5.0.2" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c4564a9226..2a03a8485d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,7 +11,7 @@ overrides: '@nuxt/vite-builder': workspace:* '@nuxt/webpack-builder': workspace:* nuxt: workspace:* - vite: 4.4.9 + vite: 4.4.11 vue: 3.3.4 magic-string: ^0.30.4 @@ -32,8 +32,8 @@ importers: specifier: 11.0.2 version: 11.0.2 '@types/node': - specifier: 18.18.1 - version: 18.18.1 + specifier: 18.18.3 + version: 18.18.3 '@types/semver': specifier: 7.5.3 version: 7.5.3 @@ -74,8 +74,8 @@ importers: specifier: 1.8.2 version: 1.8.2 happy-dom: - specifier: 12.5.0 - version: 12.5.0 + specifier: 12.9.0 + version: 12.9.0 jiti: specifier: 1.20.0 version: 1.20.0 @@ -92,8 +92,8 @@ importers: specifier: workspace:* version: link:packages/nuxt nuxt-vitest: - specifier: 0.10.5 - version: 0.10.5(@vitejs/plugin-vue-jsx@3.0.2)(@vitejs/plugin-vue@4.3.4)(happy-dom@12.5.0)(vite@4.4.9)(vitest@0.33.0)(vue-router@4.2.5)(vue@3.3.4) + specifier: 0.11.0 + version: 0.11.0(@vitejs/plugin-vue-jsx@3.0.2)(@vitejs/plugin-vue@4.4.0)(happy-dom@12.9.0)(vite@4.4.11)(vitest@0.33.0)(vue-router@4.2.5)(vue@3.3.4) ofetch: specifier: 1.3.3 version: 1.3.3 @@ -119,14 +119,14 @@ importers: specifier: 1.3.1 version: 1.3.1 vite: - specifier: 4.4.9 - version: 4.4.9(@types/node@18.18.1) + specifier: 4.4.11 + version: 4.4.11(@types/node@18.18.3) vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@12.5.0) + version: 0.33.0(happy-dom@12.9.0) vitest-environment-nuxt: - specifier: 0.10.5 - version: 0.10.5(happy-dom@12.5.0)(vitest@0.33.0)(vue-router@4.2.5)(vue@3.3.4) + specifier: 0.11.0 + version: 0.11.0(happy-dom@12.9.0)(vitest@0.33.0)(vue-router@4.2.5)(vue@3.3.4) vue: specifier: 3.3.4 version: 3.3.4 @@ -143,8 +143,8 @@ importers: .website: devDependencies: '@nuxt-themes/docus': - specifier: 1.14.9 - version: 1.14.9(nuxt@packages+nuxt)(postcss@8.4.31)(vue@3.3.4) + specifier: 1.15.0 + version: 1.15.0(nuxt@packages+nuxt)(postcss@8.4.31)(vue@3.3.4) packages/kit: dependencies: @@ -222,11 +222,11 @@ importers: specifier: latest version: 2.0.0(typescript@5.2.2) vite: - specifier: 4.4.9 - version: 4.4.9(@types/node@18.18.1) + specifier: 4.4.11 + version: 4.4.11(@types/node@18.18.3) vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@12.5.0) + version: 0.33.0(happy-dom@12.9.0) webpack: specifier: 5.88.2 version: 5.88.2 @@ -253,7 +253,7 @@ importers: version: link:../vite '@types/node': specifier: ^14.18.0 || >=16.10.0 - version: 18.18.1 + version: 18.18.3 '@unhead/dom': specifier: ^1.7.4 version: 1.7.4 @@ -409,17 +409,17 @@ importers: specifier: 11.0.2 version: 11.0.2 '@vitejs/plugin-vue': - specifier: 4.3.4 - version: 4.3.4(vite@4.4.9)(vue@3.3.4) + specifier: 4.4.0 + version: 4.4.0(vite@4.4.11)(vue@3.3.4) unbuild: specifier: latest version: 2.0.0(typescript@5.2.2) vite: - specifier: 4.4.9 - version: 4.4.9(@types/node@18.18.1) + specifier: 4.4.11 + version: 4.4.11(@types/node@18.18.3) vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@12.5.0) + version: 0.33.0(happy-dom@12.9.0) packages/schema: dependencies: @@ -473,11 +473,11 @@ importers: specifier: 1.7.5 version: 1.7.5 '@vitejs/plugin-vue': - specifier: 4.3.4 - version: 4.3.4(vite@4.4.9)(vue@3.3.4) + specifier: 4.4.0 + version: 4.4.0(vite@4.4.11)(vue@3.3.4) '@vitejs/plugin-vue-jsx': specifier: 3.0.2 - version: 3.0.2(vite@4.4.9)(vue@3.3.4) + version: 3.0.2(vite@4.4.11)(vue@3.3.4) '@vue/compiler-core': specifier: 3.3.4 version: 3.3.4 @@ -500,8 +500,8 @@ importers: specifier: 2.3.1 version: 2.3.1 vite: - specifier: 4.4.9 - version: 4.4.9(@types/node@18.18.1) + specifier: 4.4.11 + version: 4.4.11(@types/node@18.18.3) vue: specifier: 3.3.4 version: 3.3.4 @@ -565,7 +565,7 @@ importers: version: 2.0.0(typescript@5.2.2) vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@12.5.0) + version: 0.33.0(happy-dom@12.9.0) packages/vite: dependencies: @@ -573,14 +573,14 @@ importers: specifier: workspace:* version: link:../kit '@rollup/plugin-replace': - specifier: ^5.0.2 - version: 5.0.2(rollup@3.29.1) + specifier: ^5.0.3 + version: 5.0.3(rollup@3.29.1) '@vitejs/plugin-vue': - specifier: ^4.3.4 - version: 4.3.4(vite@4.4.9)(vue@3.3.4) + specifier: ^4.4.0 + version: 4.4.0(vite@4.4.11)(vue@3.3.4) '@vitejs/plugin-vue-jsx': specifier: ^3.0.2 - version: 3.0.2(vite@4.4.9)(vue@3.3.4) + version: 3.0.2(vite@4.4.11)(vue@3.3.4) autoprefixer: specifier: ^10.4.16 version: 10.4.16(postcss@8.4.31) @@ -663,14 +663,14 @@ importers: specifier: ^1.5.0 version: 1.5.0 vite: - specifier: 4.4.9 - version: 4.4.9(@types/node@18.18.1) + specifier: 4.4.11 + version: 4.4.11(@types/node@18.18.3) vite-node: specifier: ^0.33.0 - version: 0.33.0(@types/node@18.18.1) + version: 0.33.0(@types/node@18.18.3) vite-plugin-checker: specifier: ^0.6.2 - version: 0.6.2(eslint@8.50.0)(typescript@5.2.2)(vite@4.4.9)(vue-tsc@1.8.15) + version: 0.6.2(eslint@8.50.0)(typescript@5.2.2)(vite@4.4.11)(vue-tsc@1.8.15) vue-bundle-renderer: specifier: ^2.0.0 version: 2.0.0 @@ -814,8 +814,8 @@ importers: specifier: ^2.25.4 version: 2.25.4 webpack-virtual-modules: - specifier: ^0.5.0 - version: 0.5.0 + specifier: ^0.6.0 + version: 0.6.0 webpackbar: specifier: ^5.0.2 version: 5.0.2(webpack@5.88.2) @@ -890,7 +890,7 @@ importers: version: 1.3.3 vitest: specifier: 0.33.0 - version: 0.33.0(happy-dom@12.5.0) + version: 0.33.0(happy-dom@12.9.0) vue: specifier: 3.3.4 version: 3.3.4 @@ -2000,7 +2000,7 @@ packages: dependencies: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 18.18.1 + '@types/node': 18.18.3 jest-mock: 29.7.0 dev: true @@ -2027,7 +2027,7 @@ packages: dependencies: '@jest/types': 29.6.3 '@sinonjs/fake-timers': 10.3.0 - '@types/node': 18.18.1 + '@types/node': 18.18.3 jest-message-util: 29.7.0 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -2081,7 +2081,7 @@ packages: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 18.18.1 + '@types/node': 18.18.3 '@types/yargs': 17.0.24 chalk: 4.1.2 @@ -2172,14 +2172,14 @@ packages: '@nodelib/fs.scandir': 2.1.5 fastq: 1.15.0 - /@nuxt-themes/docus@1.14.9(nuxt@packages+nuxt)(postcss@8.4.31)(vue@3.3.4): - resolution: {integrity: sha512-I1uUCsJRdAOdCew1BkZAbJbpAYFEubitnIxk8gsrNT7FA9anU1VAgZbxV+cApDobG6QyYi7W497/s9OiMWBi7A==} + /@nuxt-themes/docus@1.15.0(nuxt@packages+nuxt)(postcss@8.4.31)(vue@3.3.4): + resolution: {integrity: sha512-V2kJ5ecGUxXcEovXeQkJBPYfQwjmjaxB5fnl2XaQV+S2Epcn+vhPWShSlL6/WXzLPiAkQFdwbBj9xedTvXgjkw==} dependencies: '@nuxt-themes/elements': 0.9.5(postcss@8.4.31)(vue@3.3.4) '@nuxt-themes/tokens': 1.9.1(postcss@8.4.31)(vue@3.3.4) '@nuxt-themes/typography': 0.11.0(postcss@8.4.31)(vue@3.3.4) '@nuxt/content': 2.8.5(vue@3.3.4) - '@nuxthq/studio': 0.14.1 + '@nuxthq/studio': 1.0.0 '@vueuse/integrations': 10.4.1(focus-trap@7.5.3)(fuse.js@6.6.2)(vue@3.3.4) '@vueuse/nuxt': 10.4.1(nuxt@packages+nuxt)(vue@3.3.4) focus-trap: 7.5.3 @@ -2345,8 +2345,8 @@ packages: resolution: {integrity: sha512-5gc02Pu1HycOVUWJ8aYsWeeXcSTPe8iX8+KIrhyEtEoOSkY0eMBuo0ssljB8wALuEmepv31DlYe5gpiRwkjESA==} dev: false - /@nuxthq/studio@0.14.1: - resolution: {integrity: sha512-9Pdkiph1D7AoWess+pcj4AOinTnpEKpB0F0zmcbZt05LZr1urEab6nvpWlhbaen5mtkqhXlWe6skbBrQVNv17w==} + /@nuxthq/studio@1.0.0: + resolution: {integrity: sha512-W4dUsj4ypJc2jG6cE8ECmnAx99SKX0qqzoAYqj1KJ9QmknLON/DIHdyhUtIoPMHlzcBgErTeUzy4prxsO5cHBg==} dependencies: '@nuxt/kit': link:packages/kit defu: 6.1.2 @@ -2676,11 +2676,11 @@ packages: resolve: 1.22.4 rollup: 3.29.1 - /@rollup/plugin-replace@5.0.2(rollup@3.29.1): - resolution: {integrity: sha512-M9YXNekv/C/iHHK+cvORzfRYfPbq0RDD8r0G+bMiTXjNGKulPnCT9O3Ss46WfhI6ZOCgApOP7xAdmCQJ+U2LAA==} + /@rollup/plugin-replace@5.0.3(rollup@3.29.1): + resolution: {integrity: sha512-je7fu05B800IrMlWjb2wzJcdXzHYW46iTipfChnBDbIbDXhASZs27W1B58T2Yf45jZtJUONegpbce+9Ut2Ti/Q==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0 + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 peerDependenciesMeta: rollup: optional: true @@ -2781,7 +2781,7 @@ packages: /@types/connect@3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 dev: true /@types/debug@4.1.8: @@ -2815,13 +2815,13 @@ packages: resolution: {integrity: sha512-c0hrgAOVYr21EX8J0jBMXGLMgJqVf/v6yxi0dLaJboW9aQPh16Id+z6w2Tx1hm+piJOLv8xPfVKZCLfjPw/IMQ==} dependencies: '@types/jsonfile': 6.1.1 - '@types/node': 18.18.1 + '@types/node': 18.18.3 dev: true /@types/graceful-fs@4.1.6: resolution: {integrity: sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==} dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 dev: true /@types/hash-sum@1.0.0: @@ -2843,7 +2843,7 @@ packages: /@types/http-proxy@1.17.11: resolution: {integrity: sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==} dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 /@types/istanbul-lib-coverage@2.0.4: resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==} @@ -2868,7 +2868,7 @@ packages: /@types/jsonfile@6.1.1: resolution: {integrity: sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png==} dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 dev: true /@types/lodash-es@4.17.9: @@ -2900,11 +2900,11 @@ packages: /@types/node-sass@4.11.3: resolution: {integrity: sha512-wXPCn3t9uu5rR4zXNSLasZHQMuRzUKBsdi4MsgT8uq4Lp1gQQo+T2G23tGj4SSgDHeNBle6vGseZtM2XV/X9bw==} dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 dev: true - /@types/node@18.18.1: - resolution: {integrity: sha512-3G42sxmm0fF2+Vtb9TJQpnjmP+uKlWvFa8KoEGquh4gqRmoUG/N0ufuhikw6HEsdG2G2oIKhog1GCTfz9v5NdQ==} + /@types/node@18.18.3: + resolution: {integrity: sha512-0OVfGupTl3NBFr8+iXpfZ8NR7jfFO+P1Q+IO/q0wbo02wYkP5gy36phojeYWpLQ6WAMjl+VfmqUk2YbUfp0irA==} /@types/normalize-package-data@2.4.1: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} @@ -2932,7 +2932,7 @@ packages: /@types/sass-loader@8.0.6: resolution: {integrity: sha512-IhUYL6DhlWDKvWrChKsQJFId7qnD4AT9Q+Dy95LyYHqz0pyVkq7VenZjdY8L5tCID80lOahrvmCG24WACgHrsw==} dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 '@types/node-sass': 4.11.3 '@types/webpack': 4.41.33 sass: 1.64.2 @@ -2979,7 +2979,7 @@ packages: /@types/webpack-bundle-analyzer@4.6.1: resolution: {integrity: sha512-MQ9GBzu8N7bsjmE9xtWe9JUrRUsPljKxS8fd5EdSIU/x+/U0Ga8f0OsVJZTX1yWF87xZSt0Ai1Iaiwi+Gq+ugA==} dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 tapable: 2.2.1 webpack: 5.88.2 transitivePeerDependencies: @@ -3005,7 +3005,7 @@ packages: /@types/webpack-sources@3.2.0: resolution: {integrity: sha512-Ft7YH3lEVRQ6ls8k4Ff1oB4jN6oy/XmU6tQISKdhfh+1mR+viZFphS6WL0IrtDOzvefmJg5a0s7ZQoRXwqTEFg==} dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 '@types/source-list-map': 0.1.2 source-map: 0.7.4 dev: true @@ -3019,7 +3019,7 @@ packages: /@types/webpack@4.41.33: resolution: {integrity: sha512-PPajH64Ft2vWevkerISMtnZ8rTs4YmRbs+23c402J0INmxDKCrhZNvwZYtzx96gY2wAtXdrK1BS2fiC8MlLr3g==} dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 '@types/tapable': 1.0.8 '@types/uglify-js': 3.17.1 '@types/webpack-sources': 3.2.0 @@ -3235,29 +3235,29 @@ packages: - encoding - supports-color - /@vitejs/plugin-vue-jsx@3.0.2(vite@4.4.9)(vue@3.3.4): + /@vitejs/plugin-vue-jsx@3.0.2(vite@4.4.11)(vue@3.3.4): resolution: {integrity: sha512-obF26P2Z4Ogy3cPp07B4VaW6rpiu0ue4OT2Y15UxT5BZZ76haUY9guOsZV3uWh/I6xc+VeiW+ZVabRE82FyzWw==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - vite: 4.4.9 + vite: 4.4.11 vue: 3.3.4 dependencies: '@babel/core': 7.22.10 '@babel/plugin-transform-typescript': 7.22.10(@babel/core@7.22.10) '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.22.10) - vite: 4.4.9(@types/node@18.18.1) + vite: 4.4.11(@types/node@18.18.3) vue: 3.3.4 transitivePeerDependencies: - supports-color - /@vitejs/plugin-vue@4.3.4(vite@4.4.9)(vue@3.3.4): - resolution: {integrity: sha512-ciXNIHKPriERBisHFBvnTbfKa6r9SAesOYXeGDzgegcvy9Q4xdScSHAmKbNT0M3O0S9LKhIf5/G+UYG4NnnzYw==} + /@vitejs/plugin-vue@4.4.0(vite@4.4.11)(vue@3.3.4): + resolution: {integrity: sha512-xdguqb+VUwiRpSg+nsc2HtbAUSGak25DXYvpQQi4RVU1Xq1uworyoH/md9Rfd8zMmPR/pSghr309QNcftUVseg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - vite: 4.4.9 + vite: 4.4.11 vue: 3.3.4 dependencies: - vite: 4.4.9(@types/node@18.18.1) + vite: 4.4.11(@types/node@18.18.3) vue: 3.3.4 /@vitest/expect@0.33.0: @@ -3302,7 +3302,7 @@ packages: pathe: 1.1.1 picocolors: 1.0.0 sirv: 2.0.3 - vitest: 0.33.0(happy-dom@12.5.0) + vitest: 0.33.0(happy-dom@12.9.0) dev: true /@vitest/utils@0.33.0: @@ -6242,8 +6242,8 @@ packages: uncrypto: 0.1.3 unenv: 1.7.4 - /happy-dom@12.5.0: - resolution: {integrity: sha512-bEieZxuWNc6RrTQmOkaYSxqni2TkTItsId4SimAzW/Wo2cxuPP3qL6gWV/LsBH2s4DV5HZRLwciEtmhgwJJWNw==} + /happy-dom@12.9.0: + resolution: {integrity: sha512-Ap/bcno2k5316FYDqBJ2i0O1zS78W1jsNR4F/p2t3zdNoa+2H0k851RGef4STfIKdTwcQ/nk5Tx9d5BzQXfTrw==} dependencies: css.escape: 1.5.1 entities: 4.5.0 @@ -6925,7 +6925,7 @@ packages: dependencies: '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.6 - '@types/node': 18.18.1 + '@types/node': 18.18.3 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -6968,7 +6968,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 18.18.1 + '@types/node': 18.18.3 jest-util: 29.7.0 dev: true @@ -7010,7 +7010,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 18.18.1 + '@types/node': 18.18.3 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 @@ -7020,7 +7020,7 @@ packages: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -7028,7 +7028,7 @@ packages: resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -8277,7 +8277,7 @@ packages: '@rollup/plugin-inject': 5.0.3(rollup@3.29.1) '@rollup/plugin-json': 6.0.0(rollup@3.29.1) '@rollup/plugin-node-resolve': 15.2.1(rollup@3.29.1) - '@rollup/plugin-replace': 5.0.2(rollup@3.29.1) + '@rollup/plugin-replace': 5.0.3(rollup@3.29.1) '@rollup/plugin-terser': 0.4.3(rollup@3.29.1) '@rollup/plugin-wasm': 6.1.3(rollup@3.29.1) '@rollup/pluginutils': 5.0.4(rollup@3.29.1) @@ -8497,25 +8497,25 @@ packages: - vue dev: true - /nuxt-vitest@0.10.5(@vitejs/plugin-vue-jsx@3.0.2)(@vitejs/plugin-vue@4.3.4)(happy-dom@12.5.0)(vite@4.4.9)(vitest@0.33.0)(vue-router@4.2.5)(vue@3.3.4): - resolution: {integrity: sha512-C2VPccMHA/NdYzpFyOw+Wvl+k1LM8gy++yNO7fxJtHBMQEAcZgtq/CS/mPI6oTnOBJC+THjKr51CW0Qk+6CkzQ==} + /nuxt-vitest@0.11.0(@vitejs/plugin-vue-jsx@3.0.2)(@vitejs/plugin-vue@4.4.0)(happy-dom@12.9.0)(vite@4.4.11)(vitest@0.33.0)(vue-router@4.2.5)(vue@3.3.4): + resolution: {integrity: sha512-3gXY/c6bfIQnrwUp1tVLdc5jNEk9m2czmebCSWn9fmMz7wVO3BX1k1qJaWvwU0Q4q7WEzHNn6toUXwI8BuhV1Q==} peerDependencies: '@vitejs/plugin-vue': '*' '@vitejs/plugin-vue-jsx': '*' - vite: 4.4.9 + vite: 4.4.11 vitest: ^0.24.5 || ^0.26.0 || ^0.27.0 || ^0.28.0 || ^0.29.0 || ^0.30.0 || ^0.33.0 dependencies: '@nuxt/kit': link:packages/kit - '@vitejs/plugin-vue': 4.3.4(vite@4.4.9)(vue@3.3.4) - '@vitejs/plugin-vue-jsx': 3.0.2(vite@4.4.9)(vue@3.3.4) + '@vitejs/plugin-vue': 4.4.0(vite@4.4.11)(vue@3.3.4) + '@vitejs/plugin-vue-jsx': 3.0.2(vite@4.4.11)(vue@3.3.4) '@vitest/ui': 0.33.0(vitest@0.33.0) defu: 6.1.2 get-port-please: 3.1.1 perfect-debounce: 1.0.0 std-env: 3.4.3 - vite: 4.4.9(@types/node@18.18.1) - vitest: 0.33.0(happy-dom@12.5.0) - vitest-environment-nuxt: 0.10.5(happy-dom@12.5.0)(vitest@0.33.0)(vue-router@4.2.5)(vue@3.3.4) + vite: 4.4.11(@types/node@18.18.3) + vitest: 0.33.0(happy-dom@12.9.0) + vitest-environment-nuxt: 0.11.0(happy-dom@12.9.0)(vitest@0.33.0)(vue-router@4.2.5)(vue@3.3.4) transitivePeerDependencies: - '@testing-library/vue' - '@vue/server-renderer' @@ -10630,7 +10630,7 @@ packages: '@rollup/plugin-commonjs': 24.1.0(rollup@3.29.1) '@rollup/plugin-json': 6.0.0(rollup@3.29.1) '@rollup/plugin-node-resolve': 15.2.1(rollup@3.29.1) - '@rollup/plugin-replace': 5.0.2(rollup@3.29.1) + '@rollup/plugin-replace': 5.0.3(rollup@3.29.1) '@rollup/pluginutils': 5.0.4(rollup@3.29.1) chalk: 5.3.0 consola: 3.2.3 @@ -10669,7 +10669,7 @@ packages: '@rollup/plugin-commonjs': 25.0.4(rollup@3.29.1) '@rollup/plugin-json': 6.0.0(rollup@3.29.1) '@rollup/plugin-node-resolve': 15.2.1(rollup@3.29.1) - '@rollup/plugin-replace': 5.0.2(rollup@3.29.1) + '@rollup/plugin-replace': 5.0.3(rollup@3.29.1) '@rollup/pluginutils': 5.0.4(rollup@3.29.1) chalk: 5.3.0 citty: 0.1.4 @@ -11095,7 +11095,7 @@ packages: vfile-message: 4.0.2 dev: true - /vite-node@0.33.0(@types/node@18.18.1): + /vite-node@0.33.0(@types/node@18.18.3): resolution: {integrity: sha512-19FpHYbwWWxDr73ruNahC+vtEdza52kA90Qb3La98yZ0xULqV8A5JLNPUff0f5zID4984tW7l3DH2przTJUZSw==} engines: {node: '>=v14.18.0'} hasBin: true @@ -11105,7 +11105,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.9(@types/node@18.18.1) + vite: 4.4.11(@types/node@18.18.3) transitivePeerDependencies: - '@types/node' - less @@ -11116,7 +11116,7 @@ packages: - supports-color - terser - /vite-plugin-checker@0.6.2(eslint@8.50.0)(typescript@5.2.2)(vite@4.4.9)(vue-tsc@1.8.15): + /vite-plugin-checker@0.6.2(eslint@8.50.0)(typescript@5.2.2)(vite@4.4.11)(vue-tsc@1.8.15): resolution: {integrity: sha512-YvvvQ+IjY09BX7Ab+1pjxkELQsBd4rPhWNw8WLBeFVxu/E7O+n6VYAqNsKdK/a2luFlX/sMpoWdGFfg4HvwdJQ==} engines: {node: '>=14.16'} peerDependencies: @@ -11125,7 +11125,7 @@ packages: optionator: ^0.9.1 stylelint: '>=13' typescript: '*' - vite: 4.4.9 + vite: 4.4.11 vls: '*' vti: '*' vue-tsc: '>=1.3.9' @@ -11162,7 +11162,7 @@ packages: strip-ansi: 6.0.1 tiny-invariant: 1.3.1 typescript: 5.2.2 - vite: 4.4.9(@types/node@18.18.1) + vite: 4.4.11(@types/node@18.18.3) vscode-languageclient: 7.0.0 vscode-languageserver: 7.0.0 vscode-languageserver-textdocument: 1.0.8 @@ -11170,8 +11170,8 @@ packages: vue-tsc: 1.8.15(typescript@5.2.2) dev: false - /vite@4.4.9(@types/node@18.18.1): - resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} + /vite@4.4.11(@types/node@18.18.3): + resolution: {integrity: sha512-ksNZJlkcU9b0lBwAGZGGaZHCMqHsc8OpgtoYhsQ4/I2v5cnpmmmqe5pM4nv/4Hn6G/2GhTdj0DhZh2e+Er1q5A==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: @@ -11198,18 +11198,18 @@ packages: terser: optional: true dependencies: - '@types/node': 18.18.1 + '@types/node': 18.18.3 esbuild: 0.18.20 postcss: 8.4.31 rollup: 3.29.1 optionalDependencies: fsevents: 2.3.3 - /vitest-environment-nuxt@0.10.5(happy-dom@12.5.0)(vitest@0.33.0)(vue-router@4.2.5)(vue@3.3.4): - resolution: {integrity: sha512-78kVcG/xmI9IcnioJyhY6RasRVMC8ahzzqymPGuMXwMR0twkYMxWwEgQY7eAcb8FPlb24lXYO9l605IXB8X2xA==} + /vitest-environment-nuxt@0.11.0(happy-dom@12.9.0)(vitest@0.33.0)(vue-router@4.2.5)(vue@3.3.4): + resolution: {integrity: sha512-+ZvmtdijCgL+18fDV9NeHB17KGpzqAokHc2iXzaRa7cb7eXO1HwaHJFGIavHG3ybr5gJf8MBArraSdVPAjYJlw==} peerDependencies: '@testing-library/vue': 7.0.0 - happy-dom: ^9.10.9 || ^10.0.0 || ^11.0.0 + happy-dom: ^9.10.9 || ^10.0.0 || ^11.0.0 || ^12.0.0 jsdom: ^22.0.0 vitest: ^0.24.5 || ^0.26.0 || ^0.27.0 || ^0.28.0 || ^0.29.0 || ^0.30.0 || ^0.33.0 vue: 3.3.4 @@ -11227,20 +11227,21 @@ packages: defu: 6.1.2 estree-walker: 3.0.3 h3: 1.8.2 - happy-dom: 12.5.0 + happy-dom: 12.9.0 local-pkg: 0.4.3 magic-string: 0.30.4 ofetch: 1.3.3 + radix3: 1.1.0 ufo: 1.3.1 unenv: 1.7.4 - vitest: 0.33.0(happy-dom@12.5.0) + vitest: 0.33.0(happy-dom@12.9.0) vue: 3.3.4 vue-router: 4.2.5(vue@3.3.4) transitivePeerDependencies: - '@vue/server-renderer' dev: true - /vitest@0.33.0(happy-dom@12.5.0): + /vitest@0.33.0(happy-dom@12.9.0): resolution: {integrity: sha512-1CxaugJ50xskkQ0e969R/hW47za4YXDUfWJDxip1hwbnhUjYolpfUn2AMOulqG/Dtd9WYAtkHmM/m3yKVrEejQ==} engines: {node: '>=v14.18.0'} hasBin: true @@ -11273,7 +11274,7 @@ packages: dependencies: '@types/chai': 4.3.5 '@types/chai-subset': 1.3.3 - '@types/node': 18.18.1 + '@types/node': 18.18.3 '@vitest/expect': 0.33.0 '@vitest/runner': 0.33.0 '@vitest/snapshot': 0.33.0 @@ -11284,7 +11285,7 @@ packages: cac: 6.7.14 chai: 4.3.7 debug: 4.3.4 - happy-dom: 12.5.0 + happy-dom: 12.9.0 local-pkg: 0.4.3 magic-string: 0.30.4 pathe: 1.1.1 @@ -11293,8 +11294,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.0 tinypool: 0.6.0 - vite: 4.4.9(@types/node@18.18.1) - vite-node: 0.33.0(@types/node@18.18.1) + vite: 4.4.11(@types/node@18.18.3) + vite-node: 0.33.0(@types/node@18.18.3) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -11557,6 +11558,10 @@ packages: /webpack-virtual-modules@0.5.0: resolution: {integrity: sha512-kyDivFZ7ZM0BVOUteVbDFhlRt7Ah/CSPwJdi8hBpkK7QLumUqdLtVfm/PX/hkcnrvr0i77fO5+TjZ94Pe+C9iw==} + /webpack-virtual-modules@0.6.0: + resolution: {integrity: sha512-KnaMTE6EItz/f2q4Gwg5/rmeKVi79OR58NoYnwDJqCk9ywMtTGbBnBcfoBtN4QbYu0lWXvyMoH2Owxuhe4qI6Q==} + dev: false + /webpack@5.88.2: resolution: {integrity: sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ==} engines: {node: '>=10.13.0'} diff --git a/test/nuxt/composables.test.ts b/test/nuxt/composables.test.ts index 7922f25400..ef219e372d 100644 --- a/test/nuxt/composables.test.ts +++ b/test/nuxt/composables.test.ts @@ -21,11 +21,11 @@ vi.mock('#app/compat/idle-callback', () => ({ const timestamp = Date.now() registerEndpoint('/_nuxt/builds/latest.json', defineEventHandler(() => ({ - id: 'test', + id: 'override', timestamp }))) -registerEndpoint('/_nuxt/builds/meta/test.json', defineEventHandler(() => ({ - id: 'test', +registerEndpoint('/_nuxt/builds/meta/override.json', defineEventHandler(() => ({ + id: 'override', timestamp, matcher: { static: { '/': null, '/pre': null }, wildcard: { '/pre': { prerender: true } }, dynamic: {} }, prerendered: ['/specific-prerendered'] @@ -277,7 +277,7 @@ describe.skipIf(process.env.TEST_MANIFEST === 'manifest-off')('app manifests', ( delete manifest.timestamp expect(manifest).toMatchInlineSnapshot(` { - "id": "test", + "id": "override", "matcher": { "dynamic": {}, "static": { diff --git a/vitest.nuxt.config.ts b/vitest.nuxt.config.ts index 56cf31d98c..c553c87b1e 100644 --- a/vitest.nuxt.config.ts +++ b/vitest.nuxt.config.ts @@ -7,6 +7,17 @@ export default defineVitestConfig({ }, test: { dir: './test/nuxt', - environment: 'nuxt' + environment: 'nuxt', + environmentOptions: { + nuxt: { + overrides: { + appConfig: { + nuxt: { + buildId: 'override' + } + } + } + } + } } })