Skip to content

fix(deps): take happy-dom to ^21.0.4, and make its ledger entry readable - #1101

Merged
sydevs-bot merged 5 commits into
mainfrom
claude/docs-deps-happy-dom-gate
Nov 10, 2026
Merged

sydevs-bot merged 5 commits into
mainfrom
claude/docs-deps-happy-dom-gate

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • happy-dom: '^21.0.4' lands as an override, on your B. It clears both high advisories: pnpm audit --audit-level=high goes from 12 vulnerabilities / 2 high to 10 / 0 high.
  • The entry 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 happy-dom ledger entry is rewritten in plain terms — one dense twelve-line paragraph becomes four short ones, each answering a single question.
  • The ledger header no longer says an unreachable advisory is carried rather than overridden. That sentence was written for option A, and this PR falsifies it.

Change outline

pnpm-workspace.yaml
  overrides
    + happy-dom: '^21.0.4'       ⚠ past the declared ^20.9.0. Drop the line once
                                 richtext-lexical carries lexical 0.53

  overrides header
    ~ an entry is still a last resort, but unreachability alone no longer keeps
      an advisory open once upstream's own later release declares the newer major

  the `happy-dom` entry — one paragraph becomes four
    1. reachability          unchanged: the `./dom` subpath nothing imports, no
                             `@vitest-environment` spec, call paths in #1071
    2. what a fix needs      happy-dom 21, and no 20.x clears either
    3. the one release that  payload's. richtext-lexical pins twelve lexical
       drops the line        packages at 0.50.0 exactly, 3.93.0 included;
                             @lexical/headless asks for ^21.0.4 itself from 0.53.0
    4. why @lexical/headless it is pinned exactly, so it takes an override of its
       alone is not that     own, and 0.53.0 wants lexical 0.53.0 exactly while
       route                 richtext-lexical wants 0.50.0 — two copies in one tree

pnpm-lock.yaml
    ~ happy-dom 20.14.6 → 21.0.4, one package, three resolution lines

The reachability finding, every #NNN breadcrumb and the Do not re-derive the reachability directive 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.seed is unset and no page shows this change.

Test results

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh — lint, Prettier, tsc (src and tests), 254 unit files / 3431 tests, 134 s
  • Build: ✓ pnpm build — run because the lockfile moved, which the lean gate does not cover
  • Targeted specs: none. Nothing in src/ or tests/ references happy-dom, and both vitest projects set environment: 'node'
  • pnpm audit --audit-level=high: 10 vulnerabilities, 0 high — was 12 and 2, both happy-dom
  • origin/main merged in cleanly (87f276c), so the gate and the build ran against the current base

Notes for reviewer

B is built, so this PR now carries a fix as well as the rewrite. The title says fix(deps) for that reason. The branch is still named claude/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 for happy-dom ^21.0.4, which is upstream declaring that 21 fits the symbols it uses. That is the premise of your B, and it is now the comment's premise too.

The one release that drops the line. A payload release carrying lexical 0.53 makes @lexical/headless ask for ^21.0.4 by itself, and the override becomes dead weight. Until then it stays.

Upgrading @lexical/headless on its own is still not the route. @payloadcms/richtext-lexical pins twelve lexical packages at 0.50.0 exactly, 3.93.0 included, and @lexical/[email protected] wants lexical 0.53.0 exactly. That is two copies of lexical in one tree. One happy-dom line is the cheaper half of your B.

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 an audit-deps run may propose the same override again on claude/fix-deps-happy-dom. Merging closes it.

Still open: claude/fix-deps-happy-dom exists with no PR. One commit ahead of main (2263f03), carrying exactly the ^21.0.4 override that this PR now carries, from the closed PR #1037. audit-deps reads an open claude/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/main reports 0 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

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
@railway-app

railway-app Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1101 environment in sahajcloud

Service Status Web Updated
SahajCloud ✅ Success (View Logs) Web Nov 10, 2026 at 6:08 pm UTC
1 service not affected by this PR
  • mailpit

@sydevs-bot

sydevs-bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 17:57Z address-review · attempt 1 · session · done
  • 17:57Z address-review · attempt 1 · session
  • 17:25Z address-review · attempt 1 · session · done
  • 17:25Z address-review · attempt 1 · session

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 question for the reviewer, one per thread.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread pnpm-workspace.yaml Resolved
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Adversarial review skipped: 1 file(s), 9 changed line(s), under review.skipWhen. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

@sydevs-bot sydevs-bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 9, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

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

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 10, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 10, 2026
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
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1101 November 10, 2026 17:33 Destroyed
@sydevs-bot sydevs-bot changed the title docs(deps): name the live gate on the happy-dom advisories docs(deps): make the happy-dom ledger entry readable, and name its gate Nov 10, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

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 #NNN breadcrumb and the Do not re-derive directive carried through.

Rebutted — there is no override to drop. The entry documents the absence of one, and this PR adds none. @lexical/headless also cannot move alone: richtext-lexical pins twelve lexical packages at 0.50.0 exactly, while @lexical/[email protected] wants lexical 0.53.0 exactly. Upgrading it costs an override and two copies of lexical.

So nothing is closed — your "if that's true" does not hold. The thread stays open for you to settle.

Also merged origin/main in cleanly (3620edc). Lean gate green: 251 unit files, 3395 tests, 127 s. Lockfile untouched, pnpm audit unchanged.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 10, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 10, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 10, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 10, 2026
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
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1101 November 10, 2026 18:06 Destroyed
@sydevs-bot sydevs-bot changed the title docs(deps): make the happy-dom ledger entry readable, and name its gate fix(deps): take happy-dom to ^21.0.4, and make its ledger entry readable Nov 10, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Thread answered and resolved — you chose B, so the override is built.

happy-dom: '^21.0.4' — 3e99781. pnpm audit --audit-level=high goes from 12 vulnerabilities / 2 high to 10 / 0 high. Lockfile: 20.14.6 → 21.0.4.

⚠ Past a declared major. @lexical/[email protected] asks ^20.9.0, so the entry sits beside nodemailer, the other one. The header line written for A — an unreachable advisory is carried, not overridden — is replaced.

Title and body now say fix, not docs. The branch name still says docs; changing it would need a new PR.

Lean gate ✓ 254 files / 3431 tests, 134 s. pnpm build ✓ — run because the lockfile moved. origin/main merged in cleanly (87f276c).

⚠ Until this merges, the daily Dependabot check still sees both highs open, and may re-propose the same override on claude/fix-deps-happy-dom.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 10, 2026
@sydevs-bot sydevs-bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 10, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 2f4a714 Nov 10, 2026
27 checks passed
@sydevs-bot
sydevs-bot deleted the claude/docs-deps-happy-dom-gate branch November 10, 2026 18:31
@sydevs-bot sydevs-bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 10, 2026

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1101 — 3e997811 Deployed Nov 10, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants