@go-to-k/cdkd 0.98.0 → 0.98.1

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
@@ -904,6 +904,23 @@ function createListCommand() {
904
904
  */
905
905
  /** Schema version for the exports index file. Separate from state.json's version. */
906
906
  const EXPORT_INDEX_VERSION = 1;
907
+ /**
908
+ * Shallow-deep equality on the two `name → ExportIndexEntry` maps used
909
+ * to detect no-op writes in `applyStackUpdate`. Values are compared via
910
+ * JSON.stringify (Output values are always JSON-serializable).
911
+ */
912
+ function mapsEqual(a, b) {
913
+ if (a.size !== b.size) return false;
914
+ for (const [name, entry] of a) {
915
+ const other = b.get(name);
916
+ if (!other) return false;
917
+ if (other.producerStack !== entry.producerStack || other.producerRegion !== entry.producerRegion) return false;
918
+ if (other.value !== entry.value) {
919
+ if (JSON.stringify(other.value) !== JSON.stringify(entry.value)) return false;
920
+ }
921
+ }
922
+ return true;
923
+ }
907
924
  const DEFAULT_OPTIONS = {
908
925
  maxWriteRetries: 5,
909
926
  initialBackoffMs: 100,
@@ -1137,6 +1154,7 @@ var ExportIndexStore = class {
1137
1154
  producerStack: stackName,
1138
1155
  producerRegion
1139
1156
  });
1157
+ if (mapsEqual(this.loadState.entries, next)) return;
1140
1158
  await this.persist(next);
1141
1159
  }
1142
1160
  async applyPatch(exportName, entry) {
@@ -42225,7 +42243,7 @@ function reorderArgs(argv) {
42225
42243
  */
42226
42244
  async function main() {
42227
42245
  const program = new Command();
42228
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.97.0");
42246
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.98.0");
42229
42247
  program.addCommand(createBootstrapCommand());
42230
42248
  program.addCommand(createSynthCommand());
42231
42249
  program.addCommand(createListCommand());