@notation/cli 0.13.0 → 0.14.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -0
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -140,7 +140,9 @@ import {
140
140
  var decisionSymbols = {
141
141
  create: "+",
142
142
  update: "~",
143
+ replace: "-/+",
143
144
  "drift-update": "~",
145
+ "drift-replace": "-/+",
144
146
  "drift-recreate": "\xB1",
145
147
  "delete-orphan": "-",
146
148
  noop: " "
@@ -179,11 +181,17 @@ function printPlanSummary(result, logger) {
179
181
  logger.info(
180
182
  `${decisionSymbols[node.decision]} ${node.decision} ${node.type} ${node.id}`
181
183
  );
184
+ for (const field of node.replaceFields ?? []) {
185
+ logger.info(
186
+ field.known ? ` ${field.name} forces replacement` : ` ${field.name} unknown, may force replacement`
187
+ );
188
+ }
182
189
  }
183
190
  const count = (decision) => result.nodes.filter((node) => node.decision === decision).length;
184
191
  const summary = [
185
192
  `${count("create")} to create`,
186
193
  `${count("update") + count("drift-update")} to update`,
194
+ `${count("replace") + count("drift-replace")} to replace`,
187
195
  `${count("drift-recreate")} to recreate`,
188
196
  `${count("delete-orphan")} to delete`,
189
197
  `${count("noop")} unchanged`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@notation/cli",
4
- "version": "0.13.0",
4
+ "version": "0.14.0",
5
5
  "files": [
6
6
  "dist",
7
7
  "templates"
@@ -14,9 +14,9 @@
14
14
  "commander": "^13.1.0",
15
15
  "esbuild": "^0.25.0",
16
16
  "glob": "^13.0.6",
17
- "@notation/dashboard": "0.13.0",
18
- "@notation/core": "0.13.0",
19
- "@notation/esbuild-plugins": "0.13.0"
17
+ "@notation/core": "0.14.0",
18
+ "@notation/dashboard": "0.14.0",
19
+ "@notation/esbuild-plugins": "0.14.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/which-pm-runs": "^1.0.2"