Download Latest Version Version 26.1.0 source code.tar.gz (4.2 MB)
Email in envelope

Get an email when there's a new version of jsdom

Home / 25.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2024-08-25 675 Bytes
Version 25.0.0 source code.tar.gz 2024-08-25 4.1 MB
Version 25.0.0 source code.zip 2024-08-25 4.5 MB
Totals: 3 Items   8.7 MB 0

This major release changes the prototype of a jsdom's EventTarget.prototype to point to the Object.prototype inside the jsdom, instead of pointing to the Node.js Object.prototype. Thus, the prototype chain of Window stays entirely within the jsdom, never crossing over into the Node.js realm.

This only occurs when runScripts is set to non-default values of "dangerously" or "outside-only", as with the default value, there is no separate Object.prototype inside the jsdom.

This will likely not impact many programs, but could cause some changes in instanceof behavior, and so out of an abundance of caution, we're releasing it as a new major version.

Source: README.md, updated 2024-08-25