@terraforge/core 0.0.33 → 0.0.36
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/index.mjs +8 -15
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -915,16 +915,12 @@ const deployApp = async (app, opt) => {
|
|
|
915
915
|
});
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
for (const [urn, stackState] of entries(appState.stacks)) {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
if (nodeState.tag === "resource") await queue(() => deleteResource(appState.idempotentToken, urn$1, nodeState, opt));
|
|
925
|
-
delete stackState.nodes[urn$1];
|
|
926
|
-
});
|
|
927
|
-
}
|
|
918
|
+
for (const [urn, stackState] of entries(appState.stacks)) if (!app.stacks.find((stack) => {
|
|
919
|
+
return stack.urn === urn;
|
|
920
|
+
})) for (const [urn$1, nodeState] of entries(stackState.nodes)) graph.add(urn$1, dependentsOn(allNodes, urn$1), async () => {
|
|
921
|
+
if (nodeState.tag === "resource") await queue(() => deleteResource(appState.idempotentToken, urn$1, nodeState, opt));
|
|
922
|
+
delete stackState.nodes[urn$1];
|
|
923
|
+
});
|
|
928
924
|
for (const stack of stacks) {
|
|
929
925
|
const stackState = stackStates.get(stack.urn);
|
|
930
926
|
for (const [urn, nodeState] of entries(stackState.nodes)) if (!stack.nodes.find((r) => getMeta(r).urn === urn)) graph.add(urn, dependentsOn(allNodes, urn), async () => {
|
|
@@ -1119,9 +1115,6 @@ const hydrate = async (app, opt) => {
|
|
|
1119
1115
|
|
|
1120
1116
|
//#endregion
|
|
1121
1117
|
//#region src/workspace/procedure/refresh.ts
|
|
1122
|
-
const copy = (value) => {
|
|
1123
|
-
return JSON.parse(JSON.stringify(value));
|
|
1124
|
-
};
|
|
1125
1118
|
const createDeleteOperation = (urn, stackState, onCommit) => {
|
|
1126
1119
|
return {
|
|
1127
1120
|
urn,
|
|
@@ -1136,8 +1129,8 @@ const createUpdateOperation = (urn, state, before, after, nodeState, onCommit) =
|
|
|
1136
1129
|
return {
|
|
1137
1130
|
urn,
|
|
1138
1131
|
operation: "update",
|
|
1139
|
-
before:
|
|
1140
|
-
after:
|
|
1132
|
+
before: structuredClone(before),
|
|
1133
|
+
after: structuredClone(after),
|
|
1141
1134
|
commit() {
|
|
1142
1135
|
nodeState.output = state;
|
|
1143
1136
|
nodeState.drifted = true;
|