@intentius/chant-lexicon-pulumi 0.124.104 → 0.124.105

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.
@@ -30,7 +30,10 @@
30
30
  * `replaceReasons` and a `detailedDiff` kind ending in `-replace` mark
31
31
  * `forcesReplacement`. An input that holds Pulumi's unknown sentinel is
32
32
  * `unknown: true` with no `after`: a resource that reads an output of one
33
- * being created shows its dependent input as unknown. A value that holds a
33
+ * being created shows its dependent input as unknown. A name the engine drew
34
+ * for a create or a replacement ({@link pulumiPlannedInputs}) is `unknown:
35
+ * true` too, since the apply draws another, so the document's digest is the
36
+ * same for every preview of one change (#5563). A value that holds a
34
37
  * secret is `sensitive: true` with neither side.
35
38
  *
36
39
  * ## What preview cannot list: `mayAppear`
@@ -30,7 +30,10 @@
30
30
  * `replaceReasons` and a `detailedDiff` kind ending in `-replace` mark
31
31
  * `forcesReplacement`. An input that holds Pulumi's unknown sentinel is
32
32
  * `unknown: true` with no `after`: a resource that reads an output of one
33
- * being created shows its dependent input as unknown. A value that holds a
33
+ * being created shows its dependent input as unknown. A name the engine drew
34
+ * for a create or a replacement ({@link pulumiPlannedInputs}) is `unknown:
35
+ * true` too, since the apply draws another, so the document's digest is the
36
+ * same for every preview of one change (#5563). A value that holds a
34
37
  * secret is `sensitive: true` with neither side.
35
38
  *
36
39
  * ## What preview cannot list: `mayAppear`
@@ -251,6 +254,11 @@ function attributesOf(steps, action, states) {
251
254
  return [];
252
255
  const before = isObject(states.before?.inputs) ? states.before.inputs : {};
253
256
  const after = isObject(states.after?.inputs) ? states.after.inputs : {};
257
+ // #5563: a name the engine drew for this preview is not the one the apply will draw, so the entry says it is
258
+ // known only after apply, as `pulumiPlannedInputs` leaves it out of the member's digest.
259
+ const afterStep = steps.find((s) => s.newState === states.after);
260
+ const planned = afterStep ? pulumiPlannedInputs(afterStep) : null;
261
+ const drawn = (k) => isObject(planned) && planned[k] === PULUMI_GENERATED && after[k] !== PULUMI_GENERATED;
254
262
  const forcing = new Set();
255
263
  const named = new Set();
256
264
  for (const s of steps) {
@@ -274,7 +282,7 @@ function attributesOf(steps, action, states) {
274
282
  for (const k of keys.sort()) {
275
283
  let b = before[k];
276
284
  let a = after[k];
277
- let unknown = holdsUnknown(a);
285
+ let unknown = holdsUnknown(a) || drawn(k);
278
286
  // On an update a key the diff names is listed even when both sides read the same: the provider said it changes.
279
287
  if (action === "create" && !present(a) && !unknown)
280
288
  continue;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "433f8f0ab61453c51b6bb7f21ab08a4021b5181225350a074f11b7b984407d33",
4
+ "manifest.json": "d12d40dc5210460cd0f4413881ea1dbd8c63d2e7006de04f4b0aac00de8b7037",
5
5
  "meta.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
6
6
  "types/index.d.ts": "883bcdf6a960e21360e79df010ca2087719fffec60fc39541c5ecd32d661e328",
7
7
  "rules/member-dir-absolute.ts": "4805d5e247ad544f942e1b2c36fc15a5087ca0aacaf804183a269021bd60e276",
@@ -25,5 +25,5 @@
25
25
  "skills/chant-pulumi-stack-export.md": "aadd67f5e067de61dfda43d57492bca08bd22429e4baf314d6856a810dc0e8dc",
26
26
  "skills/chant-pulumi-plunge.md": "8a7f2f9f1124744dee9645905f141057ca01f5a88e34e1bc3858d69406d7ff3a"
27
27
  },
28
- "composite": "45dddda999aca2ecb82bfda2b158b830f77b959f8ac622f517a1dd409f34d63e"
28
+ "composite": "128a92ebc1bd4d9daf384a45cba2bbd112765fc81c27bf156af4ce3abed95407"
29
29
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pulumi",
3
- "version": "0.124.104",
3
+ "version": "0.124.105",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Pulumi"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-pulumi",
3
- "version": "0.124.104",
3
+ "version": "0.124.105",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/",
@@ -53,7 +53,7 @@
53
53
  "access": "public"
54
54
  },
55
55
  "peerDependencies": {
56
- "@intentius/chant": "^0.124.112",
56
+ "@intentius/chant": "^0.124.121",
57
57
  "zod": "^4.3.6"
58
58
  },
59
59
  "description": "pulumi lexicon for chant: a Pulumi program as a workspace member, its preview in the change set and its refresh as drift records",