@intentius/chant 0.124.80 → 0.124.81

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.
@@ -31,3 +31,18 @@ export async function mapLimited(items, limit, fn) {
31
31
  await Promise.all(Array.from({ length: Math.max(1, limit) }, worker));
32
32
  return out;
33
33
  }
34
+ /** A fresh {@link SerialSection}, whose keys are its own: an op wave makes one per wave job. */
35
+ export function keyedSerial() {
36
+ const tails = new Map();
37
+ return (key, fn) => {
38
+ const before = tails.get(key) ?? Promise.resolve();
39
+ const mine = before.then(() => fn());
40
+ const tail = mine.then(() => undefined, () => undefined);
41
+ tails.set(key, tail);
42
+ void tail.then(() => {
43
+ if (tails.get(key) === tail)
44
+ tails.delete(key);
45
+ });
46
+ return mine;
47
+ };
48
+ }
@@ -19,7 +19,7 @@
19
19
  * this constant to the next patch (#4501). The check fails while a floor
20
20
  * still names this constant after its version shipped.
21
21
  */
22
- export declare const NEXT_RELEASE = "0.124.80";
22
+ export declare const NEXT_RELEASE = "0.124.81";
23
23
  /** The first chant whose terraform lexicon's `terraform-apply` reads take `dir` and `workspace`, and read an upstream with `resolveRoot`'s binary and `readEnv` (terragucci issue 1303). */
24
24
  export declare const TERRAFORM_APPLY_INSTANCE_READS_FLOOR = "0.124.80";
25
25
  /** The first chant whose terraform lexicon's `terraform-apply` takes `binary`, and `terraformApplyCapabilityWith({ resolveRoot })` gives each root its own binary (terragucci issue 1303). */
@@ -1 +1 @@
1
- {"version":3,"file":"release-floors.d.ts","sourceRoot":"","sources":["../src/release-floors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,4LAA4L;AAC5L,eAAO,MAAM,oCAAoC,aAAe,CAAC;AAEjE,8LAA8L;AAC9L,eAAO,MAAM,iCAAiC,aAAe,CAAC;AAE9D,0NAA0N;AAC1N,eAAO,MAAM,sBAAsB,aAAe,CAAC;AAEn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CAAC;AAEvD,6LAA6L;AAC7L,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAEnD,kHAAkH;AAClH,eAAO,MAAM,oBAAoB,aAAa,CAAC;AAE/C,4HAA4H;AAC5H,eAAO,MAAM,6BAA6B,aAAa,CAAC"}
@@ -19,15 +19,15 @@
19
19
  * this constant to the next patch (#4501). The check fails while a floor
20
20
  * still names this constant after its version shipped.
21
21
  */
22
- export const NEXT_RELEASE = "0.124.80";
22
+ export const NEXT_RELEASE = "0.124.81";
23
23
  /** The first chant whose terraform lexicon's `terraform-apply` reads take `dir` and `workspace`, and read an upstream with `resolveRoot`'s binary and `readEnv` (terragucci issue 1303). */
24
- export const TERRAFORM_APPLY_INSTANCE_READS_FLOOR = NEXT_RELEASE;
24
+ export const TERRAFORM_APPLY_INSTANCE_READS_FLOOR = "0.124.80";
25
25
  /** The first chant whose terraform lexicon's `terraform-apply` takes `binary`, and `terraformApplyCapabilityWith({ resolveRoot })` gives each root its own binary (terragucci issue 1303). */
26
- export const TERRAFORM_APPLY_ROOT_BINARY_FLOOR = NEXT_RELEASE;
26
+ export const TERRAFORM_APPLY_ROOT_BINARY_FLOOR = "0.124.80";
27
27
  /** The first chant whose op wave hands a step's capability the wave's `cwd` (`DeployContext.cwd`), where `terraform-apply` looks for `chant.config.*` and `terragrunt-apply` runs when the step names neither (#4854). */
28
- export const OP_WAVE_STEP_CWD_FLOOR = NEXT_RELEASE;
28
+ export const OP_WAVE_STEP_CWD_FLOOR = "0.124.80";
29
29
  /** The first chant whose terraform lexicon's `terraform-apply` takes `workspace`: init in `default`, then `workspace select -or-create=true`, and plan, apply and output in it (#4854). */
30
- export const TERRAFORM_APPLY_WORKSPACE_FLOOR = NEXT_RELEASE;
30
+ export const TERRAFORM_APPLY_WORKSPACE_FLOOR = "0.124.80";
31
31
  /** The first chant whose change-set member can carry `outputs`, the outputs its plan changes, and counts a member with any as a change (#4849). */
32
32
  export const CHANGE_SET_OUTPUTS_FLOOR = "0.124.79";
33
33
  /** The first chant whose terraform lexicon's `terragruntApplyCapability` takes `resolveUnit` and plans a wave as one `run --all` per pair of pinned releases (#4849). */
@@ -37,11 +37,11 @@ export const YODEL_NEW_ENVS_FLOOR = "0.124.78";
37
37
  /** The first chant whose sql lexicon's `yodelRefusalReply` reads yodel rebase's conflict refusal as yodel prints it, `<a> and the migrations after <p> up to <b>` or `<a> and the chain ending at <b>` (#4821). */
38
38
  export const YODEL_CONFLICT_REPLY_FLOOR = "0.124.78";
39
39
  /** The first chant with `@intentius/chant/ci-note-commands`, `chant components pr-notes` and the GitLab pipeline's `note-commands` job (`--note-commands`), and whose forge reads answer `branchRuns` and `pullRequestsUpdated` (#4785). */
40
- export const NOTE_COMMANDS_FLOOR = NEXT_RELEASE;
40
+ export const NOTE_COMMANDS_FLOOR = "0.124.80";
41
41
  /** The first chant whose forge reads answer `compare`, `job` and, on GitLab, `artifactFile`, and whose `RunJob` names its `run`, `ref`, `tag` and `url` (#4862). */
42
- export const PR_FORGE_COMPARE_READS_FLOOR = NEXT_RELEASE;
42
+ export const PR_FORGE_COMPARE_READS_FLOOR = "0.124.80";
43
43
  /** The first chant whose forge reads answer `headRuns`, `run`, `runJobs` and `artifacts`: a head's workflow runs (GitLab's pipelines), a run, its jobs and its artifacts by name (#4846). */
44
- export const PR_FORGE_RUN_READS_FLOOR = NEXT_RELEASE;
44
+ export const PR_FORGE_RUN_READS_FLOOR = "0.124.80";
45
45
  /** The first chant whose `@intentius/chant/pr-forge-reads` exports the forge reads beside the clients (#4809). */
46
46
  export const PR_FORGE_READS_FLOOR = "0.124.78";
47
47
  /** The first chant whose GitLab `scheduledRuns` takes `schedule`, the selector of an Op's `gitlab.scheduleRule` (#4813). */