terminus-ui
terminus-ui copied to clipboard
chore(packages): update dependency jsdom to v25
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| jsdom | 16.2.2 -> 25.0.0 |
Release Notes
jsdom/jsdom (jsdom)
v25.0.0
This major release changes the prototype of a jsdom's EventTarget.prototype to point to the Object.prototype inside the jsdom, instead of pointing to the Node.js Object.prototype. Thus, the prototype chain of Window stays entirely within the jsdom, never crossing over into the Node.js realm.
This only occurs when runScripts is set to non-default values of "dangerously" or "outside-only", as with the default value, there is no separate Object.prototype inside the jsdom.
This will likely not impact many programs, but could cause some changes in instanceof behavior, and so out of an abundance of caution, we're releasing it as a new major version.
v24.1.3
- Fixed calls to
postMessage()that were done as a bare property (i.e.,postMessage()instead ofwindow.postMessage()).
v24.1.2
- Fixed an issue with the
inoperator applied toEventTargetmethods, e.g.'addEventListener' in window, which only appeared in Node.js ≥22.5.0. (legendecas) - Fixed the events fired by
blur(): it no longer firesfocusandfocusinon theDocument, andblurandfocusoutno longer have theirrelatedTargetproperty set. (asamuzaK)
v24.1.1
- Fixed selection methods to trigger the
selectionchangeevent on theDocumentobject. (piotr-oles)
v24.1.0
- Added the
getSetCookie()method to theHeadersclass. (ushiboy) - Fixed the creation and parsing of elements with names from
Object.prototype, like"constructor"or"toString". - Updated
rweb-cssom, which can now parse additional CSS constructs.
v24.0.0
This release reverts our selector engine back to nwsapi. As discussed in #​3659, the performance regressions from @asamuzakjp/dom-selector turned out to be higher than anticipated. In the future, we can revisit @asamuzakjp/dom-selector after it reaches nwsapi's performance on the two real-world benchmarks provided by the community.
Since reverting to nwsapi causes several functionality regressions, e.g. removing :has() support, we've decided to make this a major version.
Additionally:
- Small fixes to edge-case behavior of the following properties:
input.maxLength,input.minLength,input.size,progress.max,tableCell.colSpan,tableCell.rowSpan,tableCol.span,textArea.cols,textArea.maxLength,textArea.minLength,textArea.rows.
v23.2.0
This release switches our CSS selector engine from nwsapi to @asamuzakjp/dom-selector. The new engine is more actively maintained, and supports many new selectors: see the package's documentation for the full list. It also works better with shadow trees.
There is a potential of a performance regression due to this change. In our stress test benchmark, which runs most of these 273 selectors against this 128 KiB document, the new engine completes the benchmark only 0.25x as fast. However, we're hopeful that in more moderate usage this will not be a significant issue. Any help speeding up @asamuzakjp/dom-selector is appreciated, and feel free to open an issue if this has had a significant impact on your project.
v23.1.0
- Added an initial implementation of
ElementInternals, including theshadowRootgetter and the string-valued ARIA properties. (zjffun) - Added the string-valued ARIA attribute-reflecting properties to
Element. - Fixed
history.pushState()andhistory.replaceState()to follow the latest specification, notably with regards to how they handle empty string inputs and what new URLs are possible. - Fixed the
input.valueAsANumbersetter to handleNaNcorrectly. (alexandertrefz) - Updated various dependencies, including
cssstylewhich contains several bug fixes.
v23.0.1
- Fix incorrect
canvaspeer dependency.
v23.0.0
v22.1.0
- Added
crypto.randomUUID(). (jamesbvaughan) - Added
DOMRectandDOMRectReadOnly. - Added
AbortSignal.timeout(). - Added
abortSignal.throwIfAborted(). - Added support for the
submitterargument to theFormDataconstructor. (jenseng) - Improved
getComputedStyle()'s results for color-based properties, to resolve named colors and attempt to provide initial inheritance support. (hoekz-wwt) - Updated
Window's event handler properties (e.g.oncopy,ontouchstart, etc.) to reflect the latest list from the standard. - Fixed
DOMParser-created documents to inherit their URL from the creating document.
v22.0.0
- Node.js v16 is now the minimum supported version.
- Removed support for running jsdom in the browser via a browserified bundle. This carried with it too much complexity, especially for our testing infrastructure, and a testing package we relied on was recently deprecated.
v21.1.2
- Fixed
setRangeText()used on<input>and<textarea>elements to calculate the new end index correctly. (pmstss) - Fixed
pageX,pageY,offsetX, andoffsetYonMouseEvents during dispatch. (jenseng) - Upgraded
nwsapito v2.2.4, bringing along various fixes to our selector engine.
v21.1.1
- Fixed
jsdom.reconfigure()to also adjust the URL as seen by the history API, so that e.g.history.replaceState(null, "")would not mess up the URL. (jdufresne) - Fixed
location.hash = ""to leave any#in location.href. - Fixes a few bugs with CSS parsing by replacing
cssomwithrweb-cssom, since the latter is maintained. (seanparmelee)
v21.1.0
- Added
x,y,pageX,pageY,offsetX, andoffsetYtoMouseEvent. (jenseng, ViniciusFXavier) - Added support for
unsetwithgetComputedStyle(). (jsnajdr) - Added the
submitterproperty toSubmitEvent. (jenseng) - Fixed
MouseEvent'sscreenXandscreenYto no longer coerce to integers, allowing fractional values. (jenseng) - Fixed
formEl.submit()to not longer firesubmitevents. (jenseng) - Fixed stylesheets to no longer affect the document after their corresponding
<link>is removed. (jsnajdr) - Fixed
pointer-eventsto inherit when used withgetComputedStyle(). (jnajdr) - Fixed
<script>elements with nosrc=""to no longer fireloadevents. (t1ger2080) - Improved
getComputedStyle()to cache its results, which should make it much faster. (jsnajdr)
v21.0.0
A potentially-breaking bug fix:
- Fixed the
window,document,location, andtopproperties ofWindowto be non-configurable. (ExE-Boss)
Other changes:
- Added support for
<input type=image>submitting forms. (jenseng) - Added the
locationsetter to theWindowobject, which forwards to thelocation.hrefsetter. Setting the URL is still only implemented for fragment navigations, however. (ExE-Boss) - Fixed
defer=""<script>elements that are added afterDOMContentLoadedto execute, instead of being skipped. - Fixed
selectElement.selectedOptionsbeing incorrect whenoptionElement.selectedis set. This was a regression introduced in v20.0.1. Unfortunately this also reverts the performance improvement when appending<option>elements that was introduced then. (eps1lon) - Fixed the
self,locationbar,menubar,personalbar,scrollbars,statusbar,toolbar,frames,parent,external,length, andscreenproperties ofWindowto be replaceable: that is, setting them will override their values, instead of having the new value be ignored. (ExE-Boss) - Fixed a few issues with
JSDOM.fromURL()in the browser build of jsdom. (LungZeno)
v20.0.3
- Updated dependencies, notably
w3c-xmlserializer, which fixes usingDOMParseron XML documents containing emoji.
v20.0.2
- Fixed
xhr.abort()to no longer give an exception when the constructedXMLHttpRequestwas invalid. (whamtet) - Fixed
event.getModifierState()onMouseEventandKeyboardEventinstances to properly consult thectrlKey,altKey,metaKey, andshiftKeyproperties of the event. (juzerzarif) - Fixed custom element creation to not be affected by any modifications to the
window.customElementsproperty. (bicknellr)
v20.0.1
- Improved the performance of appending
<option>elements to<select>elements. (TheHound) - Fixed
location.pathnamegetter to not crash when theJSDOMinstance was created using an opaque-path URL, including the default URL ofabout:blank. - Fixed
crypto.getRandomValues()to accept typed array subclasses. (sebamarynissen) - Updated various dependency minor versions. Notably,
nwsapifixed some selectors bugs, andtough-cookiefixed some cookie bugs.
v20.0.0
- Node.js v14 is now the minimum supported version.
- Added
crypto.getRandomValues(). (sjrd) - Added
HTMLFormControlsCollectionandRadioNodeList, soformEl.elementsnow behaves correctly. (UndefinedBehavior) - Added the
signaloption toaddEventListener(). (cheap-glitch) - Fixed the
:rootpseudoclass to work correctly. (hughs-ch) - Updated
parse5, bringing along some HTML parsing and serialization fixes. (fb55)
v19.0.0
- Changed
jsdom.nodeLocation()to returnundefinedwhen used on nodes that originate via fragment parsing (e.g., viainnerHTML). Previously it would return based on the node location of the fragment string, which made node locations unreliable with respect to the original document source. This restores the behavior that was present in v14.0.0, and was accidentally broken in v14.1.0. (bakkot) - Fixed calling
window.close()inside theWindow'sloadevent to no longer crash. (MattiasBuelens)
v18.1.1
- Fixed
connectedCallbackto fire in situations involving document fragments, which was broken in v18.0.1. (GrantGryczan)
v18.1.0
- Fixed
headers.append()andheaders.set()to normalize values. (MattiasBuelens) - Fixed
pageshowevents to havebubbles: trueandcancelable: true. (MattiasBuelens) - Implemented the
reasonproperty onAbortSignals, along with the correspondingreasonargument toabortSignal.abort()andAbortSignal.abort(). (MattiasBuelens)
v18.0.1
- Fixed live
Ranges to update correctly after callingnode.normalize(). (hgiesel) - Fixed live
Ranges to update correctly after removing child nodes. (hgiesel) - Fixed setting
inputEl.valueAsDate = nullto no longer throw an exception, but instead set the value to the empty string. (simon-weimann) - Improved performance of node insertion and
node.contains(). (GrantGryczan)
v18.0.0
Potentially-breaking bug fixes:
- Fixed SSL certificate checking for WebSocket connections. Previously, invalid SSL certificates were always accepted; now, they properly respect the
ResourceLoader'sstrictSSLoption (which defaults totrue). - Changed the global in which almost all
PromiseandTypeErrorinstances are created to be the jsdom global, not the Node.js global. This could affect any code that usesinstanceof.
Other changes:
- Fixed moving an element between HTML and XML documents to reset the
tagNamecache, allowing it to return a lowercase value once it's in the XML document. (LucasLefevre) - Fixed form submission to not happen when the form is invalid. (pozil)
v17.0.0
Breaking change: Node v12 is now the minimum supported version.
v16.7.0
- Added
AbortSignal.abort(). (ninevra) - Added dummy
xandyproperties to the return value ofgetBoundingClientRect(). (eiko) - Implemented wrapping for
textareaEl.valueif thewrap=""attribute is specified. (ninevra) - Changed newline normalization in
<textarea>s according to recent HTML Standard updates. (ninevra) - Fixed some bad cascade computation in
getComputedStyle(). (romain-trotard)
v16.6.0
- Added
parentNode.replaceChildren(). (ninevra) - Fixed jsdom's handling of when code running inside the jsdom throws
nullorundefinedas an exception. (mbest) - Removed the dependency on the deprecated
requestpackage, in the process fixing several issues with theXMLHttpRequestimplementation around header processing. Special thanks to vegardbb for completing this months-long effort!
v16.5.3
- Fixed infinite recursion when using
MutationObservers to observe elements inside aMutationObservercallback.
v16.5.2
- Fixed
Access-Control-Allow-Headers: *to work withXMLHttpRequest. (silviot) - Fixed
xhr.responseto strip any leading BOM whenxhr.responseTypeis"json". - Fixed
new Text()andnew Comment()constructors to properly set the resulting node'sownerDocument. - Fixed
customElements.whenDefined()to resolve its returned promise with the custom element constructor, per recent spec updates. (ExE-Boss) - Fixed parsing to ensure that
<svg><template></template></svg>does not throw an exception, but instead correctly produces a SVG-namespace<template>element. - Fixed
domParser.parseFromString()to treat<noscript>elements appropriately. - Fixed form control validity checking when the control was outside the
<form>element and instead associated using theform=""attribute. - Fixed
legendEl.formto return the correct result based on its parent<fieldset>. - Fixed
optionEl.textto exclude<script>descendants. - Fixed radio buttons and checkboxes to not fire
inputandchangeevents when disconnected. - Fixed
inputEl.indeterminateto reset to its previous value when canceling aclickevent on a checkbox or radio button. - Fixed the behavior of event handler attributes (e.g.
onclick="...code...") when there were global variables namedelementorformOwner. (ExE-Boss) - On Node.js v14.6.0+ where
WeakRefs are available, fixedNodeIteratorto no longer stop working when more than tenNodeIteratorinstances are created, and to use less memory due to inactiveNodeIterators sticking around. (ExE-Boss)
v16.5.1
- Fixed a regression that broke
customElements.get()in v16.5.0. (fdesforges) - Fixed
window.eventto have a setter which overwrites thewindow.eventproperty with the given value, per the specification. This fixes an issue where after upgrading to jsdom v16.5.0 you would no longer be able to set a global variable namedeventin the jsdom context.
v16.5.0
- Added
window.queueMicrotask(). - Added
window.event. - Added
inputEvent.inputType. (diegohaz) - Removed
ondragexitfromWindowand friends, per a spec update. - Fixed the URL of
about:blankiframes. Previously it was getting set to the parent's URL. (SimonMueller) - Fixed the loading of subresources from the filesystem when they had non-ASCII filenames.
- Fixed the
hidden=""attribute to causedisplay: noneper the user-agent stylesheet. (ph-fritsche) - Fixed the
new File()constructor to no longer convert/to:, per a pending spec update. - Fixed mutation observer callbacks to be called with the
MutationObserverinstance as theirthisvalue. - Fixed
<input type=checkbox>and<input type=radio>to be mutable even when disabled, per a spec update. - Fixed
XMLHttpRequestto not fire a redundant finalprogressevent if aprogressevent was previously fired with the sameloadedvalue. This would usually occur with small files. - Fixed
XMLHttpRequestto expose theContent-Lengthheader on cross-origin responses. - Fixed
xhr.responseto returnnullfor failures that occur during the middle of the download. - Fixed edge cases around passing callback functions or event handlers. (ExE-Boss)
- Fixed edge cases around the properties of proxy-like objects such as
localStorageordataset. (ExE-Boss) - Fixed a potential memory leak with custom elements (although we could not figure out how to trigger it). (soncodi)
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)
Configuration
📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.