Skip to content

Fix weekly update build failure (NodeRange) and apply this week's data refresh - #37

Merged
uhyo merged 3 commits into
baseline-filterfrom
claude/gracious-wozniak-wsk1mf
Nov 14, 2026
Merged

uhyo merged 3 commits into
baseline-filterfrom
claude/gracious-wozniak-wsk1mf

Conversation

@uhyo

@uhyo uhyo commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Supersedes #35. Like #32, this carries the automated weekly refresh commit unchanged, plus a fix for the build failure it introduces.

Problem

The test check on #35 fails:

generated/dom.generated.d.ts(31118,25): error TS2304: Cannot find name 'NodeRange'.
generated/dom.generated.d.ts(37335,31): error TS2304: Cannot find name 'NodeRange'.

@webref/idl 3.87.0 brings in a DOM spec change. A new intermediate interface NodeRange : AbstractRange now holds startContainer/endContainer, and Range and StaticRange extend it. No browser ships NodeRange, and BCD (8.1.9) has no api.NodeRange entry; it still tracks the two members under api.AbstractRange. So the BCD filter drops NodeRange. That leaves Range/StaticRange extending a missing type and silently drops startContainer/endContainer from both. #35 would have published that regression to every @baseline-types/dom-* package.

Fix

A patch in inputfiles/patches/dom.kdl that keeps the shape browsers actually ship:

  • re-adds startContainer/endContainer to AbstractRange (MDN descriptions still resolve from mdn.json);
  • Range and StaticRange extend AbstractRange again;
  • removals { interface NodeRange }. Baseline cuts need this: applyReferenceClosure runs before patches, still sees Range : NodeRange, and would otherwise keep NodeRange as an unused type-only interface in every cut.

The patch has to be removed once browsers and BCD ship NodeRange. This is tracked in #36, and the patch comment links to it.

Verification

  • npm test passes.
  • AbstractRange in baselines/dom.generated.d.ts (and the ts5.5/5.6/5.9 variants) matches the output before the update, apart from one upstream MDN wording change in the endOffset description.
  • Built every Baseline cut (2022, 2023, 2024, 2025, newly-available, widely-available):
    • no NodeRange anywhere;
    • AbstractRange has both container members, and Range/StaticRange extend it;
    • dom.generated.d.ts and webworker.generated.d.ts type-check on their own;
    • apart from the fix itself, the NodeRange removal changes nothing else in the cuts.

Release

Merging triggers Release baseline packages, which republishes whichever @baseline-types/dom-<target> packages changed relative to npm latest. Once this is merged, #35 can be closed.


Generated by Claude Code

uhyo and others added 3 commits November 14, 2026 12:11
@webref/idl 3.87.0 picks up the DOM spec change that moves
startContainer/endContainer from AbstractRange into a new intermediate
NodeRange interface, which Range and StaticRange now extend. No browser
ships NodeRange and BCD has no entry for it, so the BCD filter drops it,
leaving Range/StaticRange extending a missing type (TS2304) and losing
both container members.

Patch dom.kdl to keep the shipped shape: re-add the members to
AbstractRange (where BCD and MDN still track them), point Range and
StaticRange back at AbstractRange, and remove NodeRange explicitly so the
Baseline cuts' reference closure doesn't keep it as an orphan shell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KZB12ZXHat7nYEsQcJxGmd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KZB12ZXHat7nYEsQcJxGmd
@uhyo
uhyo merged commit 167dfc2 into baseline-filter Nov 14, 2026
2 checks passed
@uhyo
uhyo deleted the claude/gracious-wozniak-wsk1mf branch November 14, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants