Skip to content

Commit

Permalink
Version 16.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Jan 11, 2020
1 parent 020539e commit 902b69e
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE.md
@@ -1,7 +1,7 @@
### Basic info:

- **Node.js version:** <!-- only v8 and above are supported -->
- **jsdom version:** <!-- only v12 and above are supported -->
- **Node.js version:** <!-- only v10 and above are supported -->
- **jsdom version:** <!-- only v16 and above are supported -->

### Minimal reproduction case

Expand Down Expand Up @@ -29,4 +29,4 @@ issue, as we cannot debug whatever toolchain you are using.

### How does similar code behave in browsers?

(Link to a jsbin or similar suggested.)
(Link to a jsbin or similar strongly suggested.)
1 change: 1 addition & 0 deletions .mailmap
Expand Up @@ -16,6 +16,7 @@ Jeff Carpenter <gcarpenterv@gmail.com>
Sebastian Mayr <github@smayr.name> <sebastian@trello.com>
Sebastian Mayr <github@smayr.name> <sebmaster16@gmail.com>
Sebastian Mayr <github@smayr.name> <git@smayr.name>
Pierre-Marie Dartus <dartus.pierremarie@gmail.com> <p.dartus@salesforce.com>
Martin Naumann <mr.avgp@gmail.com> <martin@geekonaut.de>
Christoph Pojer <christoph.pojer@gmail.com>
Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
Expand Down
5 changes: 5 additions & 0 deletions AUTHORS.txt
Expand Up @@ -46,6 +46,7 @@ Christof Marti <chrmarti@microsoft.com>
Christoph Pojer <christoph.pojer@gmail.com>
Christophe Coevoet <stof@notk.org>
cjroebuck <tophtfc@gmail.com>
Connor Meredith <4907463+connormeredith@users.noreply.github.com>
Cyril Auburtin <cyril.auburtin@gmail.com>
daishi <daishi@axlight.com>
Damian Janowski <damian.janowski@gmail.com>
Expand Down Expand Up @@ -75,6 +76,7 @@ Eugene Ware <eugene@noblesamurai.com>
Evan Haas <evan@fictivekin.com>
Evan Jacobs <evan.jacobs@enigma.io>
Evan Jones <evan.q.jones@gmail.com>
ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
Federico Galassi <federico.galassi@gmail.com>
fegs <ang0123dev@gmail.com>
Felix Böhm <me@feedic.com>
Expand Down Expand Up @@ -148,7 +150,9 @@ Kasper Isager <kasperisager@gmail.com>
kblomquist <kblomquist@groupon.com>
Ken "Elf" Mathieu Sternberg <elf@pendorwright.com>
Kenneth Powers <ken@kenpowers.net>
Kevin Raynel <kraynel@users.noreply.github.com>
King Koopa <bbyholm@abo.fi>
Konto Mondo <kontomondo@gmail.com>
kontomondo <kontomondo@gmail.com>
Koushik Challa <challakoushik@gmail.com>
Kuriyama hibiya <kuriyama@hibiya.moe>
Expand Down Expand Up @@ -274,6 +278,7 @@ Wei Dai <x@wei23.net>
William Cunningham <w.a.cunningham.ii@gmail.com>
Xavi <xavi.rmz@gmail.com>
Yonathan <yonathan@gmail.com>
ytetsuro <phper.0o0@gmail.com>
Yun Cui <ycui@microstrategy.com>
Yunlei Liu <yunlei.liu@appfolio.com>
Zach Bjornson <zbbjornson@gmail.com>
Expand Down
29 changes: 29 additions & 0 deletions Changelog.md
Expand Up @@ -24,6 +24,35 @@ Other guidelines:
* Roughly order changes within those groupings by impact.
-->

## 16.0.0

For this release we'd like to welcome [@pmdartus](https://github.com/jsdom/jsdom/commits?author=pmdartus) to the core team. Among other work, he's driven the heroic effort of constructor prototype and reform in jsdom and its dependencies over the last few months, to allow us to move away from shared constructors and prototypes, and set the groundwork for custom elements support ([coming soon](https://github.com/jsdom/jsdom/pull/2548)!).

Breaking changes:

* Node v10 is now the minimum supported version.
* The `dom.runVMScript()` API has been replaced with the more general `dom.getInternalVMContext()` API.
* Each jsdom `Window` now creates new instances of all the web platform globals. That is, our old [shared constructor and prototypes](https://github.com/jsdom/jsdom/blob/35894a6703ed1f4de98942780bd99244ac27f600/README.md#shared-constructors-and-prototypes) caveat is no longer in play.
* Each jsdom `Window` now exposes all JavaScript-spec-defined globals uniformly. When `runScripts` is disabled, it exposes them as aliases of the ones from the outer Node.js environment. Whereas when `runScripts` is enabled, it exposes fresh copies of each global from the new scripting environment. (Previously, a few typed array classes would always be aliased, and with `runScripts` disabled, the other classes would not be exposed at all.)

Other changes:

* Added the `AbstractRange`, `Range`, `StaticRange`, `Selection`, and `window.getSelection()` APIs.
* Added working constructors for `Comment`, `Text`, and `DocumentFragment`.
* Added `valueAsDate`, `valueAsNumber`, `stepUp()` and `stepDown()` to `<input>` elements. (kraynel)
* Added `window.origin`.
* Removed `document.origin`.
* Fixed `<template>` to work correctly inside XML documents.
* Fixed some bugs which would cause jsdom to choose the wrong character encoding because it was failing to detect `<meta charset>` or `<meta http-equiv="charset">` elements.
* Fixed `input.type` to default to `"text"`. (connormeredith)
* Fixed incorrect validation errors for `<input>` with fractional values for their `step=""` attribute. (kontomondo)
* Fixed incorrect validation errors on readonly `<input>` elements.
* Fixed `<input type="email" multiple pattern="...">` validation.
* Fixed `fileReader.readAsDataURL()` to always base64-encode the result. (ytetsuro)
* Fixed inserting `<img>` elements into documents without a browsing context to no longer crash when the `canvas` package is installed.
* Fixed a memory leak when using `window.setTimeout()` or `window.setInterval()`.
* Improved the performance of `getComputedStyle()`. (eps1lon)

## 15.2.1

* Fixed `JSDOM.fromURL()` handling of URLs with hashes in them, to no longer send the hash to the server and append an extra copy of it when constructing the `Document`. (rchl)
Expand Down
5 changes: 3 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "jsdom",
"version": "15.2.1",
"version": "16.0.0",
"description": "A JavaScript implementation of many web standards",
"keywords": [
"dom",
Expand All @@ -14,7 +14,8 @@
"Sebastian Mayr <sebmaster16@gmail.com> (https://blog.smayr.name/)",
"Joris van der Wel <joris@jorisvanderwel.com>",
"Timothy Gu <timothygu99@gmail.com> (https://timothygu.me/)",
"Zirro <code@zirro.se>"
"Zirro <code@zirro.se>",
"Pierre-Marie Dartus <dartus.pierremarie@gmail.com>"
],
"license": "MIT",
"repository": "jsdom/jsdom",
Expand Down

0 comments on commit 902b69e

Please sign in to comment.