Skip to content

Commit 869ec7b

Browse files
penalosadario-piotrowiczrozenmdpmiguelemily-shen
authored
Wrangler v4 (#7334)
* ci: setup next branch with prereleases to next tag * chore: remove deprecated `getBindingsProxy` (#5005) * Require Node v18 in Wrangler v4 (#7338) * Remove node_compat in Wrangler & Miniflare v4 (#7336) * Remove v2 warning (#7228) * chore: update esbuild (#6884) * `--local` by default for `wrangler kv` & `wrangler r2` (#7392) * deprecate unused D1 commands/options (#7471) * chore: remove alpha support from `wrangler d1 migrations apply` * chore: remove `wrangler d1 backups` * chore: fixup tests * chore: fixup tests * chore: fixup tests * chore: remove --batch-size * Remove deprecated commands & config (#7352) * Remove wrangler version * Remove generate & strip down init * Add changesets * Remove deprecated --format & config * Add changeset * remove commands * Fix tests * Remove .only() * Remove legacy assets * clarify legacy assets -> sites naming * various test fixes after rebase * fixup! chore: update esbuild (#6884) esbuild 0.24.2 variable naming changes * fixup! Remove node_compat in Wrangler & Miniflare v4 (#7336) * feat(wrangler): Drop worker prefix when creating KV namespaces (#7759) * feat(wrangler): Drop worker prefix when creating KV namespaces --------- Co-authored-by: Samuel Macleod <[email protected]> * Include node version in name * Ignore kv-asset-handler tests on Node 22 * rename tests * Rename positional `json` args. Fixes #7688 * unescape * fix tests * Update .changeset/funny-pets-punch.md * Add system requirements to the README * fix formatting * fix formatting * Address feedback * lockfile * fix test * Fix changeset format * Use RC versioning * feat: graduate `--x-include-runtime` (#8166) * graduate wrangler type generation to GA * fixups * extra changeset * Fix legacy assets * Clarify that node support affects Wrangler & Miniflare & kv-asset-handler * Clarify comment re node 20 * Add more packages * Remove obsolete tests * Rename legacyAssets * more robust isLocal * fix test snapshot * Add --legacy-peer-deps so that installing Wrangler v4 doesn't case issues with frameworks that haven't updated their peer dependency for Wrangler v4 * Remove crypto polyfill * fix kv.local test after rebase * fix lockfile * bump rc version * revert rc versions --------- Co-authored-by: Dario Piotrowicz <[email protected]> Co-authored-by: Max Rozen <[email protected]> Co-authored-by: Pedro Leal <[email protected]> Co-authored-by: emily-shen <[email protected]>
1 parent 5109fdd commit 869ec7b

File tree

184 files changed

+3612
-10992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+3612
-10992
lines changed

.changeset/funny-pets-punch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": major
3+
---
4+
5+
Use `--local` by default for `wrangler kv key` and `wrangler r2 object` commands

.changeset/itchy-walls-reply.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"wrangler": major
3+
---
4+
5+
chore: remove deprecated `getBindingsProxy`
6+
7+
remove the deprecated `getBindingsProxy` utility which has been replaced with `getPlatformProxy`
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"wrangler": major
3+
---
4+
5+
Remove the deprecated `--format` argument on `wrangler deploy` and `wrangler dev`.
6+
7+
Remove deprecated config fields:
8+
9+
- `type`
10+
- `webpack_config`
11+
- `miniflare`
12+
- `build.upload`
13+
- `zone_id`
14+
- `usage_model`
15+
- `experimental_services`
16+
- `kv-namespaces`
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"wrangler": major
3+
---
4+
5+
Remove `wrangler d1 backups`
6+
7+
This change removes `wrangler d1 backups`, a set of alpha-only commands that would allow folks to interact with backups of their D1 alpha DBs.
8+
9+
For production D1 DBs, you can restore previous versions of your database with `wrangler d1 time-travel` and export it at any time with `wrangler d1 export`.
10+
11+
Closes #7470
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"wrangler": major
3+
---
4+
5+
Remove `--batch-size` as an option for `wrangler d1 execute` and `wrangler d1 migrations apply`
6+
7+
This change removes the deprecated `--batch-size` flag, as it is no longer necessary to decrease the number of queries wrangler sends to D1.
8+
9+
Closes #7470
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"wrangler": major
3+
---
4+
5+
Remove alpha support from `wrangler d1 migrations apply`
6+
7+
This change removes code that would take a backup of D1 alpha databases before proceeding with applying a migration.
8+
9+
We can remove this code as alpha DBs have not accepted queries in months.
10+
11+
Closes #7470
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": major
3+
---
4+
5+
Remove the deprecated `wrangler generate` command. Instead, use the C3 CLI to create new projects: https://developers.cloudflare.com/pages/get-started/c3/

.changeset/major-remove-init.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": major
3+
---
4+
5+
Remove the deprecated `wrangler init --no-delegate-c3` command. `wrangler init` is still available, but will always delegate to [C3](https://developers.cloudflare.com/pages/get-started/c3/).
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"wrangler": major
3+
---
4+
5+
Remove support for legacy assets.
6+
7+
This removes support for legacy assets using the `--legacy-assets` flag or `legacy_assets` config field. Instead, you should use [Workers Assets](https://developers.cloudflare.com/workers/static-assets/)

.changeset/major-remove-publish.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
"wrangler": major
3+
---
4+
5+
Remove the deprecated `wrangler publish` command. Instead, use `wrangler deploy`, which takes exactly the same arguments.
6+
7+
Additionally, remove the following deprecated commands, which are no longer supported.
8+
9+
- `wrangler config`
10+
- `wrangler preview`
11+
- `wrangler route`
12+
- `wrangler subdomain`
13+
14+
Remove the following deprecated command aliases:
15+
16+
- `wrangler secret:*`, replaced by `wrangler secret *`
17+
- `wrangler kv:*`, replaced by `wrangler kv *`

0 commit comments

Comments
 (0)