@go-to-k/cdkd 0.266.0 → 0.267.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.
@@ -1253,29 +1253,37 @@ function collectStackMessages(assemblyDir, artifact) {
1253
1253
  return messages;
1254
1254
  }
1255
1255
  /**
1256
- * Print annotation messages for the given stacks and fail on errors
1257
- * (CDK CLI parity, issue #1228): warnings and infos are displayed,
1258
- * error annotations abort with the CLI-format `[Error at /path] message`
1259
- * lines + `Found errors`.
1256
+ * Print annotation messages for the given stacks and fail per the CDK
1257
+ * CLI's rules (issues #1228 / #1230): every message is displayed at its
1258
+ * level (`[Error|Warning|Info at /path] message`); by default any error
1259
+ * annotation aborts with `Found errors`, `--strict` additionally aborts
1260
+ * on warnings with `Found warnings (--strict mode)`, and
1261
+ * `--ignore-errors` never aborts. Errors win over strict warnings when
1262
+ * both exist (CDK CLI parity).
1260
1263
  *
1261
1264
  * Call AFTER stack selection so an error in a non-selected stack does not
1262
1265
  * block the selected ones (same selection-awareness as the #1150 deferred
1263
1266
  * macro expansion).
1264
1267
  */
1265
- function processStackMessages(stacks, logger) {
1266
- const errorLines = [];
1268
+ function processStackMessages(stacks, logger, options = {}) {
1269
+ let hasErrors = false;
1270
+ let hasWarnings = false;
1267
1271
  for (const stack of stacks) for (const msg of stack.messages ?? []) switch (msg.level) {
1268
1272
  case "warning":
1273
+ hasWarnings = true;
1269
1274
  logger.warn(`[Warning at ${msg.path}] ${msg.message}`);
1270
1275
  break;
1271
1276
  case "info":
1272
1277
  logger.info(`[Info at ${msg.path}] ${msg.message}`);
1273
1278
  break;
1274
1279
  case "error":
1275
- errorLines.push(`[Error at ${msg.path}] ${msg.message}`);
1280
+ hasErrors = true;
1281
+ logger.error(`[Error at ${msg.path}] ${msg.message}`);
1276
1282
  break;
1277
1283
  }
1278
- if (errorLines.length > 0) throw new SynthesisError(`${errorLines.join("\n")}\nFound errors`);
1284
+ const failAt = options.strict ? "warn" : options.ignoreErrors ? "none" : "error";
1285
+ if (hasErrors && failAt !== "none") throw new SynthesisError("Found errors");
1286
+ if (hasWarnings && failAt === "warn") throw new SynthesisError("Found warnings (--strict mode)");
1279
1287
  }
1280
1288
 
1281
1289
  //#endregion
@@ -11346,7 +11354,7 @@ var CloudControlProvider = class {
11346
11354
  this.logger.debug(`Deleting resource ${logicalId} (${resourceType}), physical ID: ${physicalId}`);
11347
11355
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
11348
11356
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
11349
- const { ASGProvider } = await import("./asg-provider-BXCs43-R.js").then((n) => n.n);
11357
+ const { ASGProvider } = await import("./asg-provider-CBMy7ibk.js").then((n) => n.n);
11350
11358
  await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
11351
11359
  return;
11352
11360
  }
@@ -17229,7 +17237,7 @@ const FLUSH_INTERVAL_MS = 2e3;
17229
17237
  const FLUSH_EVENT_THRESHOLD = 50;
17230
17238
  /** Build-time cdkd version, with a dev fallback for non-built contexts. */
17231
17239
  function getCdkdVersion() {
17232
- return "0.266.0";
17240
+ return "0.267.0";
17233
17241
  }
17234
17242
  /**
17235
17243
  * Generate a time-sortable unique run id, e.g.
@@ -19217,4 +19225,4 @@ var DeployEngine = class {
19217
19225
 
19218
19226
  //#endregion
19219
19227
  export { createAssetRedirectResolver as $, ProvisioningError as $t, CloudControlProvider as A, MIGRATE_TMP_PREFIX as At, assertRegionMatch as B, resetAwsClients as Bt, green as C, resolveSkipPrefix as Ct, collectInlinePolicyNamesManagedBySiblings as D, warnDeprecatedNoPrefixCliFlag as Dt, IAMRoleProvider as E, resolveUseCdkBootstrapAssets as Et, cfnRefValueFromPhysicalId as F, processStackMessages as Ft, LockManager as G, DependencyError as Gt, DiffCalculator as H, AssetError as Ht, refStateLookupFromResource as I, clearBucketRegionCache as It, shouldRetainResource as J, LocalStartServiceError as Jt, S3StateBackend as K, LocalInvokeBuildError as Kt, WAFv2WebACLProvider as L, resolveBucketRegion as Lt, disableInstanceApiTermination as M, uploadCfnTemplate as Mt, isTerminationProtectionPropagationError as N, expectedOwnerParam as Nt, ProviderRegistry as O, CFN_TEMPLATE_BODY_LIMIT as Ot, IntrinsicFunctionResolver as P, AssemblyReader as Pt, buildAssetRedirectMap as Q, PartialFailureError as Qt, normalizeAwsTagsToCfn as R, AwsClients as Rt, gray as S, resolveCaptureObservedState as St, yellow as T, resolveStateBucketWithDefaultAndSource as Tt, DagBuilder as U, CdkdError as Ut, applyRoleArnIfSet as V, setAwsClients as Vt, TemplateParser as W, ConfigError as Wt, stringifyValue as X, MissingCdkCliError as Xt, AssetPublisher as Y, LockError as Yt, WorkGraph as Z, NestedStackChildDirectDestroyError as Zt, isStatefulRecreateTargetSync as _, synthesisStatusMessage as _t, DeploymentEventsStore as a, SynthesisError as an, getBootstrapMarkerKey as at, bold as b, resolveApp as bt, replayFailedOperations as c, normalizeAwsError as cn, validateContainerRepoName as ct, withRetry as d, getDockerCmd as dt, ResourceTimeoutError as en, loadPublishableAssetManifest as et, isRetryableTransientError as f, runDockerForeground as ft, MULTI_REGION_RECREATE_BLOCKED_TYPES as g, Synthesizer as gt, extractDeploymentEventError as h, getDockerImageBySourceHash as ht, DeploymentEventsReader as i, StateError as in, ensureAssetStorage as it, slowCcOperationTimeoutMs as j, findLargeInlineResources as jt, findActionableSilentDrops as k, CFN_TEMPLATE_URL_LIMIT as kt, replayRollback as l, withErrorHandling as ln, buildDockerImage as lt, computeImplicitDeleteEdges as m, AssetManifestLoader as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, StackHasActiveImportsError as nn, AssetModeResolver as nt, planFailedOps as o, formatError as on, parseBootstrapMarker as ot, IMPLICIT_DELETE_DEPENDENCIES as p, runDockerStreaming as pt, rebuildClientForBucketRegion as q, LocalMigrateError as qt, DeployEngine as r, StackTerminationProtectionError as rn, BOOTSTRAP_MARKER_PREFIX as rt, planRollback as s, isCdkdError as sn, validateAssetBucketName as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, ResourceUpdateNotSupportedError as tn, rewriteTemplateAssetReferences as tt, withResourceDeadline as u, __exportAll as un, formatDockerLoginError as ut, renderStatefulReason as v, getDefaultStateBucketName as vt, red as w, resolveStateBucketWithDefault as wt, cyan as x, resolveAutoAssetStorage as xt, formatResourceLine as y, getLegacyStateBucketName as yt, resolveExplicitPhysicalId as z, getAwsClients as zt };
19220
- //# sourceMappingURL=deploy-engine-Dirmvxw3.js.map
19228
+ //# sourceMappingURL=deploy-engine-BXgD8s_k.js.map