Packages

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

Other targets from 28.1.0Latest31.0.1
  1. 28.1.0yours
  2. 29.0.0target
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

  1. 29.0.0

    Migration needed15 Mar 20267 new · 7 fixes
    • Breaking

      Node.js v22.13.0+ is now the minimum supported v22 version (was v22.12.0+).

    • New

      Added CSSCounterStyleRule and CSSNamespaceRule to jsdom Windows.

    • New

      Added cssMediaRule.matches and cssSupportsRule.matches getters.

    • New

      Added proper media query parsing in MediaList, using css-tree instead of naive comma-splitting. Invalid queries become "not all" per spec.

2 other lines we could not sort, mostly version bumps
  • Overhauled the CSSOM implementation, replacing the @acemir/cssom and cssstyle dependencies with fresh internal implementations built on webidl2js wrappers and the css-tree parser. Serialization, parsing, and API behavior is improved in various ways, especially around edge cases.

    29.0.0
  • Improved Document initialization performance by lazily initializing the CSS selector engine, avoiding ~0.5 ms of overhead per Document.

    29.0.0

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.