Packages

jsdom

31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed

Your version

30.1.2

4 Oct 2026Where it was published

30.1.3 is the newest release of 30.x.

In short

12 fixed2 changed

Release note

  • Updated URLs to support Unicode v18.0.0 in internationalized domain names.

  • Reduced package size and memory use for CSS property definitions.

  • Fixed severe slowdowns when building large DOM trees, including SVG charts with D3, which regressed in v30.1.0.

  • Fixed exponentially slow reads of empty inherited CSS custom properties in deeply nested documents, and custom properties incorrectly inheriting past an initial reset.

  • Fixed getComputedStyle() returning stale results after editing stylesheet declarations, selectors, or media queries, including in imported stylesheets.

  • Fixed selector matching and computed styles after changes to form control checkedness, indeterminacy, selection, values, and validity, including during form resets and canceled clicks.

  • Fixed computed styles for :focus, :focus-visible, :focus-within, and selectors containing them after focus changes, including inside focus and blur listeners.

  • Fixed element.focus() incorrectly focusing elements hidden by 'display', including through shadow hosts and slots, and elements excluded by shadow DOM slot assignment.

  • Fixed getComputedStyle() throwing for elements without inline-style support, including XML and MathML elements.

  • Fixed a memory leak where stylesheet parsing retained the last parsed stylesheet's window after window.close().

  • Fixed memory growth from long-lived MutationObserver instances retaining bookkeeping for garbage-collected nodes.

  • Fixed retained select.selectedOptions collections becoming stale after selection changes and form resets.

  • Fixed rejection of negative CSS sizing values, including for 'min-width', 'min-height', 'max-width', and 'max-height', which regressed in v30.1.0.

  • Fixed handling of deeply nested color-mix() expressions, including exceptions during color resolution.

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.