Skip to content

Commit

Permalink
update changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz committed Apr 23, 2024
1 parent 5dbac43 commit 1eba287
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .changeset/odd-guests-beam.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
"wrangler": patch
---

fix: fix broken local Durable Object proxies
fix: fix broken Durable Object local proxying (when no `cf` property is present)

A regression was introduced in wrangler 3.46.0 (https://github.com/cloudflare/workers-sdk/pull/5215)
which made it so that missing `Request#cf` properties are serialized as `"undefined"`, this in turn
throws a syntax parse error when such values are parsed via `JSON.parse` breaking the communication
with Durable Object local proxies. Fix such issue by serializing missing `Request#cf` properties as
`"{}"` instead.

0 comments on commit 1eba287

Please sign in to comment.