Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(rpc,platform): update msgpackr to 1.11.10 for Cloudflare Workers compatibility#6191

Merged
tim-smart merged 1 commit intoEffect-TS:mainEffect-TS/effect:mainfrom
IGassmann:fix/update-msgpackr-1.11.10IGassmann/effect:fix/update-msgpackr-1.11.10Copy head branch name to clipboard
Apr 22, 2026
Merged

fix(rpc,platform): update msgpackr to 1.11.10 for Cloudflare Workers compatibility#6191
tim-smart merged 1 commit intoEffect-TS:mainEffect-TS/effect:mainfrom
IGassmann:fix/update-msgpackr-1.11.10IGassmann/effect:fix/update-msgpackr-1.11.10Copy head branch name to clipboard

Conversation

@IGassmann
Copy link
Copy Markdown
Contributor

@IGassmann IGassmann commented Apr 20, 2026

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Fixes #6169.

Updates msgpackr minimum version from ^1.11.4 to ^1.11.10 in both @effect/rpc and @effect/platform.

Version 1.11.10 includes an upstream fix that wraps the JIT new Function() call in a try/catch, falling back to the interpreted path when dynamic code evaluation is blocked at runtime. This resolves silent RPC decode failures on Cloudflare Workers, where new Function() is permitted during module initialization but blocked at request time.

Related

…compatibility

Fixes Effect-TS#6169. The previous msgpackr version used `new Function()`
for JIT optimization which throws at runtime on Cloudflare Workers despite
passing the startup probe. Version 1.11.10 wraps the JIT call in a try/catch,
falling back to the interpreted path.
@IGassmann IGassmann requested a review from tim-smart as a code owner April 20, 2026 08:21
@github-project-automation github-project-automation Bot moved this to Discussion Ongoing in PR Backlog Apr 20, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 20, 2026

🦋 Changeset detected

Latest commit: 582d5b2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 31 packages
Name Type
@effect/rpc Patch
@effect/platform Patch
@effect/cluster Patch
@effect/platform-browser Patch
@effect/platform-bun Patch
@effect/platform-node-shared Patch
@effect/platform-node Patch
@effect/workflow Patch
@effect/ai Patch
@effect/cli Patch
@effect/experimental Patch
@effect/opentelemetry Patch
@effect/sql-clickhouse Patch
@effect/sql-d1 Patch
@effect/sql-drizzle Patch
@effect/sql-libsql Patch
@effect/sql-mssql Patch
@effect/sql-mysql2 Patch
@effect/sql-pg Patch
@effect/sql-sqlite-bun Patch
@effect/sql-sqlite-node Patch
@effect/sql Patch
@effect/ai-amazon-bedrock Patch
@effect/ai-anthropic Patch
@effect/ai-google Patch
@effect/ai-openai Patch
@effect/ai-openrouter Patch
@effect/sql-sqlite-do Patch
@effect/sql-sqlite-react-native Patch
@effect/sql-sqlite-wasm Patch
@effect/sql-kysely Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Bug: RpcSerialization.msgPack silently fails in environments that block new Function() (e.g. Cloudflare Workers)

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.