Packages

jsdom

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

Upgrading jsdom From 5.0.0 to 5.6.1

11 releases in betweenevery note read

Other targets from 5.0.0Latest31.0.1
  1. 5.0.0yours
  2. 10 releases
  3. 5.6.1target
0
changes to make
0
advisories fixed
9
new
25
fixes

Release by release

  1. 5.6.1

    13 Jul 20153 fixes
    • Fixed

      Fixed an accidentally-created global attribute variable if you ever called createAttributeNS.

    • Fixed

      Parsing of CSS properties that use url("quoted string") now works correctly, as of cssstyle v0.2.29.

    • Fixed

      Selectors for the empty string, like div[title=""], now work correctly, as of nwmatcher v1.3.6.

  2. 5.6.0nothing new or fixed in the note

  3. 5.5.0

    30 Jun 20151 new · 8 fixes
    • New

      Added postMessage support, for communicating between parent windows, iframes, and combinations thereof. It's missing a few semantics, especially around origins, as well as MessageEvent source. Objects are not yet structured cloned, but instead passed by reference. But it's working, and awesome!

    • Fixed

      Elements with weird tag names, of the type that only the parser can normally create, can now be cloned

    • Fixed

      Doctypes can now be cloned, per the latest spec.

    • Fixed

      Attrs cannot be cloned, per the latest spec (although they still have a cloneNode method for now due to legacy).

  4. 5.4.3nothing new or fixed in the note

  5. 5.4.2

    19 May 20151 fix
    • Fixed

      Fixed license metadata to conform to latest npm standards.

  6. 5.4.1

    11 May 20151 fix
    • Fixed

      Fixed to work with browserify again (regression introduced in v5.4.0).

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

  8. 5.3.0

    29 Apr 20151 new
    • New

      Added a virtualConsole option to the document creation methods, along with the jsdom.createVirtualConsole factory. (See examples in the readme.) With this option you can install a virtual console before the document is even created, thus allowing you to catch any virtual console events that occur during initialization.

8 other lines we could not sort, mostly version bumps
  • virtualConsole.sendTo now returns this, allowing for a nice shorthand.

    5.6.0
  • Incorporated upstream fix for setting el.style.cssText to an invalid value, which should be ignored instead of causing an error to be thrown. This same bug has also caused an error while setting the style attribute to an invalid value, ever since 5.4.0. (Joris-van-der-Wel; chad3814 upstream)

    5.4.3
  • 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
  • Moved children from Node to ParentNode, i.e., made it available on Document, DocumentFragment, and Element, but not other types of nodes.

    5.2.0
  • Made children a HTMLCollection instead of a NodeList.

    5.2.0
  • Updated tough-cookie to 0.13.0, bringing along many spec compliance fixes.

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