From 902b69e15ac4af23c1407305d343939dfe062a2d Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Fri, 10 Jan 2020 22:32:03 -0500 Subject: [PATCH] Version 16.0.0 --- .github/ISSUE_TEMPLATE.md | 6 +++--- .mailmap | 1 + AUTHORS.txt | 5 +++++ Changelog.md | 29 +++++++++++++++++++++++++++++ package.json | 5 +++-- 5 files changed, 41 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index b2b29e43c1..001f5c0878 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,7 +1,7 @@ ### Basic info: -- **Node.js version:** -- **jsdom version:** +- **Node.js version:** +- **jsdom version:** ### Minimal reproduction case @@ -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.) diff --git a/.mailmap b/.mailmap index 252a3d0a30..43e309dbce 100644 --- a/.mailmap +++ b/.mailmap @@ -16,6 +16,7 @@ Jeff Carpenter Sebastian Mayr Sebastian Mayr Sebastian Mayr +Pierre-Marie Dartus Martin Naumann Christoph Pojer Michał Gołębiowski-Owczarek diff --git a/AUTHORS.txt b/AUTHORS.txt index c179ff5c3a..cdce27f706 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -46,6 +46,7 @@ Christof Marti Christoph Pojer Christophe Coevoet cjroebuck +Connor Meredith <4907463+connormeredith@users.noreply.github.com> Cyril Auburtin daishi Damian Janowski @@ -75,6 +76,7 @@ Eugene Ware Evan Haas Evan Jacobs Evan Jones +ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Federico Galassi fegs Felix Böhm @@ -148,7 +150,9 @@ Kasper Isager kblomquist Ken "Elf" Mathieu Sternberg Kenneth Powers +Kevin Raynel King Koopa +Konto Mondo kontomondo Koushik Challa Kuriyama hibiya @@ -274,6 +278,7 @@ Wei Dai William Cunningham Xavi Yonathan +ytetsuro Yun Cui Yunlei Liu Zach Bjornson diff --git a/Changelog.md b/Changelog.md index 26c1e0ceb5..f9d52d447d 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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 `` elements. (kraynel) +* Added `window.origin`. +* Removed `document.origin`. +* Fixed `