chore(deps): update dependency @cloudflare/vitest-pool-workers to ^0.13.0#1
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency @cloudflare/vitest-pool-workers to ^0.13.0#1renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
181bfb9 to
d36e8fe
Compare
d36e8fe to
1bc4692
Compare
1bc4692 to
adc3a66
Compare
adc3a66 to
be0e234
Compare
a5e9122 to
7138c73
Compare
a4b7b54 to
3548608
Compare
51da923 to
b24c116
Compare
dd2d8e7 to
e9322a8
Compare
992b135 to
5246d62
Compare
940ce63 to
3916255
Compare
14a49ec to
804145d
Compare
bcf9ad4 to
a70ff93
Compare
8646e6a to
641fe6d
Compare
73da25f to
f482164
Compare
0b726ec to
4dd3542
Compare
3a5a43c to
6d49ea6
Compare
6d49ea6 to
3525d82
Compare
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.8.19→^0.13.0Release Notes
cloudflare/workers-sdk (@cloudflare/vitest-pool-workers)
v0.13.0Compare Source
Minor Changes
#11632
a6ddbdbThanks @penalosa! - Support Vitest 4 in@cloudflare/vitest-pool-workers.This a breaking change to the
@cloudflare/vitest-pool-workersintegration in order to support Vitest v4. Along with supporting Vitest v4 (and dropping support for Vitest v2 and v3), we've made a number of changes that may require changes to your tests. Our aim has been to improve stability & the foundations of@cloudflare/vitest-pool-workersas we move towards a v1 release of the package.We've made a codemod to make the migration easier, which will make the required changes to your config file:
Or, without installing the package first:
Config API:
defineWorkersProjectanddefineWorkersConfigfrom@cloudflare/vitest-pool-workers/confighave been replaced with acloudflareTest()Vite plugin exported from@cloudflare/vitest-pool-workers. Thetest.poolOptions.workersoptions are now passed directly tocloudflareTest():Before:
After:
isolatedStorage&singleWorker: These have been removed in favour of a simpler isolation model that more closely matches Vitest. Storage isolation is now on a per test file basis, and you can make your test files share the same storage by using the Vitest flags--max-workers=1 --no-isolateimport { env, SELF } from "cloudflare:test": These have been removed in favour ofimport { env, exports } from "cloudflare:workers".exports.default.fetch()has the same behaviour asSELF.fetch(), except that it doesn't expose Assets. To test your assets, write an integration test usingstartDevWorker()import { fetchMock } from "cloudflare:test": This has been removed. Instead, mockglobalThis.fetchor use ecosystem libraries like MSW (recommended).Vitest peer dependency:
@cloudflare/vitest-pool-workersnow requiresvitest@^4.1.0.Patch Changes
f7de0fd,ff543e3,8e89e85,e63539d,8d1e130,6ee18e1,ecc7f79,1dda1c8,4bb61b9]:v0.12.21Compare Source
Patch Changes
#12790
5451a7fThanks @petebacondarwin! - Bump devalue to ^5.6.3 to address security vulnerabilitiesDevalue had denial of service and prototype pollution vulnerabilities. This is a bundled dependency.
Updated dependencies [
5451a7f,5451a7f,82cc2a8,3c67c2a,d645594,211d75d,6ed249b,9f93b54,de65c58,cb14820,a7c87d1,b8c33f5,e4d9510]:v0.12.20Compare Source
Patch Changes
ec2459e]:v0.12.19Compare Source
Patch Changes
#12682
b5b91c9Thanks @hiendv! - Fix resource leak where remote proxy sessions were not disposed during pool shutdown, causing vitest processes to hang.Updated dependencies [
6a8aa5f,d672e2e,35b2c56,5f7aaf2,209b396,23a365a,596b8a0,00e729e,0769056,150ef7b,bf9cb3d]:v0.12.18Compare Source
Patch Changes
99037e3,295297a,f765244,c0e9e08]:v0.12.17Compare Source
Patch Changes
3d6e421,294297e]:v0.12.16Compare Source
Patch Changes
8d882fa,8d882fa]:v0.12.15Compare Source
Patch Changes
#12602
58a4020Thanks @anonrig! - Optimize filesystem operations by using Node.js's throwIfNoEntry: false optionThis reduces the number of system calls made when checking for file existence by avoiding the overhead of throwing and catching errors for missing paths. This is an internal performance optimization with no user-visible behavioral changes.
Updated dependencies [
e93dc01,c2ed7c2,d920811,896734d,ebdbe52,58a4020,6f6cd94]:v0.12.14Compare Source
Patch Changes
f239077,aaa7200,2f19a40,8723684,e2a6600,527e4f5,aa82c2b,0b17117,ca58062]:v0.12.13Compare Source
Patch Changes
5a868a0,caf9b11,c58e81b,33a9a8f,8077c14,caf9b11,7d2355e,936187d,7ea69af,5cc7158,caf9b11,43c462a,c4c86f8,7d2355e,c9d0f9d,5cc7158,5cc7158,c9d0f9d]:v0.12.12Compare Source
Patch Changes
#11771
4b6fd36Thanks @avenceslau! - Fix Durable Object storage causing SQLITE_CANTOPEN errors on repeated test runsWhen running
vitestmultiple times in watch mode, Durable Object storage would fail withSQLITE_CANTOPENerrors. This happened because the storage reset function was deleting directories that workerd still had file handles to.The fix preserves directory structure during storage reset, deleting only files while
keeping directories intact. This allows workerd to maintain valid handles to SQLite
database directories across test runs.
Updated dependencies [
ad817dd,b900c5a,f7fa326,734792a,7aaa2a5,cc5ac22,62a8d48,84252b7,e5efa5d,d06ad09,10a1c4a,be9745f,d7b492c,122791d,8809411,1a9eddd,41e18aa]:v0.12.11Compare Source
Patch Changes
5d56487,2d90127,2acb277,c8dda16,e02b5f5,8ba1d11,555b32a,d636d6a,bf8df0c,e02b5f5,988dea9,1f1c3ce,62635a0,fd902aa,961705c,355c6da,bfd17cd,3388c84,ce9dc01,21ac7ab,937425c]:v0.12.10Compare Source
Patch Changes
ee9b81f,63f1adb,ba13de9,447daa3,fe3af35,bd4bb98,dab4bc9,83adb2c,18c0784]:v0.12.9Compare Source
Patch Changes
964a39d,253a85d,ce736b9,0c9625a,47944d1,4c4d5a5,b05b919,0aaf080,b981db5,a113c0d,fdd7a9f,a5fca2c,1bd1488,f7aa8c7]:v0.12.8Compare Source
Patch Changes
8a210af,eb8a415,3b06b18,17961bb,52fdfe7,6d8d9cd,cb72c11]:v0.12.7Compare Source
Patch Changes
#12056
6d5f69fThanks @edmundhung! - fix: allow Vite query parameters like?rawon.sqlfile importsImporting
.sqlfiles with Vite query parameters (e.g.,import sql from "./query.sql?raw") would fail with "No such module" errors in vitest-pool-workers 0.12.x. Both import styles now work:import sql from "./query.sql?raw"(Vite handles the?rawtransform)import sql from "./query.sql"(loaded as Text module)#11917
7b40cebThanks @ksawaneh! - Fix CommonJSrequire()of.jsonfiles in the module fallback service (avoidsSyntaxError: Unexpected token ':').#11897
bbd8a5eThanks @dario-piotrowicz! - Bundle thezoddependency to reduce supply chain attack surfaceIn order to prevent possible npm vulnerability attacks, the team's policy is to bundle
dependencies in our packages where possible. This helps ensure that only trusted code
runs on the user's system, even if compromised packages are later published to npm.
This change bundles
zod(a pure JavaScript validation library with no native dependencies)into miniflare and @cloudflare/vitest-pool-workers.
Other dependencies remain external for technical reasons:
sharp: Native binary with platform-specific buildsundici: Dynamically required at runtime in worker threadsws: Has optional native bindings for performanceworkerd: Native binary (Cloudflare's JavaScript runtime)@cspotcode/source-map-support: Uses require.cache manipulation at runtimeyouch: Dynamically required for lazy loadingUpdated dependencies [
a0a9ef6,ad4666c,014e7aa,e414f05,77e82d2,f08ef21,0641e6c,eacedba,05714f8,e8b2ef5,bbd8a5e]:v0.12.6Compare Source
Patch Changes
614bbd7,788bf78,1375577,bba0968,c3407ad,f9e8a45]:v0.12.5Compare Source
Patch Changes
#11967
202c59eThanks @emily-shen! - chore: update undiciThe following dependency versions have been updated:
#11943
25e2c60Thanks @vicb! - Bump capnp-es to ^0.0.14Updated dependencies [
75386b1,8e4a0e5,133bf95,93d8d78,69ff962,22727c2,fa39a73,4ac7c82,69ff962,029531a,d58fbd1,202c59e,133bf95,25e2c60,69ff962]:v0.12.4Compare Source
Patch Changes
#11898
c17e971Thanks @petebacondarwin! - Bundle more third-party dependencies to reduce supply chain riskPreviously, several small utility packages were listed as runtime dependencies and
installed separately. These are now bundled directly into the published packages,
reducing the number of external dependencies users need to trust.
Bundled dependencies:
acorn,acorn-walk,exit-hook,glob-to-regexp,stoppablemime@remix-run/node-fetch-server,defu,get-port,picocolors,tinyglobbybirpc,devalue,get-port,semverUpdated dependencies [
e78186d,fe4faa3,4714ca1,c17e971,695b043]:v0.12.3Compare Source
Patch Changes
99b1f32]:v0.12.2Compare Source
Patch Changes
b0e54b2,ed60c4f,faa5753,e574ef3,b6148ed,ab3859c,0eb973d,ad65efa,fc96e5f,43d5363,0f8d69d]:v0.12.1Compare Source
Patch Changes
97e67b9,7d63fa5]:v0.12.0Compare Source
Minor Changes
#11648
eac5cf7Thanks @pombosilva! - Add Workflows test handlers in vitest-pool-workers to get the Workflow instance output and error:getOutput(): Returns the output of the successfully completed Workflow instance.getError(): Returns the error information of the errored Workflow instance.Example:
Patch Changes
#11681
1223663Thanks @ascorbic! - Fix vitest-pool-workers hanging when the default inspector port (9229) is already in use. When debugging is enabled and the default port is unavailable, the pool now automatically finds the next available port. If a user explicitly specifies an inspector port that is unavailable, an error is thrown with a clear message.Updated dependencies [
02fbd22,b993d95,f612b46,77078ef,2510723,65d1850,1615fce,b2769bf,554a4df,9f6dd71,8eede3f,d123ad0,9e360f6,5121b23,82e7e90,6a05b1c,fc95831,b0dbf1a,4688f59,69979a3,c54f8da,df1f9c9,d059f69,eac5cf7,b827893]:v0.11.1Compare Source
Patch Changes
ae1ad22,171cfd9,428ae9e,737c0f4,c0e249e,472cf72,3853200]:v0.11.0Compare Source
Minor Changes
#11533
8d9003eThanks @petebacondarwin! - Add support for ctx.exportsIt is now possible to access
ctx.exportsproperties for themain(SELF) worker.SELFworker thectx.exportsobject now contains the expected stubs to the exported entry-points.createExecutionContext()hasexportsproperty that exposes the exports of theSELFworker.Due to the dynamic nature of Vitest the integration relies upon guessing what the exports of the
mainWorker are by statically analyzing the Worker source using esbuild. In cases where it is not possible to infer the exports (for example, a wildcard re-export of a virtual module) it is possible to declare these in the vitest-pool-workers config via theadditionalExportssetting.Patch Changes
ed42010,5d085fb,b75b710,1e9be12,6b28de1,6c590a0,12a63ef,4201472,7d8d4a6,95d81e1,6c590a0]:v0.10.15Compare Source
Patch Changes
c15e99e,31c162a,bd5f087,c6dd86f,235d325,b17797c,b17797c,41103f5,ea6fbec,bb47e20,991760d]:v0.10.14Compare Source
Patch Changes
af54c63,9988cc9,ce295bf,45480b1,9514c9a,94c67e8,ac861f8,79d30d4,56e78c8,f550b62]:v0.10.13Compare Source
Patch Changes
59534ba,7e80340]:v0.10.12Compare Source
Patch Changes
2b4813b,abe49d8,b154de2,f29e699,5ee3780,6e63b57,71ab562,76f0540,2342d2f,5e937c1,9a1de61,6b38532,e4ddbc2,2aec2b4,695fa25,504e258,5a873bb,d25f7e2,1cfae2d,e7b690b,1d685cb,edf896d,2b4813b,c47ad11,a977701,9eaa9e2]:v0.10.11Compare Source
Patch Changes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.