npm jsdom 4.0.0

latest releases: 31.0.0, 30.1.3, 30.1.2...
11 years ago

This release relies on the newly-overhauled vm module of io.js to eliminate the Contextify native module dependency. jsdom should now be much easier to use and install, without requiring a C++ compiler toolchain!

Note that as of this release, jsdom no longer works with Node.js™, and instead requires io.js. You are still welcome to install a release in the 3.x series if you are stuck on legacy technology like Node.js™.

In the process of rewriting parts of jsdom to use vm, a number of related fixes were made regarding the Window object:

  • In some cases, state was implicitly shared between Window instances—especially parser- and serializer-related state. This is no longer the case, thankfully.
  • A number of properties of Window were updated for spec compliance: some data properties became accessors, and all methods moved from the prototype to the instance.
  • The non-standard document.parentWindow was removed, in favor of the standard document.defaultView. Our apologies for encouraging use of parentWindow in our README, tests, and examples.

Don't miss a new jsdom release

NewReleases is sending notifications on new releases.