wrangler 4.75.0 → 4.77.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.
@@ -826,6 +826,24 @@
826
826
  "description": "Binding to Cloudflare Media Transformations\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
827
827
  "default": {}
828
828
  },
829
+ "stream": {
830
+ "type": "object",
831
+ "properties": {
832
+ "binding": {
833
+ "type": "string"
834
+ },
835
+ "remote": {
836
+ "type": "boolean",
837
+ "description": "Whether the Stream binding should be remote or not in local development"
838
+ }
839
+ },
840
+ "required": [
841
+ "binding"
842
+ ],
843
+ "additionalProperties": false,
844
+ "description": "Binding to Cloudflare Stream\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
845
+ "default": {}
846
+ },
829
847
  "version_metadata": {
830
848
  "type": "object",
831
849
  "properties": {
@@ -2089,6 +2107,24 @@
2089
2107
  "description": "Binding to Cloudflare Media Transformations\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2090
2108
  "default": {}
2091
2109
  },
2110
+ "stream": {
2111
+ "type": "object",
2112
+ "properties": {
2113
+ "binding": {
2114
+ "type": "string"
2115
+ },
2116
+ "remote": {
2117
+ "type": "boolean",
2118
+ "description": "Whether the Stream binding should be remote or not in local development"
2119
+ }
2120
+ },
2121
+ "required": [
2122
+ "binding"
2123
+ ],
2124
+ "additionalProperties": false,
2125
+ "description": "Binding to Cloudflare Stream\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2126
+ "default": {}
2127
+ },
2092
2128
  "version_metadata": {
2093
2129
  "type": "object",
2094
2130
  "properties": {
package/package.json CHANGED
@@ -1,42 +1,40 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.75.0",
3
+ "version": "4.77.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
- "wrangler",
6
+ "assembly",
7
+ "cli",
7
8
  "cloudflare",
8
- "workers",
9
9
  "cloudflare workers",
10
- "edge",
11
10
  "compute",
11
+ "edge",
12
+ "emscripten",
13
+ "graphql",
14
+ "http",
15
+ "router",
16
+ "rust",
12
17
  "serverless",
13
18
  "serverless application",
14
19
  "serverless module",
20
+ "typescript",
15
21
  "wasm",
16
22
  "web",
17
- "assembly",
18
23
  "webassembly",
19
- "rust",
20
- "emscripten",
21
- "typescript",
22
- "graphql",
23
- "router",
24
- "http",
25
- "cli"
24
+ "workers",
25
+ "wrangler"
26
26
  ],
27
27
  "homepage": "https://github.com/cloudflare/workers-sdk#readme",
28
28
  "bugs": {
29
29
  "url": "https://github.com/cloudflare/workers-sdk/issues"
30
30
  },
31
+ "license": "MIT OR Apache-2.0",
32
+ "author": "wrangler@cloudflare.com",
31
33
  "repository": {
32
34
  "type": "git",
33
35
  "url": "https://github.com/cloudflare/workers-sdk.git",
34
36
  "directory": "packages/wrangler"
35
37
  },
36
- "license": "MIT OR Apache-2.0",
37
- "author": "wrangler@cloudflare.com",
38
- "main": "wrangler-dist/cli.js",
39
- "types": "wrangler-dist/cli.d.ts",
40
38
  "bin": {
41
39
  "wrangler": "./bin/wrangler.js",
42
40
  "wrangler2": "./bin/wrangler.js"
@@ -49,6 +47,8 @@
49
47
  "kv-asset-handler.js",
50
48
  "config-schema.json"
51
49
  ],
50
+ "main": "wrangler-dist/cli.js",
51
+ "types": "wrangler-dist/cli.d.ts",
52
52
  "dependencies": {
53
53
  "blake3-wasm": "2.1.5",
54
54
  "esbuild": "0.27.3",
@@ -56,8 +56,8 @@
56
56
  "unenv": "2.0.0-rc.24",
57
57
  "workerd": "1.20260317.1",
58
58
  "@cloudflare/kv-asset-handler": "0.4.2",
59
- "@cloudflare/unenv-preset": "2.15.0",
60
- "miniflare": "4.20260317.0"
59
+ "@cloudflare/unenv-preset": "2.16.0",
60
+ "miniflare": "4.20260317.2"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aws-sdk/client-s3": "^3.721.0",
@@ -77,7 +77,7 @@
77
77
  "@types/json-diff": "^1.0.3",
78
78
  "@types/mime": "^3.0.4",
79
79
  "@types/minimatch": "^5.1.2",
80
- "@types/node": "^20.19.9",
80
+ "@types/node": "^22.10.1",
81
81
  "@types/node-forge": "^1.3.11",
82
82
  "@types/prompts": "^2.0.14",
83
83
  "@types/resolve": "^1.20.6",
@@ -86,7 +86,7 @@
86
86
  "@types/supports-color": "^8.1.1",
87
87
  "@types/ws": "^8.5.7",
88
88
  "@types/yargs": "^17.0.22",
89
- "@vitest/ui": "3.2.4",
89
+ "@vitest/ui": "4.1.0",
90
90
  "@webcontainer/env": "^1.1.0",
91
91
  "am-i-vibing": "^0.1.0",
92
92
  "capnweb": "^0.5.0",
@@ -104,7 +104,6 @@
104
104
  "dotenv": "^16.3.1",
105
105
  "dotenv-expand": "^12.0.2",
106
106
  "empathic": "^2.0.0",
107
- "eslint": "^9.39.1",
108
107
  "esprima": "4.0.1",
109
108
  "execa": "^6.1.0",
110
109
  "get-port": "^7.0.0",
@@ -141,20 +140,19 @@
141
140
  "typescript": "~5.8.3",
142
141
  "undici": "7.24.4",
143
142
  "update-check": "^1.5.4",
144
- "vitest": "3.2.4",
143
+ "vitest": "4.1.0",
145
144
  "vitest-websocket-mock": "^0.4.0",
146
145
  "ws": "8.18.0",
147
146
  "xxhash-wasm": "^1.0.1",
148
147
  "yaml": "^2.8.1",
149
148
  "yargs": "^17.7.2",
149
+ "@cloudflare/containers-shared": "0.13.0",
150
150
  "@cloudflare/cli": "1.2.1",
151
- "@cloudflare/containers-shared": "0.12.0",
152
- "@cloudflare/eslint-config-shared": "1.2.1",
151
+ "@cloudflare/pages-shared": "^0.13.118",
153
152
  "@cloudflare/workers-shared": "0.19.1",
154
- "@cloudflare/pages-shared": "^0.13.116",
155
153
  "@cloudflare/workers-tsconfig": "0.0.0",
156
- "@cloudflare/workers-utils": "0.12.0",
157
- "@cloudflare/workflows-shared": "0.6.0"
154
+ "@cloudflare/workers-utils": "0.13.0",
155
+ "@cloudflare/workflows-shared": "0.7.1"
158
156
  },
159
157
  "peerDependencies": {
160
158
  "@cloudflare/workers-types": "^4.20260317.1"
@@ -168,7 +166,7 @@
168
166
  "fsevents": "~2.3.2"
169
167
  },
170
168
  "engines": {
171
- "node": ">=20.0.0"
169
+ "node": ">=20.3.0"
172
170
  },
173
171
  "volta": {
174
172
  "extends": "../../package.json"
@@ -179,7 +177,6 @@
179
177
  "scripts": {
180
178
  "assert-git-version": "node -r esbuild-register scripts/assert-git-version.ts",
181
179
  "build": "pnpm run clean && pnpm tsup && pnpm run generate-json-schema",
182
- "check:lint": "eslint . --max-warnings=0 --cache",
183
180
  "check:type": "tsc -p ./tsconfig.json && tsc -p ./templates/tsconfig.json",
184
181
  "clean": "node -r esbuild-register ../../tools/clean/clean.ts wrangler-dist miniflare-dist emitted-types",
185
182
  "dev": "pnpm run clean && concurrently -c black,blue --kill-others-on-fail false \"pnpm tsup --watch src --watch ../containers-shared/src --watch ../cli\" \"pnpm run check:type --watch --preserveWatchOutput\"",
@@ -1,6 +1,6 @@
1
1
  declare module "__ENTRY_POINT__" {
2
- import { Middleware } from "./middleware/common";
3
2
  import { WorkerEntrypoint } from "cloudflare:workers";
3
+ import { Middleware } from "./middleware/common";
4
4
 
5
5
  export type WorkerEntrypointConstructor = typeof WorkerEntrypoint;
6
6
 
@@ -740,6 +740,7 @@ type ReadConfigOptions = ResolveConfigPathOptions & {
740
740
  hideWarnings?: boolean;
741
741
  preserveOriginalMain?: boolean;
742
742
  };
743
+
743
744
  /**
744
745
  * Get the Wrangler configuration; read it from the give `configPath` if available.
745
746
  */
@@ -1810,6 +1811,20 @@ interface EnvironmentNonInheritable {
1810
1811
  /** Whether the Media binding should be remote or not */
1811
1812
  remote?: boolean;
1812
1813
  } | undefined;
1814
+ /**
1815
+ * Binding to Cloudflare Stream
1816
+ *
1817
+ * NOTE: This field is not automatically inherited from the top level environment,
1818
+ * and so must be specified in every named environment.
1819
+ *
1820
+ * @default {}
1821
+ * @nonInheritable
1822
+ */
1823
+ stream: {
1824
+ binding: string;
1825
+ /** Whether the Stream binding should be remote or not in local development */
1826
+ remote?: boolean;
1827
+ } | undefined;
1813
1828
  /**
1814
1829
  * Binding to the Worker Version's metadata
1815
1830
  */
@@ -3137,10 +3152,8 @@ declare function experimental_getWranglerCommands(): {
3137
3152
  };
3138
3153
 
3139
3154
  /**
3140
- * This file contains:
3141
- *
3142
- * - The main entrypoint for the CLI, which calls `main()` from `index.ts`.
3143
- * - The exports for the public API of the package.
3155
+ * This file is the main entrypoint for the CLI, which calls `main()` from `index.ts`.
3156
+ * It also re-exports the public API of the package.
3144
3157
  */
3145
3158
 
3146
3159
  interface Unstable_ASSETSBindingsOptions {