Skip to content

[wrangler] fix: fix local Durable Object proxies not working#5669

Merged
dario-piotrowicz merged 2 commits intomainfrom
dario/5620/getPlatformProxy-DO
Apr 23, 2024
Merged

[wrangler] fix: fix local Durable Object proxies not working#5669
dario-piotrowicz merged 2 commits intomainfrom
dario/5620/getPlatformProxy-DO

Conversation

@dario-piotrowicz
Copy link
Copy Markdown
Member

@dario-piotrowicz dario-piotrowicz commented Apr 20, 2024

What this PR solves / how to test

This PR solves the regression of local Durable Object proxies not working (a regression introduced in wrangler 3.46.0, more specifically in #5215)

To test the fix please try out the minimal reproductions of the linked issues 👇 with both the latest wrangler version and this PR's prerelease (the former will not work while the latter would work as intended)

Fixes #5620
Fixes #5658

Author has addressed the following

@dario-piotrowicz dario-piotrowicz requested a review from a team as a code owner April 20, 2024 13:40
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 20, 2024

🦋 Changeset detected

Latest commit: 1eba287

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

This PR includes changesets to release 2 packages
Name Type
wrangler Patch
@cloudflare/vitest-pool-workers 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

@dario-piotrowicz dario-piotrowicz force-pushed the dario/5620/getPlatformProxy-DO branch from e8a151c to deab9f4 Compare April 20, 2024 13:42
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 20, 2024

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8799063938/npm-package-wrangler-5669

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/5669/npm-package-wrangler-5669

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8799063938/npm-package-wrangler-5669 dev path/to/script.js
Additional artifacts:
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8799063938/npm-package-create-cloudflare-5669 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8799063938/npm-package-cloudflare-kv-asset-handler-5669
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8799063938/npm-package-miniflare-5669
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8799063938/npm-package-cloudflare-pages-shared-5669
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8799063938/npm-package-cloudflare-vitest-pool-workers-5669

Note that these links will no longer work once the GitHub Actions artifact expires.


wrangler@3.51.2 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20240405.2
workerd 1.20240419.0 1.20240419.0
workerd --version 1.20240419.0 2024-04-19

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

Copy link
Copy Markdown
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

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

Love it!

@dario-piotrowicz dario-piotrowicz merged commit a7e36d5 into main Apr 23, 2024
@dario-piotrowicz dario-piotrowicz deleted the dario/5620/getPlatformProxy-DO branch April 23, 2024 13:01
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.

🐛 BUG: requests from workers to DOs (in miniflare) broken in wrangler 3.46+ 🐛 BUG: getPlatformProxy DO proxy "undefined" is not a valid JSON

2 participants