diff --git a/fixtures/vitest-pool-workers-examples/package.json b/fixtures/vitest-pool-workers-examples/package.json index b38f0f918b12..a2eb133f75ff 100644 --- a/fixtures/vitest-pool-workers-examples/package.json +++ b/fixtures/vitest-pool-workers-examples/package.json @@ -15,7 +15,7 @@ "miniflare": "workspace:*", "toucan-js": "^3.3.1", "typescript": "^5.3.3", - "vitest": "1.5.0", + "vitest": "1.5.3", "wrangler": "workspace:*" } } diff --git a/packages/create-cloudflare/templates/hello-world/js/package.json b/packages/create-cloudflare/templates/hello-world/js/package.json index bce2bec2152c..32aa7bf49433 100644 --- a/packages/create-cloudflare/templates/hello-world/js/package.json +++ b/packages/create-cloudflare/templates/hello-world/js/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "wrangler": "^3.0.0", - "vitest": "1.3.0", - "@cloudflare/vitest-pool-workers": "^0.1.0" + "vitest": "1.5.3", + "@cloudflare/vitest-pool-workers": "^0.2.0" } } diff --git a/packages/create-cloudflare/templates/hello-world/ts/package.json b/packages/create-cloudflare/templates/hello-world/ts/package.json index 0e9eaf69ee99..47e1edfd6d46 100644 --- a/packages/create-cloudflare/templates/hello-world/ts/package.json +++ b/packages/create-cloudflare/templates/hello-world/ts/package.json @@ -12,7 +12,7 @@ "devDependencies": { "typescript": "^5.0.4", "wrangler": "^3.0.0", - "vitest": "1.3.0", - "@cloudflare/vitest-pool-workers": "^0.1.0" + "vitest": "1.5.3", + "@cloudflare/vitest-pool-workers": "^0.2.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 06f9b15d1819..7e8b55ca650a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -692,8 +692,8 @@ importers: specifier: ^5.3.3 version: 5.3.3 vitest: - specifier: 1.5.0 - version: 1.5.0(@types/node@20.8.3)(@vitest/ui@1.6.0(vitest@1.2.2)) + specifier: 1.5.3 + version: 1.5.3(@types/node@20.8.3)(@vitest/ui@1.6.0(vitest@1.2.2)) wrangler: specifier: workspace:* version: link:../../packages/wrangler @@ -5177,6 +5177,9 @@ packages: '@vitest/expect@1.5.0': resolution: {integrity: sha512-0pzuCI6KYi2SIC3LQezmxujU9RK/vwC1U9R0rLuGlNGcOuDWxqWKu6nUdFsX9tH1WU0SXtAxToOsEjeUn1s3hA==} + '@vitest/expect@1.5.3': + resolution: {integrity: sha512-y+waPz31pOFr3rD7vWTbwiLe5+MgsMm40jTZbQE8p8/qXyBX3CQsIXRx9XK12IbY7q/t5a5aM/ckt33b4PxK2g==} + '@vitest/expect@1.6.0': resolution: {integrity: sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==} @@ -5186,6 +5189,9 @@ packages: '@vitest/runner@1.5.0': resolution: {integrity: sha512-7HWwdxXP5yDoe7DTpbif9l6ZmDwCzcSIK38kTSIt6CFEpMjX4EpCgT6wUmS0xTXqMI6E/ONmfgRKmaujpabjZQ==} + '@vitest/runner@1.5.3': + resolution: {integrity: sha512-7PlfuReN8692IKQIdCxwir1AOaP5THfNkp0Uc4BKr2na+9lALNit7ub9l3/R7MP8aV61+mHKRGiqEKRIwu6iiQ==} + '@vitest/runner@1.6.0': resolution: {integrity: sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==} @@ -5195,6 +5201,9 @@ packages: '@vitest/snapshot@1.5.0': resolution: {integrity: sha512-qpv3fSEuNrhAO3FpH6YYRdaECnnRjg9VxbhdtPwPRnzSfHVXnNzzrpX4cJxqiwgRMo7uRMWDFBlsBq4Cr+rO3A==} + '@vitest/snapshot@1.5.3': + resolution: {integrity: sha512-K3mvIsjyKYBhNIDujMD2gfQEzddLe51nNOAf45yKRt/QFJcUIeTQd2trRvv6M6oCBHNVnZwFWbQ4yj96ibiDsA==} + '@vitest/snapshot@1.6.0': resolution: {integrity: sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==} @@ -5204,6 +5213,9 @@ packages: '@vitest/spy@1.5.0': resolution: {integrity: sha512-vu6vi6ew5N5MMHJjD5PoakMRKYdmIrNJmyfkhRpQt5d9Ewhw9nZ5Aqynbi3N61bvk9UvZ5UysMT6ayIrZ8GA9w==} + '@vitest/spy@1.5.3': + resolution: {integrity: sha512-Llj7Jgs6lbnL55WoshJUUacdJfjU2honvGcAJBxhra5TPEzTJH8ZuhI3p/JwqqfnTr4PmP7nDmOXP53MS7GJlg==} + '@vitest/spy@1.6.0': resolution: {integrity: sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==} @@ -5218,6 +5230,9 @@ packages: '@vitest/utils@1.5.0': resolution: {integrity: sha512-BDU0GNL8MWkRkSRdNFvCUCAVOeHaUlVJ9Tx0TYBZyXaaOTmGtUFObzchCivIBrIwKzvZA7A9sCejVhXM2aY98A==} + '@vitest/utils@1.5.3': + resolution: {integrity: sha512-rE9DTN1BRhzkzqNQO+kw8ZgfeEBCLXiHJwetk668shmNBpSagQxneT5eSqEBLP+cqSiAeecvQmbpFfdMyLcIQA==} + '@vitest/utils@1.6.0': resolution: {integrity: sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==} @@ -6987,9 +7002,6 @@ packages: estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} - estree-walker@3.0.1: - resolution: {integrity: sha512-woY0RUD87WzMBUiZLx8NsYr23N5BKsOMZHhu2hoNRVh6NXGfoiT1KOL8G3UHlJAnEDGmfa5ubNA/AacfG+Kb0g==} - estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} @@ -10368,10 +10380,6 @@ packages: signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} - signal-exit@4.0.2: - resolution: {integrity: sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q==} - engines: {node: '>=14'} - signal-exit@4.1.0: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} @@ -11312,6 +11320,11 @@ packages: engines: {node: ^18.0.0 || >=20.0.0} hasBin: true + vite-node@1.5.3: + resolution: {integrity: sha512-axFo00qiCpU/JLd8N1gu9iEYL3xTbMbMrbe5nDp9GL0nb6gurIdZLkkFogZXWnE8Oyy5kfSLwNVIcVsnhE7lgQ==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + vite-node@1.6.0: resolution: {integrity: sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==} engines: {node: ^18.0.0 || >=20.0.0} @@ -11435,6 +11448,31 @@ packages: jsdom: optional: true + vitest@1.5.3: + resolution: {integrity: sha512-2oM7nLXylw3mQlW6GXnRriw+7YvZFk/YNV8AxIC3Z3MfFbuziLGWP9GPxxu/7nRlXhqyxBikpamr+lEEj1sUEw==} + 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.5.3 + '@vitest/ui': 1.5.3 + 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 + vitest@1.6.0: resolution: {integrity: sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -14614,7 +14652,7 @@ snapshots: fast-glob: 3.2.12 is-glob: 4.0.3 open: 9.1.0 - picocolors: 1.0.0 + picocolors: 1.0.1 tslib: 2.5.3 '@polka/url@1.0.0-next.25': {} @@ -15231,7 +15269,7 @@ snapshots: '@types/estree-jsx@0.0.1': dependencies: - '@types/estree': 1.0.0 + '@types/estree': 1.0.5 '@types/estree-jsx@1.0.0': dependencies: @@ -16045,6 +16083,12 @@ snapshots: '@vitest/utils': 1.5.0 chai: 4.3.10 + '@vitest/expect@1.5.3': + dependencies: + '@vitest/spy': 1.5.3 + '@vitest/utils': 1.5.3 + chai: 4.3.10 + '@vitest/expect@1.6.0': dependencies: '@vitest/spy': 1.6.0 @@ -16063,6 +16107,12 @@ snapshots: p-limit: 5.0.0 pathe: 1.1.1 + '@vitest/runner@1.5.3': + dependencies: + '@vitest/utils': 1.5.3 + p-limit: 5.0.0 + pathe: 1.1.1 + '@vitest/runner@1.6.0': dependencies: '@vitest/utils': 1.6.0 @@ -16081,6 +16131,12 @@ snapshots: pathe: 1.1.1 pretty-format: 29.7.0 + '@vitest/snapshot@1.5.3': + dependencies: + magic-string: 0.30.5 + pathe: 1.1.1 + pretty-format: 29.7.0 + '@vitest/snapshot@1.6.0': dependencies: magic-string: 0.30.5 @@ -16095,6 +16151,10 @@ snapshots: dependencies: tinyspy: 2.2.0 + '@vitest/spy@1.5.3': + dependencies: + tinyspy: 2.2.0 + '@vitest/spy@1.6.0': dependencies: tinyspy: 2.2.0 @@ -16136,6 +16196,13 @@ snapshots: loupe: 2.3.7 pretty-format: 29.7.0 + '@vitest/utils@1.5.3': + dependencies: + diff-sequences: 29.6.3 + estree-walker: 3.0.3 + loupe: 2.3.7 + pretty-format: 29.7.0 + '@vitest/utils@1.6.0': dependencies: diff-sequences: 29.6.3 @@ -18536,8 +18603,6 @@ snapshots: estree-walker@2.0.2: {} - estree-walker@3.0.1: {} - estree-walker@3.0.3: dependencies: '@types/estree': 1.0.5 @@ -18932,7 +18997,7 @@ snapshots: foreground-child@3.1.1: dependencies: cross-spawn: 7.0.3 - signal-exit: 4.0.2 + signal-exit: 4.1.0 form-data@4.0.0: dependencies: @@ -19310,7 +19375,7 @@ snapshots: hast-util-to-estree@2.1.0: dependencies: - '@types/estree': 1.0.0 + '@types/estree': 1.0.5 '@types/estree-jsx': 1.0.0 '@types/hast': 2.3.4 '@types/unist': 2.0.6 @@ -21803,13 +21868,13 @@ snapshots: postcss@8.4.24: dependencies: nanoid: 3.3.7 - picocolors: 1.0.0 + picocolors: 1.0.1 source-map-js: 1.0.2 postcss@8.4.33: dependencies: nanoid: 3.3.7 - picocolors: 1.0.0 + picocolors: 1.0.1 source-map-js: 1.0.2 prebuild-install@7.1.2: @@ -22655,8 +22720,6 @@ snapshots: signal-exit@3.0.7: {} - signal-exit@4.0.2: {} - signal-exit@4.1.0: {} simple-concat@1.0.1: @@ -23672,7 +23735,7 @@ snapshots: debug: 4.3.4(supports-color@9.2.2) mlly: 1.4.2 pathe: 1.1.1 - picocolors: 1.0.0 + picocolors: 1.0.1 source-map: 0.6.1 source-map-support: 0.5.21 vite: 4.3.9(@types/node@20.8.3) @@ -23690,7 +23753,7 @@ snapshots: cac: 6.7.14 debug: 4.3.4(supports-color@9.2.2) pathe: 1.1.1 - picocolors: 1.0.0 + picocolors: 1.0.1 vite: 5.0.12(@types/node@20.1.7) transitivePeerDependencies: - '@types/node' @@ -23707,7 +23770,24 @@ snapshots: cac: 6.7.14 debug: 4.3.4(supports-color@9.2.2) pathe: 1.1.1 - picocolors: 1.0.0 + picocolors: 1.0.1 + vite: 5.0.12(@types/node@20.8.3) + transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + + vite-node@1.5.3(@types/node@20.8.3): + dependencies: + cac: 6.7.14 + debug: 4.3.4(supports-color@9.2.2) + pathe: 1.1.1 + picocolors: 1.0.1 vite: 5.0.12(@types/node@20.8.3) transitivePeerDependencies: - '@types/node' @@ -23755,7 +23835,7 @@ snapshots: vite@4.3.9(@types/node@20.8.3): dependencies: esbuild: 0.17.19 - postcss: 8.4.24 + postcss: 8.4.33 rollup: 3.25.1 optionalDependencies: '@types/node': 20.8.3 @@ -23857,6 +23937,40 @@ snapshots: - supports-color - terser + vitest@1.5.3(@types/node@20.8.3)(@vitest/ui@1.6.0(vitest@1.2.2)): + dependencies: + '@vitest/expect': 1.5.3 + '@vitest/runner': 1.5.3 + '@vitest/snapshot': 1.5.3 + '@vitest/spy': 1.5.3 + '@vitest/utils': 1.5.3 + acorn-walk: 8.3.2 + chai: 4.3.10 + debug: 4.3.4(supports-color@9.2.2) + execa: 8.0.1 + local-pkg: 0.5.0 + magic-string: 0.30.5 + pathe: 1.1.1 + picocolors: 1.0.1 + std-env: 3.7.0 + strip-literal: 2.0.0 + tinybench: 2.6.0 + tinypool: 0.8.3 + vite: 5.0.12(@types/node@20.8.3) + vite-node: 1.5.3(@types/node@20.8.3) + why-is-node-running: 2.2.2 + optionalDependencies: + '@types/node': 20.8.3 + '@vitest/ui': 1.6.0(vitest@1.2.2) + transitivePeerDependencies: + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + vitest@1.6.0(@types/node@18.16.10)(@vitest/ui@1.6.0)(supports-color@9.2.2): dependencies: '@vitest/expect': 1.6.0 @@ -24082,7 +24196,7 @@ snapshots: write-file-atomic@5.0.1: dependencies: imurmurhash: 0.1.4 - signal-exit: 4.0.2 + signal-exit: 4.1.0 ws@7.5.6: {} @@ -24109,7 +24223,7 @@ snapshots: astring: 1.8.3 estree-util-build-jsx: 2.2.0 estree-util-is-identifier-name: 2.0.1 - estree-walker: 3.0.1 + estree-walker: 3.0.3 got: 11.8.5 hast-util-to-estree: 2.1.0 loader-utils: 2.0.4