Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(wrangler): enforce Pages config validation around DOs #5666

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

CarmenPopoviciu
Copy link
Contributor

@CarmenPopoviciu CarmenPopoviciu commented Apr 19, 2024

What this PR solves / how to test

Today Pages cannot deploy Durable Objects itself. For this reason it is mandatory that when declaring Durable Objects
bindings in the config file, the script_name is specified. We are currently not failing validation if script_name is
not specified but we should. This PR fixes that.

Fixes DEVX-1266

Author has addressed the following

@CarmenPopoviciu CarmenPopoviciu requested a review from a team as a code owner April 19, 2024 16:26
Copy link

changeset-bot bot commented Apr 19, 2024

🦋 Changeset detected

Latest commit: 25b42b3

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

This PR includes changesets to release 2 packages
Name Type
wrangler Minor
@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

Copy link
Contributor

github-actions bot commented Apr 19, 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/8757768490/npm-package-wrangler-5666

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

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

Or you can use npx with this latest build directly:

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

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.20240405.0 1.20240405.0
workerd --version 1.20240405.0 2024-04-05

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

@CarmenPopoviciu CarmenPopoviciu force-pushed the carmen/fix-do-bindings-for-pages-config branch 2 times, most recently from 3176c12 to 8d4b040 Compare April 19, 2024 18:00
Today Pages cannot deploy Durable Objects itself. For this
reason it is mandatory that when declaring Durable Objects
bindings in the config file, the `script_name` is specified.
We are currently not failing validation if `script_name` is
not specified but we should. This commit fixes that.
@CarmenPopoviciu CarmenPopoviciu force-pushed the carmen/fix-do-bindings-for-pages-config branch from 8d4b040 to 25b42b3 Compare April 19, 2024 18:05
@CarmenPopoviciu CarmenPopoviciu merged commit 81d9615 into main Apr 23, 2024
15 checks passed
@CarmenPopoviciu CarmenPopoviciu deleted the carmen/fix-do-bindings-for-pages-config branch April 23, 2024 11:05
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.

2 participants