This repository was archived by the owner on Apr 17, 2020. It is now read-only.
chore(deps): update dependency jsdom to v16#94
Open
renovate[bot] wants to merge 1 commit intodevfrom
Open
Conversation
|
Deploy preview for kcnt failed. Built with commit 84e7793 https://app.netlify.com/sites/kcnt/deploys/5e2370f0356fe90009938306 |
84e7793 to
01c528b
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
Signed-off-by: Renovate Bot <bot@renovateapp.com>
01c528b to
fc99fb5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
13.1.0->16.2.1Release Notes
jsdom/jsdom
v16.2.1Compare Source
npm auditwarningsv16.2.0Compare Source
Attras aNode, e.g. by checking itsbaseURIproperty or callingattr.cloneNode().v16.1.0Compare Source
console.timeLog().Attrto extendNode, to align with specifications. (ExE-Boss)<noscript>children to be parsed as nodes, instead of as text, whenrunScriptsis left as the default ofundefined. (ACHP)cssstyleto v2.1.0, which brings along fixes to handling ofrgba()andhsl()colors. (kraynel)<input>s and<textarea>s. (Matthew-Goldberg)setTimeout(),setInterval(), andrequestAnimationFrame(), particularly around window closing and recursive calls.v16.0.1Compare Source
runScriptswas set.<input>'stype=""attribute.<input type="range">whenmax=""is less thanmin="".v16.0.0Compare Source
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:
dom.runVMScript()API has been replaced with the more generaldom.getInternalVMContext()API.Windownow creates new instances of all the web platform globals. That is, our old shared constructor and prototypes caveat is no longer in play.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:
AbstractRange,Range,StaticRange,Selection, andwindow.getSelection()APIs.Comment,Text, andDocumentFragment.valueAsDate,valueAsNumber,stepUp()andstepDown()to<input>elements. (kraynel)window.origin.document.origin.<template>to work correctly inside XML documents.<meta charset>or<meta http-equiv="charset">elements.input.typeto default to"text". (connormeredith)<input>with fractional values for theirstep=""attribute. (kontomondo)<input>elements.<input type="email" multiple pattern="...">validation.fileReader.readAsDataURL()to always base64-encode the result. (ytetsuro)<img>elements into documents without a browsing context to no longer crash when thecanvaspackage is installed.window.setTimeout()orwindow.setInterval().getComputedStyle(). (eps1lon)v15.2.1Compare Source
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 theDocument. (rchl)focusevents. (eps1lon)mediaElement.addTextTrack(). (mtsmfm)nwsapiminimum version to 2.2.0, which fixes issues with::-webkit-prefixed pseudo-elements and namespaced attribute selectors.v15.2.0Compare Source
getComputedStyle()for the'visibility'property. This sets the foundation for further work on inheritance, cascading, and specificity. (eps1lon)shadowRoot.activeElement.readystatechangeevents during document loading.form.requestSubmit(), to match our existing stub forform.submit().el.tabIndex's default value, when notabindex=""attribute was set, to reflect the updated specification.el.attachShadow()on something that's already a shadow host, to reflect the updated specification.<input type="range">.selectEl.valuewhen no<option>is selected to return the empty string, instead of the value of the first option. (tgohn)new FormData(formElement). (brendo)"undefined". (papandreou)el.getAttributeNS()orel.setAttributeNS().canvasas an optional ``peerDependency`, which apparently helps with Yarn PnP support.v15.1.1Compare Source
nonceproperty fromHTMLScriptElementandHTMLStyleElementtoHTMLElement. Note that it is still just a simple reflection of the attribute, and has not been updated for the rest of the changes in whatwg/html#2373.styleandon<event>properties to properly track their related attributes for SVG elements. (kbruneel)XMLHttpRequestmerging preflight and response headers. (thiagohirata)XMLHttpRequestreserializingcontent-typerequest headers unnecessarily. See whatwg/mimesniff#84 for more details. (thiagohirata)element.tagNameto be the ASCII uppercase of the element's qualified name, instead of the Unicode uppercase.v15.1.0Compare Source
Headersclass from the Fetch standard.element.translategetter and setter.XMLHttpRequeston the newly-released Node.js v12.form.elementsto exclude<input type="image">elements.pattern=""form control validation to apply the given regular expression to the whole string. (kontomondo)v15.0.0Compare Source
Several potentially-breaking changes, each of them fairly unlikely to actually break anything:
JSDOM.fromFile()now treats.xhtfiles asapplication/xhtml+xml, the same as it does for.xhtmland.xml. Previously, it would treat them astext/html.JSDOMconstructor'scontentTypeoption has acharsetparameter, and the first argument to the constructor is a binary data type (e.g.BufferorArrayBuffer), then thecharsetwill override any sniffed encoding in the same way as aContent-Typeheader would in browser scenarios. Previously, thecharsetparameter was ignored.BloborFileconstructor with theendings: "native"option, jsdom will now convert line endings to\non all operating systems, for consistency. Previously, on Windows, it would convert line endings to\r\n.v14.1.0Compare Source
<a>and<area>elements whosehref=""points to ajavascript:URL or fragment.<datalist>element'soptionsproperty.<input>element'slistproperty.PageTransitionEvent, and the firing ofpageshowevents during loading.Externalclass as a property ofwindow.innerHTMLandouterHTML) to be spec-compliant. (pmdartus)innerHTML) breaking after setting certain properties to non-string values.<style>s to no longer apply to documents without a browsing context. This includes fixing a crash that would occur with such styles if they had an@importrule.<option>'slabelandvalueproperties to return correct values in various edge cases.loadevent during document loading to target theDocument, not theWindow.pretendToBeVisualoption to propagate to child subframes, as well as the mainWindow. (pyrho)nwsapiversion from v2.1.1 to v2.1.3, bringing along a few fixes in our selector engine.v14.0.0Compare Source
Breaking changes:
JSDOM.fragment()now creates fragments whose document has no browsing context, i.e. no associatedWindow. This means thedefaultViewproperty will be null, resources will not load, etc.JSDOM.fragment(), called with no arguments, now creates aDocumentFragmentwith no children, instead of with a single child text node whose data was"undefined".Other changes:
element.blur()on a focused element.<link>elements into documents with no browsing context to no longer crash if the originatingJSDOMwas configured to fetch the resource. Now, per spec,<link>elements only attempt to fetch if they are browsing-context connected.<template>elements to have the correct semantics, of using a separate browsing-context-less document to store its contents. In particular this means resources will not be fetched for elements inside the<template>, as per spec.v13.2.0Compare Source
MutationObservers! (pmdartus)<progress>element'svalue,max, andpositionproperties.navigator.pluginsandnavigator.mimeTypes. (But, they are always empty.)<summary>elements respond toclickevents by toggling their parent<details>.<summary>elements to be focusable.isTrustedset totrue.DOMParser-created documents to have theirreadyStateset to"complete".<fieldset>s get disabled.getComputedStyle()to throw a sensible exception when passed the wrong argument, instead of one that exposes jsdom internals.saxesdependency, so that it now correctly errors on XML fragments like<foo bar:="1"/>.Renovate configuration
📅 Schedule: "after 10pm every weekday,before 5am every weekday,every weekend" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.