Packages

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

Other targets from 14.1.0Latest31.0.1
The note of 15.0.0 lists no breaking change or deprecation, which is rare for a major.
  1. 14.1.0yours
  2. 15.0.0target
?
changes to make
0
advisories fixed
0
new
0
fixes
3 other lines we could not sort, mostly version bumps
  • JSDOM.fromFile() now treats .xht files as application/xhtml+xml, the same as it does for .xhtml and .xml. Previously, it would treat them as text/html.

    15.0.0
  • If the JSDOM constructor's contentType option has a charset parameter, and the first argument to the constructor is a binary data type (e.g. Buffer or ArrayBuffer), then the charset will override any sniffed encoding in the same way as a Content-Type header would in browser scenarios. Previously, the charset parameter was ignored.

    15.0.0
  • When using the Blob or File constructor with the endings: "native" option, jsdom will now convert line endings to \n on all operating systems, for consistency. Previously, on Windows, it would convert line endings to \r\n.

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