@cloudflare/workers-utils 0.47.3 → 0.49.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/dist/browser.d.mts +13 -1
- package/dist/browser.mjs +1 -1
- package/dist/{chunk-CAPCWVOB.mjs → chunk-XEBMRQST.mjs} +148 -96
- package/dist/{compliance-CE5Km9Jx.d.mts → compliance-NXalJMKU.d.mts} +19 -2
- package/dist/compliance.d.mts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +42 -10
- package/dist/local-env.d.mts +18 -1
- package/dist/local-env.mjs +76 -10
- package/dist/metafile-esm.json +1 -1
- package/dist/test-helpers/index.d.mts +1 -1
- package/dist/zod-format.mjs +1 -1
- package/package.json +5 -5
package/dist/browser.d.mts
CHANGED
|
@@ -763,7 +763,7 @@ interface WorkerEntrypointExport {
|
|
|
763
763
|
* namespacing, and is required. The remaining settings match the ones accepted
|
|
764
764
|
* by `workflows` bindings.
|
|
765
765
|
*/
|
|
766
|
-
interface WorkflowExport extends Pick<WorkflowBinding, "limits" | "concurrency" | "schedules" | "default_retention"> {
|
|
766
|
+
interface WorkflowExport extends Pick<WorkflowBinding, "limits" | "concurrency" | "schedules" | "default_retention" | "jurisdiction"> {
|
|
767
767
|
type: "workflow";
|
|
768
768
|
name: string;
|
|
769
769
|
}
|
|
@@ -1168,6 +1168,8 @@ type ArtifactsEventTrigger = {
|
|
|
1168
1168
|
workflow_name: string;
|
|
1169
1169
|
}[];
|
|
1170
1170
|
};
|
|
1171
|
+
declare const WORKFLOW_JURISDICTIONS: readonly ["eu", "fedramp", "us"];
|
|
1172
|
+
type WorkflowJurisdiction = (typeof WORKFLOW_JURISDICTIONS)[number];
|
|
1171
1173
|
type WorkflowBinding = {
|
|
1172
1174
|
/** The name of the binding used to refer to the Workflow */
|
|
1173
1175
|
binding: string;
|
|
@@ -1200,6 +1202,11 @@ type WorkflowBinding = {
|
|
|
1200
1202
|
/** How long to retain errored instances */
|
|
1201
1203
|
error_retention?: number | string;
|
|
1202
1204
|
};
|
|
1205
|
+
/**
|
|
1206
|
+
* Optional jurisdiction that the Workflow's instances run and store their data in. It is set
|
|
1207
|
+
* when the Workflow is created and cannot be changed afterwards.
|
|
1208
|
+
*/
|
|
1209
|
+
jurisdiction?: WorkflowJurisdiction;
|
|
1203
1210
|
};
|
|
1204
1211
|
type ConnectHandlerConfigBase = {
|
|
1205
1212
|
/** The port to listen on. */
|
|
@@ -1585,6 +1592,11 @@ interface EnvironmentNonInheritable {
|
|
|
1585
1592
|
id: string;
|
|
1586
1593
|
/** The local database connection string for `wrangler dev` */
|
|
1587
1594
|
localConnectionString?: string;
|
|
1595
|
+
/**
|
|
1596
|
+
* Connect to the deployed Hyperdrive configuration during local development
|
|
1597
|
+
* instead of a local database.
|
|
1598
|
+
*/
|
|
1599
|
+
remote?: boolean;
|
|
1588
1600
|
}[];
|
|
1589
1601
|
/**
|
|
1590
1602
|
* Specifies service bindings (Worker-to-Worker) that are bound to this Worker environment.
|
package/dist/browser.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
|
|
4
4
|
// src/default-compat-date.ts
|
|
5
|
-
var DEFAULT_COMPAT_DATE = "2026-10-
|
|
5
|
+
var DEFAULT_COMPAT_DATE = "2026-10-23";
|
|
6
6
|
|
|
7
7
|
// src/assert-never.ts
|
|
8
8
|
function assertNever(_value) {
|