wrangler 4.7.2 → 4.8.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 +56 -0
- package/package.json +6 -6
- package/wrangler-dist/cli.d.ts +26 -1
- package/wrangler-dist/cli.js +573 -268
package/config-schema.json
CHANGED
@@ -827,6 +827,34 @@
|
|
827
827
|
"description": "Specifies list of Pipelines bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
828
828
|
"default": []
|
829
829
|
},
|
830
|
+
"secrets_store_secrets": {
|
831
|
+
"type": "array",
|
832
|
+
"items": {
|
833
|
+
"type": "object",
|
834
|
+
"properties": {
|
835
|
+
"binding": {
|
836
|
+
"type": "string",
|
837
|
+
"description": "The binding name used to refer to the bound service."
|
838
|
+
},
|
839
|
+
"store_id": {
|
840
|
+
"type": "string",
|
841
|
+
"description": "Id of the secret store"
|
842
|
+
},
|
843
|
+
"secret_name": {
|
844
|
+
"type": "string",
|
845
|
+
"description": "Name of the secret"
|
846
|
+
}
|
847
|
+
},
|
848
|
+
"required": [
|
849
|
+
"binding",
|
850
|
+
"store_id",
|
851
|
+
"secret_name"
|
852
|
+
],
|
853
|
+
"additionalProperties": false
|
854
|
+
},
|
855
|
+
"description": "Specifies Secret Store bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
856
|
+
"default": []
|
857
|
+
},
|
830
858
|
"pages_build_output_dir": {
|
831
859
|
"type": "string",
|
832
860
|
"description": "The directory of static assets to serve.\n\nThe presence of this field in a Wrangler configuration file indicates a Pages project, and will prompt the handling of the configuration file according to the Pages-specific validation rules."
|
@@ -1725,6 +1753,34 @@
|
|
1725
1753
|
},
|
1726
1754
|
"description": "Specifies list of Pipelines bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
1727
1755
|
"default": []
|
1756
|
+
},
|
1757
|
+
"secrets_store_secrets": {
|
1758
|
+
"type": "array",
|
1759
|
+
"items": {
|
1760
|
+
"type": "object",
|
1761
|
+
"properties": {
|
1762
|
+
"binding": {
|
1763
|
+
"type": "string",
|
1764
|
+
"description": "The binding name used to refer to the bound service."
|
1765
|
+
},
|
1766
|
+
"store_id": {
|
1767
|
+
"type": "string",
|
1768
|
+
"description": "Id of the secret store"
|
1769
|
+
},
|
1770
|
+
"secret_name": {
|
1771
|
+
"type": "string",
|
1772
|
+
"description": "Name of the secret"
|
1773
|
+
}
|
1774
|
+
},
|
1775
|
+
"required": [
|
1776
|
+
"binding",
|
1777
|
+
"store_id",
|
1778
|
+
"secret_name"
|
1779
|
+
],
|
1780
|
+
"additionalProperties": false
|
1781
|
+
},
|
1782
|
+
"description": "Specifies Secret Store bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
1783
|
+
"default": []
|
1728
1784
|
}
|
1729
1785
|
},
|
1730
1786
|
"additionalProperties": false,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.8.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -55,14 +55,14 @@
|
|
55
55
|
"esbuild": "0.24.2",
|
56
56
|
"path-to-regexp": "6.3.0",
|
57
57
|
"unenv": "2.0.0-rc.15",
|
58
|
-
"workerd": "1.
|
58
|
+
"workerd": "1.20250405.0",
|
59
59
|
"@cloudflare/kv-asset-handler": "0.4.0",
|
60
|
-
"miniflare": "4.
|
60
|
+
"miniflare": "4.20250405.0"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
64
64
|
"@cloudflare/types": "6.18.4",
|
65
|
-
"@cloudflare/workers-types": "^4.
|
65
|
+
"@cloudflare/workers-types": "^4.20250405.0",
|
66
66
|
"@cspotcode/source-map-support": "0.8.1",
|
67
67
|
"@iarna/toml": "^3.0.0",
|
68
68
|
"@microsoft/api-extractor": "^7.47.0",
|
@@ -137,12 +137,12 @@
|
|
137
137
|
"yargs": "^17.7.2",
|
138
138
|
"@cloudflare/cli": "1.1.1",
|
139
139
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
140
|
-
"@cloudflare/pages-shared": "^0.13.
|
140
|
+
"@cloudflare/pages-shared": "^0.13.23",
|
141
141
|
"@cloudflare/workers-shared": "0.17.1",
|
142
142
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
143
143
|
},
|
144
144
|
"peerDependencies": {
|
145
|
-
"@cloudflare/workers-types": "^4.
|
145
|
+
"@cloudflare/workers-types": "^4.20250405.0"
|
146
146
|
},
|
147
147
|
"peerDependenciesMeta": {
|
148
148
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -314,6 +314,8 @@ declare type Binding = {
|
|
314
314
|
} & BindingOmit<CfMTlsCertificate>) | ({
|
315
315
|
type: "pipeline";
|
316
316
|
} & BindingOmit<CfPipeline>) | ({
|
317
|
+
type: "secrets_store_secret";
|
318
|
+
} & BindingOmit<CfSecretsStoreSecrets>) | ({
|
317
319
|
type: "logfwdr";
|
318
320
|
} & NameOmit<CfLogfwdrBinding>) | {
|
319
321
|
type: `unsafe_${string}`;
|
@@ -697,6 +699,12 @@ declare interface CfR2Bucket {
|
|
697
699
|
*/
|
698
700
|
declare type CfScriptFormat = "modules" | "service-worker";
|
699
701
|
|
702
|
+
declare interface CfSecretsStoreSecrets {
|
703
|
+
binding: string;
|
704
|
+
store_id: string;
|
705
|
+
secret_name: string;
|
706
|
+
}
|
707
|
+
|
700
708
|
/**
|
701
709
|
* A binding to send email.
|
702
710
|
*/
|
@@ -1152,6 +1160,7 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
|
|
1152
1160
|
build_image_major_version: number;
|
1153
1161
|
kv_namespaces?: any;
|
1154
1162
|
source?: {
|
1163
|
+
type: "github" | "gitlab";
|
1155
1164
|
config: {
|
1156
1165
|
owner: string;
|
1157
1166
|
repo_name: string;
|
@@ -1163,7 +1172,6 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
|
|
1163
1172
|
preview_branch_includes?: string[] | undefined;
|
1164
1173
|
preview_branch_excludes?: string[] | undefined;
|
1165
1174
|
};
|
1166
|
-
type: "github" | "gitlab";
|
1167
1175
|
} | undefined;
|
1168
1176
|
env_vars?: any;
|
1169
1177
|
durable_object_namespaces?: any;
|
@@ -2264,6 +2272,23 @@ declare interface EnvironmentNonInheritable {
|
|
2264
2272
|
/** Name of the Pipeline to bind */
|
2265
2273
|
pipeline: string;
|
2266
2274
|
}[];
|
2275
|
+
/**
|
2276
|
+
* Specifies Secret Store bindings that are bound to this Worker environment.
|
2277
|
+
*
|
2278
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
2279
|
+
* and so must be specified in every named environment.
|
2280
|
+
*
|
2281
|
+
* @default []
|
2282
|
+
* @nonInheritable
|
2283
|
+
*/
|
2284
|
+
secrets_store_secrets: {
|
2285
|
+
/** The binding name used to refer to the bound service. */
|
2286
|
+
binding: string;
|
2287
|
+
/** Id of the secret store */
|
2288
|
+
store_id: string;
|
2289
|
+
/** Name of the secret */
|
2290
|
+
secret_name: string;
|
2291
|
+
}[];
|
2267
2292
|
}
|
2268
2293
|
|
2269
2294
|
declare type ErrorEvent = BaseErrorEvent<"ConfigController" | "BundlerController" | "LocalRuntimeController" | "RemoteRuntimeController" | "ProxyWorker" | "InspectorProxyWorker" | "MultiworkerRuntimeController"> | BaseErrorEvent<"ProxyController", {
|