wrangler 4.7.2 → 4.9.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.
@@ -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.7.2",
3
+ "version": "4.9.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.20250404.0",
58
+ "workerd": "1.20250405.0",
59
59
  "@cloudflare/kv-asset-handler": "0.4.0",
60
- "miniflare": "4.20250404.0"
60
+ "miniflare": "4.20250405.1"
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.20250404.0",
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.22",
140
+ "@cloudflare/pages-shared": "^0.13.24",
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.20250404.0"
145
+ "@cloudflare/workers-types": "^4.20250405.0"
146
146
  },
147
147
  "peerDependenciesMeta": {
148
148
  "@cloudflare/workers-types": {
@@ -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,14 +699,22 @@ 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
  */
703
- declare interface CfSendEmailBindings {
711
+ declare type CfSendEmailBindings = {
704
712
  name: string;
713
+ } & ({
705
714
  destination_address?: string;
715
+ } | {
706
716
  allowed_destination_addresses?: string[];
707
- }
717
+ });
708
718
 
709
719
  declare interface CfService {
710
720
  binding: string;
@@ -1152,6 +1162,7 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
1152
1162
  build_image_major_version: number;
1153
1163
  kv_namespaces?: any;
1154
1164
  source?: {
1165
+ type: "github" | "gitlab";
1155
1166
  config: {
1156
1167
  owner: string;
1157
1168
  repo_name: string;
@@ -1163,7 +1174,6 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
1163
1174
  preview_branch_includes?: string[] | undefined;
1164
1175
  preview_branch_excludes?: string[] | undefined;
1165
1176
  };
1166
- type: "github" | "gitlab";
1167
1177
  } | undefined;
1168
1178
  env_vars?: any;
1169
1179
  durable_object_namespaces?: any;
@@ -2264,6 +2274,23 @@ declare interface EnvironmentNonInheritable {
2264
2274
  /** Name of the Pipeline to bind */
2265
2275
  pipeline: string;
2266
2276
  }[];
2277
+ /**
2278
+ * Specifies Secret Store bindings that are bound to this Worker environment.
2279
+ *
2280
+ * NOTE: This field is not automatically inherited from the top level environment,
2281
+ * and so must be specified in every named environment.
2282
+ *
2283
+ * @default []
2284
+ * @nonInheritable
2285
+ */
2286
+ secrets_store_secrets: {
2287
+ /** The binding name used to refer to the bound service. */
2288
+ binding: string;
2289
+ /** Id of the secret store */
2290
+ store_id: string;
2291
+ /** Name of the secret */
2292
+ secret_name: string;
2293
+ }[];
2267
2294
  }
2268
2295
 
2269
2296
  declare type ErrorEvent = BaseErrorEvent<"ConfigController" | "BundlerController" | "LocalRuntimeController" | "RemoteRuntimeController" | "ProxyWorker" | "InspectorProxyWorker" | "MultiworkerRuntimeController"> | BaseErrorEvent<"ProxyController", {