@cloudflare/workers-utils 0.47.1 → 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 +5 -0
- package/dist/browser.mjs +1 -1
- package/dist/{chunk-TAK63GWY.mjs → chunk-2HLTAS5V.mjs} +14 -13
- package/dist/{compliance-BFVODD7c.d.mts → compliance-CE5Km9Jx.d.mts} +5 -0
- package/dist/compliance.d.mts +1 -1
- package/dist/index.d.mts +14 -4
- package/dist/index.mjs +3 -3
- package/dist/metafile-esm.json +1 -1
- package/dist/test-helpers/index.d.mts +1 -1
- package/dist/test-helpers/index.mjs +1 -1
- package/package.json +6 -6
package/dist/browser.d.mts
CHANGED
|
@@ -1030,6 +1030,11 @@ 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` 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
|
+
*
|
|
1033
1038
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
|
|
1034
1039
|
*
|
|
1035
1040
|
* @inheritable
|
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) {
|
|
@@ -171,7 +171,7 @@ function getDurableObjectClassNameToUseSQLiteMap(migrations, exports$1) {
|
|
|
171
171
|
__name(getDurableObjectClassNameToUseSQLiteMap, "getDurableObjectClassNameToUseSQLiteMap");
|
|
172
172
|
function validateDurableObjectContainerApplications(config, containers = getDurableObjectContainerApps(
|
|
173
173
|
config.containers
|
|
174
|
-
)) {
|
|
174
|
+
), configFileName2 = "Wrangler config file") {
|
|
175
175
|
const allDOs = getDurableObjectClassNameToUseSQLiteMap(
|
|
176
176
|
config.migrations,
|
|
177
177
|
config.exports
|
|
@@ -186,7 +186,7 @@ function validateDurableObjectContainerApplications(config, containers = getDura
|
|
|
186
186
|
const useSQLite = allDOs.get(container.class_name);
|
|
187
187
|
if (useSQLite === void 0 && maybeBoundDO === void 0) {
|
|
188
188
|
throw new UserError(
|
|
189
|
-
`The container class_name ${container.class_name} does not match any durable object class_name defined in your
|
|
189
|
+
`The container class_name ${container.class_name} does not match any durable object class_name defined in your ${configFileName2}. Note that the durable object must be defined in the same script as the container.`,
|
|
190
190
|
{ telemetryMessage: "no DO defined that matches container class_name" }
|
|
191
191
|
);
|
|
192
192
|
}
|
|
@@ -989,12 +989,12 @@ function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
|
|
|
989
989
|
return result;
|
|
990
990
|
}
|
|
991
991
|
__name(parseTree, "parseTree");
|
|
992
|
-
function findNodeAtLocation(root,
|
|
992
|
+
function findNodeAtLocation(root, path3) {
|
|
993
993
|
if (!root) {
|
|
994
994
|
return void 0;
|
|
995
995
|
}
|
|
996
996
|
let node = root;
|
|
997
|
-
for (let segment of
|
|
997
|
+
for (let segment of path3) {
|
|
998
998
|
if (typeof segment === "string") {
|
|
999
999
|
if (node.type !== "object" || !Array.isArray(node.children)) {
|
|
1000
1000
|
return void 0;
|
|
@@ -1343,14 +1343,14 @@ __name(getNodeType, "getNodeType");
|
|
|
1343
1343
|
|
|
1344
1344
|
// ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js
|
|
1345
1345
|
function setProperty(text, originalPath, value, options) {
|
|
1346
|
-
const
|
|
1346
|
+
const path3 = originalPath.slice();
|
|
1347
1347
|
const errors = [];
|
|
1348
1348
|
const root = parseTree(text, errors);
|
|
1349
1349
|
let parent = void 0;
|
|
1350
1350
|
let lastSegment = void 0;
|
|
1351
|
-
while (
|
|
1352
|
-
lastSegment =
|
|
1353
|
-
parent = findNodeAtLocation(root,
|
|
1351
|
+
while (path3.length > 0) {
|
|
1352
|
+
lastSegment = path3.pop();
|
|
1353
|
+
parent = findNodeAtLocation(root, path3);
|
|
1354
1354
|
if (parent === void 0 && value !== void 0) {
|
|
1355
1355
|
if (typeof lastSegment === "string") {
|
|
1356
1356
|
value = { [lastSegment]: value };
|
|
@@ -1581,8 +1581,8 @@ function format2(documentText, range, options) {
|
|
|
1581
1581
|
return format(documentText, range, options);
|
|
1582
1582
|
}
|
|
1583
1583
|
__name(format2, "format");
|
|
1584
|
-
function modify(text,
|
|
1585
|
-
return setProperty(text,
|
|
1584
|
+
function modify(text, path3, value, options) {
|
|
1585
|
+
return setProperty(text, path3, value, options);
|
|
1586
1586
|
}
|
|
1587
1587
|
__name(modify, "modify");
|
|
1588
1588
|
function applyEdits(text, edits) {
|
|
@@ -3080,8 +3080,6 @@ function isRedirectedRawConfig(rawConfig, configPath, userConfigPath) {
|
|
|
3080
3080
|
return isRedirectedConfig({ configPath, userConfigPath });
|
|
3081
3081
|
}
|
|
3082
3082
|
__name(isRedirectedRawConfig, "isRedirectedRawConfig");
|
|
3083
|
-
|
|
3084
|
-
// src/config/index.ts
|
|
3085
3083
|
function configFormat(configPath) {
|
|
3086
3084
|
if (configPath?.endsWith("toml")) {
|
|
3087
3085
|
return "toml";
|
|
@@ -3095,7 +3093,10 @@ function configFormat(configPath) {
|
|
|
3095
3093
|
return "none";
|
|
3096
3094
|
}
|
|
3097
3095
|
__name(configFormat, "configFormat");
|
|
3098
|
-
function configFileName(configPath) {
|
|
3096
|
+
function configFileName(configPath, userConfigPath) {
|
|
3097
|
+
if (userConfigPath !== void 0) {
|
|
3098
|
+
return path.basename(userConfigPath);
|
|
3099
|
+
}
|
|
3099
3100
|
const format3 = configFormat(configPath);
|
|
3100
3101
|
switch (format3) {
|
|
3101
3102
|
case "toml":
|
|
@@ -2108,6 +2108,11 @@ 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` 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
|
+
*
|
|
2111
2116
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
|
|
2112
2117
|
*
|
|
2113
2118
|
* @inheritable
|
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';
|
|
@@ -215,12 +215,22 @@ declare function getDurableObjectClassNameToUseSQLiteMap(migrations: Config["mig
|
|
|
215
215
|
*/
|
|
216
216
|
declare function validateDurableObjectContainerApplications(config: Pick<Config, "migrations" | "exports" | "durable_objects"> & {
|
|
217
217
|
containers?: ContainerApp[];
|
|
218
|
-
}, containers?: DurableObjectContainerApp[]): void;
|
|
218
|
+
}, containers?: DurableObjectContainerApp[], configFileName?: string): void;
|
|
219
219
|
|
|
220
220
|
type ConfigBindingOptions = Pick<Config, "ai" | "browser" | "d1_databases" | "dispatch_namespaces" | "durable_objects" | "queues" | "r2_buckets" | "services" | "kv_namespaces" | "mtls_certificates" | "vectorize" | "workflows" | "vpc_services">;
|
|
221
221
|
|
|
222
222
|
declare function configFormat(configPath: string | undefined): "json" | "jsonc" | "toml" | "none";
|
|
223
|
-
|
|
223
|
+
/**
|
|
224
|
+
* Returns the user-facing configuration filename.
|
|
225
|
+
*
|
|
226
|
+
* Redirected and generated configurations should pass `userConfigPath` so
|
|
227
|
+
* diagnostics refer to the file the user can actually edit.
|
|
228
|
+
*
|
|
229
|
+
* @param configPath Resolved configuration path used internally.
|
|
230
|
+
* @param userConfigPath Original user-authored configuration path.
|
|
231
|
+
* @returns The configuration filename to display.
|
|
232
|
+
*/
|
|
233
|
+
declare function configFileName(configPath: string | undefined, userConfigPath?: string): string;
|
|
224
234
|
declare function formatConfigSnippet(snippet: RawConfig, configPath: Config["configPath"], formatted?: boolean): string;
|
|
225
235
|
type ReadConfigCommandArgs = NormalizeAndValidateConfigArgs & {
|
|
226
236
|
config?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { createRequire } from 'node:module';
|
|
|
2
2
|
export { MetricsRegistry } from './chunk-6G6FCMPX.mjs';
|
|
3
3
|
import { external_exports } from './chunk-CAPCWVOB.mjs';
|
|
4
4
|
export { formatZodError } from './chunk-CAPCWVOB.mjs';
|
|
5
|
-
import { isRedirectedRawConfig, configFileName, formatConfigSnippet, partitionExports, getDurableObjectExports, getContainerNameToClassNameMap, parsePackageJSON, readFileSync, ParseError, parseJSON, APIError, isLiveDurableObjectExport, dir, parseTOML, modify, applyEdits, format, stringify, parseJSONC } from './chunk-
|
|
6
|
-
export { APIError, ENVIRONMENT_TAG_PREFIX, INHERIT_SYMBOL, JSON_CONFIG_FORMATS, PATH_TO_DEPLOY_CONFIG, ParseError, SERVICE_TAG_PREFIX, configFileName, configFormat, experimental_readRawConfig, findWranglerConfig, formatConfigSnippet, getContainerDurableObjectClassNames, getContainerNameToClassNameMap, getDurableObjectClassNameToUseSQLiteMap, getDurableObjectContainerApps, getDurableObjectExports, getResolvedDurableObjectContainerApps, hasDurableObjectExports, indexLocation, isDurableObjectContainerApp, isLiveDurableObjectExport, isRedirectedConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, readFileSync, readFileSyncToBuffer, resolveContainerClassName, resolveWranglerConfigPath, searchLocation, validateDurableObjectContainerApplications } from './chunk-
|
|
5
|
+
import { isRedirectedRawConfig, configFileName, formatConfigSnippet, partitionExports, getDurableObjectExports, getContainerNameToClassNameMap, parsePackageJSON, readFileSync, ParseError, parseJSON, APIError, isLiveDurableObjectExport, dir, parseTOML, modify, applyEdits, format, stringify, parseJSONC } from './chunk-2HLTAS5V.mjs';
|
|
6
|
+
export { APIError, ENVIRONMENT_TAG_PREFIX, INHERIT_SYMBOL, JSON_CONFIG_FORMATS, PATH_TO_DEPLOY_CONFIG, ParseError, SERVICE_TAG_PREFIX, configFileName, configFormat, experimental_readRawConfig, findWranglerConfig, formatConfigSnippet, getContainerDurableObjectClassNames, getContainerNameToClassNameMap, getDurableObjectClassNameToUseSQLiteMap, getDurableObjectContainerApps, getDurableObjectExports, getResolvedDurableObjectContainerApps, hasDurableObjectExports, indexLocation, isDurableObjectContainerApp, isLiveDurableObjectExport, isRedirectedConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, readFileSync, readFileSyncToBuffer, resolveContainerClassName, resolveWranglerConfigPath, searchLocation, validateDurableObjectContainerApplications } from './chunk-2HLTAS5V.mjs';
|
|
7
7
|
export { NODEJS_COMPAT_DEFAULT_ON_DATE, NODEJS_COMPAT_V2_SWITCH_OVER_DATE, getTodaysCompatDate, isCompatDate, isNodejsCompatDefaultOn, resolveNodejsCompat, stripRedundantNodejsCompatFlags } from './chunk-2Q77CKVU.mjs';
|
|
8
8
|
import { getCloudflareEnv, getCloudflareContainerRegistry, getCloudflareApiBaseUrl, getTraceHeader, getCloudflaredPathFromEnv, getOutputFilePathFromEnv, getOutputFileDirectoryFromEnv, getCIOverrideName, getWranglerCacheDirFromEnv } from './chunk-FR75DWDU.mjs';
|
|
9
9
|
export { COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, getBrowserRenderingHeadfulFromEnv, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCfFetchEnabledFromEnv, getCfFetchPathFromEnv, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareContainerRegistry, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getCloudflaredPathFromEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getLocalExplorerEnabledFromEnv, getLocalObservabilityEnabledFromEnv, getNoSkillsUpdatePromptsFromEnv, getOpenNextDeployFromEnv, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getRegistryPath, getSanitizeLogs, getSubdomainMixedStateCheckDisabled, getTraceHeader, getWorkersCIBranchName, getWranglerCacheDirFromEnv, getWranglerHideBanner, getWranglerSendErrorReportsFromEnv, getWranglerSendMetricsFromEnv, isDoNotTrackEnabled } from './chunk-FR75DWDU.mjs';
|
|
@@ -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) {
|