@go-to-k/cdkd 0.284.30 → 0.284.31

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.
@@ -6798,6 +6798,11 @@ async function rebuildClientForBucketRegion(client, bucket, opts = {}) {
6798
6798
  * deep — split off into a constant so call sites can clearly distinguish
6799
6799
  * "two-segment legacy key" from "three-segment new key".
6800
6800
  */
6801
+ /**
6802
+ * `{stack}/state.json` — one segment plus the file, i.e. the v1 region-less
6803
+ * layout. Exported because `state-file-keys.ts` classifies the same layouts
6804
+ * from the other side and the two must not drift (issue #2001).
6805
+ */
6801
6806
  const LEGACY_KEY_DEPTH = 2;
6802
6807
  /** The `version: 2` region-prefixed key. */
6803
6808
  const NEW_KEY_DEPTH = 3;
@@ -7164,7 +7169,7 @@ var S3StateBackend = class {
7164
7169
  }
7165
7170
  continue;
7166
7171
  }
7167
- if (segments.length === LEGACY_KEY_DEPTH) {
7172
+ if (segments.length === 2) {
7168
7173
  const [stackName] = segments;
7169
7174
  if (!stackName) continue;
7170
7175
  const region = await this.readLegacyRegion(stackName);
@@ -13398,9 +13403,13 @@ const dynamicReferenceRetryDelays = {};
13398
13403
  * a hostname that does not exist and the SDK fails loudly.
13399
13404
  *
13400
13405
  * Note the sibling pattern in `src/cli/commands/state-file-keys.ts` is NOT
13401
- * reusable here: it requires `^[a-z]{2}(-[a-z]+)+-\d+$`, which rejects
13402
- * `eusc-de-east-1` (the European Sovereign Cloud partition's four-letter
13403
- * prefix).
13406
+ * reusable here, and the reason is structural rather than a gap in its
13407
+ * coverage: it is SHAPE-based because its job is the opposite one telling a
13408
+ * region segment apart from a stack name sitting in the same key position —
13409
+ * so it must enumerate the shape this predicate refuses to. (Its prefix was
13410
+ * exactly `^[a-z]{2}` until issue #2001, which is what made it reject the
13411
+ * European Sovereign Cloud partition's four-letter `eusc-de-east-1`; it now
13412
+ * takes `{2,4}`, and is still the wrong tool here.)
13404
13413
  *
13405
13414
  * Callers must {@link canonicalizeRegion} first — `US-EAST-1` is a documented
13406
13415
  * input and is lowercase-canonical, not invalid.
@@ -16879,7 +16888,7 @@ var CloudControlProvider = class {
16879
16888
  if (context?.finalSnapshotIdentifier !== void 0) throw new ProvisioningError(`${logicalId} (${resourceType}) requires a final snapshot (DeletionPolicy: Snapshot), but the Cloud Control API delete route has no final-snapshot parameter. Re-run with --skip-final-snapshot after snapshotting manually, or retain the resource.`, resourceType, logicalId, physicalId);
16880
16889
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
16881
16890
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
16882
- const { ASGProvider } = await import("./asg-provider-qMgJEhCM.js").then((n) => n.n);
16891
+ const { ASGProvider } = await import("./asg-provider-DJvcY8lj.js").then((n) => n.n);
16883
16892
  return await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
16884
16893
  }
16885
16894
  const isProtectedEc2Instance = context?.removeProtection === true && resourceType === "AWS::EC2::Instance";
@@ -25792,7 +25801,7 @@ const FLUSH_INTERVAL_MS = 2e3;
25792
25801
  const FLUSH_EVENT_THRESHOLD = 50;
25793
25802
  /** Build-time cdkd version, with a dev fallback for non-built contexts. */
25794
25803
  function getCdkdVersion() {
25795
- return "0.284.30";
25804
+ return "0.284.31";
25796
25805
  }
25797
25806
  /**
25798
25807
  * Generate a time-sortable unique run id, e.g.
@@ -28413,4 +28422,4 @@ var DeployEngine = class {
28413
28422
 
28414
28423
  //#endregion
28415
28424
  export { endCommandInterruptScope as $, DependencyError as $n, createAssetRedirectResolver as $t, MULTI_REGION_RECREATE_BLOCKED_TYPES as A, resolveUseCdkBootstrapAssets as An, maskSecretsInText as At, collectDeclaredOutputNames as B, canonicalizeRegion as Bn, INTRINSIC_KEYS as Bt, ccRoutedFinalSnapshotError as C, getLegacyStateBucketName as Cn, __exportAll as Cr, STATE_SOURCED_READBACK_RULES as Ct, unsupportedFinalSnapshotError as D, resolveSkipPrefix as Dn, errorCauseChain as Dt, refusesFinalSnapshot as E, resolveCaptureObservedState as En, dynamicReferenceTokens as Et, cyan as F, MIGRATE_TMP_PREFIX as Fn, s3BucketDualStackDomainName as Ft, stateKeySecretExposure as G, resolveBucketRegion as Gn, LockManager as Gt, exportAliasCollisionScrubWarning as H, AssemblyReader as Hn, withRetry as Ht, gray as I, findLargeInlineResources as In, s3BucketRegionalDomainName as It, clearOnUpdateRemoval as J, resetAwsClients as Jn, shouldRetainResource as Jt, IAMRoleProvider as K, AwsClients as Kn, S3StateBackend as Kt, green as L, uploadCfnTemplate as Ln, s3BucketWebsiteUrl as Lt, renderStatefulReason as M, warnDeprecatedNoPrefixCliFlag as Mn, scrubResourceRecord as Mt, formatResourceLine as N, CFN_TEMPLATE_BODY_LIMIT as Nn, s3BucketArn as Nt, makeCanonicalizePropertiesFn as O, resolveStateBucketWithDefault as On, isSingleDynamicReferenceToken as Ot, bold as P, CFN_TEMPLATE_URL_LIMIT as Pn, s3BucketDomainName as Pt, beginCommandInterruptScope as Q, ConfigError as Qn, buildAssetRedirectMap as Qt, red as R, expectedOwnerParam as Rn, applyRoleArnIfSet as Rt, buildFinalSnapshotIdentifier as S, getDefaultStateBucketName as Sn, markNonRetryable as Sr, STATE_SOURCED_CROSS_GENERATION_RULES as St, isFinalSnapshotError as T, resolveAutoAssetStorage as Tn, createSecretMasker as Tt, isExportAliasCollision as U, processStackMessages as Un, DagBuilder as Ut, collectPublishedOutputNames as V, derivePartitionAndUrlSuffix as Vn, describeTypeWithThrottleRetry as Vt, secretBearingStateKeyWarning as W, clearBucketRegionCache as Wn, TemplateParser as Wt, findActionableSilentDrops as X, AssetError as Xn, stringifyValue as Xt, ProviderRegistry as Y, setAwsClients as Yn, AssetPublisher as Yt, findSilentDropProperties as Z, CdkdError as Zn, WorkGraph as Zt, maskingRetryLogger as _, runDockerStreaming as _n, normalizeAwsError as _r, readConfigString as _t, DeploymentEventsStore as a, BOOTSTRAP_MARKER_PREFIX as an, MissingCdkCliError as ar, isTerminationProtectionPropagationError as at, ATOMIC_FINAL_SNAPSHOT_TYPES as b, Synthesizer as bn, isRetryableTransientError as br, requireConfigObject as bt, planRollback as c, parseBootstrapMarker as cn, ProvisioningError as cr, getAccountInfo as ct, replayRollback as d, validateContainerRepoName as dn, StackHasActiveImportsError as dr, normalizeAwsTagsToCfn as dt, loadPublishableAssetManifest as en, DeployCancelledError as er, isInterruptedWaitError as et, updatePartialMessage as f, buildDenyExternalAccessPolicy as fn, StackTerminationProtectionError as fr, resolveExplicitPhysicalId as ft, withResourceDeadline as g, runDockerForeground as gn, isCdkdError as gr, configStringRefusal as gt, deleteSkipReason as h, getDockerCmd as hn, formatError as hr, configBooleanRefusal as ht, DeploymentEventsReader as i, AssetModeResolver as in, LockError as ir, disableInstanceApiTermination as it, isStatefulRecreateTargetSync as j, stateBucketExistenceConfirmed as jn, redactSecretsForState as jt, extractDeploymentEventError as k, resolveStateBucketWithDefaultAndSource as kn, maskSecretsInError as kt, producerRegionsFromState as l, readBootstrapMarkerBody as ln, ResourceTimeoutError as lr, refStateLookupFromResource as lt, UNSPECIFIED_SKIP_REASON as m, formatDockerLoginError as mn, SynthesisError as mr, coerceCfnBoolean as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, escapeRegExp$1 as nn, LocalMigrateError as nr, CloudControlProvider as nt, classifyReplaySecretRegion as o, ensureAssetStorage as on, NestedStackChildDirectDestroyError as or, IntrinsicFunctionResolver as ot, updatePartialReason as p, buildDockerImage as pn, StateError as pr, assertRegionMatch as pt, collectInlinePolicyNamesManagedBySiblings as q, getAwsClients as qn, rebuildClientForBucketRegion as qt, DeployEngine as r, stripControlChars as rn, LocalStartServiceError as rr, slowCcOperationTimeoutMs as rt, planFailedOps as s, getBootstrapMarkerKey as sn, PartialFailureError as sr, cfnRefValueFromPhysicalId as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, rewriteTemplateAssetReferences as tn, LocalInvokeBuildError as tr, startInterruptWatch as tt, replayFailedOperations as u, validateAssetBucketName as un, ResourceUpdateNotSupportedError as ur, WAFv2WebACLProvider as ut, IMPLICIT_DELETE_DEPENDENCIES as v, AssetManifestLoader as vn, withErrorHandling as vr, replayWarn as vt, createPreDeleteFinalSnapshot as w, resolveApp as wn, TEMPLATE_SOURCED_RULES as wt, PRE_DELETE_SNAPSHOT_TYPES as x, synthesisStatusMessage as xn, isThrottlingError as xr, requireConfigString as xt, computeImplicitDeleteEdges as y, getDockerImageBySourceHash as yn, isMarkedNonRetryable as yr, requireConfigArray as yt, yellow as z, PARTITION_TABLE as zn, DiffCalculator as zt };
28416
- //# sourceMappingURL=deploy-engine-BFgi0RJr.js.map
28425
+ //# sourceMappingURL=deploy-engine-DYdEWX-s.js.map