wrangler 4.76.0 → 4.78.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.
@@ -510,7 +510,8 @@
510
510
  },
511
511
  "type": {
512
512
  "type": "string",
513
- "description": "The consumer type, e.g., worker, http-pull, r2-bucket, etc. Default is worker."
513
+ "const": "worker",
514
+ "description": "The consumer type. Only \"worker\" is supported in wrangler config. Default is \"worker\"."
514
515
  },
515
516
  "max_batch_size": {
516
517
  "type": "number",
@@ -666,6 +667,60 @@
666
667
  "description": "Specifies Vectorize indexes 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes",
667
668
  "default": []
668
669
  },
670
+ "ai_search_namespaces": {
671
+ "type": "array",
672
+ "items": {
673
+ "type": "object",
674
+ "properties": {
675
+ "binding": {
676
+ "type": "string",
677
+ "description": "The binding name used to refer to the AI Search namespace in the Worker."
678
+ },
679
+ "namespace": {
680
+ "type": "string",
681
+ "description": "The user-chosen namespace name. Must exist in Cloudflare at deploy time."
682
+ },
683
+ "remote": {
684
+ "type": "boolean",
685
+ "description": "Whether the AI Search namespace binding should be remote in local development"
686
+ }
687
+ },
688
+ "required": [
689
+ "binding",
690
+ "namespace"
691
+ ],
692
+ "additionalProperties": false
693
+ },
694
+ "description": "Specifies AI Search namespace bindings that are bound to this Worker environment. Each binding is scoped to a namespace and allows dynamic instance CRUD within it.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
695
+ "default": []
696
+ },
697
+ "ai_search": {
698
+ "type": "array",
699
+ "items": {
700
+ "type": "object",
701
+ "properties": {
702
+ "binding": {
703
+ "type": "string",
704
+ "description": "The binding name used to refer to the AI Search instance in the Worker."
705
+ },
706
+ "instance_name": {
707
+ "type": "string",
708
+ "description": "The user-chosen instance name. Must exist in Cloudflare at deploy time."
709
+ },
710
+ "remote": {
711
+ "type": "boolean",
712
+ "description": "Whether the AI Search instance binding should be remote in local development"
713
+ }
714
+ },
715
+ "required": [
716
+ "binding",
717
+ "instance_name"
718
+ ],
719
+ "additionalProperties": false
720
+ },
721
+ "description": "Specifies AI Search instance bindings that are bound to this Worker environment. Each binding is bound directly to a single pre-existing instance within the \"default\" namespace.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
722
+ "default": []
723
+ },
669
724
  "hyperdrive": {
670
725
  "type": "array",
671
726
  "items": {
@@ -1791,7 +1846,8 @@
1791
1846
  },
1792
1847
  "type": {
1793
1848
  "type": "string",
1794
- "description": "The consumer type, e.g., worker, http-pull, r2-bucket, etc. Default is worker."
1849
+ "const": "worker",
1850
+ "description": "The consumer type. Only \"worker\" is supported in wrangler config. Default is \"worker\"."
1795
1851
  },
1796
1852
  "max_batch_size": {
1797
1853
  "type": "number",
@@ -1947,6 +2003,60 @@
1947
2003
  "description": "Specifies Vectorize indexes 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes",
1948
2004
  "default": []
1949
2005
  },
2006
+ "ai_search_namespaces": {
2007
+ "type": "array",
2008
+ "items": {
2009
+ "type": "object",
2010
+ "properties": {
2011
+ "binding": {
2012
+ "type": "string",
2013
+ "description": "The binding name used to refer to the AI Search namespace in the Worker."
2014
+ },
2015
+ "namespace": {
2016
+ "type": "string",
2017
+ "description": "The user-chosen namespace name. Must exist in Cloudflare at deploy time."
2018
+ },
2019
+ "remote": {
2020
+ "type": "boolean",
2021
+ "description": "Whether the AI Search namespace binding should be remote in local development"
2022
+ }
2023
+ },
2024
+ "required": [
2025
+ "binding",
2026
+ "namespace"
2027
+ ],
2028
+ "additionalProperties": false
2029
+ },
2030
+ "description": "Specifies AI Search namespace bindings that are bound to this Worker environment. Each binding is scoped to a namespace and allows dynamic instance CRUD within it.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2031
+ "default": []
2032
+ },
2033
+ "ai_search": {
2034
+ "type": "array",
2035
+ "items": {
2036
+ "type": "object",
2037
+ "properties": {
2038
+ "binding": {
2039
+ "type": "string",
2040
+ "description": "The binding name used to refer to the AI Search instance in the Worker."
2041
+ },
2042
+ "instance_name": {
2043
+ "type": "string",
2044
+ "description": "The user-chosen instance name. Must exist in Cloudflare at deploy time."
2045
+ },
2046
+ "remote": {
2047
+ "type": "boolean",
2048
+ "description": "Whether the AI Search instance binding should be remote in local development"
2049
+ }
2050
+ },
2051
+ "required": [
2052
+ "binding",
2053
+ "instance_name"
2054
+ ],
2055
+ "additionalProperties": false
2056
+ },
2057
+ "description": "Specifies AI Search instance bindings that are bound to this Worker environment. Each binding is bound directly to a single pre-existing instance within the \"default\" namespace.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2058
+ "default": []
2059
+ },
1950
2060
  "hyperdrive": {
1951
2061
  "type": "array",
1952
2062
  "items": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.76.0",
3
+ "version": "4.78.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "assembly",
@@ -57,7 +57,7 @@
57
57
  "workerd": "1.20260317.1",
58
58
  "@cloudflare/kv-asset-handler": "0.4.2",
59
59
  "@cloudflare/unenv-preset": "2.16.0",
60
- "miniflare": "4.20260317.1"
60
+ "miniflare": "4.20260317.3"
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",
@@ -140,19 +140,19 @@
140
140
  "typescript": "~5.8.3",
141
141
  "undici": "7.24.4",
142
142
  "update-check": "^1.5.4",
143
- "vitest": "3.2.4",
143
+ "vitest": "4.1.0",
144
144
  "vitest-websocket-mock": "^0.4.0",
145
145
  "ws": "8.18.0",
146
146
  "xxhash-wasm": "^1.0.1",
147
147
  "yaml": "^2.8.1",
148
148
  "yargs": "^17.7.2",
149
+ "@cloudflare/containers-shared": "0.13.1",
149
150
  "@cloudflare/cli": "1.2.1",
150
- "@cloudflare/containers-shared": "0.13.0",
151
- "@cloudflare/pages-shared": "^0.13.117",
152
151
  "@cloudflare/workers-shared": "0.19.1",
152
+ "@cloudflare/pages-shared": "^0.13.119",
153
153
  "@cloudflare/workers-tsconfig": "0.0.0",
154
- "@cloudflare/workers-utils": "0.13.0",
155
- "@cloudflare/workflows-shared": "0.7.0"
154
+ "@cloudflare/workflows-shared": "0.7.1",
155
+ "@cloudflare/workers-utils": "0.14.0"
156
156
  },
157
157
  "peerDependencies": {
158
158
  "@cloudflare/workers-types": "^4.20260317.1"
@@ -166,7 +166,7 @@
166
166
  "fsevents": "~2.3.2"
167
167
  },
168
168
  "engines": {
169
- "node": ">=20.0.0"
169
+ "node": ">=20.3.0"
170
170
  },
171
171
  "volta": {
172
172
  "extends": "../../package.json"
@@ -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
  */
@@ -1588,8 +1589,8 @@ interface EnvironmentNonInheritable {
1588
1589
  consumers?: {
1589
1590
  /** The name of the queue from which this consumer should consume. */
1590
1591
  queue: string;
1591
- /** The consumer type, e.g., worker, http-pull, r2-bucket, etc. Default is worker. */
1592
- type?: string;
1592
+ /** The consumer type. Only "worker" is supported in wrangler config. Default is "worker". */
1593
+ type?: "worker";
1593
1594
  /** The maximum number of messages per batch */
1594
1595
  max_batch_size?: number;
1595
1596
  /** The maximum number of seconds to wait to fill a batch with messages. */
@@ -1677,6 +1678,42 @@ interface EnvironmentNonInheritable {
1677
1678
  /** Whether the Vectorize index should be remote or not in local development */
1678
1679
  remote?: boolean;
1679
1680
  }[];
1681
+ /**
1682
+ * Specifies AI Search namespace bindings that are bound to this Worker environment.
1683
+ * Each binding is scoped to a namespace and allows dynamic instance CRUD within it.
1684
+ *
1685
+ * NOTE: This field is not automatically inherited from the top level environment,
1686
+ * and so must be specified in every named environment.
1687
+ *
1688
+ * @default []
1689
+ * @nonInheritable
1690
+ */
1691
+ ai_search_namespaces: {
1692
+ /** The binding name used to refer to the AI Search namespace in the Worker. */
1693
+ binding: string;
1694
+ /** The user-chosen namespace name. Must exist in Cloudflare at deploy time. */
1695
+ namespace: string;
1696
+ /** Whether the AI Search namespace binding should be remote in local development */
1697
+ remote?: boolean;
1698
+ }[];
1699
+ /**
1700
+ * Specifies AI Search instance bindings that are bound to this Worker environment.
1701
+ * Each binding is bound directly to a single pre-existing instance within the "default" namespace.
1702
+ *
1703
+ * NOTE: This field is not automatically inherited from the top level environment,
1704
+ * and so must be specified in every named environment.
1705
+ *
1706
+ * @default []
1707
+ * @nonInheritable
1708
+ */
1709
+ ai_search: {
1710
+ /** The binding name used to refer to the AI Search instance in the Worker. */
1711
+ binding: string;
1712
+ /** The user-chosen instance name. Must exist in Cloudflare at deploy time. */
1713
+ instance_name: string;
1714
+ /** Whether the AI Search instance binding should be remote in local development */
1715
+ remote?: boolean;
1716
+ }[];
1680
1717
  /**
1681
1718
  * Specifies Hyperdrive configs that are bound to this Worker environment.
1682
1719
  *
@@ -3151,10 +3188,8 @@ declare function experimental_getWranglerCommands(): {
3151
3188
  };
3152
3189
 
3153
3190
  /**
3154
- * This file contains:
3155
- *
3156
- * - The main entrypoint for the CLI, which calls `main()` from `index.ts`.
3157
- * - The exports for the public API of the package.
3191
+ * This file is the main entrypoint for the CLI, which calls `main()` from `index.ts`.
3192
+ * It also re-exports the public API of the package.
3158
3193
  */
3159
3194
 
3160
3195
  interface Unstable_ASSETSBindingsOptions {