jsdom v15.0.0 Release NotesRelease Date: 2019-04-21 // 8 months ago
Several potentially-breaking changes, each of them fairly unlikely to actually break anything:
application/xhtml+xml, the same as it does for
.xml. Previously, it would treat them as
- 💻 If the
contentTypeoption has a
charsetparameter, and the first argument to the constructor is a binary data type (e.g.
ArrayBuffer), then the
charsetwill override any sniffed encoding in the same way as a
Content-Typeheader would in browser scenarios. Previously, the
charsetparameter was ignored.
- 🏁 When using the
Fileconstructor with the
endings: "native"option, jsdom will now convert line endings to
\non all operating systems, for consistency. Previously, on Windows, it would convert line endings to