Skip to content

Commit

Permalink
Merge branch 'main' into bib/remove-wrangler-generate
Browse files Browse the repository at this point in the history
* main:
  Add pipeline binding to wrangler.toml (#6674)
  Fix Pages duplicating hash in redirects (#6680)
  Bradley/r2 event notification get (#6652)
  feat(wrangler): Add support for placement hints (#6625)
  fix(wrangler): Validate `routes` for Workers with assets (#6621)
  chore(deps): bump the workerd-and-workers-types group across 1 directory with 2 updates (#6673)
  chore(workers-shared): Configure GitHub Actions to deploy Asset Worker (#6542)
  feat: experimental workers assets can be ignored by adding a .assetsignore file (#6640)
  • Loading branch information
Andy Jessop committed Sep 13, 2024
2 parents 5fb82da + 831f892 commit 47da56a
Show file tree
Hide file tree
Showing 78 changed files with 1,192 additions and 317 deletions.
12 changes: 12 additions & 0 deletions .changeset/angry-keys-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"wrangler": minor
---

Added new [[pipelines]] bindings. This creates a new binding that allows sending events to
the specified pipeline.

Example:

[[pipelines]]
binding = "MY_PIPELINE"
pipeline = "my-pipeline"
12 changes: 12 additions & 0 deletions .changeset/dependabot-update-6673.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"miniflare": patch
---

chore: update dependencies of "miniflare" package

The following dependency versions have been updated:

| Dependency | From | To |
| ------------------------- | ------------- | ------------- |
| workerd | 1.20240821.1 | 1.20240909.0 |
| @cloudflare/workers-types | ^4.20240821.1 | ^4.20240909.0 |
5 changes: 5 additions & 0 deletions .changeset/eighty-birds-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/pages-shared": patch
---

fix: fix Pages redirects going to a hash location to be duped. This means if you have a rule like `/foo/bar /foo#bar` it will no longer result in `/foo#bar#bar` but the correct `/foo#bar`.
5 changes: 5 additions & 0 deletions .changeset/hot-moons-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/vitest-pool-workers": patch
---

fix: The `workerd` provided `node:url` module doesn't support everything Vitest needs. As a short-term fix, inject the `node:url` polyfill into the worker bundle.
12 changes: 12 additions & 0 deletions .changeset/lazy-poems-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"wrangler": patch
---

fix: Validate `routes` in `wrangler dev` and `wrangler deploy` for Workers with assets

We want wrangler to error if users are trying to deploy a Worker with assets, and routes with a path component.

All Workers with assets must have either:

- custom domain routes
- pattern routes which have no path component (except for the wildcard splat) "some.domain.com/\*"
10 changes: 10 additions & 0 deletions .changeset/nasty-hats-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"wrangler": minor
---

feat: experimental workers assets can be ignored by adding a .assetsignore file

This file can be added to the root of the assets directory that is to be uploaded alongside the Worker
when using `experimental_assets`.

The file follows the `.gitignore` syntax, and any matching paths will not be included in the upload.
5 changes: 5 additions & 0 deletions .changeset/nice-beds-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": minor
---

feat: Update R2 Get Event Notification response, display, and actions
7 changes: 7 additions & 0 deletions .changeset/three-nails-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": minor
---

feature: Add support for placement hints

Adds the `hint` field to smart placement configuration. When set, placement hints will be used to decide where smart-placement-enabled Workers are run.
1 change: 1 addition & 0 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
WORKERS_NEW_CLOUDFLARE_ACCOUNT_ID: ${{ secrets.WORKERS_NEW_CLOUDFLARE_ACCOUNT_ID }}
WORKERS_NEW_CLOUDFLARE_API_TOKEN: ${{ secrets.WORKERS_NEW_CLOUDFLARE_API_TOKEN }}
WORKERS_DEPLOY_AND_CONFIG_CLOUDFLARE_API_TOKEN: ${{ secrets.WORKERS_DEPLOY_AND_CONFIG_CLOUDFLARE_API_TOKEN }}

- name: Create C3 Diffs PR
if: contains(steps.changesets.outputs.publishedPackages, '"create-cloudflare"')
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ packages/create-cloudflare/templates/**/*.*
# but still exclude the worker-configuration.d.ts file, since it's generated
!packages/create-cloudflare/templates/hello-world/**/*.*
packages/create-cloudflare/templates/hello-world/**/worker-configuration.d.ts
# dist-functions are generated in the fixtures/vitest-pool-workers-examples/pages-functions-unit-integration-self folder
dist-functions

vscode.d.ts
vscode.*.d.ts
Expand Down
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"cSpell.words": [
"Abortable",
"assetsignore",
"cfetch",
"chatgpt",
"clipboardy",
Expand All @@ -11,6 +12,7 @@
"esbuild",
"eslintcache",
"execa",
"filestat",
"haikunate",
"haikunator",
"httplogs",
Expand Down
2 changes: 1 addition & 1 deletion fixtures/additional-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"undici": "^5.28.4",
"wrangler": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/external-durable-objects-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"undici": "^5.28.4",
"wrangler": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/external-service-bindings-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"concurrently": "^8.2.2",
"undici": "^5.28.4",
"wrangler": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion fixtures/get-platform-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"undici": "^5.28.4",
"wrangler": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/local-mode-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"@types/node": "20.8.3",
"buffer": "^6.0.3",
"wrangler": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion fixtures/node-app-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"undici": "^5.28.4",
"wrangler": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/nodejs-als-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"undici": "^5.28.4",
"wrangler": "workspace:*"
}
Expand Down
2 changes: 1 addition & 1 deletion fixtures/nodejs-hybrid-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"@types/pg": "^8.11.2",
"pg": "8.11.3",
"pg-cloudflare": "^1.1.1",
Expand Down
2 changes: 1 addition & 1 deletion fixtures/pages-dev-proxy-with-script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"undici": "^5.28.4",
"wrangler": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/pages-functions-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"pages-plugin-example": "workspace:*",
"undici": "^5.28.4",
"wrangler": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion fixtures/pages-functions-with-routes-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"undici": "^5.28.4",
"wrangler": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/pages-plugin-mounted-on-root-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"pages-plugin-example": "workspace:*",
"undici": "^5.28.4",
"wrangler": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion fixtures/pages-simple-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"undici": "^5.28.4",
"wrangler": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/vitest-pool-workers-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"devDependencies": {
"@cloudflare/vitest-pool-workers": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"@types/node": "20.8.3",
"ext-dep": "file:./internal-module-resolution/vendor/ext-dep",
"jose": "^5.2.2",
Expand Down
2 changes: 1 addition & 1 deletion fixtures/worker-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "wrangler dev --x-dev-env"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"wrangler": "workspace:*"
},
"volta": {
Expand Down
2 changes: 1 addition & 1 deletion fixtures/workers-with-assets-only/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"undici": "^5.28.4",
"wrangler": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/workers-with-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"undici": "^5.28.4",
"wrangler": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@changesets/parse": "^0.4.0",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"@ianvs/prettier-plugin-sort-imports": "4.2.1",
"@manypkg/cli": "^0.21.4",
"@turbo/gen": "^1.10.13",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@cloudflare/cli": "workspace:*",
"@cloudflare/eslint-config-worker": "workspace:*",
"@cloudflare/workers-tsconfig": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"@iarna/toml": "^3.0.0",
"@types/command-exists": "^1.2.0",
"@types/cross-spawn": "^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/edge-preview-authenticated-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@cloudflare/eslint-config-worker": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"@types/cookie": "^0.6.0",
"cookie": "^0.6.0",
"promjs": "^0.4.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/format-errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"@cloudflare/eslint-config-worker": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"mustache": "^4.2.0",
"promjs": "^0.4.2",
"toucan-js": "^3.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/kv-asset-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"@ava/typescript": "^4.1.0",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"@types/mime": "^3.0.4",
"@types/node": "20.8.3",
"@types/service-worker-mock": "^2.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/miniflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"glob-to-regexp": "^0.4.1",
"stoppable": "^1.1.0",
"undici": "^5.28.4",
"workerd": "1.20240821.1",
"workerd": "1.20240909.0",
"ws": "^8.17.1",
"youch": "^3.2.2",
"zod": "^3.22.3"
Expand All @@ -59,7 +59,7 @@
"@ava/typescript": "^4.1.0",
"@cloudflare/kv-asset-handler": "workspace:*",
"@cloudflare/workers-shared": "workspace:*",
"@cloudflare/workers-types": "^4.20240821.1",
"@cloudflare/workers-types": "^4.20240909.0",
"@microsoft/api-extractor": "^7.47.0",
"@types/debug": "^4.1.7",
"@types/estree": "^1.0.0",
Expand Down
Loading

0 comments on commit 47da56a

Please sign in to comment.