@cloudflare/workers-utils 0.47.2 → 0.47.3
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 +4 -4
- package/dist/browser.mjs +1 -1
- package/dist/{compliance-BRDsvbha.d.mts → compliance-CE5Km9Jx.d.mts} +4 -4
- package/dist/compliance.d.mts +1 -1
- package/dist/index.d.mts +3 -52
- package/dist/index.mjs +2 -73
- package/dist/metafile-esm.json +1 -1
- package/dist/test-helpers/index.d.mts +1 -1
- package/package.json +5 -5
package/dist/browser.d.mts
CHANGED
|
@@ -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
|
*
|
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) {
|
|
@@ -2108,10 +2108,10 @@ interface EnvironmentInheritable {
|
|
|
2108
2108
|
/**
|
|
2109
2109
|
* Include source maps when uploading this worker.
|
|
2110
2110
|
*
|
|
2111
|
-
* Defaults to `true` for `wrangler deploy`, `wrangler versions upload
|
|
2112
|
-
* `wrangler preview
|
|
2113
|
-
*
|
|
2114
|
-
*
|
|
2111
|
+
* Defaults to `true` for `wrangler deploy`, `wrangler versions upload`,
|
|
2112
|
+
* `wrangler preview` and `wrangler build --experimental-cf-build-output`,
|
|
2113
|
+
* where source maps that can't be resolved are skipped rather than failing
|
|
2114
|
+
* the upload.
|
|
2115
2115
|
*
|
|
2116
2116
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
|
|
2117
2117
|
*
|
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, bO as getCloudflareApiBaseUrl, bQ as getCloudflareComplianceRegion, bR as getCloudflareContainerRegistry, bW as getComplianceRegionSubdomain } from './compliance-
|
|
1
|
+
export { s as COMPLIANCE_REGION_CONFIG_PUBLIC, t as COMPLIANCE_REGION_CONFIG_UNKNOWN, h as ComplianceConfig, bO as getCloudflareApiBaseUrl, bQ as getCloudflareComplianceRegion, bR as getCloudflareContainerRegistry, bW as getComplianceRegionSubdomain } from './compliance-CE5Km9Jx.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 WorkflowBinding, bu as ZoneIdRoute, bv as ZoneNameRoute, bw as addAuthorizationHeader, bx as defaultWranglerConfig, by as extractAccountTag, bz as extractWAFBlockRayId, bA as fetchInternalBase, bB as fetchKVGetValueBase, bC as fetchListResultBase, bD as fetchResultBase, bE as getBrowserRenderingHeadfulFromEnv, bF as getBuildConditionsFromEnv, bG as getBuildPlatformFromEnv, bH as getC3CommandFromEnv, bI as getCIGeneratePreviewAlias, bJ as getCIMatchTag, bK as getCIOverrideName, bL as getCIOverrideNetworkModeHost, bM as getCfFetchEnabledFromEnv, bN as getCfFetchPathFromEnv, bO as getCloudflareApiBaseUrl, bP as getCloudflareApiEnvironmentFromEnv, bQ as getCloudflareComplianceRegion, bR as getCloudflareContainerRegistry, bS as getCloudflareEnv, bT as getCloudflareIncludeProcessEnvFromEnv, bU as getCloudflareLoadDevVarsFromDotEnv, bV as getCloudflaredPathFromEnv, bW as getComplianceRegionSubdomain, bX as getD1ExtraLocationChoices, bY as getDisableConfigWatching, bZ as getLocalExplorerEnabledFromEnv, b_ as getLocalObservabilityEnabledFromEnv, b$ as getNoSkillsUpdatePromptsFromEnv, c0 as getOpenNextDeployFromEnv, c1 as getOutputFileDirectoryFromEnv, c2 as getOutputFilePathFromEnv, c3 as getRegistryPath, c4 as getSanitizeLogs, c5 as getSubdomainMixedStateCheckDisabled, c6 as getTraceHeader, c7 as getWorkersCIBranchName, c8 as getWranglerCacheDirFromEnv, c9 as getWranglerHideBanner, ca as getWranglerSendErrorReportsFromEnv, cb as getWranglerSendMetricsFromEnv, cc as hasCursor, cd as hasMorePages, ce as isDoNotTrackEnabled, cf as isWAFBlockResponse, cg as maybeAddTraceHeader, ch as parseRetryAfterMs, ci as parseRetryAfterValue, cj as performApiFetchBase, ck as renderError, cl as throwFetchError, cm as truncate } from './compliance-
|
|
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-CE5Km9Jx.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 WorkflowBinding, bu as ZoneIdRoute, bv as ZoneNameRoute, bw as addAuthorizationHeader, bx as defaultWranglerConfig, by as extractAccountTag, bz as extractWAFBlockRayId, bA as fetchInternalBase, bB as fetchKVGetValueBase, bC as fetchListResultBase, bD as fetchResultBase, bE as getBrowserRenderingHeadfulFromEnv, bF as getBuildConditionsFromEnv, bG as getBuildPlatformFromEnv, bH as getC3CommandFromEnv, bI as getCIGeneratePreviewAlias, bJ as getCIMatchTag, bK as getCIOverrideName, bL as getCIOverrideNetworkModeHost, bM as getCfFetchEnabledFromEnv, bN as getCfFetchPathFromEnv, bO as getCloudflareApiBaseUrl, bP as getCloudflareApiEnvironmentFromEnv, bQ as getCloudflareComplianceRegion, bR as getCloudflareContainerRegistry, bS as getCloudflareEnv, bT as getCloudflareIncludeProcessEnvFromEnv, bU as getCloudflareLoadDevVarsFromDotEnv, bV as getCloudflaredPathFromEnv, bW as getComplianceRegionSubdomain, bX as getD1ExtraLocationChoices, bY as getDisableConfigWatching, bZ as getLocalExplorerEnabledFromEnv, b_ as getLocalObservabilityEnabledFromEnv, b$ as getNoSkillsUpdatePromptsFromEnv, c0 as getOpenNextDeployFromEnv, c1 as getOutputFileDirectoryFromEnv, c2 as getOutputFilePathFromEnv, c3 as getRegistryPath, c4 as getSanitizeLogs, c5 as getSubdomainMixedStateCheckDisabled, c6 as getTraceHeader, c7 as getWorkersCIBranchName, c8 as getWranglerCacheDirFromEnv, c9 as getWranglerHideBanner, ca as getWranglerSendErrorReportsFromEnv, cb as getWranglerSendMetricsFromEnv, cc as hasCursor, cd as hasMorePages, ce as isDoNotTrackEnabled, cf as isWAFBlockResponse, cg as maybeAddTraceHeader, ch as parseRetryAfterMs, ci as parseRetryAfterValue, cj as performApiFetchBase, ck as renderError, cl as throwFetchError, cm as truncate } from './compliance-CE5Km9Jx.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
|
@@ -9136,7 +9136,7 @@ function mapWorkerMetadataBindings(bindings) {
|
|
|
9136
9136
|
__name(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
|
|
9137
9137
|
|
|
9138
9138
|
// src/default-compat-date.ts
|
|
9139
|
-
var DEFAULT_COMPAT_DATE = "2026-10-
|
|
9139
|
+
var DEFAULT_COMPAT_DATE = "2026-10-19";
|
|
9140
9140
|
|
|
9141
9141
|
// src/construct-wrangler-config.ts
|
|
9142
9142
|
function constructWranglerConfig(config) {
|
|
@@ -12143,77 +12143,6 @@ The local dev server started at ${origin.href}
|
|
|
12143
12143
|
return new Error(errorMessage);
|
|
12144
12144
|
}
|
|
12145
12145
|
__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
12146
|
var UPDATE_CHECK_TIMEOUT_MS = 3e3;
|
|
12218
12147
|
var CACHE_TTL_MS = 60 * 60 * 1e3;
|
|
12219
12148
|
var NPM_REGISTRY_URL = "https://registry.npmjs.org/";
|
|
@@ -12704,4 +12633,4 @@ __name(leadingMigrationNumber, "leadingMigrationNumber");
|
|
|
12704
12633
|
// src/index.ts
|
|
12705
12634
|
var friendlyBindingNames2 = friendlyBindingNames;
|
|
12706
12635
|
|
|
12707
|
-
export { ARTIFACTS_EVENT_TYPES, BunPackageManager,
|
|
12636
|
+
export { ARTIFACTS_EVENT_TYPES, BunPackageManager, DEFAULT_COMPAT_DATE, Diagnostics, LOGGER_LEVELS, NpmPackageManager, NubPackageManager, PatchConfigError, PnpmPackageManager, 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 };
|