wrangler 3.67.0 → 3.67.1

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.
@@ -340,6 +340,10 @@
340
340
  ],
341
341
  "type": "object"
342
342
  },
343
+ "experimental_assets": {
344
+ "$ref": "#/definitions/ExperimentalAssets",
345
+ "description": "Specify the directory of static assets to deploy/serve"
346
+ },
343
347
  "find_additional_modules": {
344
348
  "description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed Worker. Defaults to true if `no_bundle` is true, otherwise false.",
345
349
  "type": "boolean"
@@ -961,6 +965,21 @@
961
965
  ],
962
966
  "type": "object"
963
967
  },
968
+ "ExperimentalAssets": {
969
+ "additionalProperties": false,
970
+ "properties": {
971
+ "binding": {
972
+ "type": "string"
973
+ },
974
+ "directory": {
975
+ "type": "string"
976
+ }
977
+ },
978
+ "required": [
979
+ "directory"
980
+ ],
981
+ "type": "object"
982
+ },
964
983
  "Json": {
965
984
  "anyOf": [
966
985
  {
@@ -1267,6 +1286,10 @@
1267
1286
  "description": "The `env` section defines overrides for the configuration for different environments.\n\nAll environment fields can be specified at the top level of the config indicating the default environment settings.\n\n- Some fields are inherited and overridable in each environment.\n- But some are not inherited and must be explicitly specified in every environment, if they are specified at the top level.\n\nFor more information, see the documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration#environments",
1268
1287
  "type": "object"
1269
1288
  },
1289
+ "experimental_assets": {
1290
+ "$ref": "#/definitions/ExperimentalAssets",
1291
+ "description": "Specify the directory of static assets to deploy/serve"
1292
+ },
1270
1293
  "experimental_services": {
1271
1294
  "default": "`[]`",
1272
1295
  "deprecated": "DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.",
@@ -2278,6 +2301,10 @@
2278
2301
  ],
2279
2302
  "type": "object"
2280
2303
  },
2304
+ "experimental_assets": {
2305
+ "$ref": "#/definitions/ExperimentalAssets",
2306
+ "description": "Specify the directory of static assets to deploy/serve"
2307
+ },
2281
2308
  "experimental_services": {
2282
2309
  "default": "`[]`",
2283
2310
  "deprecated": "DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "3.67.0",
3
+ "version": "3.67.1",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -65,8 +65,8 @@
65
65
  "unenv": "npm:unenv-nightly@1.10.0-1717606461.a117952",
66
66
  "workerd": "1.20240718.0",
67
67
  "xxhash-wasm": "^1.0.1",
68
- "miniflare": "3.20240718.0",
69
- "@cloudflare/kv-asset-handler": "0.3.4"
68
+ "@cloudflare/kv-asset-handler": "0.3.4",
69
+ "miniflare": "3.20240718.1"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@cloudflare/types": "^6.18.4",
@@ -152,10 +152,10 @@
152
152
  "xdg-app-paths": "^8.3.0",
153
153
  "yargs": "^17.7.2",
154
154
  "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
155
+ "@cloudflare/pages-shared": "^0.11.49",
155
156
  "@cloudflare/cli": "1.1.1",
156
- "@cloudflare/eslint-config-worker": "1.1.0",
157
- "@cloudflare/pages-shared": "^0.11.48",
158
- "@cloudflare/workers-tsconfig": "0.0.0"
157
+ "@cloudflare/workers-tsconfig": "0.0.0",
158
+ "@cloudflare/eslint-config-worker": "1.1.0"
159
159
  },
160
160
  "peerDependencies": {
161
161
  "@cloudflare/workers-types": "^4.20240718.0"
@@ -1691,6 +1691,12 @@ declare interface EnvironmentInheritable {
1691
1691
  placement: {
1692
1692
  mode: "off" | "smart";
1693
1693
  } | undefined;
1694
+ /**
1695
+ * Specify the directory of static assets to deploy/serve
1696
+ *
1697
+ * @inheritable
1698
+ */
1699
+ experimental_assets: ExperimentalAssets | undefined;
1694
1700
  }
1695
1701
 
1696
1702
  /**
@@ -2259,6 +2265,11 @@ declare class ExecutionContext {
2259
2265
  passThroughOnException(): void;
2260
2266
  }
2261
2267
 
2268
+ declare type ExperimentalAssets = {
2269
+ directory: string;
2270
+ binding?: string;
2271
+ };
2272
+
2262
2273
  declare function fetch (
2263
2274
  input: RequestInfo,
2264
2275
  init?: RequestInit
@@ -26166,6 +26177,7 @@ export declare interface UnstableDevOptions {
26166
26177
  localProtocol?: "http" | "https";
26167
26178
  httpsKeyPath?: string;
26168
26179
  httpsCertPath?: string;
26180
+ experimentalAssets?: string;
26169
26181
  legacyAssets?: string;
26170
26182
  site?: string;
26171
26183
  siteInclude?: string[];