cdk-real-drift 0.4.33 → 0.4.34

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/cli.js CHANGED
@@ -9552,6 +9552,7 @@ function parseSchema(schemaJson) {
9552
9552
  const unorderedArrayPaths = collectUnorderedArrayPaths(definitions, schema.properties ?? {});
9553
9553
  const freeFormMapPaths = collectFreeFormMapPaths(definitions, schema.properties ?? {});
9554
9554
  const updatable = schema.handlers === void 0 ? void 0 : Object.hasOwn(schema.handlers, "update");
9555
+ const hasHandlers = schema.handlers !== void 0;
9555
9556
  const propertyTransforms = {};
9556
9557
  for (const [ptr, expr] of Object.entries(schema.propertyTransform ?? {})) if (typeof expr === "string") propertyTransforms[pointerToDotted$1(ptr)] = expr;
9557
9558
  return {
@@ -9567,7 +9568,8 @@ function parseSchema(schemaJson) {
9567
9568
  unorderedObjectArrayPaths: unorderedArrayPaths.object,
9568
9569
  freeFormMapPaths,
9569
9570
  ...Object.keys(propertyTransforms).length > 0 && { propertyTransforms },
9570
- updatable
9571
+ updatable,
9572
+ hasHandlers
9571
9573
  };
9572
9574
  }
9573
9575
 
@@ -12965,12 +12967,14 @@ function buildRevertPlan(findings, baseline, opts = {}) {
12965
12967
  });
12966
12968
  continue;
12967
12969
  }
12968
- if (schema?.updatable === false && !SDK_WRITERS[f.resourceType] && !propScoped && !nestedScoped) {
12970
+ const noUpdateHandler = schema?.updatable === false;
12971
+ const legacyNoHandlers = schema?.hasHandlers === false && !!SDK_OVERRIDES[f.resourceType];
12972
+ if ((noUpdateHandler || legacyNoHandlers) && !SDK_WRITERS[f.resourceType] && !propScoped && !nestedScoped) {
12969
12973
  notRevertable.push({
12970
12974
  displayId,
12971
12975
  resourceType: f.resourceType,
12972
12976
  path: f.path,
12973
- reason: "type has no update handler — detect/record only"
12977
+ reason: legacyNoHandlers ? "CFn-legacy type has no update handler block — detect/record only" : "type has no update handler — detect/record only"
12974
12978
  });
12975
12979
  continue;
12976
12980
  }