jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 14.1.0 to 15.0.0
1 release in betweenevery note read
- ?
- changes to make
- 0
- advisories fixed
- 0
- new
- 0
- fixes
3 other lines we could not sort, mostly version bumps
- 15.0.0
JSDOM.fromFile()now treats.xhtfiles asapplication/xhtml+xml, the same as it does for.xhtmland.xml. Previously, it would treat them astext/html. - 15.0.0
If the
JSDOMconstructor'scontentTypeoption has acharsetparameter, and the first argument to the constructor is a binary data type (e.g.BufferorArrayBuffer), then thecharsetwill override any sniffed encoding in the same way as aContent-Typeheader would in browser scenarios. Previously, thecharsetparameter was ignored. - 15.0.0
When using the
BloborFileconstructor with theendings: "native"option, jsdom will now convert line endings to\non all operating systems, for consistency. Previously, on Windows, it would convert line endings to\r\n.
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.