Repository navigation
Commit ca34d36
authored
fix(ci): the declared Node floor must satisfy every dependency range, on one workspace floor (#156)
Two adjudicated cards, one defect form — a declared Node floor that is
not mechanically true.
#137: the gate took max-of-minimums, which is blind to a gap INSIDE a
disjunctive range. yargs@18.0.0 and yargs-parser@22.0.0 declare
^20.19.0 || ^22.12.0 || >=23, whose minimum is 20.19.0, so they never
moved the maximum — while the root >=22 claimed Node 22.0.0 through
22.11.x was supported, a window that range excludes. A new blocking
`unsupported` rule checks the floor the other way round: the lowest
version each declaration claims must itself satisfy every engines.node
range in the tree. Declarations tighten to >=22.12.0 so it lands green.
#138: tools/ci-scripts is a real workspace package and declared
>=20.0.0, a whole major below the other two. Ruled one floor for the
workspace: it moves to >=22.12.0 and joins DECLARATION_FILES, so the
ungoverned advisory for it stops being emitted. .node-version stays
out — it is a version-manager pin, not a range.
Both rules derive from one comparator parser, so there is a single
notion of an understood range. All 18 pre-existing RANGE_CASES pass
unchanged. The new rule ships two red fixtures; the load-bearing one
fires `unsupported` alone with `lockfile` silent, using this repo's own
former declarations, so it is also their regression test.
Fixes #137
Fixes #1381 parent 539906a commit ca34d36
5 files changed
Lines changed: 331 additions & 65 deletions
File tree
- .github
- scripts
- workflows
- apps/docs
- tools/ci-scripts
0 commit comments