@cloudflare/workers-utils 0.47.2 → 0.48.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 +17 -5
- package/dist/browser.mjs +1 -1
- package/dist/{compliance-BRDsvbha.d.mts → compliance-NXalJMKU.d.mts} +23 -6
- package/dist/compliance.d.mts +1 -1
- package/dist/index.d.mts +3 -52
- package/dist/index.mjs +40 -79
- package/dist/metafile-esm.json +1 -1
- package/dist/test-helpers/index.d.mts +1 -1
- package/package.json +6 -6
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
|
}
|
|
@@ -1030,10 +1030,10 @@ interface EnvironmentInheritable {
|
|
|
1030
1030
|
/**
|
|
1031
1031
|
* Include source maps when uploading this worker.
|
|
1032
1032
|
*
|
|
1033
|
-
* Defaults to `true` for `wrangler deploy`, `wrangler versions upload
|
|
1034
|
-
* `wrangler preview
|
|
1035
|
-
*
|
|
1036
|
-
*
|
|
1033
|
+
* Defaults to `true` for `wrangler deploy`, `wrangler versions upload`,
|
|
1034
|
+
* `wrangler preview` and `wrangler build --experimental-cf-build-output`,
|
|
1035
|
+
* where source maps that can't be resolved are skipped rather than failing
|
|
1036
|
+
* the upload.
|
|
1037
1037
|
*
|
|
1038
1038
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
|
|
1039
1039
|
*
|
|
@@ -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-19";
|
|
6
6
|
|
|
7
7
|
// src/assert-never.ts
|
|
8
8
|
function assertNever(_value) {
|
|
@@ -395,6 +395,11 @@ interface CfHyperdrive {
|
|
|
395
395
|
binding: string;
|
|
396
396
|
id: string;
|
|
397
397
|
localConnectionString?: string;
|
|
398
|
+
/**
|
|
399
|
+
* Connect to the deployed Hyperdrive configuration during local development
|
|
400
|
+
* instead of a local database.
|
|
401
|
+
*/
|
|
402
|
+
remote?: boolean;
|
|
398
403
|
}
|
|
399
404
|
interface CfDevPluginCfg {
|
|
400
405
|
plugin: {
|
|
@@ -1841,7 +1846,7 @@ interface WorkerEntrypointExport {
|
|
|
1841
1846
|
* namespacing, and is required. The remaining settings match the ones accepted
|
|
1842
1847
|
* by `workflows` bindings.
|
|
1843
1848
|
*/
|
|
1844
|
-
interface WorkflowExport extends Pick<WorkflowBinding, "limits" | "concurrency" | "schedules" | "default_retention"> {
|
|
1849
|
+
interface WorkflowExport extends Pick<WorkflowBinding, "limits" | "concurrency" | "schedules" | "default_retention" | "jurisdiction"> {
|
|
1845
1850
|
type: "workflow";
|
|
1846
1851
|
name: string;
|
|
1847
1852
|
}
|
|
@@ -2108,10 +2113,10 @@ interface EnvironmentInheritable {
|
|
|
2108
2113
|
/**
|
|
2109
2114
|
* Include source maps when uploading this worker.
|
|
2110
2115
|
*
|
|
2111
|
-
* Defaults to `true` for `wrangler deploy`, `wrangler versions upload
|
|
2112
|
-
* `wrangler preview
|
|
2113
|
-
*
|
|
2114
|
-
*
|
|
2116
|
+
* Defaults to `true` for `wrangler deploy`, `wrangler versions upload`,
|
|
2117
|
+
* `wrangler preview` and `wrangler build --experimental-cf-build-output`,
|
|
2118
|
+
* where source maps that can't be resolved are skipped rather than failing
|
|
2119
|
+
* the upload.
|
|
2115
2120
|
*
|
|
2116
2121
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
|
|
2117
2122
|
*
|
|
@@ -2246,6 +2251,8 @@ type ArtifactsEventTrigger = {
|
|
|
2246
2251
|
workflow_name: string;
|
|
2247
2252
|
}[];
|
|
2248
2253
|
};
|
|
2254
|
+
declare const WORKFLOW_JURISDICTIONS: readonly ["eu", "fedramp", "us"];
|
|
2255
|
+
type WorkflowJurisdiction = (typeof WORKFLOW_JURISDICTIONS)[number];
|
|
2249
2256
|
type WorkflowBinding = {
|
|
2250
2257
|
/** The name of the binding used to refer to the Workflow */
|
|
2251
2258
|
binding: string;
|
|
@@ -2278,6 +2285,11 @@ type WorkflowBinding = {
|
|
|
2278
2285
|
/** How long to retain errored instances */
|
|
2279
2286
|
error_retention?: number | string;
|
|
2280
2287
|
};
|
|
2288
|
+
/**
|
|
2289
|
+
* Optional jurisdiction that the Workflow's instances run and store their data in. It is set
|
|
2290
|
+
* when the Workflow is created and cannot be changed afterwards.
|
|
2291
|
+
*/
|
|
2292
|
+
jurisdiction?: WorkflowJurisdiction;
|
|
2281
2293
|
};
|
|
2282
2294
|
type ConnectHandlerConfigBase = {
|
|
2283
2295
|
/** The port to listen on. */
|
|
@@ -2663,6 +2675,11 @@ interface EnvironmentNonInheritable {
|
|
|
2663
2675
|
id: string;
|
|
2664
2676
|
/** The local database connection string for `wrangler dev` */
|
|
2665
2677
|
localConnectionString?: string;
|
|
2678
|
+
/**
|
|
2679
|
+
* Connect to the deployed Hyperdrive configuration during local development
|
|
2680
|
+
* instead of a local database.
|
|
2681
|
+
*/
|
|
2682
|
+
remote?: boolean;
|
|
2666
2683
|
}[];
|
|
2667
2684
|
/**
|
|
2668
2685
|
* Specifies service bindings (Worker-to-Worker) that are bound to this Worker environment.
|
|
@@ -3799,4 +3816,4 @@ declare const getWranglerCacheDirFromEnv: () => string | undefined;
|
|
|
3799
3816
|
*/
|
|
3800
3817
|
declare const getCloudflaredPathFromEnv: () => string | undefined;
|
|
3801
3818
|
|
|
3802
|
-
export { type CfKvNamespace as $, type ApiCredentials as A, type Binding as B, type ComputedFields as C, type DurableObjectExport as D, type Exports as E, type CfAnalyticsEngineDataset as F, type CfAnalyticsSQLBinding as G, type CfArtifacts as H, type CfAssetsBinding as I, type CfBrowserBinding as J, type CfCapnp as K, type Logger as L, type CfD1Database as M, type CfDataBlobBindings as N, type CfDevPluginCfg as O, type CfDispatchNamespace as P, type CfDurableObject as Q, type RawConfig as R, type CfDurableObjectMigrations as S, type TailConsumer as T, type CfExports as U, type CfFlagship as V, type WorkerEntrypointExport as W, type CfHelloWorld as X, type CfHyperdrive as Y, type CfImagesBinding as Z, type CfK2Binding as _, type RedirectedRawConfig as a, type FetchResultFetcher as a$, type CfLogfwdr as a0, type CfLogfwdrBinding as a1, type CfMTlsCertificate as a2, type CfMediaBinding as a3, type CfModule as a4, type CfModuleType as a5, type CfPipeline as a6, type CfPlacement as a7, type CfQueue as a8, type CfR2Bucket as a9, type ContainerEngine as aA, type ContainerObservability as aB, type CustomDomainRoute as aC, type DispatchNamespaceOutbound as aD, type DockerConfiguration as aE, type DurableObjectBindings as aF, type DurableObjectCodeUpdateStrategy as aG, type DurableObjectContainerImage as aH, type DurableObjectExportStorage as aI, type DurableObjectMigration as aJ, type DurableObjectsConfig as aK, ENVIRONMENT_TAG_PREFIX as aL, type Entry as aM, type Environment as aN, type EnvironmentNonInheritable as aO, type ExportsReconciliationEntryBase as aP, type ExportsReconciliationErrorDetail as aQ, type ExportsReconciliationInfo as aR, type ExportsReconciliationRename as aS, type ExportsReconciliationResult as aT, type ExportsReconciliationTransfer as aU, type ExportsReconciliationTransferPending as aV, type ExportsReconciliationWarning as aW, type FetchKVGetValueFetcher as aX, type FetchListResultFetcher as aY, type FetchPagedListResultFetcher as aZ, type FetchResult as a_, type CfRateLimit as aa, type CfScriptFormat as ab, type CfSecretsStoreSecrets as ac, type CfSendEmailBindings as ad, type CfService as ae, type CfStreamBinding as af, type CfTextBlobBindings as ag, type CfUnsafe as ah, type CfUnsafeBinding as ai, type CfUserLimits as aj, type CfVars as ak, type CfVectorize as al, type CfVersionMetadataBinding as am, type CfVpcNetwork as an, type CfVpcService as ao, type CfWasmModuleBindings as ap, type CfWorkerContext as aq, type CfWorkerInit as ar, type CfWorkerLoader as as, type CfWorkerSourceMap as at, type CfWorkflow as au, type CloudchamberConfig as av, type ConfigFields as aw, type ConfigModuleRuleType as ax, type ConfiguredExport as ay, type ConnectHandler as az, type Config as b,
|
|
3819
|
+
export { type CfKvNamespace as $, type ApiCredentials as A, type Binding as B, type ComputedFields as C, type DurableObjectExport as D, type Exports as E, type CfAnalyticsEngineDataset as F, type CfAnalyticsSQLBinding as G, type CfArtifacts as H, type CfAssetsBinding as I, type CfBrowserBinding as J, type CfCapnp as K, type Logger as L, type CfD1Database as M, type CfDataBlobBindings as N, type CfDevPluginCfg as O, type CfDispatchNamespace as P, type CfDurableObject as Q, type RawConfig as R, type CfDurableObjectMigrations as S, type TailConsumer as T, type CfExports as U, type CfFlagship as V, type WorkerEntrypointExport as W, type CfHelloWorld as X, type CfHyperdrive as Y, type CfImagesBinding as Z, type CfK2Binding as _, type RedirectedRawConfig as a, type FetchResultFetcher as a$, type CfLogfwdr as a0, type CfLogfwdrBinding as a1, type CfMTlsCertificate as a2, type CfMediaBinding as a3, type CfModule as a4, type CfModuleType as a5, type CfPipeline as a6, type CfPlacement as a7, type CfQueue as a8, type CfR2Bucket as a9, type ContainerEngine as aA, type ContainerObservability as aB, type CustomDomainRoute as aC, type DispatchNamespaceOutbound as aD, type DockerConfiguration as aE, type DurableObjectBindings as aF, type DurableObjectCodeUpdateStrategy as aG, type DurableObjectContainerImage as aH, type DurableObjectExportStorage as aI, type DurableObjectMigration as aJ, type DurableObjectsConfig as aK, ENVIRONMENT_TAG_PREFIX as aL, type Entry as aM, type Environment as aN, type EnvironmentNonInheritable as aO, type ExportsReconciliationEntryBase as aP, type ExportsReconciliationErrorDetail as aQ, type ExportsReconciliationInfo as aR, type ExportsReconciliationRename as aS, type ExportsReconciliationResult as aT, type ExportsReconciliationTransfer as aU, type ExportsReconciliationTransferPending as aV, type ExportsReconciliationWarning as aW, type FetchKVGetValueFetcher as aX, type FetchListResultFetcher as aY, type FetchPagedListResultFetcher as aZ, type FetchResult as a_, type CfRateLimit as aa, type CfScriptFormat as ab, type CfSecretsStoreSecrets as ac, type CfSendEmailBindings as ad, type CfService as ae, type CfStreamBinding as af, type CfTextBlobBindings as ag, type CfUnsafe as ah, type CfUnsafeBinding as ai, type CfUserLimits as aj, type CfVars as ak, type CfVectorize as al, type CfVersionMetadataBinding as am, type CfVpcNetwork as an, type CfVpcService as ao, type CfWasmModuleBindings as ap, type CfWorkerContext as aq, type CfWorkerInit as ar, type CfWorkerLoader as as, type CfWorkerSourceMap as at, type CfWorkflow as au, type CloudchamberConfig as av, type ConfigFields as aw, type ConfigModuleRuleType as ax, type ConfiguredExport as ay, type ConnectHandler as az, type Config as b, getLocalExplorerEnabledFromEnv as b$, type File as b0, type Hook as b1, type HookValues as b2, INHERIT_SYMBOL as b3, JSON_CONFIG_FORMATS as b4, type Json as b5, LOGGER_LEVELS as b6, type LegacyAssetPaths as b7, type LocalS3Credentials as b8, type LogLevel as b9, extractAccountTag as bA, extractWAFBlockRayId as bB, fetchInternalBase as bC, fetchKVGetValueBase as bD, fetchListResultBase as bE, fetchResultBase as bF, getBrowserRenderingHeadfulFromEnv as bG, getBuildConditionsFromEnv as bH, getBuildPlatformFromEnv as bI, getC3CommandFromEnv as bJ, getCIGeneratePreviewAlias as bK, getCIMatchTag as bL, getCIOverrideName as bM, getCIOverrideNetworkModeHost as bN, getCfFetchEnabledFromEnv as bO, getCfFetchPathFromEnv as bP, getCloudflareApiBaseUrl as bQ, getCloudflareApiEnvironmentFromEnv as bR, getCloudflareComplianceRegion as bS, getCloudflareContainerRegistry as bT, getCloudflareEnv as bU, getCloudflareIncludeProcessEnvFromEnv as bV, getCloudflareLoadDevVarsFromDotEnv as bW, getCloudflaredPathFromEnv as bX, getComplianceRegionSubdomain as bY, getD1ExtraLocationChoices as bZ, getDisableConfigWatching as b_, type LoggerLevel as ba, type NodeJSCompatMode as bb, type Observability as bc, PATH_TO_DEPLOY_CONFIG as bd, type PreviewsConfig as be, type RawDevConfig as bf, type RawDurableObjectsConfig as bg, type RawEnvironment as bh, type Rule as bi, SERVICE_TAG_PREFIX as bj, type ServiceFetch as bk, type ServiceMetadataRes as bl, type StartDevWorkerInput as bm, type StreamingTailConsumer as bn, type TcpConnectHandler as bo, type Trigger as bp, type UdpConnectHandler as bq, type UserLimits as br, type ValidatedAssetsOptions as bs, WORKFLOW_JURISDICTIONS as bt, type WorkflowBinding as bu, type WorkflowJurisdiction as bv, type ZoneIdRoute as bw, type ZoneNameRoute as bx, addAuthorizationHeader as by, defaultWranglerConfig as bz, type WorkflowExport as c, getLocalObservabilityEnabledFromEnv as c0, getNoSkillsUpdatePromptsFromEnv as c1, getOpenNextDeployFromEnv as c2, getOutputFileDirectoryFromEnv as c3, getOutputFilePathFromEnv as c4, getRegistryPath as c5, getSanitizeLogs as c6, getSubdomainMixedStateCheckDisabled as c7, getTraceHeader as c8, getWorkersCIBranchName as c9, getWranglerCacheDirFromEnv as ca, getWranglerHideBanner as cb, getWranglerSendErrorReportsFromEnv as cc, getWranglerSendMetricsFromEnv as cd, hasCursor as ce, hasMorePages as cf, isDoNotTrackEnabled as cg, isWAFBlockResponse as ch, maybeAddTraceHeader as ci, parseRetryAfterMs as cj, parseRetryAfterValue as ck, performApiFetchBase as cl, renderError as cm, throwFetchError as cn, truncate as co, type ContainerApp as d, type WorkerMetadataBinding as e, type WorkerMetadata as f, type CfTailConsumer as g, type ComplianceConfig as h, type Route as i, ARTIFACTS_EVENT_TYPES as j, type Access as k, type ArtifactsEventTrigger as l, type ArtifactsEventType as m, type AssetConfigMetadata as n, type Assets as o, type AssetsOptions as p, type AsyncHook as q, type BinaryFile as r, COMPLIANCE_REGION_CONFIG_PUBLIC as s, COMPLIANCE_REGION_CONFIG_UNKNOWN as t, type CacheOptions as u, type CfAIBinding as v, type CfAISearch as w, type CfAISearchNamespace as x, type CfAccount as y, type CfAgentMemory as z };
|
package/dist/compliance.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as COMPLIANCE_REGION_CONFIG_PUBLIC, t as COMPLIANCE_REGION_CONFIG_UNKNOWN, h as ComplianceConfig,
|
|
1
|
+
export { s as COMPLIANCE_REGION_CONFIG_PUBLIC, t as COMPLIANCE_REGION_CONFIG_UNKNOWN, h as ComplianceConfig, bQ as getCloudflareApiBaseUrl, bS as getCloudflareComplianceRegion, bT as getCloudflareContainerRegistry, bY as getComplianceRegionSubdomain } from './compliance-NXalJMKU.mjs';
|
|
2
2
|
import 'node:url';
|
|
3
3
|
import 'undici';
|
|
4
4
|
import '@cloudflare/workers-shared';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ComputedFields, B as Binding, R as RawConfig, b as Config, E as Exports, D as DurableObjectExport, W as WorkerEntrypointExport, c as WorkflowExport, d as ContainerApp, e as WorkerMetadataBinding, T as TailConsumer, f as WorkerMetadata, g as CfTailConsumer, L as Logger, A as ApiCredentials, h as ComplianceConfig, i as Route } from './compliance-
|
|
2
|
-
export { j as ARTIFACTS_EVENT_TYPES, k as Access, l as ArtifactsEventTrigger, m as ArtifactsEventType, n as AssetConfigMetadata, o as Assets, p as AssetsOptions, q as AsyncHook, r as BinaryFile, s as COMPLIANCE_REGION_CONFIG_PUBLIC, t as COMPLIANCE_REGION_CONFIG_UNKNOWN, u as CacheOptions, v as CfAIBinding, w as CfAISearch, x as CfAISearchNamespace, y as CfAccount, z as CfAgentMemory, F as CfAnalyticsEngineDataset, G as CfAnalyticsSQLBinding, H as CfArtifacts, I as CfAssetsBinding, J as CfBrowserBinding, K as CfCapnp, M as CfD1Database, N as CfDataBlobBindings, O as CfDevPluginCfg, P as CfDispatchNamespace, Q as CfDurableObject, S as CfDurableObjectMigrations, U as CfExports, V as CfFlagship, X as CfHelloWorld, Y as CfHyperdrive, Z as CfImagesBinding, _ as CfK2Binding, $ as CfKvNamespace, a0 as CfLogfwdr, a1 as CfLogfwdrBinding, a2 as CfMTlsCertificate, a3 as CfMediaBinding, a4 as CfModule, a5 as CfModuleType, a6 as CfPipeline, a7 as CfPlacement, a8 as CfQueue, a9 as CfR2Bucket, aa as CfRateLimit, ab as CfScriptFormat, ac as CfSecretsStoreSecrets, ad as CfSendEmailBindings, ae as CfService, af as CfStreamBinding, ag as CfTextBlobBindings, ah as CfUnsafe, ai as CfUnsafeBinding, aj as CfUserLimits, ak as CfVars, al as CfVectorize, am as CfVersionMetadataBinding, an as CfVpcNetwork, ao as CfVpcService, ap as CfWasmModuleBindings, aq as CfWorkerContext, ar as CfWorkerInit, as as CfWorkerLoader, at as CfWorkerSourceMap, au as CfWorkflow, av as CloudchamberConfig, aw as ConfigFields, ax as ConfigModuleRuleType, ay as ConfiguredExport, az as ConnectHandler, aA as ContainerEngine, aB as ContainerObservability, aC as CustomDomainRoute, aD as DispatchNamespaceOutbound, aE as DockerConfiguration, aF as DurableObjectBindings, aG as DurableObjectCodeUpdateStrategy, aH as DurableObjectContainerImage, aI as DurableObjectExportStorage, aJ as DurableObjectMigration, aK as DurableObjectsConfig, aL as ENVIRONMENT_TAG_PREFIX, aM as Entry, aN as Environment, aO as EnvironmentNonInheritable, aP as ExportsReconciliationEntryBase, aQ as ExportsReconciliationErrorDetail, aR as ExportsReconciliationInfo, aS as ExportsReconciliationRename, aT as ExportsReconciliationResult, aU as ExportsReconciliationTransfer, aV as ExportsReconciliationTransferPending, aW as ExportsReconciliationWarning, aX as FetchKVGetValueFetcher, aY as FetchListResultFetcher, aZ as FetchPagedListResultFetcher, a_ as FetchResult, a$ as FetchResultFetcher, b0 as File, b1 as Hook, b2 as HookValues, b3 as INHERIT_SYMBOL, b4 as JSON_CONFIG_FORMATS, b5 as Json, b6 as LOGGER_LEVELS, b7 as LegacyAssetPaths, b8 as LocalS3Credentials, b9 as LogLevel, ba as LoggerLevel, bb as NodeJSCompatMode, bc as Observability, bd as PATH_TO_DEPLOY_CONFIG, be as PreviewsConfig, bf as RawDevConfig, bg as RawDurableObjectsConfig, bh as RawEnvironment, a as RedirectedRawConfig, bi as Rule, bj as SERVICE_TAG_PREFIX, bk as ServiceFetch, bl as ServiceMetadataRes, bm as StartDevWorkerInput, bn as StreamingTailConsumer, bo as TcpConnectHandler, bp as Trigger, bq as UdpConnectHandler, br as UserLimits, bs as ValidatedAssetsOptions, bt as
|
|
1
|
+
import { C as ComputedFields, B as Binding, R as RawConfig, b as Config, E as Exports, D as DurableObjectExport, W as WorkerEntrypointExport, c as WorkflowExport, d as ContainerApp, e as WorkerMetadataBinding, T as TailConsumer, f as WorkerMetadata, g as CfTailConsumer, L as Logger, A as ApiCredentials, h as ComplianceConfig, i as Route } from './compliance-NXalJMKU.mjs';
|
|
2
|
+
export { j as ARTIFACTS_EVENT_TYPES, k as Access, l as ArtifactsEventTrigger, m as ArtifactsEventType, n as AssetConfigMetadata, o as Assets, p as AssetsOptions, q as AsyncHook, r as BinaryFile, s as COMPLIANCE_REGION_CONFIG_PUBLIC, t as COMPLIANCE_REGION_CONFIG_UNKNOWN, u as CacheOptions, v as CfAIBinding, w as CfAISearch, x as CfAISearchNamespace, y as CfAccount, z as CfAgentMemory, F as CfAnalyticsEngineDataset, G as CfAnalyticsSQLBinding, H as CfArtifacts, I as CfAssetsBinding, J as CfBrowserBinding, K as CfCapnp, M as CfD1Database, N as CfDataBlobBindings, O as CfDevPluginCfg, P as CfDispatchNamespace, Q as CfDurableObject, S as CfDurableObjectMigrations, U as CfExports, V as CfFlagship, X as CfHelloWorld, Y as CfHyperdrive, Z as CfImagesBinding, _ as CfK2Binding, $ as CfKvNamespace, a0 as CfLogfwdr, a1 as CfLogfwdrBinding, a2 as CfMTlsCertificate, a3 as CfMediaBinding, a4 as CfModule, a5 as CfModuleType, a6 as CfPipeline, a7 as CfPlacement, a8 as CfQueue, a9 as CfR2Bucket, aa as CfRateLimit, ab as CfScriptFormat, ac as CfSecretsStoreSecrets, ad as CfSendEmailBindings, ae as CfService, af as CfStreamBinding, ag as CfTextBlobBindings, ah as CfUnsafe, ai as CfUnsafeBinding, aj as CfUserLimits, ak as CfVars, al as CfVectorize, am as CfVersionMetadataBinding, an as CfVpcNetwork, ao as CfVpcService, ap as CfWasmModuleBindings, aq as CfWorkerContext, ar as CfWorkerInit, as as CfWorkerLoader, at as CfWorkerSourceMap, au as CfWorkflow, av as CloudchamberConfig, aw as ConfigFields, ax as ConfigModuleRuleType, ay as ConfiguredExport, az as ConnectHandler, aA as ContainerEngine, aB as ContainerObservability, aC as CustomDomainRoute, aD as DispatchNamespaceOutbound, aE as DockerConfiguration, aF as DurableObjectBindings, aG as DurableObjectCodeUpdateStrategy, aH as DurableObjectContainerImage, aI as DurableObjectExportStorage, aJ as DurableObjectMigration, aK as DurableObjectsConfig, aL as ENVIRONMENT_TAG_PREFIX, aM as Entry, aN as Environment, aO as EnvironmentNonInheritable, aP as ExportsReconciliationEntryBase, aQ as ExportsReconciliationErrorDetail, aR as ExportsReconciliationInfo, aS as ExportsReconciliationRename, aT as ExportsReconciliationResult, aU as ExportsReconciliationTransfer, aV as ExportsReconciliationTransferPending, aW as ExportsReconciliationWarning, aX as FetchKVGetValueFetcher, aY as FetchListResultFetcher, aZ as FetchPagedListResultFetcher, a_ as FetchResult, a$ as FetchResultFetcher, b0 as File, b1 as Hook, b2 as HookValues, b3 as INHERIT_SYMBOL, b4 as JSON_CONFIG_FORMATS, b5 as Json, b6 as LOGGER_LEVELS, b7 as LegacyAssetPaths, b8 as LocalS3Credentials, b9 as LogLevel, ba as LoggerLevel, bb as NodeJSCompatMode, bc as Observability, bd as PATH_TO_DEPLOY_CONFIG, be as PreviewsConfig, bf as RawDevConfig, bg as RawDurableObjectsConfig, bh as RawEnvironment, a as RedirectedRawConfig, bi as Rule, bj as SERVICE_TAG_PREFIX, bk as ServiceFetch, bl as ServiceMetadataRes, bm as StartDevWorkerInput, bn as StreamingTailConsumer, bo as TcpConnectHandler, bp as Trigger, bq as UdpConnectHandler, br as UserLimits, bs as ValidatedAssetsOptions, bt as WORKFLOW_JURISDICTIONS, bu as WorkflowBinding, bv as WorkflowJurisdiction, bw as ZoneIdRoute, bx as ZoneNameRoute, by as addAuthorizationHeader, bz as defaultWranglerConfig, bA as extractAccountTag, bB as extractWAFBlockRayId, bC as fetchInternalBase, bD as fetchKVGetValueBase, bE as fetchListResultBase, bF as fetchResultBase, bG as getBrowserRenderingHeadfulFromEnv, bH as getBuildConditionsFromEnv, bI as getBuildPlatformFromEnv, bJ as getC3CommandFromEnv, bK as getCIGeneratePreviewAlias, bL as getCIMatchTag, bM as getCIOverrideName, bN as getCIOverrideNetworkModeHost, bO as getCfFetchEnabledFromEnv, bP as getCfFetchPathFromEnv, bQ as getCloudflareApiBaseUrl, bR as getCloudflareApiEnvironmentFromEnv, bS as getCloudflareComplianceRegion, bT as getCloudflareContainerRegistry, bU as getCloudflareEnv, bV as getCloudflareIncludeProcessEnvFromEnv, bW as getCloudflareLoadDevVarsFromDotEnv, bX as getCloudflaredPathFromEnv, bY as getComplianceRegionSubdomain, bZ as getD1ExtraLocationChoices, b_ as getDisableConfigWatching, b$ as getLocalExplorerEnabledFromEnv, c0 as getLocalObservabilityEnabledFromEnv, c1 as getNoSkillsUpdatePromptsFromEnv, c2 as getOpenNextDeployFromEnv, c3 as getOutputFileDirectoryFromEnv, c4 as getOutputFilePathFromEnv, c5 as getRegistryPath, c6 as getSanitizeLogs, c7 as getSubdomainMixedStateCheckDisabled, c8 as getTraceHeader, c9 as getWorkersCIBranchName, ca as getWranglerCacheDirFromEnv, cb as getWranglerHideBanner, cc as getWranglerSendErrorReportsFromEnv, cd as getWranglerSendMetricsFromEnv, ce as hasCursor, cf as hasMorePages, cg as isDoNotTrackEnabled, ch as isWAFBlockResponse, ci as maybeAddTraceHeader, cj as parseRetryAfterMs, ck as parseRetryAfterValue, cl as performApiFetchBase, cm as renderError, cn as throwFetchError, co as truncate } from './compliance-NXalJMKU.mjs';
|
|
3
3
|
import * as jsoncParser from 'jsonc-parser';
|
|
4
4
|
import { UserError, TelemetryMessage } from './errors.mjs';
|
|
5
5
|
export { CommandLineArgsError, DeprecationError, FatalError, JsonFriendlyFatalError, MissingConfigError, createFatalError } from './errors.mjs';
|
|
@@ -940,55 +940,6 @@ declare function spawnCloudflared(args: string[], options?: {
|
|
|
940
940
|
logger?: Pick<Logger, "debug" | "log" | "warn">;
|
|
941
941
|
}): Promise<ChildProcess>;
|
|
942
942
|
|
|
943
|
-
type CliCommands = {
|
|
944
|
-
deploy: string;
|
|
945
|
-
preview: string;
|
|
946
|
-
versionsUpload: string;
|
|
947
|
-
versionsDeploy: string;
|
|
948
|
-
/**
|
|
949
|
-
* Formats a command that deploys a version at the given traffic percentage.
|
|
950
|
-
*
|
|
951
|
-
* @param n Traffic percentage assigned to the version.
|
|
952
|
-
* @returns The formatted deployment command.
|
|
953
|
-
*/
|
|
954
|
-
versionsDeployAt: (n: number) => string;
|
|
955
|
-
triggersDeploy: string;
|
|
956
|
-
d1List: string;
|
|
957
|
-
d1Delete: string;
|
|
958
|
-
queuesCreate: string;
|
|
959
|
-
secretPut: string;
|
|
960
|
-
versionsSecretPut: string;
|
|
961
|
-
containerRegistryConfigure: string;
|
|
962
|
-
};
|
|
963
|
-
type CliConfigFields = {
|
|
964
|
-
workersDev: string;
|
|
965
|
-
containerObservabilityTargetPercentage: string;
|
|
966
|
-
containerObservabilityTargetCount: string;
|
|
967
|
-
};
|
|
968
|
-
type CliPresentation = {
|
|
969
|
-
cliName: string;
|
|
970
|
-
displayName: string;
|
|
971
|
-
/** A bare config-file label; callers should supply a determiner such as "your". */
|
|
972
|
-
displayConfigFileName: string;
|
|
973
|
-
configFieldAssignmentSeparator: " = " | ": ";
|
|
974
|
-
commands: CliCommands;
|
|
975
|
-
configFields: CliConfigFields;
|
|
976
|
-
};
|
|
977
|
-
type CliPresentationOverrides = Partial<Omit<CliPresentation, "commands" | "configFields">> & {
|
|
978
|
-
commands?: Partial<CliCommands>;
|
|
979
|
-
configFields?: Partial<CliConfigFields>;
|
|
980
|
-
};
|
|
981
|
-
declare const WRANGLER_CLI_PRESENTATION: CliPresentation;
|
|
982
|
-
declare const CF_CLI_PRESENTATION: CliPresentationOverrides;
|
|
983
|
-
/**
|
|
984
|
-
* Resolves consumer-specific CLI copy while retaining Wrangler-compatible
|
|
985
|
-
* defaults for commands the consumer does not implement.
|
|
986
|
-
*
|
|
987
|
-
* @param overrides Consumer-specific names and command spellings.
|
|
988
|
-
* @returns A complete presentation configuration.
|
|
989
|
-
*/
|
|
990
|
-
declare function resolveCliPresentation(overrides?: CliPresentationOverrides): CliPresentation;
|
|
991
|
-
|
|
992
943
|
type NpmVersionCheckResult = {
|
|
993
944
|
status: "up-to-date";
|
|
994
945
|
} | {
|
|
@@ -1471,4 +1422,4 @@ declare function compareMigrationPaths(a: string, b: string): number;
|
|
|
1471
1422
|
*/
|
|
1472
1423
|
declare const friendlyBindingNames: Record<ConfigBindingFieldName, string>;
|
|
1473
1424
|
|
|
1474
|
-
export { APIError, ApiCredentials, Binding, type BindingLocalSupport, BunPackageManager,
|
|
1425
|
+
export { APIError, ApiCredentials, Binding, type BindingLocalSupport, BunPackageManager, CfTailConsumer, CompatDate, ComplianceConfig, Config, type ConfigBindingFieldName, type ConfigBindingOptions, type ConfigCache, type ConfigCacheOptions, ContainerApp, type ConvertBindingsOptions, type D1MigrationFile, DEFAULT_COMPAT_DATE, Diagnostics, type DurableObjectContainerApp, DurableObjectExport, type EphemeralDirectory, type ExportType, Exports, type GetD1MigrationFilesOptions, type LiveDurableObjectExport, type Location, Logger, type Message, type NormalizeAndValidateConfigArgs, NpmPackageManager, type NpmVersionCheckResult, NubPackageManager, type OutputEntry, type PackageJSON, type PackageManager, ParseError, type ParseFile, type PartitionedExports, PatchConfigError, PnpmPackageManager, type PrintBindingsOptions, RawConfig, type ResolveConfigPathOptions, type ResolvedDurableObjectContainerApp, Route, TailConsumer, TelemetryMessage, type Tunnel, type TunnelOptions, type UrlPath, UserError, WorkerEntrypointExport, WorkerMetadata, WorkerMetadataBinding, WorkflowExport, YarnPackageManager, assertNever, bucketFormatMessage, checkWorkerNameValidity, clearOutputFilePath, compareMigrationPaths, configFileName, configFormat, constructWranglerConfig, convertConfigToBindings, createConfigCache, experimental_patchConfig, experimental_readRawConfig, extractBindingsOfType, fetchLatestNpmVersion, findWranglerConfig, formatConfigSnippet, formatTime, friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBindings, getBooleanEnvironmentVariableFactory, getContainerDurableObjectClassNames, getContainerNameToClassNameMap, getD1MigrationFiles, getDurableObjectClassNameToUseSQLiteMap, getDurableObjectContainerApps, getDurableObjectExports, getEnvironmentVariableFactory, getHostFromRoute, getHostFromUrl, getInstalledPackageVersion, getPackagePath, getResolvedDurableObjectContainerApps, getWorkerName, getWorkerNameFromProject, getWranglerHiddenDirPath, getWranglerTmpDir, getZoneFromRoute, hasDurableObjectExports, hasProperty, indexLocation, isCI, isDockerfile, isDurableObjectContainerApp, isInteractive, isLiveDurableObjectExport, isNonInteractiveOrCI, isOptionalProperty, isPackageInstalled, isPagesConfig, isRedirectedConfig, isRequiredProperty, isUnsafeBindingType, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, normalizeRelativePath, openInBrowser, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, printBindings, readFileSync, readFileSyncToBuffer, resolveContainerClassName, resolveNamedTunnel, resolveWranglerConfigPath, retryOnAPIFailure, searchLocation, spawnCloudflared, startTunnel, sweepStaleWranglerTmpDirs, toUrlPath, toValidWorkerName, validateBindingRemoteSetting, validateDurableObjectContainerApplications, validatePagesConfig, writeOutput };
|
package/dist/index.mjs
CHANGED
|
@@ -1440,6 +1440,7 @@ var ARTIFACTS_EVENT_TYPES = [
|
|
|
1440
1440
|
"cf.artifacts.repo.token.created",
|
|
1441
1441
|
"cf.artifacts.repo.token.revoked"
|
|
1442
1442
|
];
|
|
1443
|
+
var WORKFLOW_JURISDICTIONS = ["eu", "fedramp", "us"];
|
|
1443
1444
|
|
|
1444
1445
|
// src/config/config.ts
|
|
1445
1446
|
var defaultWranglerConfig = {
|
|
@@ -4513,6 +4514,22 @@ function validateWorkflowConcurrency(diagnostics, field, kind, value) {
|
|
|
4513
4514
|
return valid;
|
|
4514
4515
|
}
|
|
4515
4516
|
__name(validateWorkflowConcurrency, "validateWorkflowConcurrency");
|
|
4517
|
+
function validateWorkflowJurisdiction(diagnostics, field, kind, value) {
|
|
4518
|
+
const { jurisdiction } = value;
|
|
4519
|
+
if (jurisdiction === void 0 || WORKFLOW_JURISDICTIONS.some((valid) => valid === jurisdiction)) {
|
|
4520
|
+
return true;
|
|
4521
|
+
}
|
|
4522
|
+
const validJurisdictions = new Intl.ListFormat("en-US", {
|
|
4523
|
+
type: "disjunction"
|
|
4524
|
+
}).format(WORKFLOW_JURISDICTIONS.map((valid) => JSON.stringify(valid)));
|
|
4525
|
+
diagnostics.errors.push(
|
|
4526
|
+
`"${field}" ${kind} "jurisdiction" field must be one of ${validJurisdictions}, but got ${JSON.stringify(
|
|
4527
|
+
jurisdiction
|
|
4528
|
+
)}.`
|
|
4529
|
+
);
|
|
4530
|
+
return false;
|
|
4531
|
+
}
|
|
4532
|
+
__name(validateWorkflowJurisdiction, "validateWorkflowJurisdiction");
|
|
4516
4533
|
var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value) => {
|
|
4517
4534
|
if (typeof value !== "object" || value === null) {
|
|
4518
4535
|
diagnostics.errors.push(
|
|
@@ -4568,6 +4585,7 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
|
|
|
4568
4585
|
settings
|
|
4569
4586
|
) && isValid;
|
|
4570
4587
|
isValid = validateWorkflowConcurrency(diagnostics, field, "bindings", settings) && isValid;
|
|
4588
|
+
isValid = validateWorkflowJurisdiction(diagnostics, field, "bindings", settings) && isValid;
|
|
4571
4589
|
validateAdditionalProperties(diagnostics, field, Object.keys(value), [
|
|
4572
4590
|
"binding",
|
|
4573
4591
|
"name",
|
|
@@ -4576,7 +4594,8 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
|
|
|
4576
4594
|
"limits",
|
|
4577
4595
|
"concurrency",
|
|
4578
4596
|
"schedules",
|
|
4579
|
-
"default_retention"
|
|
4597
|
+
"default_retention",
|
|
4598
|
+
"jurisdiction"
|
|
4580
4599
|
]);
|
|
4581
4600
|
return isValid;
|
|
4582
4601
|
}, "validateWorkflowBinding");
|
|
@@ -6084,10 +6103,14 @@ var validateHyperdriveBinding = /* @__PURE__ */ __name((diagnostics, field, valu
|
|
|
6084
6103
|
);
|
|
6085
6104
|
isValid = false;
|
|
6086
6105
|
}
|
|
6106
|
+
if (!isRemoteValid(value, field, diagnostics)) {
|
|
6107
|
+
isValid = false;
|
|
6108
|
+
}
|
|
6087
6109
|
validateAdditionalProperties(diagnostics, field, Object.keys(value), [
|
|
6088
6110
|
"binding",
|
|
6089
6111
|
"id",
|
|
6090
|
-
"localConnectionString"
|
|
6112
|
+
"localConnectionString",
|
|
6113
|
+
"remote"
|
|
6091
6114
|
]);
|
|
6092
6115
|
return isValid;
|
|
6093
6116
|
}, "validateHyperdriveBinding");
|
|
@@ -7686,6 +7709,12 @@ function validateWorkflowExport(diagnostics, exportName, workflowExport) {
|
|
|
7686
7709
|
workflowExport
|
|
7687
7710
|
) && valid;
|
|
7688
7711
|
valid = validateWorkflowConcurrency(diagnostics, field, "export", workflowExport) && valid;
|
|
7712
|
+
valid = validateWorkflowJurisdiction(
|
|
7713
|
+
diagnostics,
|
|
7714
|
+
field,
|
|
7715
|
+
"export",
|
|
7716
|
+
workflowExport
|
|
7717
|
+
) && valid;
|
|
7689
7718
|
valid = validateAdditionalProperties(
|
|
7690
7719
|
diagnostics,
|
|
7691
7720
|
field,
|
|
@@ -7696,7 +7725,8 @@ function validateWorkflowExport(diagnostics, exportName, workflowExport) {
|
|
|
7696
7725
|
"limits",
|
|
7697
7726
|
"concurrency",
|
|
7698
7727
|
"schedules",
|
|
7699
|
-
"default_retention"
|
|
7728
|
+
"default_retention",
|
|
7729
|
+
"jurisdiction"
|
|
7700
7730
|
]
|
|
7701
7731
|
) && valid;
|
|
7702
7732
|
return valid;
|
|
@@ -8410,7 +8440,6 @@ var BINDING_LOCAL_SUPPORT = {
|
|
|
8410
8440
|
assets: "local-only",
|
|
8411
8441
|
unsafe_hello_world: "local-only",
|
|
8412
8442
|
durable_object_namespace: "local-only",
|
|
8413
|
-
hyperdrive: "local-only",
|
|
8414
8443
|
fetcher: "local-only",
|
|
8415
8444
|
analytics_engine: "local-only",
|
|
8416
8445
|
secrets_store_secret: "local-only",
|
|
@@ -8419,6 +8448,7 @@ var BINDING_LOCAL_SUPPORT = {
|
|
|
8419
8448
|
kv_namespace: "local-and-remote",
|
|
8420
8449
|
r2_bucket: "local-and-remote",
|
|
8421
8450
|
d1: "local-and-remote",
|
|
8451
|
+
hyperdrive: "local-and-remote",
|
|
8422
8452
|
workflow: "local-only",
|
|
8423
8453
|
browser: "local-and-remote",
|
|
8424
8454
|
images: "local-and-remote",
|
|
@@ -9136,7 +9166,7 @@ function mapWorkerMetadataBindings(bindings) {
|
|
|
9136
9166
|
__name(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
|
|
9137
9167
|
|
|
9138
9168
|
// src/default-compat-date.ts
|
|
9139
|
-
var DEFAULT_COMPAT_DATE = "2026-10-
|
|
9169
|
+
var DEFAULT_COMPAT_DATE = "2026-10-19";
|
|
9140
9170
|
|
|
9141
9171
|
// src/construct-wrangler-config.ts
|
|
9142
9172
|
function constructWranglerConfig(config) {
|
|
@@ -9827,12 +9857,14 @@ function printBindings(bindings, options) {
|
|
|
9827
9857
|
}
|
|
9828
9858
|
if (hyperdrive.length > 0) {
|
|
9829
9859
|
output.push(
|
|
9830
|
-
...hyperdrive.map(({ binding, id }) => {
|
|
9860
|
+
...hyperdrive.map(({ binding, id, remote }) => {
|
|
9831
9861
|
return {
|
|
9832
9862
|
name: binding,
|
|
9833
9863
|
type: getBindingTypeFriendlyName("hyperdrive"),
|
|
9834
9864
|
value: id,
|
|
9835
|
-
mode: getMode({
|
|
9865
|
+
mode: getMode({
|
|
9866
|
+
isSimulatedLocally: context.remoteBindingsDisabled || !remote
|
|
9867
|
+
})
|
|
9836
9868
|
};
|
|
9837
9869
|
})
|
|
9838
9870
|
);
|
|
@@ -12143,77 +12175,6 @@ The local dev server started at ${origin.href}
|
|
|
12143
12175
|
return new Error(errorMessage);
|
|
12144
12176
|
}
|
|
12145
12177
|
__name(createTunnelStartupError, "createTunnelStartupError");
|
|
12146
|
-
|
|
12147
|
-
// src/cli-presentation.ts
|
|
12148
|
-
var WRANGLER_COMMANDS = {
|
|
12149
|
-
deploy: "wrangler deploy",
|
|
12150
|
-
preview: "wrangler preview",
|
|
12151
|
-
versionsUpload: "wrangler versions upload",
|
|
12152
|
-
versionsDeploy: "wrangler versions deploy",
|
|
12153
|
-
versionsDeployAt: /* @__PURE__ */ __name((n2) => `wrangler versions deploy <new-version-id>@${n2}%`, "versionsDeployAt"),
|
|
12154
|
-
triggersDeploy: "wrangler triggers deploy",
|
|
12155
|
-
d1List: "wrangler d1 list",
|
|
12156
|
-
d1Delete: "wrangler d1 delete",
|
|
12157
|
-
queuesCreate: "wrangler queues create",
|
|
12158
|
-
secretPut: "wrangler secret put",
|
|
12159
|
-
versionsSecretPut: "wrangler versions secret put",
|
|
12160
|
-
containerRegistryConfigure: "wrangler containers registries configure"
|
|
12161
|
-
};
|
|
12162
|
-
var WRANGLER_CONFIG_FIELDS = {
|
|
12163
|
-
workersDev: "workers_dev",
|
|
12164
|
-
containerObservabilityTargetPercentage: "target_instance_percentage",
|
|
12165
|
-
containerObservabilityTargetCount: "target_instance_count"
|
|
12166
|
-
};
|
|
12167
|
-
var WRANGLER_CLI_PRESENTATION = {
|
|
12168
|
-
cliName: "wrangler",
|
|
12169
|
-
displayName: "Wrangler",
|
|
12170
|
-
displayConfigFileName: "Wrangler config file",
|
|
12171
|
-
configFieldAssignmentSeparator: " = ",
|
|
12172
|
-
commands: WRANGLER_COMMANDS,
|
|
12173
|
-
configFields: WRANGLER_CONFIG_FIELDS
|
|
12174
|
-
};
|
|
12175
|
-
var CF_CLI_PRESENTATION = {
|
|
12176
|
-
cliName: "cf",
|
|
12177
|
-
displayName: "cf",
|
|
12178
|
-
displayConfigFileName: "cloudflare.config.ts",
|
|
12179
|
-
configFieldAssignmentSeparator: ": ",
|
|
12180
|
-
configFields: {
|
|
12181
|
-
workersDev: "workersDev",
|
|
12182
|
-
containerObservabilityTargetPercentage: "targetInstancePercentage",
|
|
12183
|
-
containerObservabilityTargetCount: "targetInstanceCount"
|
|
12184
|
-
},
|
|
12185
|
-
commands: {
|
|
12186
|
-
deploy: "cf deploy",
|
|
12187
|
-
preview: "cf previews deploy",
|
|
12188
|
-
versionsUpload: "cf workers versions create",
|
|
12189
|
-
versionsDeploy: "cf workers deployments create",
|
|
12190
|
-
versionsDeployAt: /* @__PURE__ */ __name((n2) => `cf workers deployments create --worker <worker-name> --strategy percentage --versions '[{"version_id":"<new-version-id>","percentage":${n2}}]'`, "versionsDeployAt"),
|
|
12191
|
-
triggersDeploy: "cf workers triggers deploy",
|
|
12192
|
-
d1List: "cf d1 list",
|
|
12193
|
-
d1Delete: "cf d1 delete",
|
|
12194
|
-
queuesCreate: "cf queues create",
|
|
12195
|
-
secretPut: "cf workers secrets update",
|
|
12196
|
-
versionsSecretPut: "cf workers secrets update",
|
|
12197
|
-
containerRegistryConfigure: "cf containers registries create"
|
|
12198
|
-
}
|
|
12199
|
-
};
|
|
12200
|
-
function resolveCliPresentation(overrides) {
|
|
12201
|
-
return {
|
|
12202
|
-
cliName: overrides?.cliName ?? WRANGLER_CLI_PRESENTATION.cliName,
|
|
12203
|
-
displayName: overrides?.displayName ?? WRANGLER_CLI_PRESENTATION.displayName,
|
|
12204
|
-
displayConfigFileName: overrides?.displayConfigFileName ?? WRANGLER_CLI_PRESENTATION.displayConfigFileName,
|
|
12205
|
-
configFieldAssignmentSeparator: overrides?.configFieldAssignmentSeparator ?? WRANGLER_CLI_PRESENTATION.configFieldAssignmentSeparator,
|
|
12206
|
-
commands: {
|
|
12207
|
-
...WRANGLER_COMMANDS,
|
|
12208
|
-
...overrides?.commands
|
|
12209
|
-
},
|
|
12210
|
-
configFields: {
|
|
12211
|
-
...WRANGLER_CONFIG_FIELDS,
|
|
12212
|
-
...overrides?.configFields
|
|
12213
|
-
}
|
|
12214
|
-
};
|
|
12215
|
-
}
|
|
12216
|
-
__name(resolveCliPresentation, "resolveCliPresentation");
|
|
12217
12178
|
var UPDATE_CHECK_TIMEOUT_MS = 3e3;
|
|
12218
12179
|
var CACHE_TTL_MS = 60 * 60 * 1e3;
|
|
12219
12180
|
var NPM_REGISTRY_URL = "https://registry.npmjs.org/";
|
|
@@ -12704,4 +12665,4 @@ __name(leadingMigrationNumber, "leadingMigrationNumber");
|
|
|
12704
12665
|
// src/index.ts
|
|
12705
12666
|
var friendlyBindingNames2 = friendlyBindingNames;
|
|
12706
12667
|
|
|
12707
|
-
export { ARTIFACTS_EVENT_TYPES, BunPackageManager,
|
|
12668
|
+
export { ARTIFACTS_EVENT_TYPES, BunPackageManager, DEFAULT_COMPAT_DATE, Diagnostics, LOGGER_LEVELS, NpmPackageManager, NubPackageManager, PatchConfigError, PnpmPackageManager, WORKFLOW_JURISDICTIONS, YarnPackageManager, addAuthorizationHeader, assertNever, bucketFormatMessage, checkWorkerNameValidity, clearOutputFilePath, compareMigrationPaths, constructWranglerConfig, convertConfigToBindings, createConfigCache, defaultWranglerConfig, experimental_patchConfig, extractAccountTag, extractBindingsOfType, extractWAFBlockRayId, fetchInternalBase, fetchKVGetValueBase, fetchLatestNpmVersion, fetchListResultBase, fetchResultBase, formatTime, friendlyBindingNames2 as friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBindings, getD1MigrationFiles, getHostFromRoute, getHostFromUrl, getInstalledPackageVersion, getPackagePath, getWorkerName, getWorkerNameFromProject, getWranglerHiddenDirPath, getWranglerTmpDir, getZoneFromRoute, hasCursor, hasMorePages, hasProperty, isCI, isDockerfile, isInteractive, isNonInteractiveOrCI, isOptionalProperty, isPackageInstalled, isPagesConfig, isRequiredProperty, isUnsafeBindingType, isValidR2BucketName, isWAFBlockResponse, mapWorkerMetadataBindings, maybeAddTraceHeader, normalizeAndValidateConfig, normalizeRelativePath, openInBrowser, parseRetryAfterMs, parseRetryAfterValue, performApiFetchBase, printBindings, renderError, resolveNamedTunnel, retryOnAPIFailure, spawnCloudflared, startTunnel, sweepStaleWranglerTmpDirs, throwFetchError, toUrlPath, toValidWorkerName, truncate, validateBindingRemoteSetting, validatePagesConfig, writeOutput };
|