wrangler 3.60.2 → 3.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -479,6 +479,58 @@
479
479
  "description": "The entrypoint/path to the JavaScript file that will be executed.",
480
480
  "type": "string"
481
481
  },
482
+ "migrations": {
483
+ "default": [],
484
+ "description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
485
+ "items": {
486
+ "additionalProperties": false,
487
+ "properties": {
488
+ "deleted_classes": {
489
+ "description": "The Durable Objects being removed.",
490
+ "items": {
491
+ "type": "string"
492
+ },
493
+ "type": "array"
494
+ },
495
+ "new_classes": {
496
+ "description": "The new Durable Objects being defined.",
497
+ "items": {
498
+ "type": "string"
499
+ },
500
+ "type": "array"
501
+ },
502
+ "renamed_classes": {
503
+ "description": "The Durable Objects being renamed.",
504
+ "items": {
505
+ "additionalProperties": false,
506
+ "properties": {
507
+ "from": {
508
+ "type": "string"
509
+ },
510
+ "to": {
511
+ "type": "string"
512
+ }
513
+ },
514
+ "required": [
515
+ "from",
516
+ "to"
517
+ ],
518
+ "type": "object"
519
+ },
520
+ "type": "array"
521
+ },
522
+ "tag": {
523
+ "description": "A unique identifier for this migration.",
524
+ "type": "string"
525
+ }
526
+ },
527
+ "required": [
528
+ "tag"
529
+ ],
530
+ "type": "object"
531
+ },
532
+ "type": "array"
533
+ },
482
534
  "minify": {
483
535
  "description": "Minify the script before uploading.",
484
536
  "type": "boolean"
@@ -920,6 +972,7 @@
920
972
  "jsx_fragment",
921
973
  "kv_namespaces",
922
974
  "logfwdr",
975
+ "migrations",
923
976
  "mtls_certificates",
924
977
  "queues",
925
978
  "r2_buckets",
@@ -2397,6 +2450,58 @@
2397
2450
  "description": "The entrypoint/path to the JavaScript file that will be executed.",
2398
2451
  "type": "string"
2399
2452
  },
2453
+ "migrations": {
2454
+ "default": [],
2455
+ "description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
2456
+ "items": {
2457
+ "additionalProperties": false,
2458
+ "properties": {
2459
+ "deleted_classes": {
2460
+ "description": "The Durable Objects being removed.",
2461
+ "items": {
2462
+ "type": "string"
2463
+ },
2464
+ "type": "array"
2465
+ },
2466
+ "new_classes": {
2467
+ "description": "The new Durable Objects being defined.",
2468
+ "items": {
2469
+ "type": "string"
2470
+ },
2471
+ "type": "array"
2472
+ },
2473
+ "renamed_classes": {
2474
+ "description": "The Durable Objects being renamed.",
2475
+ "items": {
2476
+ "additionalProperties": false,
2477
+ "properties": {
2478
+ "from": {
2479
+ "type": "string"
2480
+ },
2481
+ "to": {
2482
+ "type": "string"
2483
+ }
2484
+ },
2485
+ "required": [
2486
+ "from",
2487
+ "to"
2488
+ ],
2489
+ "type": "object"
2490
+ },
2491
+ "type": "array"
2492
+ },
2493
+ "tag": {
2494
+ "description": "A unique identifier for this migration.",
2495
+ "type": "string"
2496
+ }
2497
+ },
2498
+ "required": [
2499
+ "tag"
2500
+ ],
2501
+ "type": "object"
2502
+ },
2503
+ "type": "array"
2504
+ },
2400
2505
  "minify": {
2401
2506
  "description": "Minify the script before uploading.",
2402
2507
  "type": "boolean"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "3.60.2",
3
+ "version": "3.61.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -60,55 +60,55 @@
60
60
  "resolve": "^1.22.8",
61
61
  "resolve.exports": "^2.0.2",
62
62
  "selfsigned": "^2.0.1",
63
- "source-map": "0.6.1",
63
+ "source-map": "^0.6.1",
64
64
  "unenv": "npm:unenv-nightly@1.10.0-1717606461.a117952",
65
65
  "xxhash-wasm": "^1.0.1",
66
- "@cloudflare/kv-asset-handler": "0.3.2",
67
- "miniflare": "3.20240605.0"
66
+ "miniflare": "3.20240610.1",
67
+ "@cloudflare/kv-asset-handler": "0.3.3"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@cloudflare/types": "^6.18.4",
71
71
  "@cloudflare/workers-types": "^4.20240605.0",
72
72
  "@cspotcode/source-map-support": "0.8.1",
73
73
  "@iarna/toml": "^3.0.0",
74
- "@microsoft/api-extractor": "^7.28.3",
74
+ "@microsoft/api-extractor": "^7.47.0",
75
75
  "@sentry/node": "^7.86.0",
76
76
  "@sentry/types": "^7.86.0",
77
77
  "@sentry/utils": "^7.86.0",
78
78
  "@types/body-parser": "^1.19.2",
79
79
  "@types/command-exists": "^1.2.0",
80
80
  "@types/express": "^4.17.13",
81
- "@types/glob-to-regexp": "0.4.1",
81
+ "@types/glob-to-regexp": "^0.4.1",
82
82
  "@types/is-ci": "^3.0.0",
83
83
  "@types/javascript-time-ago": "^2.0.3",
84
- "@types/mime": "^2.0.3",
84
+ "@types/mime": "^3.0.4",
85
85
  "@types/minimatch": "^5.1.2",
86
86
  "@types/prompts": "^2.0.14",
87
- "@types/react": "^17.0.37",
87
+ "@types/react": "^18.2.21",
88
88
  "@types/resolve": "^1.20.6",
89
89
  "@types/serve-static": "^1.13.10",
90
90
  "@types/shell-quote": "^1.7.2",
91
91
  "@types/signal-exit": "^3.0.1",
92
92
  "@types/supports-color": "^8.1.1",
93
- "@types/ws": "^8.5.3",
94
- "@types/yargs": "^17.0.10",
93
+ "@types/ws": "^8.5.7",
94
+ "@types/yargs": "^17.0.22",
95
95
  "@vitest/ui": "^1.6.0",
96
96
  "@webcontainer/env": "^1.1.0",
97
97
  "body-parser": "^1.20.0",
98
- "chalk": "^2.4.2",
98
+ "chalk": "^5.2.0",
99
99
  "cli-table3": "^0.6.3",
100
100
  "clipboardy": "^3.0.0",
101
101
  "cmd-shim": "^4.1.0",
102
102
  "command-exists": "^1.2.9",
103
- "concurrently": "^7.2.2",
104
- "devtools-protocol": "^0.0.955664",
103
+ "concurrently": "^8.2.2",
104
+ "devtools-protocol": "^0.0.1182435",
105
105
  "dotenv": "^16.0.0",
106
106
  "es-module-lexer": "^1.3.0",
107
107
  "execa": "^6.1.0",
108
108
  "express": "^4.18.1",
109
109
  "find-up": "^6.3.0",
110
- "get-port": "^6.1.2",
111
- "glob-to-regexp": "0.4.1",
110
+ "get-port": "^7.0.0",
111
+ "glob-to-regexp": "^0.4.1",
112
112
  "http-terminator": "^3.2.0",
113
113
  "https-proxy-agent": "7.0.2",
114
114
  "ignore": "^5.2.0",
@@ -129,30 +129,30 @@
129
129
  "pretty-bytes": "^6.0.0",
130
130
  "prompts": "^2.4.2",
131
131
  "ps-list": "^8.1.1",
132
- "react": "^17.0.2",
132
+ "react": "^18.2.0",
133
133
  "react-error-boundary": "^3.1.4",
134
134
  "semiver": "^1.1.0",
135
135
  "serve-static": "^1.15.0",
136
136
  "shell-quote": "^1.8.1",
137
137
  "shellac": "^0.8.0",
138
138
  "signal-exit": "^3.0.7",
139
- "strip-ansi": "^7.0.1",
139
+ "strip-ansi": "^7.1.0",
140
140
  "supports-color": "^9.2.2",
141
141
  "timeago.js": "^4.0.2",
142
142
  "ts-dedent": "^2.2.0",
143
143
  "ts-json-schema-generator": "^1.5.0",
144
- "undici": "5.28.4",
144
+ "undici": "^5.28.4",
145
145
  "update-check": "^1.5.4",
146
146
  "vitest": "^1.6.0",
147
147
  "vitest-websocket-mock": "^0.3.0",
148
- "ws": "^8.5.0",
148
+ "ws": "^8.14.2",
149
149
  "xdg-app-paths": "^8.3.0",
150
150
  "yargs": "^17.7.2",
151
151
  "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
152
- "@cloudflare/pages-shared": "^0.11.42",
152
+ "@cloudflare/cli": "1.1.1",
153
153
  "@cloudflare/eslint-config-worker": "1.1.0",
154
- "@cloudflare/workers-tsconfig": "0.0.0",
155
- "@cloudflare/cli": "1.1.1"
154
+ "@cloudflare/pages-shared": "^0.11.44",
155
+ "@cloudflare/workers-tsconfig": "0.0.0"
156
156
  },
157
157
  "optionalDependencies": {
158
158
  "fsevents": "~2.3.2"
@@ -188,7 +188,7 @@
188
188
  "test": "pnpm run assert-git-version && vitest",
189
189
  "test:ci": "pnpm run test run",
190
190
  "test:debug": "pnpm run test --silent=false --verbose=true",
191
- "test:e2e": "vitest -c ./e2e/vitest.config.ts",
191
+ "test:e2e": "vitest -c ./e2e/vitest.config.mts",
192
192
  "test:watch": "pnpm run test --testTimeout=50000 --watch",
193
193
  "type:tests": "tsc -p ./src/__tests__/tsconfig.json && tsc -p ./e2e/tsconfig.json"
194
194
  }
@@ -165,3 +165,6 @@ dist
165
165
  .yarn/build-state.yml
166
166
  .yarn/install-state.gz
167
167
  .pnp.\*
168
+
169
+ .wrangler
170
+ .DS_Store