diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b72d17fef420..0e0270f70d46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,10 +80,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - # Reset back to 20 after https://github.com/nodejs/node/issues/53648 - # (The issues is closed, but the error persist even after 20.14) - node_version: [18, 20] - # node_version: [18, 20, 22] 22 when LTS is close enough + node_version: [18, 20, 22] include: - os: macos-14 node_version: 20 diff --git a/package.json b/package.json index 8fdead3f9b3d..c787b2da3907 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@rollup/plugin-commonjs": "^26.0.1", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^15.2.3", - "@types/node": "^20.14.15", + "@types/node": "^22.5.2", "@types/ws": "^8.5.12", "@vitest/browser": "workspace:*", "@vitest/coverage-istanbul": "workspace:*", diff --git a/packages/vitest/package.json b/packages/vitest/package.json index 5d0c60311ac3..27cc3ce2a818 100644 --- a/packages/vitest/package.json +++ b/packages/vitest/package.json @@ -181,7 +181,7 @@ "@types/istanbul-reports": "^3.0.4", "@types/jsdom": "^21.1.7", "@types/micromatch": "^4.0.9", - "@types/node": "^20.14.15", + "@types/node": "^22.5.2", "@types/prompts": "^2.4.9", "@types/sinonjs__fake-timers": "^8.1.5", "acorn-walk": "^8.3.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 656366af5b6b..9b0c41f85496 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -54,8 +54,8 @@ importers: specifier: ^15.2.3 version: 15.2.3(rollup@4.20.0) '@types/node': - specifier: ^20.14.15 - version: 20.14.15 + specifier: ^22.5.2 + version: 22.5.2 '@types/ws': specifier: ^8.5.12 version: 8.5.12 @@ -115,7 +115,7 @@ importers: version: 5.5.4 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:packages/vitest @@ -149,10 +149,10 @@ importers: version: 0.2.4 '@vite-pwa/vitepress': specifier: ^0.5.0 - version: 0.5.0(@vite-pwa/assets-generator@0.2.4)(vite-plugin-pwa@0.20.1(@vite-pwa/assets-generator@0.2.4)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(workbox-build@7.1.0(@types/babel__core@7.20.5))(workbox-window@7.1.0)) + version: 0.5.0(@vite-pwa/assets-generator@0.2.4)(vite-plugin-pwa@0.20.1(@vite-pwa/assets-generator@0.2.4)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(workbox-build@7.1.0(@types/babel__core@7.20.5))(workbox-window@7.1.0)) '@vitejs/plugin-vue': specifier: ^5.1.2 - version: 5.1.2(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4)) + version: 5.1.2(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4)) fast-glob: specifier: ^3.3.2 version: 3.3.2 @@ -161,22 +161,22 @@ importers: version: 4.7.1 unocss: specifier: ^0.62.0 - version: 0.62.0(postcss@8.4.40)(rollup@4.20.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + version: 0.62.0(postcss@8.4.40)(rollup@4.20.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) unplugin-vue-components: specifier: ^0.27.4 version: 0.27.4(@babel/parser@7.25.3)(rollup@4.20.0)(vue@3.4.37(typescript@5.5.4)) vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vite-plugin-pwa: specifier: ^0.20.1 - version: 0.20.1(@vite-pwa/assets-generator@0.2.4)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(workbox-build@7.1.0(@types/babel__core@7.20.5))(workbox-window@7.1.0) + version: 0.20.1(@vite-pwa/assets-generator@0.2.4)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(workbox-build@7.1.0(@types/babel__core@7.20.5))(workbox-window@7.1.0) vitepress: specifier: ^1.3.2 - version: 1.3.2(@algolia/client-search@4.20.0)(@types/node@20.14.15)(@types/react@18.2.79)(postcss@8.4.40)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.9.0)(terser@5.22.0)(typescript@5.5.4) + version: 1.3.2(@algolia/client-search@4.20.0)(@types/node@22.5.2)(@types/react@18.2.79)(postcss@8.4.40)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.9.0)(terser@5.22.0)(typescript@5.5.4) vitepress-plugin-tabs: specifier: ^0.5.0 - version: 0.5.0(vitepress@1.3.2(@algolia/client-search@4.20.0)(@types/node@20.14.15)(@types/react@18.2.79)(postcss@8.4.40)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.9.0)(terser@5.22.0)(typescript@5.5.4))(vue@3.4.37(typescript@5.5.4)) + version: 0.5.0(vitepress@1.3.2(@algolia/client-search@4.20.0)(@types/node@22.5.2)(@types/react@18.2.79)(postcss@8.4.40)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.9.0)(terser@5.22.0)(typescript@5.5.4))(vue@3.4.37(typescript@5.5.4)) workbox-window: specifier: ^7.1.0 version: 7.1.0 @@ -188,7 +188,7 @@ importers: version: 2.0.5(vitest@packages+vitest) vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -209,7 +209,7 @@ importers: version: 4.7.2 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -240,7 +240,7 @@ importers: version: 25.0.0 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -265,7 +265,7 @@ importers: devDependencies: '@preact/preset-vite': specifier: ^2.8.2 - version: 2.8.2(@babel/core@7.24.5)(preact@10.21.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + version: 2.8.2(@babel/core@7.24.5)(preact@10.21.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) '@testing-library/jest-dom': specifier: ^6.4.2 version: 6.4.2(@types/jest@29.0.0)(vitest@packages+vitest) @@ -280,7 +280,7 @@ importers: version: 5.4.5 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -311,7 +311,7 @@ importers: version: 24.0.0 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -333,10 +333,10 @@ importers: version: 25.0.0 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vite-plugin-solid: specifier: ^2.7.2 - version: 2.7.2(solid-js@1.8.3)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + version: 2.7.2(solid-js@1.8.3)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -345,10 +345,10 @@ importers: devDependencies: '@sveltejs/adapter-auto': specifier: ^2.1.0 - version: 2.1.0(@sveltejs/kit@1.20.2(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))) + version: 2.1.0(@sveltejs/kit@1.20.2(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))) '@sveltejs/kit': specifier: ^1.20.2 - version: 1.20.2(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + version: 1.20.2(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) svelte: specifier: ^3.59.1 version: 3.59.1 @@ -363,7 +363,7 @@ importers: version: 5.2.2 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -402,7 +402,7 @@ importers: version: 18.2.79 '@vitejs/plugin-react': specifier: ^4.2.1 - version: 4.2.1(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + version: 4.2.1(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) '@vitest/ui': specifier: latest version: 2.0.5(vitest@packages+vitest) @@ -423,7 +423,7 @@ importers: version: 4.7.2 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -686,7 +686,7 @@ importers: version: 1.1.2 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) packages/pretty-format: dependencies: @@ -794,7 +794,7 @@ importers: version: 0.62.0 '@vitejs/plugin-vue': specifier: ^5.1.2 - version: 5.1.2(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4)) + version: 5.1.2(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4)) '@vitest/runner': specifier: workspace:* version: link:../runner @@ -830,7 +830,7 @@ importers: version: 3.1.5 unocss: specifier: ^0.62.0 - version: 0.62.0(postcss@8.4.40)(rollup@4.20.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + version: 0.62.0(postcss@8.4.40)(rollup@4.20.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) unplugin-auto-import: specifier: ^0.18.2 version: 0.18.2(@vueuse/core@11.0.0(vue@3.4.37(typescript@5.5.4)))(rollup@4.20.0) @@ -839,10 +839,10 @@ importers: version: 0.27.4(@babel/parser@7.25.3)(rollup@4.20.0)(vue@3.4.37(typescript@5.5.4)) vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vite-plugin-pages: specifier: ^0.32.3 - version: 0.32.3(@vue/compiler-sfc@3.4.37)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4))) + version: 0.32.3(@vue/compiler-sfc@3.4.37)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4))) vue: specifier: ^3.4.37 version: 3.4.37(typescript@5.5.4) @@ -891,7 +891,7 @@ importers: version: 1.1.2 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) devDependencies: '@jridgewell/trace-mapping': specifier: ^0.3.25 @@ -961,7 +961,7 @@ importers: version: 1.2.0 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vite-node: specifier: workspace:* version: link:../vite-node @@ -1000,8 +1000,8 @@ importers: specifier: ^4.0.9 version: 4.0.9 '@types/node': - specifier: ^20.14.15 - version: 20.14.15 + specifier: ^22.5.2 + version: 22.5.2 '@types/prompts': specifier: ^2.4.9 version: 2.4.9 @@ -1120,7 +1120,7 @@ importers: version: 18.2.79 '@vitejs/plugin-basic-ssl': specifier: ^1.0.2 - version: 1.0.2(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + version: 1.0.2(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) '@vitest/browser': specifier: workspace:* version: link:../../packages/browser @@ -1165,7 +1165,7 @@ importers: version: 8.5.9 '@vitejs/plugin-basic-ssl': specifier: ^1.0.2 - version: 1.0.2(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + version: 1.0.2(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) '@vitest/runner': specifier: workspace:^ version: link:../../packages/runner @@ -1180,7 +1180,7 @@ importers: version: 1.4.4(@swc/core@1.4.1)(rollup@4.20.0) vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -1195,7 +1195,7 @@ importers: version: 8.0.1 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -1291,7 +1291,7 @@ importers: version: 3.0.3 '@vitejs/plugin-vue': specifier: latest - version: 5.1.3(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4)) + version: 5.1.3(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4)) '@vitest/browser': specifier: workspace:* version: link:../../packages/browser @@ -1327,7 +1327,7 @@ importers: version: 1.4.4(@swc/core@1.4.1)(rollup@4.20.0) vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -1402,7 +1402,7 @@ importers: version: 7.0.1 vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vite-node: specifier: workspace:* version: link:../../packages/vite-node @@ -1460,7 +1460,7 @@ importers: version: link:../../packages/browser vite: specifier: ^5.4.0 - version: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + version: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -3713,6 +3713,9 @@ packages: '@types/node@20.14.15': resolution: {integrity: sha512-Fz1xDMCF/B00/tYSVMlmK7hVeLh7jE5f3B7X1/hmV0MJBwE27KlS7EvD/Yp+z1lm8mVhwV5w+n8jOZG8AfTlKw==} + '@types/node@22.5.2': + resolution: {integrity: sha512-acJsPTEqYqulZS/Yp/S3GgeE6GZ0qYODUR8aVr/DkhHQ8l9nd4j5x1/ZJy9/gHrRlFMqkO6i0I3E27Alu4jjPg==} + '@types/normalize-package-data@2.4.1': resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} @@ -8803,6 +8806,9 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + undici-types@6.19.8: + resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} + undici@5.22.1: resolution: {integrity: sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw==} engines: {node: '>=14.0'} @@ -11410,12 +11416,12 @@ snapshots: dependencies: preact: 10.21.0 - '@preact/preset-vite@2.8.2(@babel/core@7.24.5)(preact@10.21.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))': + '@preact/preset-vite@2.8.2(@babel/core@7.24.5)(preact@10.21.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))': dependencies: '@babel/core': 7.24.5 '@babel/plugin-transform-react-jsx': 7.22.15(@babel/core@7.24.5) '@babel/plugin-transform-react-jsx-development': 7.22.5(@babel/core@7.24.5) - '@prefresh/vite': 2.4.1(preact@10.21.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + '@prefresh/vite': 2.4.1(preact@10.21.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) '@rollup/pluginutils': 4.2.1 babel-plugin-transform-hook-names: 1.0.2(@babel/core@7.24.5) debug: 4.3.4 @@ -11425,7 +11431,7 @@ snapshots: resolve: 1.22.8 source-map: 0.7.4 stack-trace: 1.0.0-pre2 - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) transitivePeerDependencies: - preact - supports-color @@ -11438,7 +11444,7 @@ snapshots: '@prefresh/utils@1.2.0': {} - '@prefresh/vite@2.4.1(preact@10.21.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))': + '@prefresh/vite@2.4.1(preact@10.21.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))': dependencies: '@babel/core': 7.24.5 '@prefresh/babel-plugin': 0.5.0 @@ -11446,7 +11452,7 @@ snapshots: '@prefresh/utils': 1.2.0 '@rollup/pluginutils': 4.2.1 preact: 10.21.0 - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) transitivePeerDependencies: - supports-color @@ -11714,14 +11720,14 @@ snapshots: magic-string: 0.25.9 string.prototype.matchall: 4.0.10 - '@sveltejs/adapter-auto@2.1.0(@sveltejs/kit@1.20.2(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)))': + '@sveltejs/adapter-auto@2.1.0(@sveltejs/kit@1.20.2(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)))': dependencies: - '@sveltejs/kit': 1.20.2(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + '@sveltejs/kit': 1.20.2(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) import-meta-resolve: 3.0.0 - '@sveltejs/kit@1.20.2(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))': + '@sveltejs/kit@1.20.2(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))': dependencies: - '@sveltejs/vite-plugin-svelte': 2.4.6(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + '@sveltejs/vite-plugin-svelte': 2.4.6(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) '@types/cookie': 0.5.1 cookie: 0.5.0 devalue: 4.3.2 @@ -11735,30 +11741,30 @@ snapshots: svelte: 3.59.1 tiny-glob: 0.2.9 undici: 5.22.1 - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte-inspector@1.0.4(@sveltejs/vite-plugin-svelte@2.4.6(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)))(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))': + '@sveltejs/vite-plugin-svelte-inspector@1.0.4(@sveltejs/vite-plugin-svelte@2.4.6(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)))(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))': dependencies: - '@sveltejs/vite-plugin-svelte': 2.4.6(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + '@sveltejs/vite-plugin-svelte': 2.4.6(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) debug: 4.3.6 svelte: 3.59.1 - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@2.4.6(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))': + '@sveltejs/vite-plugin-svelte@2.4.6(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 1.0.4(@sveltejs/vite-plugin-svelte@2.4.6(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)))(svelte@3.59.1)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + '@sveltejs/vite-plugin-svelte-inspector': 1.0.4(@sveltejs/vite-plugin-svelte@2.4.6(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)))(svelte@3.59.1)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) debug: 4.3.6 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.11 svelte: 3.59.1 svelte-hmr: 0.15.3(svelte@3.59.1) - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) - vitefu: 0.2.5(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) + vitefu: 0.2.5(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) transitivePeerDependencies: - supports-color @@ -12010,7 +12016,7 @@ snapshots: '@types/fs-extra@11.0.4': dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 20.14.15 + '@types/node': 22.5.2 optional: true '@types/fs-extra@8.1.3': @@ -12061,7 +12067,7 @@ snapshots: '@types/jsdom@21.1.7': dependencies: - '@types/node': 20.14.15 + '@types/node': 22.5.2 '@types/tough-cookie': 4.0.2 parse5: 7.1.2 @@ -12069,7 +12075,7 @@ snapshots: '@types/jsonfile@6.1.4': dependencies: - '@types/node': 20.14.15 + '@types/node': 22.5.2 optional: true '@types/linkify-it@5.0.0': {} @@ -12115,11 +12121,15 @@ snapshots: dependencies: undici-types: 5.26.5 + '@types/node@22.5.2': + dependencies: + undici-types: 6.19.8 + '@types/normalize-package-data@2.4.1': {} '@types/prompts@2.4.9': dependencies: - '@types/node': 20.14.15 + '@types/node': 22.5.2 kleur: 3.0.3 '@types/prop-types@15.7.9': {} @@ -12287,13 +12297,13 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@unocss/astro@0.62.0(rollup@4.20.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))': + '@unocss/astro@0.62.0(rollup@4.20.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))': dependencies: '@unocss/core': 0.62.0 '@unocss/reset': 0.62.0 - '@unocss/vite': 0.62.0(rollup@4.20.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + '@unocss/vite': 0.62.0(rollup@4.20.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) optionalDependencies: - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) transitivePeerDependencies: - rollup - supports-color @@ -12430,7 +12440,7 @@ snapshots: dependencies: '@unocss/core': 0.62.0 - '@unocss/vite@0.62.0(rollup@4.20.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))': + '@unocss/vite@0.62.0(rollup@4.20.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))': dependencies: '@ampproject/remapping': 2.3.0 '@rollup/pluginutils': 5.1.0(rollup@4.20.0) @@ -12442,7 +12452,7 @@ snapshots: chokidar: 3.6.0 magic-string: 0.30.11 tinyglobby: 0.2.2 - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) transitivePeerDependencies: - rollup - supports-color @@ -12456,35 +12466,35 @@ snapshots: sharp-ico: 0.1.5 unconfig: 0.3.11 - '@vite-pwa/vitepress@0.5.0(@vite-pwa/assets-generator@0.2.4)(vite-plugin-pwa@0.20.1(@vite-pwa/assets-generator@0.2.4)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(workbox-build@7.1.0(@types/babel__core@7.20.5))(workbox-window@7.1.0))': + '@vite-pwa/vitepress@0.5.0(@vite-pwa/assets-generator@0.2.4)(vite-plugin-pwa@0.20.1(@vite-pwa/assets-generator@0.2.4)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(workbox-build@7.1.0(@types/babel__core@7.20.5))(workbox-window@7.1.0))': dependencies: - vite-plugin-pwa: 0.20.1(@vite-pwa/assets-generator@0.2.4)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(workbox-build@7.1.0(@types/babel__core@7.20.5))(workbox-window@7.1.0) + vite-plugin-pwa: 0.20.1(@vite-pwa/assets-generator@0.2.4)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(workbox-build@7.1.0(@types/babel__core@7.20.5))(workbox-window@7.1.0) optionalDependencies: '@vite-pwa/assets-generator': 0.2.4 - '@vitejs/plugin-basic-ssl@1.0.2(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))': + '@vitejs/plugin-basic-ssl@1.0.2(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))': dependencies: - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) - '@vitejs/plugin-react@4.2.1(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))': + '@vitejs/plugin-react@4.2.1(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))': dependencies: '@babel/core': 7.24.4 '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/core@7.24.4) '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.24.4) '@types/babel__core': 7.20.5 react-refresh: 0.14.0 - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) transitivePeerDependencies: - supports-color - '@vitejs/plugin-vue@5.1.2(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4))': + '@vitejs/plugin-vue@5.1.2(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4))': dependencies: - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vue: 3.4.37(typescript@5.5.4) - '@vitejs/plugin-vue@5.1.3(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4))': + '@vitejs/plugin-vue@5.1.3(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4))': dependencies: - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vue: 3.4.37(typescript@5.5.4) '@vitest/browser@2.0.5(playwright@1.46.1)(typescript@5.5.4)(vitest@packages+vitest)(webdriverio@8.32.2(typescript@5.5.4))': @@ -18128,6 +18138,8 @@ snapshots: undici-types@5.26.5: {} + undici-types@6.19.8: {} + undici@5.22.1: dependencies: busboy: 1.6.0 @@ -18200,9 +18212,9 @@ snapshots: universalify@2.0.0: {} - unocss@0.62.0(postcss@8.4.40)(rollup@4.20.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)): + unocss@0.62.0(postcss@8.4.40)(rollup@4.20.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)): dependencies: - '@unocss/astro': 0.62.0(rollup@4.20.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + '@unocss/astro': 0.62.0(rollup@4.20.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) '@unocss/cli': 0.62.0(rollup@4.20.0) '@unocss/core': 0.62.0 '@unocss/extractor-arbitrary-variants': 0.62.0 @@ -18221,9 +18233,9 @@ snapshots: '@unocss/transformer-compile-class': 0.62.0 '@unocss/transformer-directives': 0.62.0 '@unocss/transformer-variant-group': 0.62.0 - '@unocss/vite': 0.62.0(rollup@4.20.0)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + '@unocss/vite': 0.62.0(rollup@4.20.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) optionalDependencies: - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) transitivePeerDependencies: - postcss - rollup @@ -18394,7 +18406,7 @@ snapshots: unist-util-stringify-position: 4.0.0 vfile-message: 4.0.2 - vite-plugin-pages@0.32.3(@vue/compiler-sfc@3.4.37)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4))): + vite-plugin-pages@0.32.3(@vue/compiler-sfc@3.4.37)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4))): dependencies: '@types/debug': 4.1.12 debug: 4.3.6 @@ -18404,7 +18416,7 @@ snapshots: json5: 2.2.3 local-pkg: 0.5.0 picocolors: 1.0.1 - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) yaml: 2.4.5 optionalDependencies: '@vue/compiler-sfc': 3.4.37 @@ -18412,12 +18424,12 @@ snapshots: transitivePeerDependencies: - supports-color - vite-plugin-pwa@0.20.1(@vite-pwa/assets-generator@0.2.4)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(workbox-build@7.1.0(@types/babel__core@7.20.5))(workbox-window@7.1.0): + vite-plugin-pwa@0.20.1(@vite-pwa/assets-generator@0.2.4)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(workbox-build@7.1.0(@types/babel__core@7.20.5))(workbox-window@7.1.0): dependencies: debug: 4.3.6 pretty-bytes: 6.1.1 tinyglobby: 0.2.0 - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) workbox-build: 7.1.0(@types/babel__core@7.20.5) workbox-window: 7.1.0 optionalDependencies: @@ -18425,7 +18437,7 @@ snapshots: transitivePeerDependencies: - supports-color - vite-plugin-solid@2.7.2(solid-js@1.8.3)(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)): + vite-plugin-solid@2.7.2(solid-js@1.8.3)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)): dependencies: '@babel/core': 7.23.3 '@babel/preset-typescript': 7.23.2(@babel/core@7.23.3) @@ -18434,8 +18446,8 @@ snapshots: merge-anything: 5.1.7 solid-js: 1.8.3 solid-refresh: 0.5.3(solid-js@1.8.3) - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) - vitefu: 0.2.4(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) + vitefu: 0.2.4(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) transitivePeerDependencies: - supports-color @@ -18449,37 +18461,37 @@ snapshots: fsevents: 2.3.3 terser: 5.22.0 - vite@5.4.0(@types/node@20.14.15)(terser@5.22.0): + vite@5.4.0(@types/node@22.5.2)(terser@5.22.0): dependencies: esbuild: 0.21.5 postcss: 8.4.40 rollup: 4.20.0 optionalDependencies: - '@types/node': 20.14.15 + '@types/node': 22.5.2 fsevents: 2.3.3 terser: 5.22.0 - vitefu@0.2.4(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)): + vitefu@0.2.4(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)): optionalDependencies: - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) - vitefu@0.2.5(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0)): + vitefu@0.2.5(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)): optionalDependencies: - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) - vitepress-plugin-tabs@0.5.0(vitepress@1.3.2(@algolia/client-search@4.20.0)(@types/node@20.14.15)(@types/react@18.2.79)(postcss@8.4.40)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.9.0)(terser@5.22.0)(typescript@5.5.4))(vue@3.4.37(typescript@5.5.4)): + vitepress-plugin-tabs@0.5.0(vitepress@1.3.2(@algolia/client-search@4.20.0)(@types/node@22.5.2)(@types/react@18.2.79)(postcss@8.4.40)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.9.0)(terser@5.22.0)(typescript@5.5.4))(vue@3.4.37(typescript@5.5.4)): dependencies: - vitepress: 1.3.2(@algolia/client-search@4.20.0)(@types/node@20.14.15)(@types/react@18.2.79)(postcss@8.4.40)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.9.0)(terser@5.22.0)(typescript@5.5.4) + vitepress: 1.3.2(@algolia/client-search@4.20.0)(@types/node@22.5.2)(@types/react@18.2.79)(postcss@8.4.40)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.9.0)(terser@5.22.0)(typescript@5.5.4) vue: 3.4.37(typescript@5.5.4) - vitepress@1.3.2(@algolia/client-search@4.20.0)(@types/node@20.14.15)(@types/react@18.2.79)(postcss@8.4.40)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.9.0)(terser@5.22.0)(typescript@5.5.4): + vitepress@1.3.2(@algolia/client-search@4.20.0)(@types/node@22.5.2)(@types/react@18.2.79)(postcss@8.4.40)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.9.0)(terser@5.22.0)(typescript@5.5.4): dependencies: '@docsearch/css': 3.6.0 '@docsearch/js': 3.6.0(@algolia/client-search@4.20.0)(@types/react@18.2.79)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.9.0) '@shikijs/core': 1.12.1 '@shikijs/transformers': 1.10.3 '@types/markdown-it': 14.1.1 - '@vitejs/plugin-vue': 5.1.2(vite@5.4.0(@types/node@20.14.15)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4)) + '@vitejs/plugin-vue': 5.1.2(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4)) '@vue/devtools-api': 7.3.6 '@vue/shared': 3.4.37 '@vueuse/core': 10.11.1(vue@3.4.37(typescript@5.5.4)) @@ -18488,7 +18500,7 @@ snapshots: mark.js: 8.11.1 minisearch: 7.0.0 shiki: 1.12.1 - vite: 5.4.0(@types/node@20.14.15)(terser@5.22.0) + vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) vue: 3.4.37(typescript@5.5.4) optionalDependencies: postcss: 8.4.40 @@ -19076,4 +19088,4 @@ snapshots: zx@8.1.4: optionalDependencies: '@types/fs-extra': 11.0.4 - '@types/node': 20.14.15 + '@types/node': 22.5.2 diff --git a/test/cli/test/network-imports.test.ts b/test/cli/test/network-imports.test.ts index 16209a2f6c06..2342303ac5a2 100644 --- a/test/cli/test/network-imports.test.ts +++ b/test/cli/test/network-imports.test.ts @@ -17,7 +17,10 @@ const config = { api: 9602, } -it.each([ +const [major] = process.version.slice(1).split('.') + +// --experimental-network-imports was removed in Node 22 in favor of module loaders +it.runIf(Number(major) <= 20).each([ 'threads', 'forks', 'vmThreads',