Update dependency jsdom to v16
Created by: renovate[bot]
This PR contains the following updates:
| Package | Type | Update | New value | References | Sourcegraph |
|---|---|---|---|---|---|
| jsdom | devDependencies | major | ^16.4.0 | source | |
| @types/jsdom | devDependencies | major | 16.2.4 | source |
Release Notes
jsdom/jsdom
v16.4.0
- Added a not-implemented warning if you try to use the second pseudo-element argument to
getComputedStyle(), unless you pass a::partor::slottedpseudo-element, in which case we throw an error per the spec. (ExE-Boss) - Improved the performance of repeated access to
el.tagName, which also indirectly improves performance of selector matching and style computation. (eps1lon) - Fixed
form.elementsto respect theform=""attribute, so that it can contain non-descendant form controls. (ccwebdesign) - Fixed
el.focus()to do nothing on disconnected elements. (eps1lon) - Fixed
el.focus()to work on SVG elements. (zjffun) - Fixed removing the currently-focused element to move focus to the
<body>element. (eps1lon) - Fixed
imgEl.completeto return true for<img>elements with empty or unsetsrc=""attributes. (strager) - Fixed
imgEl.completeto return true if an error occurs loading the<img>, when canvas is enabled. (strager) - Fixed
imgEl.completeto return false if the<img>element'ssrc=""attribute is reset. (strager) - Fixed the
valueMissingvalidation check for<input type="radio">. (zjffun) - Fixed
translate=""anddraggable=""attribute processing to use ASCII case-insensitivity, instead of Unicode case-insensitivity. (zjffun)
v16.3.0
- Added firing of
focusinandfocusoutwhen usingel.focus()andel.blur(). (trueadm) - Fixed elements with the
contenteditable=""attribute to be considered as focusable. (jamieliu386) - Fixed
window.NodeFilterto be per-Window, instead of shared across allWindows. (ExE-Boss) - Fixed edge-case behavior involving use of objects with
handleEventproperties as event listeners. (ExE-Boss) - Fixed a second failing image load sometimes firing a
loadevent instead of anerrorevent, when thecanvaspackage is installed. (strager) - Fixed drawing an empty canvas into another canvas. (zjffun)
v16.2.2
- Updated
StyleSheetListfor better spec compliance; notably it no longer inherits fromArray.prototype. (ExE-Boss) - Fixed
requestAnimationFrame()from preventing process exit. This likely regressed in v16.1.0. - Fixed
setTimeout()to no longer leak the closures passed in to it. This likely regressed in v16.1.0. (AviVahl) - Fixed infinite recursion that could occur when calling
click()on a<label>element, or one of its descendants. - Fixed
getComputedStyle()to consider inlinestyle=""attributes. (eps1lon) - Fixed several issues with
<input type="number">'sstepUp()andstepDown()functions to be properly decimal-based, instead of floating point-based. - Fixed various issues where updating
selectEl.valuewould not invalidate properties such asselectEl.selectedOptions. (ExE-Boss) - Fixed
<input>'ssrcproperty, and<ins>/<del>'sciteproperty, to properly reflect as URLs. - Fixed
window.addEventLister,window.removeEventListener, andwindow.dispatchEventto properly be inherited fromEventTarget, instead of being distinct functions. (ExE-Boss) - Fixed errors that would occur if attempting to use a DOM object, such as a custom element, as an argument to
addEventListener. - Fixed errors that would occur when closing a window with outstanding requests to
data:URLs. - Fixed sporadic issues with the value of
<input type="month">that could occur in some time zones and for some times. - Fixed
document.implementation.createDocument()to return anXMLDocument, instead of aDocument. (ExE-Boss) - Fixed running jsdom in a browser to detect globals more reliably. (ExE-Boss)
v16.2.1
- Updated
saxes, to bring in some BOM-related fixes. - Updated Acorn-related packages to squelch
npm auditwarnings.
v16.2.0
- Added support for custom elements! Congratulations and thanks to @pmdartus for making this happen, after ten months of hard work and lots of effort poured into the complex architectural prerequisites in jsdom and supporting packages.
- Fixed some issues when trying to use
Attras aNode, e.g. by checking itsbaseURIproperty or callingattr.cloneNode(). - Fixed a memory leak during parsing that was introduced in v14.0.0.
- Fixed edge cases in number/string conversion used for certain element properties that reflected integer attributes.
v16.1.0
- Added
console.timeLog(). - Changed
Attrto extendNode, to align with specifications. (ExE-Boss) - Changed
<noscript>children to be parsed as nodes, instead of as text, whenrunScriptsis left as the default ofundefined. (ACHP) - Upgraded
cssstyleto v2.1.0, which brings along fixes to handling ofrgba()andhsl()colors. (kraynel) - Fixed some selection-related issues when manipulating the value of
<input>s and<textarea>s. (Matthew-Goldberg) - Fixed various issues with
setTimeout(),setInterval(), andrequestAnimationFrame(), particularly around window closing and recursive calls.
v16.0.1
- Fixed Node v10 and v11 support when
runScriptswas set. - Fixed the behavior when changing an
<input>'stype=""attribute. - Fixed input validation behavior for
<input type="range">whenmax=""is less thanmin="".
v16.0.0
For this release we'd like to welcome @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!).
Breaking changes:
- Node v10 is now the minimum supported version.
- The
dom.runVMScript()API has been replaced with the more generaldom.getInternalVMContext()API. - Each jsdom
Windownow creates new instances of all the web platform globals. That is, our old shared constructor and prototypes caveat is no longer in play. - Each jsdom
Windownow exposes all JavaScript-spec-defined globals uniformly. WhenrunScriptsis disabled, it exposes them as aliases of the ones from the outer Node.js environment. Whereas whenrunScriptsis enabled, it exposes fresh copies of each global from the new scripting environment. (Previously, a few typed array classes would always be aliased, and withrunScriptsdisabled, the other classes would not be exposed at all.)
Other changes:
- Added the
AbstractRange,Range,StaticRange,Selection, andwindow.getSelection()APIs. - Added working constructors for
Comment,Text, andDocumentFragment. - Added
valueAsDate,valueAsNumber,stepUp()andstepDown()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.typeto default to"text". (connormeredith) - Fixed incorrect validation errors for
<input>with fractional values for theirstep=""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 thecanvaspackage is installed. - Fixed a memory leak when using
window.setTimeout()orwindow.setInterval(). - Improved the performance of
getComputedStyle(). (eps1lon)
Renovate configuration
-
If you want to rebase/retry this PR, check this box
This PR has been generated by WhiteSource Renovate. View repository job log here.