Skip to content

Commit

Permalink
Version 10.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Apr 24, 2017
1 parent c854f7e commit 50ebb59
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
5 changes: 5 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ Jeremy Danyow <[email protected]>
Jérémy Lal <[email protected]>
Jerry Sievert <[email protected]>
Jimmy Mabey <[email protected]>
Joe Lencioni <[email protected]>
Johan Sköld <[email protected]>
John Hurliman <[email protected]>
John Roberts <[email protected]>
Expand Down Expand Up @@ -132,10 +133,13 @@ Louis-Dominique Dubeau <[email protected]>
lovebear <[email protected]>
Ludovico Fischer <[email protected]>
Lukas Bünger <[email protected]>
makana <[email protected]>
Manuel Lopez <[email protected]>
Marak Squires <[email protected]>
Marc-Andre Lafortune <[email protected]>
Mariusz Nowak <[email protected]>
Martin Naumann <[email protected]>
Matt Broadstone <[email protected]>
Matthew Crinklaw-Vogt <[email protected]>
Matthew King <[email protected]>
Matthew Pflueger <[email protected]>
Expand Down Expand Up @@ -222,3 +226,4 @@ William Cunningham <[email protected]>
Xavi <[email protected]>
Yonathan <[email protected]>
Zach Smith <[email protected]>
Zirro <[email protected]>
20 changes: 19 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
## 10.0.0

This release includes a complete overhaul of jsdom's API for creating and manipulating jsdoms. The new API is meant to be much more intuitive and have better defaults, with complete documentation in the newly-overhauled README. We hope you like it!

As discussed in the new README, the old API is still available and supported via `require("jsdom/lib/old-api.js")`, at least until we have ported all of its features over to the new API. It will, however, not be gaining any new features, and we suggest you try the new API unless you really need the customizable resource loading the old API provides.

Apart from the new API, the following changes were made, with breaking changes bolded:

* **Removed support for Node.js v4 and v5**, as we have started using new JavaScript features only supported in Node.js v6 onwards.
* **Changed the `omitJsdomErrors` option to `omitJSDOMErrors`**, for consistency [with web platform APIs](https://w3ctag.github.io/design-principles/#casing-rules).
* Added `document.dir`. (Zirro)
* Updated the `<a>` and `<area>` APIs to the latest specification, and fixed a few bugs with them. (makana)
* Fixed `XMLHttpRequest` preflights to forward approved preflight headers to the actual request. (mbroadst)
* Fixed `htmlElement.dir` to properly restrict its values to `"ltr"`, `"rtl"`, or `"auto"`. (Zirro)
* Fixed setting `innerHTML` to the empty string to no longer be a no-op. (Zirro)
* Fixed the origin-checking logic in `window.postMessage()`, so that now you don't always have to pass an origin of `"*"`. (jmlopez-rod)
* Improved the `xhr.open()` error message when there are not enough arguments. (lencioni)

## 9.12.0

* Added the `Option` named constructor. (NAlexPear)
* Added support for the `canvas-prebuilt` npm package as an alternative to `canvas`.
* Added support for the `canvas-prebuilt` npm package as an alternative to `canvas`. (asturur)
* Fixed `setTimeout()` and `setInterval()` to always return a positive integer, instead of returning `0` the first time were called. (yefremov)
* Fixed `jsdom.env()` to preserve URL fragments across redirects. (josephfrazier)
* Fixed `optionEl.text` and `optionEl.value` to be more spec-compliant.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jsdom",
"version": "9.12.0",
"description": "A JavaScript implementation of the DOM and HTML standards",
"version": "10.0.0",
"description": "A JavaScript implementation of many web standards",
"keywords": [
"dom",
"html",
Expand Down

0 comments on commit 50ebb59

Please sign in to comment.