Skip to content

Update dependency @cloudflare/vitest-pool-workers to v0.13.5#1925

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/cloudflare-vitest-pool-workers-0.x
Open

Update dependency @cloudflare/vitest-pool-workers to v0.13.5#1925
renovate[bot] wants to merge 1 commit intomainfrom
renovate/cloudflare-vitest-pool-workers-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Dec 2, 2024

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@cloudflare/vitest-pool-workers (source) 0.5.290.13.5 age confidence

Release Notes

cloudflare/workers-sdk (@​cloudflare/vitest-pool-workers)

v0.13.5

Compare Source

Patch Changes
  • #​13077 11c77b7 Thanks @​penalosa! - fix: runInDurableObject now correctly returns redirect responses (3xx) from Durable Object callbacks instead of throwing "Expected callback for X" errors

  • #​13056 8384743 Thanks @​penalosa! - fix: Support dynamic import() inside entrypoint and Durable Object handlers

    Previously, calling exports.default.fetch() or SELF.fetch() on a worker whose handler used a dynamic import() would hang and fail with "Cannot perform I/O on behalf of a different Durable Object". This happened because the module runner's transport — which communicates over a WebSocket owned by the runner Durable Object — was invoked from a different DO context.

    The fix patches the module runner's transport via the onModuleRunner hook so that all invoke() calls are routed through the runner DO's I/O context, regardless of where the import() originates.

  • #​13074 4618c05 Thanks @​penalosa! - fix: only apply module fallback extension probing for require(), not import

    The module fallback service previously tried adding .js, .mjs, .cjs, and .json suffixes to extensionless specifiers unconditionally. Per the Node.js spec, this extension-probing behaviour is specific to CommonJS require(). ESM import statements must include explicit file extensions.

    Extension-less TypeScript import specifiers continue to work correctly — they are resolved by Vite's resolver rather than the fallback's extension loop.

  • #​13073 baec845 Thanks @​penalosa! - Add adminSecretsStore() to cloudflare:test for seeding secrets in tests

    Secrets store bindings only expose a read-only .get() method, so there was previously no way to seed secret values from within a test. The new adminSecretsStore() helper returns Miniflare's admin API for a secrets store binding, giving tests full control over create, update, and delete operations.

    import { adminSecretsStore } from "cloudflare:test";
    import { env } from "cloudflare:workers";
    
    const admin = adminSecretsStore(env.MY_SECRET);
    await admin.create("test-value");
    
    const value = await env.MY_SECRET.get(); // "test-value"
  • #​13083 cfd513f Thanks @​penalosa! - Add a 30-second timeout to waitUntil promise draining to prevent hanging tests

    Previously, if a ctx.waitUntil() promise never resolved, the test suite would hang indefinitely after the test file finished. Now, any waitUntil promises that haven't settled within 30 seconds are abandoned with a warning, allowing the test suite to continue. This aligns with the production waitUntil limit.

  • Updated dependencies [eeaa473, 9fcdfca, bc24ec8, 1faff35, 0b4c21a, 535582d, 992f9a3, f4ea4ac, 91b7f73, f6cdab2, 53ed15a, ce65246, 7a5be20, 6b50bfa, 0386553, 9c5ebf5, 53ed15a, 53ed15a]:

    • wrangler@​4.78.0
    • miniflare@​4.20260317.3

v0.13.4

Compare Source

Patch Changes

v0.13.3

Compare Source

Patch Changes

v0.13.2

Compare Source

Patch Changes

v0.13.1

Compare Source

Patch Changes

v0.13.0

Compare Source

Minor Changes
  • #​11632 a6ddbdb Thanks @​penalosa! - Support Vitest 4 in @cloudflare/vitest-pool-workers.

    This a breaking change to the @cloudflare/vitest-pool-workers integration 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-workers as 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:

    npx jscodeshift -t node_modules/@​cloudflare/vitest-pool-workers/dist/codemods/vitest-v3-to-v4.mjs vitest.config.ts

    Or, without installing the package first:

    npx jscodeshift -t https://unpkg.com/@​cloudflare/vitest-pool-workers/dist/codemods/vitest-v3-to-v4.mjs --parser=ts vitest.config.ts
    • Config API: defineWorkersProject and defineWorkersConfig from @cloudflare/vitest-pool-workers/config have been replaced with a cloudflareTest() Vite plugin exported from @cloudflare/vitest-pool-workers. The test.poolOptions.workers options are now passed directly to cloudflareTest():

      Before:

      import { defineWorkersProject } from "@​cloudflare/vitest-pool-workers/config";
      
      export default defineWorkersProject({
        test: {
          poolOptions: {
            workers: {
              wrangler: { configPath: "./wrangler.jsonc" },
            },
          },
        },
      });

      After:

      import { cloudflareTest } from "@​cloudflare/vitest-pool-workers";
      import { defineConfig } from "vitest/config";
      
      export default defineConfig({
        plugins: [
          cloudflareTest({
            wrangler: { configPath: "./wrangler.jsonc" },
          }),
        ],
      });
    • 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-isolate

    • import { env, SELF } from "cloudflare:test": These have been removed in favour of import { env, exports } from "cloudflare:workers". exports.default.fetch() has the same behaviour as SELF.fetch(), except that it doesn't expose Assets. To test your assets, write an integration test using startDevWorker()

    • import { fetchMock } from "cloudflare:test": This has been removed. Instead, mock globalThis.fetch or use ecosystem libraries like MSW (recommended).

    • Vitest peer dependency: @cloudflare/vitest-pool-workers now requires vitest@^4.1.0.

Patch Changes

v0.12.21

Compare Source

Patch Changes

v0.12.20

Compare Source

Patch Changes
  • Updated dependencies [ec2459e]:
    • wrangler@​4.71.0
    • miniflare@​4.20260301.1

v0.12.19

Compare Source

Patch Changes

v0.12.18

Compare Source

Patch Changes

v0.12.17

Compare Source

Patch Changes
  • Updated dependencies [3d6e421, 294297e]:
    • wrangler@​4.68.1
    • miniflare@​4.20260302.0

v0.12.16

Compare Source

Patch Changes

v0.12.15

Compare Source

Patch Changes
  • #​12602 58a4020 Thanks @​anonrig! - Optimize filesystem operations by using Node.js's throwIfNoEntry: false option

    This 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]:

    • wrangler@​4.67.1
    • miniflare@​4.20260302.0

v0.12.14

Compare Source

Patch Changes

v0.12.13

Compare Source

Patch Changes

v0.12.12

Compare Source

Patch Changes
  • #​11771 4b6fd36 Thanks @​avenceslau! - Fix Durable Object storage causing SQLITE_CANTOPEN errors on repeated test runs

    When running vitest multiple times in watch mode, Durable Object storage would fail with SQLITE_CANTOPEN errors. 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]:

    • wrangler@​4.65.0
    • miniflare@​4.20260212.0

v0.12.11

Compare Source

Patch Changes

v0.12.10

Compare Source

Patch Changes

v0.12.9

Compare Source

Patch Changes

v0.12.8

Compare Source

Patch Changes

v0.12.7

Compare Source

Patch Changes
  • #​12056 6d5f69f Thanks @​edmundhung! - fix: allow Vite query parameters like ?raw on .sql file imports

    Importing .sql files 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 ?raw transform)
    • import sql from "./query.sql" (loaded as Text module)
  • #​11917 7b40ceb Thanks @​ksawaneh! - Fix CommonJS require() of .json files in the module fallback service (avoids SyntaxError: Unexpected token ':').

  • #​11897 bbd8a5e Thanks @​dario-piotrowicz! - Bundle the zod dependency to reduce supply chain attack surface

    In 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 builds
    • undici: Dynamically required at runtime in worker threads
    • ws: Has optional native bindings for performance
    • workerd: Native binary (Cloudflare's JavaScript runtime)
    • @cspotcode/source-map-support: Uses require.cache manipulation at runtime
    • youch: Dynamically required for lazy loading
  • Updated dependencies [a0a9ef6, ad4666c, 014e7aa, e414f05, 77e82d2, f08ef21, 0641e6c, eacedba, 05714f8, e8b2ef5, bbd8a5e]:

    • wrangler@​4.61.0
    • miniflare@​4.20260124.0

v0.12.6

Compare Source

Patch Changes

v0.12.5

Compare Source

Patch Changes

v0.12.4

Compare Source

Patch Changes
  • #​11898 c17e971 Thanks @​petebacondarwin! - Bundle more third-party dependencies to reduce supply chain risk

    Previously, 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:

    • miniflare: acorn, acorn-walk, exit-hook, glob-to-regexp, stoppable
    • kv-asset-handler: mime
    • vite-plugin-cloudflare: @remix-run/node-fetch-server, defu, get-port, picocolors, tinyglobby
    • vitest-pool-workers: birpc, devalue, get-port, semver
  • Updated dependencies [e78186d, fe4faa3, 4714ca1, c17e971, 695b043]:

    • miniflare@​4.20260114.0
    • wrangler@​4.59.2

v0.12.3

Compare Source

Patch Changes
  • Updated dependencies [99b1f32]:
    • wrangler@​4.59.1

v0.12.2

Compare Source

Patch Changes

v0.12.1

Compare Source

Patch Changes
  • Updated dependencies [97e67b9, 7d63fa5]:
    • miniflare@​4.20260107.0
    • wrangler@​4.58.0

v0.12.0

Compare Source

Minor Changes
  • #​11648 eac5cf7 Thanks @​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:

    // First wait for the workflow instance to complete:
    await expect(
    	instance.waitForStatus({ status: "complete" })
    ).resolves.not.toThrow();
    
    // Then, get its output
    const output = await instance.getOutput();
    
    // Or for errored workflow instances, get their error:
    await expect(
    	instance.waitForStatus({ status: "errored" })
    ).resolves.not.toThrow();
    const error = await instance.getError();
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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@vercel
Copy link
Copy Markdown

vercel bot commented Dec 2, 2024

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
deep-real Error Error Mar 27, 2026 5:13pm

Request Review

@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.5.32 Update dependency @cloudflare/vitest-pool-workers to v0.5.33 Dec 4, 2024
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 686cbf4 to ce30834 Compare December 4, 2024 02:02
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from ce30834 to 26aaac1 Compare December 6, 2024 17:24
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.5.33 Update dependency @cloudflare/vitest-pool-workers to v0.5.34 Dec 6, 2024
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 26aaac1 to 2b17f1a Compare December 10, 2024 01:10
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.5.34 Update dependency @cloudflare/vitest-pool-workers to v0.5.35 Dec 10, 2024
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 2b17f1a to 3d82a2a Compare December 10, 2024 19:14
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.5.35 Update dependency @cloudflare/vitest-pool-workers to v0.5.36 Dec 10, 2024
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.5.36 Update dependency @cloudflare/vitest-pool-workers to v0.5.37 Dec 16, 2024
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 3d82a2a to 4902bea Compare December 16, 2024 17:10
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 4902bea to 57a42b5 Compare December 17, 2024 17:36
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.5.37 Update dependency @cloudflare/vitest-pool-workers to v0.5.38 Dec 17, 2024
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 57a42b5 to 1ed27ea Compare December 19, 2024 15:09
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.5.38 Update dependency @cloudflare/vitest-pool-workers to v0.5.39 Dec 19, 2024
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 1ed27ea to f6a064a Compare December 19, 2024 20:56
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.5.39 Update dependency @cloudflare/vitest-pool-workers to v0.5.40 Dec 19, 2024
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.6.1 Update dependency @cloudflare/vitest-pool-workers to v0.6.2 Jan 16, 2025
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 5128ce4 to 21e00ad Compare January 19, 2025 09:09
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.6.2 Update dependency @cloudflare/vitest-pool-workers to v0.6.4 Jan 19, 2025
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.6.4 Update dependency @cloudflare/vitest-pool-workers to v0.6.5 Jan 22, 2025
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 21e00ad to 4dc0556 Compare January 22, 2025 09:46
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 4dc0556 to 176d2fc Compare January 22, 2025 21:10
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.6.5 Update dependency @cloudflare/vitest-pool-workers to v0.6.6 Jan 22, 2025
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.6.6 Update dependency @cloudflare/vitest-pool-workers to v0.6.7 Jan 24, 2025
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 176d2fc to 6ce3a77 Compare January 24, 2025 18:16
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 6ce3a77 to daeb79c Compare January 28, 2025 12:52
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.6.7 Update dependency @cloudflare/vitest-pool-workers to v0.6.8 Jan 28, 2025
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from daeb79c to 22da246 Compare January 30, 2025 18:39
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.6.8 Update dependency @cloudflare/vitest-pool-workers to v0.6.9 Jan 30, 2025
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 22da246 to dc41c3b Compare February 1, 2025 21:39
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.6.9 Update dependency @cloudflare/vitest-pool-workers to v0.6.11 Feb 1, 2025
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from dc41c3b to 8570eb6 Compare February 4, 2025 13:05
@renovate renovate bot changed the title Update dependency @cloudflare/vitest-pool-workers to v0.6.11 Update dependency @cloudflare/vitest-pool-workers to v0.6.12 Feb 4, 2025
@renovate renovate bot force-pushed the renovate/cloudflare-vitest-pool-workers-0.x branch from 8570eb6 to 3479a6c Compare February 11, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants