@intentius/chant 0.124.67 → 0.124.69
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/bin/chant +96 -39
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/handlers/run.js +5 -2
- package/dist/components/component.d.ts +20 -0
- package/dist/components/component.d.ts.map +1 -1
- package/dist/components/component.schema.json +18 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/unchanged-inputs.d.ts +52 -2
- package/dist/components/unchanged-inputs.d.ts.map +1 -1
- package/dist/components/unchanged-inputs.js +114 -7
- package/dist/lifecycle/release-ledger.d.ts +12 -0
- package/dist/lifecycle/release-ledger.d.ts.map +1 -1
- package/dist/release-floors.d.ts +1 -1
- package/dist/release-floors.js +1 -1
- package/dist/wave-runtime.mjs +3 -3
- package/package.json +1 -1
- package/src/cli/bin-launcher.test.ts +201 -0
- package/src/cli/handlers/run-unchanged.e2e.test.ts +60 -0
- package/src/cli/handlers/run.ts +4 -2
- package/src/components/component.schema.json +18 -0
- package/src/components/component.ts +21 -0
- package/src/components/index.ts +1 -0
- package/src/components/unchanged-inputs.test.ts +149 -1
- package/src/components/unchanged-inputs.ts +132 -6
- package/src/lifecycle/release-ledger.ts +9 -0
- package/src/release-floors.ts +1 -1
package/bin/chant
CHANGED
|
@@ -1,43 +1,100 @@
|
|
|
1
|
-
#!/bin/
|
|
2
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// The `chant` command. A node script rather than a shell script so that npm's
|
|
3
|
+
// Windows shim, which runs a bin through the interpreter its shebang names,
|
|
4
|
+
// can start it: Windows has no /bin/sh (#4734). ESM, as the package is
|
|
5
|
+
// "type": "module".
|
|
6
|
+
import { spawn } from "node:child_process";
|
|
7
|
+
import { existsSync, realpathSync } from "node:fs";
|
|
8
|
+
import { constants } from "node:os";
|
|
9
|
+
import { dirname, resolve } from "node:path";
|
|
10
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
3
11
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
SCRIPT_DIR="$(cd "$(dirname "$SELF")" && pwd)"
|
|
12
|
-
MAIN_TS="$SCRIPT_DIR/../src/cli/main.ts"
|
|
13
|
-
MAIN_JS="$SCRIPT_DIR/../dist/cli/main.js"
|
|
12
|
+
// The real location of this script, with any symlink (npm's .bin link, a
|
|
13
|
+
// global install, a symlinked checkout) resolved.
|
|
14
|
+
const binDir = dirname(realpathSync(fileURLToPath(import.meta.url)));
|
|
15
|
+
const pkgDir = resolve(binDir, "..");
|
|
16
|
+
const mainJs = resolve(pkgDir, "dist", "cli", "main.js");
|
|
17
|
+
const mainTs = resolve(pkgDir, "src", "cli", "main.ts");
|
|
18
|
+
const args = process.argv.slice(2);
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
// An installed package runs the compiled CLI with plain node (#3878): no
|
|
21
|
+
// loader, so nothing of chant's own is transpiled on the way in. tsx loads
|
|
22
|
+
// later, only when the command imports TypeScript (a chant.config.ts, project
|
|
23
|
+
// source, a lexicon). A source checkout (tsconfig.build.json is not published)
|
|
24
|
+
// always runs src/, so a dist/ left over from an earlier build never goes
|
|
25
|
+
// stale under it.
|
|
26
|
+
//
|
|
27
|
+
// The CLI runs in this process, as `exec node main.js` ran it in the one the
|
|
28
|
+
// shell script became. main.js runs only when it is the entry point
|
|
29
|
+
// (process.argv[1], see isEntryPoint), and anything that starts chant again
|
|
30
|
+
// reads process.argv[1] and process.execArgv, so argv[1] names main.js.
|
|
31
|
+
if (existsSync(mainJs) && !existsSync(resolve(pkgDir, "tsconfig.build.json"))) {
|
|
32
|
+
process.argv[1] = mainJs;
|
|
33
|
+
await import(pathToFileURL(mainJs).href);
|
|
34
|
+
} else {
|
|
35
|
+
runFromSource();
|
|
36
|
+
}
|
|
24
37
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
/**
|
|
39
|
+
* From source, every chant package resolves through its `development` export
|
|
40
|
+
* condition to src/*.ts (#3981). A lexicon's `default` is the dist/*.js it
|
|
41
|
+
* publishes, which a checkout may not have built or may have built from older
|
|
42
|
+
* source. Child processes that reuse process.execArgv inherit the flag.
|
|
43
|
+
*
|
|
44
|
+
* Node takes the condition and tsx's loader only on its command line, so this
|
|
45
|
+
* starts a second node. tsx is our own dependency, so its loader is passed
|
|
46
|
+
* straight to node rather than going through `npx tsx`, which resolves a bin
|
|
47
|
+
* and then spawns another node (#2481). Nested install first, then hoisted;
|
|
48
|
+
* npx stays as the fallback for any layout neither guess covers.
|
|
49
|
+
*/
|
|
50
|
+
function runFromSource() {
|
|
51
|
+
const loader = [
|
|
52
|
+
resolve(binDir, "..", "node_modules", "tsx", "dist", "loader.mjs"),
|
|
53
|
+
resolve(binDir, "..", "..", "..", "tsx", "dist", "loader.mjs"),
|
|
54
|
+
].find((candidate) => existsSync(candidate));
|
|
42
55
|
|
|
43
|
-
|
|
56
|
+
if (loader) {
|
|
57
|
+
relay(process.execPath, ["--conditions=development", "--import", pathToFileURL(loader).href, mainTs, ...args]);
|
|
58
|
+
} else if (process.platform === "win32") {
|
|
59
|
+
// npx is npx.cmd on Windows, which node starts only through a shell.
|
|
60
|
+
const quote = (arg) => (/^[\w./:=@\\-]+$/.test(arg) ? arg : `"${arg.replace(/"/g, '""')}"`);
|
|
61
|
+
relay("npx", ["tsx", "--conditions=development", mainTs, ...args].map(quote), { shell: true });
|
|
62
|
+
} else {
|
|
63
|
+
relay("npx", ["tsx", "--conditions=development", mainTs, ...args]);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Run a command with this process's stdio, pass it the signals this process
|
|
69
|
+
* gets, and end this process the way the command ended: its exit code, or
|
|
70
|
+
* the signal that killed it.
|
|
71
|
+
*/
|
|
72
|
+
function relay(command, commandArgs, options = {}) {
|
|
73
|
+
const child = spawn(command, commandArgs, { stdio: "inherit", ...options });
|
|
74
|
+
// A signal sent to this process by pid reaches the CLI too. A terminal's
|
|
75
|
+
// Ctrl-C goes to both processes, so the CLI can get its SIGINT twice;
|
|
76
|
+
// chant's SIGINT handlers stop on the first and ignore a repeat. SIGUSR1
|
|
77
|
+
// starts node's inspector and is left alone, and a resize (SIGWINCH)
|
|
78
|
+
// reaches the CLI from the terminal itself.
|
|
79
|
+
const signals = process.platform === "win32" ? ["SIGINT", "SIGTERM"] : ["SIGINT", "SIGTERM", "SIGHUP", "SIGQUIT"];
|
|
80
|
+
const forward = (signal) => {
|
|
81
|
+
if (child.exitCode === null && child.signalCode === null) child.kill(signal);
|
|
82
|
+
};
|
|
83
|
+
for (const signal of signals) process.on(signal, forward);
|
|
84
|
+
|
|
85
|
+
child.on("error", (err) => {
|
|
86
|
+
console.error(`chant: could not start ${command}: ${err.message}`);
|
|
87
|
+
process.exit(127);
|
|
88
|
+
});
|
|
89
|
+
child.on("exit", (code, signal) => {
|
|
90
|
+
for (const s of signals) process.off(s, forward);
|
|
91
|
+
if (signal) {
|
|
92
|
+
process.kill(process.pid, signal);
|
|
93
|
+
// If the signal does not end this process (Windows has no signals to
|
|
94
|
+
// raise), exit with the code a shell gives a process it ended.
|
|
95
|
+
process.exit(128 + (constants.signals[signal] ?? 1));
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
process.exit(code ?? 1);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d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|
@@ -1026,7 +1026,7 @@ export async function recordSkips(skipped, releaseDigest, run, cwd) {
|
|
|
1026
1026
|
const written = [];
|
|
1027
1027
|
try {
|
|
1028
1028
|
for (const v of fresh) {
|
|
1029
|
-
const { record } = await appendReleaseRecord(unchangedRecord(v.since, { releaseDigest, runId: run.runId, ...(run.runOrigin ? { runOrigin: run.runOrigin } : {}), timestamp, actor }), { cwd });
|
|
1029
|
+
const { record } = await appendReleaseRecord(unchangedRecord(v.since, { releaseDigest, runId: run.runId, ...(run.runOrigin ? { runOrigin: run.runOrigin } : {}), timestamp, actor }, v.normalized), { cwd });
|
|
1030
1030
|
written.push(record);
|
|
1031
1031
|
console.error(`Recorded skip: ${formatBold(record.component)}@${record.env} keeps ${record.digest} under release ${releaseDigest}`);
|
|
1032
1032
|
}
|
|
@@ -1052,7 +1052,7 @@ export function releaseRunPrepare(under, projectPath, env, skip) {
|
|
|
1052
1052
|
console.error(formatInfo(`--deploy-unchanged: deploying ${declaring.map((c) => c.name).join(", ")} whatever their inputs`));
|
|
1053
1053
|
}
|
|
1054
1054
|
else if (declaring.length > 0) {
|
|
1055
|
-
const { compareInputs, gitChangedPaths } = await import("../../components/unchanged-inputs.js");
|
|
1055
|
+
const { compareInputs, gitChangedPaths, gitNormalizedCompare } = await import("../../components/unchanged-inputs.js");
|
|
1056
1056
|
const { readReleaseLedger, latestPerComponent } = await import("../../lifecycle/release-ledger.js");
|
|
1057
1057
|
const { readRelease } = await import("../../lifecycle/release-store.js");
|
|
1058
1058
|
const current = latestPerComponent((await readReleaseLedger(env, { cwd: projectPath }).catch(() => ({ records: [] }))).records);
|
|
@@ -1065,10 +1065,13 @@ export function releaseRunPrepare(under, projectPath, env, skip) {
|
|
|
1065
1065
|
current: current.get(c.name),
|
|
1066
1066
|
readRelease: (digest) => readRelease(digest, { cwd: projectPath }),
|
|
1067
1067
|
changedPaths: gitChangedPaths(projectPath),
|
|
1068
|
+
normalizedCompare: gitNormalizedCompare(projectPath),
|
|
1068
1069
|
});
|
|
1069
1070
|
if (verdict.unchanged) {
|
|
1070
1071
|
skip.skipped.set(c.name, verdict);
|
|
1071
1072
|
console.error(formatInfo(`${c.name}: inputs unchanged since the deploy "${env}" runs (run ${verdict.since.runId}); not deploying it (--deploy-unchanged deploys it)`));
|
|
1073
|
+
for (const n of verdict.normalized ?? [])
|
|
1074
|
+
console.error(formatInfo(`${c.name}: ${n.path} is the same after \`${n.command}\``));
|
|
1072
1075
|
}
|
|
1073
1076
|
else {
|
|
1074
1077
|
console.error(formatInfo(`${c.name}: deploying, since ${verdict.reason}`));
|
|
@@ -203,6 +203,26 @@ export interface ComponentInputs {
|
|
|
203
203
|
paths?: string[];
|
|
204
204
|
/** Build parameters, by name. A value that differs between the two releases' targets for the environment deploys the component. */
|
|
205
205
|
params?: string[];
|
|
206
|
+
/**
|
|
207
|
+
* Commands that a changed file is compared through (#4718), for files
|
|
208
|
+
* whose changes the component doesn't care about, such as its own version
|
|
209
|
+
* bumped in a Cargo.toml or a lock file. See {@link ComponentInputNormalize}.
|
|
210
|
+
*/
|
|
211
|
+
normalize?: ComponentInputNormalize[];
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* One normalization of a component's inputs (#4718). A file `paths` matches
|
|
215
|
+
* that changed between the two releases' commits is read at each commit and
|
|
216
|
+
* piped through `command`; the file is unchanged when the two outputs are the
|
|
217
|
+
* same. The command runs with `sh -c` from the repository's top level, with
|
|
218
|
+
* the file on stdin and `{path}` replaced by its path from the top level. It
|
|
219
|
+
* must be deterministic. A command that fails counts the file as changed.
|
|
220
|
+
*/
|
|
221
|
+
export interface ComponentInputNormalize {
|
|
222
|
+
/** Git pathspecs, relative to the member's directory, as in `paths`. A file the first entry matches is compared through that entry. */
|
|
223
|
+
paths: string[];
|
|
224
|
+
/** The normalizer, such as `scripts/release blank {path}`. */
|
|
225
|
+
command: string;
|
|
206
226
|
}
|
|
207
227
|
/** One environment a component declares it deploys to (#3153). */
|
|
208
228
|
export interface ComponentEnvironmentDeclaration {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/components/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,0DAA0D;AAC1D,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,kBAAkB,CAAC;AAEjE,4CAA4C;AAC5C,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,oBAAoB,CAAC;AAEnD,iCAAiC;AACjC,MAAM,WAAW,SAAS;IACxB,sGAAsG;IACtG,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE;QACL,+JAA+J;QAC/J,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;QAC9B,+OAA+O;QAC/O,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6FAA6F;IAC7F,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,wEAAwE;AACxE,MAAM,WAAW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,CAAA;CAAE,GAAG,KAAK,CAE3G;AAED,+IAA+I;AAC/I,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAE1F;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAE7E;AA6CD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG,SAAS,CAQxF;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAM3D;AAED,yPAAyP;AACzP,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAQ9D"}
|
|
@@ -92,6 +92,24 @@
|
|
|
92
92
|
"type": "array",
|
|
93
93
|
"description": "Build parameters, by name, whose values in the environment's target the component deploys from. A value that differs between the two releases deploys it.",
|
|
94
94
|
"items": { "type": "string", "minLength": 1 }
|
|
95
|
+
},
|
|
96
|
+
"normalize": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"description": "Optional (#4718): commands a changed input file is compared through. A file that changed between the two releases' commits and that an entry's paths match is read at each commit and piped through the first such entry's command; it is unchanged when the two outputs are the same bytes. The command runs with sh -c from the repository's top level, the file on stdin, {path} replaced by its path from the top level; it must be deterministic. A command that fails counts the file as changed. A skip that used one lists the files in normalizedInputs on its record. Read by chant 0.124.68 and newer.",
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"required": ["paths", "command"],
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"properties": {
|
|
104
|
+
"paths": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"minItems": 1,
|
|
107
|
+
"description": "Git pathspecs, relative to the member's directory, as in inputs.paths.",
|
|
108
|
+
"items": { "type": "string", "minLength": 1 }
|
|
109
|
+
},
|
|
110
|
+
"command": { "type": "string", "minLength": 1, "description": "The normalizer, such as scripts/release blank {path}." }
|
|
111
|
+
}
|
|
112
|
+
}
|
|
95
113
|
}
|
|
96
114
|
}
|
|
97
115
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* leaves have real implementations over an injectable `CloudExecutor` (#557);
|
|
5
5
|
* every other verb remains a typed stub. See https://intentius.io/chant/components/orchestration/
|
|
6
6
|
*/
|
|
7
|
-
export { type Archetype, type Wiring, type StackOutputReference, type BuildSpec, type Step, type Gate, type Phase, type Component, type ComponentEnvironmentDeclaration, type ComponentInputs, phase, gate, stackOutput, inferArchetype, projectToJson, isComponent, } from "./component.js";
|
|
7
|
+
export { type Archetype, type Wiring, type StackOutputReference, type BuildSpec, type Step, type Gate, type Phase, type Component, type ComponentEnvironmentDeclaration, type ComponentInputs, type ComponentInputNormalize, phase, gate, stackOutput, inferArchetype, projectToJson, isComponent, } from "./component.js";
|
|
8
8
|
export { type DiscoveredComponent, type ComponentDiscoveryResult, discoverComponents, } from "./discover.js";
|
|
9
9
|
export { type ListedComponent, type ListComponentsResult, type DescribedComponent, type DescribeComponentResult, type ComponentGraphResult, type GenerateLexicon, type GenerateComponentsResult, type RunComponentsOptions, type RunComponentsResult, type ResolvedComponentTargets, listComponents, describeComponent, computeComponentGraph, generateComponentsPipeline, runComponents, findComponentGate, resolveComponentTargets, } from "./cli-support.js";
|
|
10
10
|
export { renderDriverHuman, renderDriverJson } from "./driver-output.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAA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K,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,oBAAoB,EACzB,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC3G,OAAO,EACL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3G,OAAO,EACL,mBAAmB,EACnB,KAAK,yBAAyB,EAC9B,eAAe,EACf,KAAK,qBAAqB,EAC1B,0BAA0B,EAC1B,KAAK,gCAAgC,GACtC,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,MAAM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,EAChB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,oBAAoB,EACzB,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC3G,OAAO,EACL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3G,OAAO,EACL,mBAAmB,EACnB,KAAK,yBAAyB,EAC9B,eAAe,EACf,KAAK,qBAAqB,EAC1B,0BAA0B,EAC1B,KAAK,gCAAgC,GACtC,MAAM,iBAAiB,CAAC"}
|
|
@@ -30,15 +30,46 @@
|
|
|
30
30
|
* environment, a record made from no release, a release that isn't stored, a
|
|
31
31
|
* commit git doesn't have. `--deploy-unchanged` deploys it anyway.
|
|
32
32
|
*
|
|
33
|
+
* A changed file that one of `normalize`'s entries covers (#4718) is compared
|
|
34
|
+
* after that entry's command. A daemon release bumps Arugula's own crate
|
|
35
|
+
* versions in every Cargo.toml and in Cargo.lock, which the hub lists among
|
|
36
|
+
* its inputs; with
|
|
37
|
+
*
|
|
38
|
+
* ```ts
|
|
39
|
+
* normalize: [{ paths: ["../Cargo.lock", "../crates/control/Cargo.toml"], command: "scripts/release blank {path}" }]
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* each such file is read at the two commits (`git show <commit>:<path>`),
|
|
43
|
+
* each copy is piped through the command, and the file counts as unchanged
|
|
44
|
+
* when the two outputs are the same bytes. The command runs with `sh -c` from
|
|
45
|
+
* the repository's top level in the checkout, the commit being released, so
|
|
46
|
+
* the same normalizer reads both copies; `{path}` is the file's path from the
|
|
47
|
+
* top level, shell-quoted. It must print the same bytes for the same input.
|
|
48
|
+
* A command that exits non-zero, times out or can't start counts the file as
|
|
49
|
+
* changed and the reason says so. A file that is missing at either commit is
|
|
50
|
+
* changed. A changed file no entry covers is changed as before, and then no
|
|
51
|
+
* command runs. The first entry whose `paths` match a file is the one used.
|
|
52
|
+
*
|
|
33
53
|
* A skip is recorded ({@link unchangedRecord}): a release record of this
|
|
34
54
|
* release for the component that repeats the digest of the deploy it keeps
|
|
35
|
-
* and names that deploy in `unchangedSince`.
|
|
55
|
+
* and names that deploy in `unchangedSince`. When a file was the same only
|
|
56
|
+
* after a normalization, the record lists it with the command in
|
|
57
|
+
* `normalizedInputs`.
|
|
36
58
|
*/
|
|
37
59
|
import type { ComponentInputs } from "./component.js";
|
|
38
60
|
import type { Release } from "../lifecycle/release-store.js";
|
|
39
61
|
import type { ReleaseRecord, ReleaseRecordInput, RunOrigin } from "../lifecycle/release-ledger.js";
|
|
40
62
|
/** The first chant that reads a component's `inputs` and writes `unchangedSince` on a release record (#4695). */
|
|
41
63
|
export declare const UNCHANGED_INPUTS_FLOOR = "0.124.65";
|
|
64
|
+
/** The first chant that reads `inputs.normalize` and writes `normalizedInputs` on a skip record (#4718). */
|
|
65
|
+
export declare const NORMALIZED_INPUTS_FLOOR = "0.124.68";
|
|
66
|
+
/** A file that differed between the two commits and was the same after a normalization (#4718). */
|
|
67
|
+
export interface NormalizedInput {
|
|
68
|
+
/** From the repository's top level, as git prints it. */
|
|
69
|
+
path: string;
|
|
70
|
+
/** The `command` of the `normalize` entry that covered it, as declared. */
|
|
71
|
+
command: string;
|
|
72
|
+
}
|
|
42
73
|
/** Whether a component's inputs are the same as in the release the environment runs it from. */
|
|
43
74
|
export type InputsVerdict = {
|
|
44
75
|
unchanged: true;
|
|
@@ -46,6 +77,8 @@ export type InputsVerdict = {
|
|
|
46
77
|
since: ReleaseRecord;
|
|
47
78
|
/** The environment's record already names this release: there is nothing new to record. */
|
|
48
79
|
recorded: boolean;
|
|
80
|
+
/** The files that differed and were the same after a normalization (#4718), when there were any. */
|
|
81
|
+
normalized?: NormalizedInput[];
|
|
49
82
|
} | {
|
|
50
83
|
unchanged: false;
|
|
51
84
|
reason: string;
|
|
@@ -54,6 +87,21 @@ export type InputsVerdict = {
|
|
|
54
87
|
export type ChangedPaths = (from: string, to: string, paths: readonly string[]) => string[] | null;
|
|
55
88
|
/** {@link ChangedPaths} through `git diff`, with the pathspecs read from `memberDir`. */
|
|
56
89
|
export declare function gitChangedPaths(memberDir: string): ChangedPaths;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the file at `path` (from the top level) is the same at two commits
|
|
92
|
+
* after `command` reads each copy on stdin (#4718), or why it can't tell.
|
|
93
|
+
*/
|
|
94
|
+
export type NormalizedCompare = (command: string, path: string, from: string, to: string) => {
|
|
95
|
+
same: boolean;
|
|
96
|
+
} | {
|
|
97
|
+
error: string;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* {@link NormalizedCompare} through git and `sh -c`, from the top level of
|
|
101
|
+
* the repository `memberDir` is in. A file missing at either commit is not
|
|
102
|
+
* the same.
|
|
103
|
+
*/
|
|
104
|
+
export declare function gitNormalizedCompare(memberDir: string): NormalizedCompare;
|
|
57
105
|
/** Compare `component`'s declared inputs in `release` with the release the environment's `current` record names. */
|
|
58
106
|
export declare function compareInputs(input: {
|
|
59
107
|
component: string;
|
|
@@ -64,6 +112,8 @@ export declare function compareInputs(input: {
|
|
|
64
112
|
current: ReleaseRecord | undefined;
|
|
65
113
|
readRelease: (digest: string) => Promise<Release | null>;
|
|
66
114
|
changedPaths: ChangedPaths;
|
|
115
|
+
/** Compares a file `inputs.normalize` covers (#4718); without it such a file counts as changed. */
|
|
116
|
+
normalizedCompare?: NormalizedCompare;
|
|
67
117
|
}): Promise<InputsVerdict>;
|
|
68
118
|
/**
|
|
69
119
|
* The record of a skip (#4695): this release, for `since`'s component in its
|
|
@@ -77,5 +127,5 @@ export declare function unchangedRecord(since: ReleaseRecord, run: {
|
|
|
77
127
|
runOrigin?: RunOrigin;
|
|
78
128
|
timestamp: string;
|
|
79
129
|
actor: string;
|
|
80
|
-
}): ReleaseRecordInput;
|
|
130
|
+
}, normalized?: readonly NormalizedInput[]): ReleaseRecordInput;
|
|
81
131
|
//# sourceMappingURL=unchanged-inputs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unchanged-inputs.d.ts","sourceRoot":"","sources":["../../src/components/unchanged-inputs.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"unchanged-inputs.d.ts","sourceRoot":"","sources":["../../src/components/unchanged-inputs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAA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,MAAM,EAAE,eAAe,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,uEAAuE;IACvE,OAAO,EAAE,aAAa,GAAG,SAAS,CAAC;IACnC,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IACzD,YAAY,EAAE,YAAY,CAAC;IAC3B,mGAAmG;IACnG,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,GAAG,OAAO,CAAC,aAAa,CAAC,CAkDzB;AAuBD;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EACtG,UAAU,CAAC,EAAE,SAAS,eAAe,EAAE,GACtC,kBAAkB,CAkBpB"}
|
|
@@ -30,19 +30,43 @@
|
|
|
30
30
|
* environment, a record made from no release, a release that isn't stored, a
|
|
31
31
|
* commit git doesn't have. `--deploy-unchanged` deploys it anyway.
|
|
32
32
|
*
|
|
33
|
+
* A changed file that one of `normalize`'s entries covers (#4718) is compared
|
|
34
|
+
* after that entry's command. A daemon release bumps Arugula's own crate
|
|
35
|
+
* versions in every Cargo.toml and in Cargo.lock, which the hub lists among
|
|
36
|
+
* its inputs; with
|
|
37
|
+
*
|
|
38
|
+
* ```ts
|
|
39
|
+
* normalize: [{ paths: ["../Cargo.lock", "../crates/control/Cargo.toml"], command: "scripts/release blank {path}" }]
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* each such file is read at the two commits (`git show <commit>:<path>`),
|
|
43
|
+
* each copy is piped through the command, and the file counts as unchanged
|
|
44
|
+
* when the two outputs are the same bytes. The command runs with `sh -c` from
|
|
45
|
+
* the repository's top level in the checkout, the commit being released, so
|
|
46
|
+
* the same normalizer reads both copies; `{path}` is the file's path from the
|
|
47
|
+
* top level, shell-quoted. It must print the same bytes for the same input.
|
|
48
|
+
* A command that exits non-zero, times out or can't start counts the file as
|
|
49
|
+
* changed and the reason says so. A file that is missing at either commit is
|
|
50
|
+
* changed. A changed file no entry covers is changed as before, and then no
|
|
51
|
+
* command runs. The first entry whose `paths` match a file is the one used.
|
|
52
|
+
*
|
|
33
53
|
* A skip is recorded ({@link unchangedRecord}): a release record of this
|
|
34
54
|
* release for the component that repeats the digest of the deploy it keeps
|
|
35
|
-
* and names that deploy in `unchangedSince`.
|
|
55
|
+
* and names that deploy in `unchangedSince`. When a file was the same only
|
|
56
|
+
* after a normalization, the record lists it with the command in
|
|
57
|
+
* `normalizedInputs`.
|
|
36
58
|
*/
|
|
37
|
-
import { execFileSync } from "node:child_process";
|
|
59
|
+
import { execFileSync, spawnSync } from "node:child_process";
|
|
38
60
|
import { releaseTemplatesDigest } from "./release-promote.js";
|
|
39
61
|
/** The first chant that reads a component's `inputs` and writes `unchangedSince` on a release record (#4695). */
|
|
40
62
|
export const UNCHANGED_INPUTS_FLOOR = "0.124.65";
|
|
63
|
+
/** The first chant that reads `inputs.normalize` and writes `normalizedInputs` on a skip record (#4718). */
|
|
64
|
+
export const NORMALIZED_INPUTS_FLOOR = "0.124.68";
|
|
41
65
|
/** {@link ChangedPaths} through `git diff`, with the pathspecs read from `memberDir`. */
|
|
42
66
|
export function gitChangedPaths(memberDir) {
|
|
43
67
|
return (from, to, paths) => {
|
|
44
68
|
try {
|
|
45
|
-
const out = execFileSync("git", ["diff", "--name-only", "--no-renames", from, to, "--", ...paths], {
|
|
69
|
+
const out = execFileSync("git", ["diff", "--name-only", "--no-renames", "--no-relative", from, to, "--", ...paths], {
|
|
46
70
|
cwd: memberDir,
|
|
47
71
|
encoding: "utf-8",
|
|
48
72
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -54,10 +78,54 @@ export function gitChangedPaths(memberDir) {
|
|
|
54
78
|
}
|
|
55
79
|
};
|
|
56
80
|
}
|
|
81
|
+
/** How long one run of a normalizer may take. */
|
|
82
|
+
const NORMALIZE_TIMEOUT_MS = 60000;
|
|
83
|
+
const shellQuote = (s) => `'${s.replace(/'/g, `'\\''`)}'`;
|
|
84
|
+
/**
|
|
85
|
+
* {@link NormalizedCompare} through git and `sh -c`, from the top level of
|
|
86
|
+
* the repository `memberDir` is in. A file missing at either commit is not
|
|
87
|
+
* the same.
|
|
88
|
+
*/
|
|
89
|
+
export function gitNormalizedCompare(memberDir) {
|
|
90
|
+
let top;
|
|
91
|
+
return (command, path, from, to) => {
|
|
92
|
+
try {
|
|
93
|
+
top ?? (top = execFileSync("git", ["rev-parse", "--show-toplevel"], { cwd: memberDir, encoding: "utf-8", stdio: ["ignore", "pipe", "pipe"] }).trim());
|
|
94
|
+
}
|
|
95
|
+
catch {
|
|
96
|
+
return { error: `${memberDir} is not in a git work tree` };
|
|
97
|
+
}
|
|
98
|
+
const outputs = [];
|
|
99
|
+
for (const commit of [from, to]) {
|
|
100
|
+
const show = spawnSync("git", ["show", `${commit}:${path}`], { cwd: top, maxBuffer: 256 * 1024 * 1024 });
|
|
101
|
+
if (show.status !== 0)
|
|
102
|
+
return { same: false };
|
|
103
|
+
const run = spawnSync("sh", ["-c", command.replaceAll("{path}", shellQuote(path))], {
|
|
104
|
+
cwd: top,
|
|
105
|
+
input: show.stdout,
|
|
106
|
+
timeout: NORMALIZE_TIMEOUT_MS,
|
|
107
|
+
maxBuffer: 256 * 1024 * 1024,
|
|
108
|
+
});
|
|
109
|
+
const at = `${path} at ${commit.slice(0, 12)}`;
|
|
110
|
+
// A command that exits without reading all of its stdin makes the write
|
|
111
|
+
// fail with EPIPE while the command itself ran: its exit status decides.
|
|
112
|
+
const epipe = run.error?.code === "EPIPE" && run.status !== null;
|
|
113
|
+
if (run.error && !epipe)
|
|
114
|
+
return { error: `\`${command}\` could not run on ${at}: ${run.error.message}` };
|
|
115
|
+
if (run.status !== 0) {
|
|
116
|
+
const said = run.stderr.toString("utf-8").trim().split("\n")[0];
|
|
117
|
+
return { error: `\`${command}\` ${run.signal ? `was killed (${run.signal})` : `exited ${run.status}`} on ${at}${said ? `: ${said}` : ""}` };
|
|
118
|
+
}
|
|
119
|
+
outputs.push(run.stdout);
|
|
120
|
+
}
|
|
121
|
+
return { same: outputs[0].equals(outputs[1]) };
|
|
122
|
+
};
|
|
123
|
+
}
|
|
57
124
|
const shortDigest = (d) => d.replace(/^jcs1-sha256:/, "").slice(0, 12);
|
|
58
125
|
/** Compare `component`'s declared inputs in `release` with the release the environment's `current` record names. */
|
|
59
126
|
export async function compareInputs(input) {
|
|
60
127
|
const { component, inputs, env, release, current } = input;
|
|
128
|
+
const normalized = [];
|
|
61
129
|
const paths = inputs.paths ?? [];
|
|
62
130
|
const params = inputs.params ?? [];
|
|
63
131
|
if (paths.length === 0 && params.length === 0)
|
|
@@ -89,11 +157,49 @@ export async function compareInputs(input) {
|
|
|
89
157
|
if (changed === null) {
|
|
90
158
|
return { unchanged: false, reason: `git can't compare ${prior.commit.slice(0, 12)} and ${release.commit.slice(0, 12)} here; fetch the history between them` };
|
|
91
159
|
}
|
|
92
|
-
|
|
93
|
-
|
|
160
|
+
const since = prior.commit.slice(0, 12);
|
|
161
|
+
const covering = normalizeCoverage(inputs, changed, (p) => input.changedPaths(prior.commit, release.commit, p));
|
|
162
|
+
if ("error" in covering)
|
|
163
|
+
return { unchanged: false, reason: covering.error };
|
|
164
|
+
const plain = changed.filter((f) => !covering.byFile.has(f));
|
|
165
|
+
if (plain.length > 0) {
|
|
166
|
+
return { unchanged: false, reason: `${plain.length} input file(s) changed since ${since}, such as ${plain[0]}` };
|
|
94
167
|
}
|
|
168
|
+
for (const [file, command] of covering.byFile) {
|
|
169
|
+
const result = input.normalizedCompare
|
|
170
|
+
? input.normalizedCompare(command, file, prior.commit, release.commit)
|
|
171
|
+
: { error: "no normalizer runs here" };
|
|
172
|
+
if ("error" in result) {
|
|
173
|
+
return { unchanged: false, reason: `the normalization of ${file} failed, so it counts as changed: ${result.error}` };
|
|
174
|
+
}
|
|
175
|
+
if (!result.same) {
|
|
176
|
+
return { unchanged: false, reason: `input file ${file} changed since ${since}, also after \`${command}\`` };
|
|
177
|
+
}
|
|
178
|
+
normalized.push({ path: file, command });
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return { unchanged: true, since: current, recorded: false, ...(normalized.length > 0 ? { normalized } : {}) };
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* The `normalize` entry, by its command, that covers each of the `changed`
|
|
185
|
+
* files (#4718): the first entry whose `paths` git matches the file with.
|
|
186
|
+
*/
|
|
187
|
+
function normalizeCoverage(inputs, changed, matching) {
|
|
188
|
+
const byFile = new Map();
|
|
189
|
+
if (changed.length === 0)
|
|
190
|
+
return { byFile };
|
|
191
|
+
const pending = new Set(changed);
|
|
192
|
+
for (const entry of inputs.normalize ?? []) {
|
|
193
|
+
if (entry.paths.length === 0)
|
|
194
|
+
continue;
|
|
195
|
+
const matched = matching(entry.paths);
|
|
196
|
+
if (matched === null)
|
|
197
|
+
return { error: `git can't match the paths of the normalization \`${entry.command}\`, so its files count as changed` };
|
|
198
|
+
for (const f of matched)
|
|
199
|
+
if (pending.delete(f))
|
|
200
|
+
byFile.set(f, entry.command);
|
|
95
201
|
}
|
|
96
|
-
return {
|
|
202
|
+
return { byFile };
|
|
97
203
|
}
|
|
98
204
|
/**
|
|
99
205
|
* The record of a skip (#4695): this release, for `since`'s component in its
|
|
@@ -101,7 +207,7 @@ export async function compareInputs(input) {
|
|
|
101
207
|
* it in `unchangedSince`. Who approved that deploy is not repeated, since
|
|
102
208
|
* nothing was approved now.
|
|
103
209
|
*/
|
|
104
|
-
export function unchangedRecord(since, run) {
|
|
210
|
+
export function unchangedRecord(since, run, normalized) {
|
|
105
211
|
return {
|
|
106
212
|
component: since.component,
|
|
107
213
|
env: since.env,
|
|
@@ -117,5 +223,6 @@ export function unchangedRecord(since, run) {
|
|
|
117
223
|
actor: run.actor,
|
|
118
224
|
releaseDigest: run.releaseDigest,
|
|
119
225
|
unchangedSince: { env: since.env, runId: since.runId, timestamp: since.timestamp },
|
|
226
|
+
...(normalized && normalized.length > 0 ? { normalizedInputs: normalized.map((n) => ({ path: n.path, command: n.command })) } : {}),
|
|
120
227
|
};
|
|
121
228
|
}
|
|
@@ -237,6 +237,18 @@ export interface ReleaseRecord {
|
|
|
237
237
|
* every deploy.
|
|
238
238
|
*/
|
|
239
239
|
unchangedSince?: ReleaseRef;
|
|
240
|
+
/**
|
|
241
|
+
* Optional: on a skip record (`unchangedSince`), the input files that
|
|
242
|
+
* differed between the two releases' commits and were the same after a
|
|
243
|
+
* normalization the component declares in `inputs.normalize` (#4718), each
|
|
244
|
+
* with that normalization's command. Written from chant
|
|
245
|
+
* `NORMALIZED_INPUTS_FLOOR` (../components/unchanged-inputs.ts); absent
|
|
246
|
+
* when no file needed one.
|
|
247
|
+
*/
|
|
248
|
+
normalizedInputs?: {
|
|
249
|
+
path: string;
|
|
250
|
+
command: string;
|
|
251
|
+
}[];
|
|
240
252
|
/**
|
|
241
253
|
* Optional: the release this deploy came from (#4026, ws-104), the
|
|
242
254
|
* `releaseDigest` of `_releases/<releaseDigest>.json`. Written by
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-ledger.d.ts","sourceRoot":"","sources":["../../src/lifecycle/release-ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAGH,OAAO,EAAyC,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAwG,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAElJ,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,yBAA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AAG,CAAC,EAAE,MAAM,CAAA;CAAE,GACtB,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,CAAC,CAWpD;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC;IAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAS1D;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAEtF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CASvF;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,EAAE,CAE1F"}
|
package/dist/release-floors.d.ts
CHANGED
|
@@ -19,5 +19,5 @@
|
|
|
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.
|
|
22
|
+
export declare const NEXT_RELEASE = "0.124.69";
|
|
23
23
|
//# sourceMappingURL=release-floors.d.ts.map
|
package/dist/release-floors.js
CHANGED