wrangler 4.94.0 → 4.95.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.
- package/config-schema.json +6 -6
- package/package.json +9 -8
- package/wrangler-dist/cli.d.ts +13 -38
- package/wrangler-dist/cli.js +20963 -20385
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
|
@@ -3559,16 +3559,16 @@
|
|
|
3559
3559
|
"additionalProperties": false,
|
|
3560
3560
|
"properties": {
|
|
3561
3561
|
"logpush": {
|
|
3562
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3562
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-477942004818536"
|
|
3563
3563
|
},
|
|
3564
3564
|
"observability": {
|
|
3565
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3565
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-477942004818536"
|
|
3566
3566
|
},
|
|
3567
3567
|
"limits": {
|
|
3568
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3568
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-477942004818536"
|
|
3569
3569
|
},
|
|
3570
3570
|
"cache": {
|
|
3571
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3571
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-477942004818536"
|
|
3572
3572
|
},
|
|
3573
3573
|
"define": {
|
|
3574
3574
|
"type": "object",
|
|
@@ -4767,7 +4767,7 @@
|
|
|
4767
4767
|
"description": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments. Previews are branches of your Worker's main instance used to test features during feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`",
|
|
4768
4768
|
"markdownDescription": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments.\nPreviews are branches of your Worker's main instance used to test features\nduring feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`"
|
|
4769
4769
|
},
|
|
4770
|
-
"interface-769040647-8080-17950-769040647-0-
|
|
4770
|
+
"interface-769040647-8080-17950-769040647-0-477942004818536": {
|
|
4771
4771
|
"type": "object",
|
|
4772
4772
|
"properties": {
|
|
4773
4773
|
"name": {
|
|
@@ -5241,7 +5241,7 @@
|
|
|
5241
5241
|
"description": "Optional limits for the Workflow",
|
|
5242
5242
|
"markdownDescription": "Optional limits for the Workflow"
|
|
5243
5243
|
},
|
|
5244
|
-
"
|
|
5244
|
+
"schedules": {
|
|
5245
5245
|
"anyOf": [
|
|
5246
5246
|
{
|
|
5247
5247
|
"type": "string"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.95.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -55,16 +55,16 @@
|
|
|
55
55
|
"path-to-regexp": "6.3.0",
|
|
56
56
|
"rosie-skills": "^0.6.3",
|
|
57
57
|
"unenv": "2.0.0-rc.24",
|
|
58
|
-
"workerd": "1.
|
|
58
|
+
"workerd": "1.20260526.1",
|
|
59
59
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
60
60
|
"@cloudflare/unenv-preset": "2.16.1",
|
|
61
|
-
"miniflare": "4.
|
|
61
|
+
"miniflare": "4.20260526.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
65
65
|
"@bomb.sh/tab": "^0.0.12",
|
|
66
66
|
"@cloudflare/types": "6.18.4",
|
|
67
|
-
"@cloudflare/workers-types": "^4.
|
|
67
|
+
"@cloudflare/workers-types": "^4.20260526.1",
|
|
68
68
|
"@cspotcode/source-map-support": "0.8.1",
|
|
69
69
|
"@netlify/build-info": "^10.5.1",
|
|
70
70
|
"@sentry/node": "^7.86.0",
|
|
@@ -149,14 +149,15 @@
|
|
|
149
149
|
"@cloudflare/cli-shared-helpers": "0.1.4",
|
|
150
150
|
"@cloudflare/codemod": "1.1.0",
|
|
151
151
|
"@cloudflare/containers-shared": "0.15.1",
|
|
152
|
-
"@cloudflare/
|
|
152
|
+
"@cloudflare/deploy-helpers": "0.1.0",
|
|
153
|
+
"@cloudflare/pages-shared": "^0.13.140",
|
|
153
154
|
"@cloudflare/workers-shared": "0.19.6",
|
|
154
155
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
155
|
-
"@cloudflare/
|
|
156
|
-
"@cloudflare/
|
|
156
|
+
"@cloudflare/workers-utils": "0.21.1",
|
|
157
|
+
"@cloudflare/workflows-shared": "0.11.0"
|
|
157
158
|
},
|
|
158
159
|
"peerDependencies": {
|
|
159
|
-
"@cloudflare/workers-types": "^4.
|
|
160
|
+
"@cloudflare/workers-types": "^4.20260526.1"
|
|
160
161
|
},
|
|
161
162
|
"peerDependenciesMeta": {
|
|
162
163
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Rule as Rule$1, CfModule, Environment as Environment$1,
|
|
1
|
+
import { Rule as Rule$1, CfModule, Environment as Environment$1, Entry, CfModuleType, Config as Config$1, Binding, DurableObjectMigration as DurableObjectMigration$1, ContainerApp as ContainerApp$1, Trigger, CfTailConsumer, ServiceFetch, ContainerEngine as ContainerEngine$1, CfUnsafe, CfScriptFormat, AssetsOptions as AssetsOptions$1, ConfigBindingFieldName, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions, RawConfig as RawConfig$1, PackageJSON, ParseError, ComplianceConfig, UserError, FatalError } from '@cloudflare/workers-utils';
|
|
2
2
|
export { Binding, experimental_patchConfig, experimental_readRawConfig, defaultWranglerConfig as unstable_defaultWranglerConfig } from '@cloudflare/workers-utils';
|
|
3
3
|
import { Json as Json$1, WorkerRegistry, Miniflare, MiniflareOptions, Mutex, Response as Response$1, NodeJSCompatMode, DispatchFetch, RemoteProxyConnectionString, WorkerOptions, ModuleRule, Request } from 'miniflare';
|
|
4
4
|
import * as undici from 'undici';
|
|
5
5
|
import { RequestInfo, RequestInit, Response, FormData } from 'undici';
|
|
6
|
-
import { RouterConfig, AssetConfig } from '@cloudflare/workers-shared';
|
|
7
6
|
import { Metafile } from 'esbuild';
|
|
8
7
|
import Protocol from 'devtools-protocol/types/protocol-mapping';
|
|
9
8
|
import { EventEmitter } from 'node:events';
|
|
10
9
|
import { ContainerNormalizedConfig } from '@cloudflare/containers-shared';
|
|
10
|
+
import { RouterConfig, AssetConfig } from '@cloudflare/workers-shared';
|
|
11
11
|
import { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
|
|
12
12
|
import { URLSearchParams } from 'node:url';
|
|
13
13
|
import { Argv, PositionalOptions, Options, ArgumentsCamelCase, InferredOptionTypes, InferredOptionType } from 'yargs';
|
|
@@ -237,30 +237,6 @@ declare const unstable_pages: {
|
|
|
237
237
|
deploy: typeof deploy;
|
|
238
238
|
};
|
|
239
239
|
|
|
240
|
-
/**
|
|
241
|
-
* An entry point for the Worker.
|
|
242
|
-
*
|
|
243
|
-
* It consists not just of a `file`, but also of a `directory` that is used to resolve relative paths.
|
|
244
|
-
*/
|
|
245
|
-
type Entry = {
|
|
246
|
-
/** A worker's entrypoint */
|
|
247
|
-
file: string;
|
|
248
|
-
/** A worker's directory. Usually where the Wrangler configuration file is located */
|
|
249
|
-
projectRoot: string;
|
|
250
|
-
/** The path to the config file, if it exists. */
|
|
251
|
-
configPath: string | undefined;
|
|
252
|
-
/** Is this a module worker or a service worker? */
|
|
253
|
-
format: CfScriptFormat;
|
|
254
|
-
/** The directory that contains all of a `--no-bundle` worker's modules. Usually `${directory}/src`. Defaults to path.dirname(file) */
|
|
255
|
-
moduleRoot: string;
|
|
256
|
-
/**
|
|
257
|
-
* A worker's name
|
|
258
|
-
*/
|
|
259
|
-
name?: string | undefined;
|
|
260
|
-
/** Export from a Worker's entrypoint */
|
|
261
|
-
exports: string[];
|
|
262
|
-
};
|
|
263
|
-
|
|
264
240
|
interface GenerateTypesOptions {
|
|
265
241
|
/**
|
|
266
242
|
* Path to the Wrangler config file to use. Can be an array for multi-config type resolution.
|
|
@@ -328,16 +304,6 @@ type Experimental_GenerateTypesResult = GenerateTypesResult;
|
|
|
328
304
|
*/
|
|
329
305
|
declare function generateTypes(options: Experimental_GenerateTypesOptions): Promise<Experimental_GenerateTypesResult>;
|
|
330
306
|
|
|
331
|
-
type AssetsOptions = {
|
|
332
|
-
directory: string;
|
|
333
|
-
binding?: string;
|
|
334
|
-
routerConfig: RouterConfig;
|
|
335
|
-
assetConfig: AssetConfig;
|
|
336
|
-
_redirects?: string;
|
|
337
|
-
_headers?: string;
|
|
338
|
-
run_worker_first?: boolean | string[];
|
|
339
|
-
};
|
|
340
|
-
|
|
341
307
|
type ApiCredentials = {
|
|
342
308
|
apiToken: string;
|
|
343
309
|
} | {
|
|
@@ -789,7 +755,7 @@ type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets" | "containers" |
|
|
|
789
755
|
auth?: AsyncHook<CfAccount>;
|
|
790
756
|
};
|
|
791
757
|
entrypoint: string;
|
|
792
|
-
assets?: AssetsOptions;
|
|
758
|
+
assets?: AssetsOptions$1;
|
|
793
759
|
containers?: ContainerNormalizedConfig[];
|
|
794
760
|
name: string;
|
|
795
761
|
complianceRegion: Config$1["compliance_region"];
|
|
@@ -882,6 +848,15 @@ declare class ExecutionContext {
|
|
|
882
848
|
type Json = string | number | boolean | null | Json[] | {
|
|
883
849
|
[id: string]: Json;
|
|
884
850
|
};
|
|
851
|
+
type AssetsOptions = {
|
|
852
|
+
directory: string;
|
|
853
|
+
binding?: string;
|
|
854
|
+
routerConfig: RouterConfig;
|
|
855
|
+
assetConfig: AssetConfig;
|
|
856
|
+
_redirects?: string;
|
|
857
|
+
_headers?: string;
|
|
858
|
+
run_worker_first?: boolean | string[];
|
|
859
|
+
};
|
|
885
860
|
|
|
886
861
|
/**
|
|
887
862
|
* The `Environment` interface declares all the configuration fields that
|
|
@@ -1532,7 +1507,7 @@ type WorkflowBinding = {
|
|
|
1532
1507
|
steps?: number;
|
|
1533
1508
|
};
|
|
1534
1509
|
/** Optional cron schedule(s) for automatically triggering workflow instances */
|
|
1535
|
-
|
|
1510
|
+
schedules?: string | string[];
|
|
1536
1511
|
};
|
|
1537
1512
|
/**
|
|
1538
1513
|
* The `EnvironmentNonInheritable` interface declares all the configuration fields for an environment
|