jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 28.1.0 to 29.0.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 7
- new
- 7
- fixes
Before you upgrade
Tick each one off as you go- Breaking29.0.0
Release by release
- Breaking
Node.js v22.13.0+ is now the minimum supported v22 version (was v22.12.0+).
- New
Added
CSSCounterStyleRuleandCSSNamespaceRuleto jsdomWindows. - New
Added
cssMediaRule.matchesandcssSupportsRule.matchesgetters. - New
Added proper media query parsing in
MediaList, usingcss-treeinstead of naive comma-splitting. Invalid queries become"not all"per spec.
- Breaking
2 other lines we could not sort, mostly version bumps
- 29.0.0
Overhauled the CSSOM implementation, replacing the
@acemir/cssomandcssstyledependencies with fresh internal implementations built on webidl2js wrappers and thecss-treeparser. Serialization, parsing, and API behavior is improved in various ways, especially around edge cases. - 29.0.0
Improved
Documentinitialization performance by lazily initializing the CSS selector engine, avoiding ~0.5 ms of overhead perDocument.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.