# jsdom Changelog
## 16.6.0
* Added `parentNode.replaceChildren()`. (ninevra)
* Fixed jsdom's handling of when code running inside the jsdom throws `null` or `undefined` as an exception. (mbest)
* Removed the dependency on the deprecated [`request`](https://www.npmjs.com/package/request) package, in the process fixing several issues with the `XMLHttpRequest` implementation around header processing. Special thanks to vegardbb for completing this months-long effort!
## 16.5.3
* Fixed infinite recursion when using `MutationObserver`s to observe elements inside a `MutationObserver` callback.
## 16.5.2
* Fixed `Access-Control-Allow-Headers: *` to work with `XMLHttpRequest`. (silviot)
* Fixed `xhr.response` to strip any leading BOM when `xhr.responseType` is `"json"`.
* Fixed `new Text()` and `new Comment()` constructors to properly set the resulting node's `ownerDocument`.
* Fixed `customElements.whenDefined()` to resolve its returned promise with the custom element constructor, per recent spec updates. (ExE-Boss)
* Fixed parsing to ensure that `` does not throw an exception, but instead correctly produces a SVG-namespace `` element.
* Fixed `domParser.parseFromString()` to treat `