Skip to content

chore: bump the vitest group across 1 directory with 2 updates - #795

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vitest-24294b4acf
Open

chore: bump the vitest group across 1 directory with 2 updates#795
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vitest-24294b4acf

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jan 15, 2026

Copy link
Copy Markdown
Contributor

Bumps the vitest group with 2 updates in the / directory: @cloudflare/vitest-pool-workers and vitest.

Updates @cloudflare/vitest-pool-workers from 0.10.1 to 0.22.0

Release notes

Sourced from @​cloudflare/vitest-pool-workers's releases.

@​cloudflare/vitest-pool-workers@​0.22.0

Minor Changes

  • #13830 49d4e00 Thanks @​penalosa! - Mocking requests with MSW in Worker tests now requires MSW >= 2.14

    @cloudflare/vitest-pool-workers previously shipped internal shims to make MSW work inside the workerd runtime. MSW 2.14 added that support natively, so those shims have been removed.

    If you mock requests with MSW in your Worker tests, make sure you're on MSW >= 2.14; older versions will no longer intercept requests. You can keep using setupServer() from msw/node, or adopt the official @msw/cloudflare integration via setupNetwork(). See the updated request-mocking example fixture for the recommended pattern.

Patch Changes

  • #15211 bc5726b Thanks @​nithin42! - Honor access.dev when running Workers with @cloudflare/vitest-pool-workers, so ctx.access.getIdentity() returns the configured identity just as it does with wrangler dev.

  • #15156 3ddd3ce Thanks @​dario-piotrowicz! - Fix module resolution for relative require() inside CJS deps when the project path contains spaces

    When a project lives under a directory with a space in its name, externalized CommonJS dependencies that use relative require() calls (e.g. require("./lib/impl.js")) would fail with "No such module" because workerd preserves URL encoding in the module name. Encoded module paths are now handled deterministically before CommonJS resolution without altering literal percent sequences.

  • #15150 2cf3143 Thanks @​kkkhs! - Restore typed inject() keys in cloudflareTest() pool options

    inject() inside cloudflareTest() options again infers the value type from the keys you declare in your Vitest ProvidedContext, and reports misspelled keys. For keys that are only provided at runtime, pass an explicit type argument, e.g. inject<number>("myPort").

  • #15232 8777180 Thanks @​vicb! - Bump capnp-es to 0.0.16.

  • #15185 1f79ace Thanks @​jamesopstad! - Use a fixed default compatibility date rather than the current date

    When no compatibility date was set, Wrangler, C3 and the Vitest pool all defaulted to the current date. workerd only accepts a compatibility date up to 7 days beyond its own release, so whenever a workerd release was delayed the default could get ahead of the runtime that had been installed, and local development would fail to start.

    The default is now fixed at the release date of the workerd version that ships with each release, which leaves a week of headroom and updates as workerd is upgraded. @cloudflare/vite-plugin previously inlined the date at which it was built. It now shares the same default.

  • Updated dependencies [bc5726b, 1277a72, ba54f0d, 6529f0c, b7422b0, 186339c, 4f922dc, 4d74b8d, 2e0c962, 1f79ace, 49f73de, 7cee278, 8777180, 265256a, 1f79ace, f431166, 8fb2b87, 75cf407]:

@​cloudflare/vitest-pool-workers@​0.21.3

Patch Changes

@​cloudflare/vitest-pool-workers@​0.21.2

Patch Changes

  • #15123 d0c976c Thanks @​dependabot! - Widen WorkerPoolOptionsContext.inject type to avoid ProvidedContext mismatch

    Previously, calling inject() inside cloudflareTest() pool options could fail with a type error when your project's ProvidedContext augmentation wasn't visible to the pool plugin. The inject parameter now accepts any string key and is generic (inject<T>(key)), defaulting to unknown when no type argument is provided. This lets you opt in to concrete types (e.g. inject<number>("port")) while avoiding the cross-copy ProvidedContext mismatch that occurred when pnpm resolved separate virtual-store instances of vitest.

  • #15148 0b82b15 Thanks @​jamesopstad! - Ignore a nodejs_compat compatibility flag that the compatibility date already enables

    workerd rejects a compatibility flag that its compatibility date enables by default, so a Worker configured with both a compatibility date of 2026-08-04 or later and nodejs_compat failed to start locally with "The compatibility flag nodejs_compat became the default as of 2026-08-04 so does not need to be specified anymore".

... (truncated)

Changelog

Sourced from @​cloudflare/vitest-pool-workers's changelog.

0.22.0

Minor Changes

  • #13830 49d4e00 Thanks @​penalosa! - Mocking requests with MSW in Worker tests now requires MSW >= 2.14

    @cloudflare/vitest-pool-workers previously shipped internal shims to make MSW work inside the workerd runtime. MSW 2.14 added that support natively, so those shims have been removed.

    If you mock requests with MSW in your Worker tests, make sure you're on MSW >= 2.14; older versions will no longer intercept requests. You can keep using setupServer() from msw/node, or adopt the official @msw/cloudflare integration via setupNetwork(). See the updated request-mocking example fixture for the recommended pattern.

Patch Changes

  • #15211 bc5726b Thanks @​nithin42! - Honor access.dev when running Workers with @cloudflare/vitest-pool-workers, so ctx.access.getIdentity() returns the configured identity just as it does with wrangler dev.

  • #15156 3ddd3ce Thanks @​dario-piotrowicz! - Fix module resolution for relative require() inside CJS deps when the project path contains spaces

    When a project lives under a directory with a space in its name, externalized CommonJS dependencies that use relative require() calls (e.g. require("./lib/impl.js")) would fail with "No such module" because workerd preserves URL encoding in the module name. Encoded module paths are now handled deterministically before CommonJS resolution without altering literal percent sequences.

  • #15150 2cf3143 Thanks @​kkkhs! - Restore typed inject() keys in cloudflareTest() pool options

    inject() inside cloudflareTest() options again infers the value type from the keys you declare in your Vitest ProvidedContext, and reports misspelled keys. For keys that are only provided at runtime, pass an explicit type argument, e.g. inject<number>("myPort").

  • #15232 8777180 Thanks @​vicb! - Bump capnp-es to 0.0.16.

  • #15185 1f79ace Thanks @​jamesopstad! - Use a fixed default compatibility date rather than the current date

    When no compatibility date was set, Wrangler, C3 and the Vitest pool all defaulted to the current date. workerd only accepts a compatibility date up to 7 days beyond its own release, so whenever a workerd release was delayed the default could get ahead of the runtime that had been installed, and local development would fail to start.

    The default is now fixed at the release date of the workerd version that ships with each release, which leaves a week of headroom and updates as workerd is upgraded. @cloudflare/vite-plugin previously inlined the date at which it was built. It now shares the same default.

  • Updated dependencies [bc5726b, 1277a72, ba54f0d, 6529f0c, b7422b0, 186339c, 4f922dc, 4d74b8d, 2e0c962, 1f79ace, 49f73de, 7cee278, 8777180, 265256a, 1f79ace, f431166, 8fb2b87, 75cf407]:

0.21.3

Patch Changes

0.21.2

Patch Changes

  • #15123 d0c976c Thanks @​dependabot! - Widen WorkerPoolOptionsContext.inject type to avoid ProvidedContext mismatch

    Previously, calling inject() inside cloudflareTest() pool options could fail with a type error when your project's ProvidedContext augmentation wasn't visible to the pool plugin. The inject parameter now accepts any string key and is generic (inject<T>(key)), defaulting to unknown when no type argument is provided. This lets you opt in to concrete types (e.g. inject<number>("port")) while avoiding the cross-copy ProvidedContext mismatch that occurred when pnpm resolved separate virtual-store instances of vitest.

... (truncated)

Commits
  • 8ee43f6 Version Packages (#15175)
  • 3ddd3ce Fix module resolution for relative require() inside CJS deps when the proje...
  • 1f79ace Use a fixed default compatibility date derived from the pinned workerd (#15185)
  • 2cf3143 [vitest-pool-workers] Restore typed inject() keys (#15150)
  • 49d4e00 [vitest-pool-workers] Adopt @​msw/cloudflare and remove MSW workarounds (#13830)
  • c576a82 Version Packages (#15154)
  • e5d56e9 Version Packages (#15145)
  • d0c976c Bump the workerd-and-workers-types group across 1 directory with 2 updates (#...
  • 90dd5e5 chore: bump capnp-es to 0.0.15 (#15131)
  • 15fc568 Version Packages (#15118)
  • Additional commits viewable in compare view

Updates vitest from 3.2.4 to 4.1.11

Release notes

Sourced from vitest's releases.

v4.1.11

   🐞 Bug Fixes

    View changes on GitHub

v4.1.10

   🐞 Bug Fixes

    View changes on GitHub

v4.1.9

🐞 Bug Fixes

View changes on GitHub

v4.1.8

   🐞 Bug Fixes

    View changes on GitHub

v4.1.7

   🐞 Bug Fixes

    View changes on GitHub

... (truncated)

Commits
  • 9bd8d46 chore: release v4.1.11 (#10995)
  • 9851dbc fix(browser): trigger playwright/chromium gc on lower disk availability [back...
  • db616d2 chore: release v4.1.10 (#10718)
  • bae52b5 fix(vm): fix external module resolve error with deps optimizer query for enco...
  • a7a61e7 chore: release v4.1.9 (#10598)
  • 934b0f5 fix(pool): prevent test run hang on worker crash (#10543) [backport to v4] (#...
  • 7fb2965 fix(browser): wait for orchestrator readiness before resolving browser sessio...
  • a518019 fix: fix importOriginal with optimizer and query import [backport to v4] (#...
  • e61f2dd chore: release v4.1.8
  • e4067b3 fix(browser): disable client cdp API when allowWrite/allowExec: false [ba...
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for vitest since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 15, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner January 15, 2026 05:50
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 15, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from 50b6a52 to 7ca0a70 Compare February 1, 2026 12:05
Comment thread package.json Outdated
Comment on lines 36 to 37
"vitest": "^4.0.18",
"wrangler": "^4.51.0"

This comment was marked as outdated.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from 7ca0a70 to a60496d Compare February 3, 2026 21:09
Comment thread package.json Outdated
"tsx": "^4.20.6",
"typescript": "^5.8.3",
"vitest": "^3.2.4",
"vitest": "^4.0.18",

This comment was marked as outdated.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from a60496d to d21fd03 Compare February 4, 2026 02:46
Comment thread package.json Outdated
"tsx": "^4.20.6",
"typescript": "^5.8.3",
"vitest": "^3.2.4",
"vitest": "^4.0.18",

This comment was marked as outdated.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from d21fd03 to 9b1d078 Compare February 4, 2026 03:20
Comment thread package.json Outdated
"typescript": "^5.8.3",
"vitest": "^3.2.4",
"vitest": "^4.0.18",
"wrangler": "^4.51.0"

This comment was marked as outdated.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from 9b1d078 to 626307e Compare February 6, 2026 17:45
Comment thread package.json Outdated
Comment on lines 38 to 39
"vitest": "^4.0.18",
"wrangler": "^4.51.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The update to vitest ^4.0.18 violates the peer dependency of @cloudflare/vitest-pool-workers, which only supports vitest up to version 3.2.x, causing test failures.
Severity: CRITICAL

Suggested Fix

Downgrade vitest to a version compatible with @cloudflare/vitest-pool-workers (e.g., ~3.2.4). Alternatively, find and upgrade to a newer version of @cloudflare/vitest-pool-workers that officially supports vitest 4.x, if one is available.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: package.json#L38-L39

Potential issue: The pull request upgrades `vitest` to `^4.0.18`, but the
`@cloudflare/vitest-pool-workers` package at version `0.12.9` explicitly declares a peer
dependency on `vitest` versions `2.0.x - 3.2.x`. This version mismatch constitutes a
peer dependency violation that will lead to runtime failures. When tests are run, the
pool worker initialization will fail because its code is incompatible with the breaking
API changes in `vitest` 4.x. This will break the test suite and block the CI/CD
pipeline.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch 2 times, most recently from 26fd7bf to a971550 Compare February 10, 2026 13:40
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from a971550 to 8cb5d6a Compare March 1, 2026 12:03
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from 8cb5d6a to 77c5f05 Compare March 24, 2026 14:13
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from 77c5f05 to 764d3b9 Compare April 1, 2026 14:28

@flakey5 flakey5 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests failing

@dependabot dependabot Bot changed the title chore: bump the vitest group with 2 updates chore: bump the vitest group across 1 directory with 2 updates May 1, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from 764d3b9 to 6b80a3c Compare May 1, 2026 13:56
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from 6b80a3c to 9605ec9 Compare June 2, 2026 10:57
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from 9605ec9 to bc8363c Compare June 12, 2026 19:14
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from bc8363c to 1ea933a Compare July 1, 2026 12:04
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch 2 times, most recently from ff82839 to cd018a5 Compare August 3, 2026 15:20
Bumps the vitest group with 2 updates in the / directory: [@cloudflare/vitest-pool-workers](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/vitest-pool-workers) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@cloudflare/vitest-pool-workers` from 0.10.1 to 0.22.0
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Changelog](https://github.com/cloudflare/workers-sdk/blob/@cloudflare/vitest-pool-workers@0.22.0/packages/vitest-pool-workers/CHANGELOG.md)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/@cloudflare/vitest-pool-workers@0.22.0/packages/vitest-pool-workers)

Updates `vitest` from 3.2.4 to 4.1.11
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/vitest)

---
updated-dependencies:
- dependency-name: "@cloudflare/vitest-pool-workers"
  dependency-version: 0.12.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: vitest
- dependency-name: vitest
  dependency-version: 4.0.16
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: vitest
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-24294b4acf branch from cd018a5 to f8fd613 Compare September 1, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants