cloudflare / cloudflare/mcp-server-cloudflare

Update wrangler and @cloudflare/vitest-pool-workers to latest

Open
#318 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.2k
Forks
514
Avg merge
1d 21h
Merged PRs (30d)
2

Description

## Problem

The installed Cloudflare Workers Runtime is too old to support recent compatibility dates:

```
[mf:wrn] The latest compatibility date supported by the installed Cloudflare Workers Runtime is "2025-04-08",
but you've requested "2026-03-09". Falling back to "2025-04-08"...
```

This causes `node:fs` to be missing exports like `ReadStream` in the workerd test runtime, even with `nodejs_compat` enabled. Tests that transitively import the `cloudflare` SDK (which imports `ReadStream` from `node:fs`) fail unless worked around with module aliases.

## Current versions

- `wrangler`: `4.10.0` (latest: `4.71.0`)
- `@cloudflare/vitest-pool-workers`: `0.8.14` (latest: `0.12.20`)

Both are pinned at the same version across all 21+ packages in the monorepo.

## Proposed fix

Update `wrangler` and `@cloudflare/vitest-pool-workers` to latest across the entire repo. This will bundle a newer workerd runtime that supports current compatibility dates and has fuller `node:fs` support, eliminating the need for mock workarounds.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.