Repository navigation
fix(deps): take happy-dom to ^21.0.4, and make its ledger entry readable - #1101
Conversation
The ledger entry said the fix was an override past `^20.9.0` that #1066 ruled out, which left the next audit run no cheap way to tell whether that was still the state. Two version facts settle it, and neither is in the entry: @payloadcms/richtext-lexical pins @lexical/headless at 0.50.0 exactly — still true at 3.93.0, the newest — so no in-range release will ever reach 21.0.4, and @lexical/headless declares `^21.0.4` itself from 0.53.0, so a payload release carrying lexical 0.53 clears both advisories with no override at all. The entry now names that one version as the gate. The reachability argument, the version bars and the #1071 breadcrumb are unchanged. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXShLVden7FeounGsU
|
🚅 Deployed to the SahajCloud-pr-1101 environment in sahajcloud
1 service not affected by this PR
|
sydevs-bot
left a comment
There was a problem hiding this comment.
1 question for the reviewer, one per thread.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
|
Adversarial review skipped: 1 file(s), 9 changed line(s), under 🤖 sydevs dispatcher |
|
Approved, but this thread still waits on you, and the ruleset will not merge until it is resolved: #1101 (comment). Reply there, or resolve it. 🤖 sydevs dispatcher |
The reviewer read the entry as describing an override this repo carries, and asked whether upgrading `@lexical/headless` would drop it. Neither holds: the entry documents the absence of an override, and `@lexical/headless` cannot move on its own. The old paragraph packed both facts into one dense block, so the misreading was the entry's fault. Split into four: reachability, what a fix needs, the one version to check, and why the obvious upgrade is not the route. Adds the measured reason the upgrade is unavailable — richtext-lexical pins twelve lexical packages at 0.50.0 exactly, while @lexical/headless 0.53.0 wants lexical 0.53.0 exactly — so the next run does not re-derive it or try it. Records the house preference in the ledger header: an unreachable advisory is carried, not overridden. That ranks the routes for every future entry, not just this one. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjV5P88A2xA7LCKkvqY
|
One thread, answered: one point adopted, one premise rebutted. Adopted — the entry was too complex. Rewrote it as four short paragraphs, one question each, and put your no-override preference in the ledger header: 6935b9e. Every Rebutted — there is no override to drop. The entry documents the absence of one, and this PR adds none. So nothing is closed — your "if that's true" does not hold. The thread stays open for you to settle. Also merged 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
The reviewer chose B on the #1101 question thread: treat @lexical/[email protected] declaring `happy-dom: ^21.0.4` as upstream's own statement that 21 fits the symbols it uses, rather than waiting for a payload release to carry lexical 0.53. So `happy-dom: '^21.0.4'` lands as an override. It resolves 20.14.6 to 21.0.4 and clears both highs: `pnpm audit --audit-level=high` goes from 12 vulnerabilities / 2 high to 10 / 0 high. It is past @lexical/[email protected]'s declared `^20.9.0`, so it carries the ⚠ marker and sits beside nodemailer, the other past-major entry. The ledger header said an unreachable advisory is carried rather than overridden; that sentence is now false and is replaced. The happy-dom paragraphs keep the reachability finding, the #1071 breadcrumb and the `Do not re-derive` directive, and now name the one release that drops the line: richtext-lexical carrying lexical 0.53. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYi8ZFh4DUbiYQ2NT3
|
Thread answered and resolved — you chose
⚠ Past a declared major. Title and body now say Lean gate ✓ 254 files / 3431 tests, 134 s. ⚠ Until this merges, the daily Dependabot check still sees both highs open, and may re-propose the same override on 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Summary
happy-dom: '^21.0.4'lands as an override, on yourB. It clears both high advisories:pnpm audit --audit-level=highgoes from 12 vulnerabilities / 2 high to 10 / 0 high.@lexical/[email protected]'s declared^20.9.0, so it carries the⚠marker and sits besidenodemailer, the other past-major entry.happy-domledger entry is rewritten in plain terms — one dense twelve-line paragraph becomes four short ones, each answering a single question.A, and this PR falsifies it.Change outline
The reachability finding, every
#NNNbreadcrumb and theDo not re-derive the reachabilitydirective are carried through unchanged. The override does not rest on reachability — it rests on@lexical/[email protected]declaring^21.0.4, which is upstream's own statement that 21 fits the symbols it uses.Preview
The diff changes no shipped behaviour, so the preview shows nothing of it. One link, to confirm the build still boots on the moved lockfile:
Data: nothing to seed —
previewUrl.seedis unset and no page shows this change.Test results
.claude/skills/pr-prep/check.sh— lint, Prettier,tsc(src and tests), 254 unit files / 3431 tests, 134 spnpm build— run because the lockfile moved, which the lean gate does not coversrc/ortests/referenceshappy-dom, and both vitest projects setenvironment: 'node'pnpm audit --audit-level=high: 10 vulnerabilities, 0 high — was 12 and 2, bothhappy-domorigin/mainmerged in cleanly (87f276c), so the gate and the build ran against the current baseNotes for reviewer
Bis built, so this PR now carries a fix as well as the rewrite. The title saysfix(deps)for that reason. The branch is still namedclaude/docs-deps-happy-dom-gate; renaming it would mean a new PR, so it stays.What the entry rests on. Not reachability — neither advisory is reachable here, and the entry still says so. It rests on
@lexical/[email protected]asking forhappy-dom^21.0.4, which is upstream declaring that 21 fits the symbols it uses. That is the premise of yourB, and it is now the comment's premise too.The one release that drops the line. A
payloadrelease carrying lexical 0.53 makes@lexical/headlessask for^21.0.4by itself, and the override becomes dead weight. Until then it stays.Upgrading
@lexical/headlesson its own is still not the route.@payloadcms/richtext-lexicalpins twelve lexical packages at0.50.0exactly, 3.93.0 included, and@lexical/[email protected]wantslexical0.53.0exactly. That is two copies oflexicalin one tree. Onehappy-domline is the cheaper half of yourB.Detail
⚠ Until this merges, the daily Dependabot check still sees both highs open. The fix sits on a
claude/docs-branch, which the dispatcher does not read as a deps fire in progress, so anaudit-depsrun may propose the same override again onclaude/fix-deps-happy-dom. Merging closes it.Still open:
claude/fix-deps-happy-domexists with no PR. One commit ahead ofmain(2263f03), carrying exactly the^21.0.4override that this PR now carries, from the closed PR #1037.audit-depsreads an openclaude/fix-deps-branch with no PR as a dead session to continue, so it will mislead every future run of that handler until it is deleted. Deleting it is still not this PR's to do.Why the branch is not on the
claude/fix-deps-prefix. ⚠ The dispatcher holds back a vulnerability fire for this repo while a PR on that prefix is open. When this PR opened it carried no fix and expected a review round, so that prefix would have suppressed the daily Dependabot check for as long as it stayed open. That is why it shipped on the docs prefix, and why it still does.Tooling limits hit.
comment-lint.mjs --base origin/mainreports0 changed file(s): it does not scan YAML, so it cannot attest the comment half of this diff.🤖 Generated with Claude Code
https://claude.ai/code/session_01Mg9rjYi8ZFh4DUbiYQ2NT3