cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.73k stars 723 forks source link

Modify router-worker logic to allow for running user-worker ahead of assets #7303

Closed WillTaylorDev closed 6 hours ago

WillTaylorDev commented 2 days ago

This PR provides the option for user worker to run ahead of assets.


changeset-bot[bot] commented 2 days ago

🦋 Changeset detected

Latest commit: 784e82f4d81a7d3e69e10122d0cab33a390c43c4

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

This PR includes changesets to release 3 packages | Name | Type | | ------------------------------- | ----- | | @cloudflare/workers-shared | Minor | | 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

github-actions[bot] commented 2 days ago

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/11974253179/npm-package-wrangler-7303

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

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

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11974253179/npm-package-wrangler-7303 dev path/to/script.js
Additional artifacts: ```sh npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11974253179/npm-package-create-cloudflare-7303 --no-auto-update ``` ```sh npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11974253179/npm-package-cloudflare-kv-asset-handler-7303 ``` ```sh npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11974253179/npm-package-miniflare-7303 ``` ```sh npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11974253179/npm-package-cloudflare-pages-shared-7303 ``` ```sh npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11974253179/npm-package-cloudflare-vitest-pool-workers-7303 ``` ```sh npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11974253179/npm-package-cloudflare-workers-editor-shared-7303 ``` ```sh npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11974253179/npm-package-cloudflare-workers-shared-7303 ``` ```sh npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11974253179/npm-package-cloudflare-workflows-shared-7303 ``` Note that these links will no longer work once [the GitHub Actions artifact expires](https://docs.github.com/en/organizations/managing-organization-settings/configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-organization).

wrangler@3.89.0 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20241106.1
workerd 1.20241106.1 1.20241106.1
workerd --version 1.20241106.1 2024-11-06

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