Packages

jsdom

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

Upgrading jsdom From 5.3.0 to 5.4.0

1 release in betweenevery note read

Other targets from 5.3.0Newest 5.x5.6.1Latest31.0.1
  1. 5.3.0yours
  2. 5.4.0target
0
changes to make
0
advisories fixed
3
new
2
fixes

Release by release

  1. 5.4.0

    10 May 20153 new · 2 fixes
    • New

      Added support for the default HTML stylesheet when using window.getComputedStyle!

    • New

      Added support for named properties on window: any elements with an id attribute, or certain elements with a name attribute, will cause properties to show up on the window, and thus as global variables within the jsdom.

    • New

      Implemented the NonDocumentTypeChildNode mixin. Practically, this means adding nextElementSibling and previousElementSibling to Element and the various types of CharacterData.

    • Fixed

      Fixed an unfortunate bug where getElementById would fail to work correctly on <img> elements whose id attributes were modified.

    • Fixed

      Fixed the virtualConsole option to work with jsdom.env, not just jsdom.jsdom.

3 other lines we could not sort, mostly version bumps
  • Updated StyleSheetList to inherit from Array, as per the latest CSSOM spec.

    5.4.0
  • Overhauled the handling of attributes throughout the DOM, to follow the spec more exactly.

    5.4.0
  • Removed a few functions that were erroneously added to window: mapper, mapDOMNodes, and visitTree.

    5.4.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.