Bump @tootallnate/once, jsdom and jest-environment-jsdom by dependabot[bot] · Pull Request #396 · wpengine/phpcompat
Removes @tootallnate/once. It's no longer used after updating ancestor dependencies @tootallnate/once, jsdom and jest-environment-jsdom. These dependencies need to be updated together.
Removes @tootallnate/once
Updates jsdom from 20.0.3 to 26.1.0
Release notes
Sourced from jsdom's releases.
Version 26.1.0
- Added at least partial support for various SVG elements and their classes:
<defs>(SVGDefsElement),<desc>(SVGDescElement),<g>(SVGGElement),<metadata>(SVGMetadataElement),<switch>(SVGSwitchElement), and<symbol>(SVGSymbolElement).- Added
SVGAnimatedPreserveAspectRatioandSVGAnimatedRect, including support in the reflection layer.- Added the
SVGSVGElementcreateSVGRect()method, and theSVGRecttype (which is distinct fromDOMRect.)- Added indexed property support to
HTMLFormElement.- Updated the
SVGElementviewportElement()method to correctly establish the viewport based on ancestor elements.- Removed the now-bloated
form-datadependency in favor of our own smaller implementation ofmultipart/form-dataserialization. No functional changes are expected.- Various performance improvements, caches, microoptimizations, and deferred object creation.
Version 26.0.0
Breaking change:
canvaspeer dependency requirement has been upgraded from v2 to v3. (sebastianwachter)Other changes:
- Added
AbortSignal.any(). (jdbevan)- Added initial support for form-associated custom elements, in particular making them labelable and supporting the
ElementInternalslabelsproperty. The form-associated callbacks are not yet supported. (hesxenon)- Updated
whatwg-url, adding support forURL.parse().- Updated
cssstyleandrrweb-cssom, to improve CSS parsing capabilities.- Updated
nwsapi, improving CSS selector matching.- Updated
parse5, fixing a bug around<noframes>elements and HTML entity decoding.- Fixed
JSDOM.fromURL()to properly reject the returned promise if the server redirects to an invalid URL, instead of causing an uncaught exception.Version 25.0.1
- Updated dependencies, notably
tough-cookie, which no longer prints a deprecation warning.Version 25.0.0
This major release changes the prototype of a jsdom's
EventTarget.prototypeto point to theObject.prototypeinside the jsdom, instead of pointing to the Node.jsObject.prototype. Thus, the prototype chain ofWindowstays entirely within the jsdom, never crossing over into the Node.js realm.This only occurs when
runScriptsis set to non-default values of"dangerously"or"outside-only", as with the default value, there is no separateObject.prototypeinside the jsdom.This will likely not impact many programs, but could cause some changes in
instanceofbehavior, and so out of an abundance of caution, we're releasing it as a new major version.Version 24.1.3
- Fixed calls to
postMessage()that were done as a bare property (i.e.,postMessage()instead ofwindow.postMessage()).Version 24.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)Version 24.1.1
- Fixed selection methods to trigger the
selectionchangeevent on theDocumentobject. (piotr-oles)Version 24.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.Version 24.0.0
This release reverts our selector engine back to
nwsapi. As discussed in #3659, the performance regressions from@asamuzakjp/dom-selectorturned out to be higher than anticipated. In the future, we can revisit@asamuzakjp/dom-selectorafter it reachesnwsapi's performance on the two real-world benchmarks provided by the community.
... (truncated)
Changelog
Sourced from jsdom's changelog.
Changes since 26.1.0
- Node.js v20 is now the minimum supported version.
- Added a variety of event constructors, even though we do not implement their associated specifications or ever fire them:
BeforeUnloadEvent,BlobEvent,DeviceMotionEvent(omittingrequestPermission()),DeviceOrientationEvent(omittingrequestPermission()),PointerEvent,PromiseRejectionEvent, andTransitionEvent.- Added
movementXandmovementYtoMouseEvent. (These are from the Pointer Lock specification, the rest of which is not implemented.)- Added
customElements.getName(). (mash-graz)- Updated the virtual console:
"jsdomError"events are now documented, with specifictypeproperties and other properties that depend on the type.sendTo()was renamed toforwardTo().- The
jsdomErrorsoption toforwardTo()can be used to control which errors are sent to the Node.js console. This replaces the previousomitJSDOMErrorsboolean option."jsdomError"s for failedXMLHttpRequestfetches are no longer emitted.- The values that are printed when forwarding
"jsdomError"s to the Node.js console are streamlined.- Switched our CSS selector engine from
nwsapito@asamuzakjp/dom-selector, closing over 20 selector-related bugs.- Upgraded
tough-cookie, which now considers URLs likehttp://localhost/to be secure contexts (per the spec), and thus will returnSecure-flagged cookies for such URLs. (colincasey)- Upgraded
cssstyle, which brings along many improvements and fixes to theCSSStyleDeclarationobject and its properties.- Updated the user agent stylesheet to be derived from the HTML Standard, instead of from an old revision of Chromium.
- Changed
element.click()to fire aPointerEventinstead of aMouseEvent.- Changed certain events to be passive by default.
- Changed the
<input>element'spattern=""attribute to use thevregular expression flag, instead ofu.- Fixed many specification conformance issues with the
Windowobject, including named properties and changing various data properties to accessor properties.- Fixed
document.createEvent()to accept a more correct set of event names.- Fixed the
ElementInternalsaccessibility getters and setters. (They were introduced in v23.1.0, but due to inadequate test coverage never actually worked.)- Fixed using
Object.defineProperty()on certain objects, such asHTMLSelectElementinstances.- Fixed
jsdom.reconfigure({ url })not updatingdocument.baseURIor properties derived from it. (This regressed in v26.1.0.)- Fixed CSS system colors, as well as the
initial,inherit, andunsetkeywords, to resolve correctly. (asamuzaK)- Fixed CSS
displaystyle resolution. (asamuzaK)Changes since 27.0.0-beta.3
- Upgraded
cssstyle, which brings along various CSS parsing fixes.27.0.0-beta.3
- Breaking change: upgraded
tough-cookie, which now considers URLs likehttp://localhost/to be secure contexts (per the spec), and thus will returnSecure-flagged cookies for such URLs. (colincasey)- Added
customElements.getName(). (mash-graz)- Changed the
<input>element'spattern=""attribute to use thevregular expression flag, instead ofu.- Fixed
jsdom.reconfigure({ url })not updatingdocument.baseURIor properties derived from it. This regressed in v26.1.0.- Fixed CSS system colors, as well as the
initial,inherit, andunsetkeywords, to resolve correctly. This is especially important since the change in v27.0.0-beta.1 to use system colors in the user agent stylesheet. (asamuzaK)- Fixed CSS
backgroundproperty parsing and serialization. (asamuzaK)- Fixed CSS color parsing and serialization inside of gradients. (asamuzaK)
- Fixed CSS
displaystyle resolution. (asamuzaK)- Upgraded
@asamuzakjp/dom-selector, which notably fixed repeated use of the:scopeselector. (asamuzaK)27.0.0-beta.2
Significantly improved specification conformance for the
Windowobject, including named properties and changing various data properties to accessor properties. This is not likely to be breaking, but since it's a complex change to such a core object, we're happy to do another beta testing release with this included before graduating the v27 line to stable.Additionally, updated
cssstyleto v4.4.0, which brings along various conformance fixes to theCSSStyleDeclarationobject and its properties.27.0.0-beta.1
... (truncated)
Commits
1911c80Version 26.1.0ea6e851Add failing script execution order test2be9dcfAdd passing tests for CSS parsing errors9c68fe3Add failing CSS container queries test501b1ccAdd failing CSS cascade layer test1916583Add passing font-face with a data URL parsing testfc2a337Add passing javascript: URL href test91c610dMove to-upstream CSS tests to correct directorya5be813Add failing calc() serialization test326745dAdd passing oklch() serialization test- Additional commits viewable in compare view
Install script changes
This version modifies prepare script that runs during installation. Review the package contents before updating.
Updates jest-environment-jsdom from 29.7.0 to 30.2.0
Release notes
Sourced from jest-environment-jsdom's releases.
30.2.0
Chore & Maintenance
[*]Update example repo for testing React Native projects (#15832)[*]Updatejest-watch-typeaheadto v3 (#15830)Features
[jest-environment-jsdom-abstract]Add support for JSDOM v27 (#15834)Fixes
[babel-jest]Export theTransformerConfiginterface (#15820)[jest-config]Fixjest.config.tswith TS loader specified in docblock pragma (#15839)30.1.3
Fixes
- Fix
unstable_mockModulewithnode:prefixed core modules.30.1.2
Fixes
[jest-snapshot-utils]Correct snapshot header regexp to work with newline across OSes (#15803)30.1.1
Fixes
[jest-snapshot-utils]Fix deprecated goo.gl snapshot warning not handling Windows end-of-line sequences (#15800)30.1.0
Features
[jest-leak-detector]Configurable GC aggressiveness regarding to V8 heap snapshot generation (#15793)[jest-runtime]Reduce redundant ReferenceError messages[jest-core]Include test modules that failed to load when --onlyFailures is activeFixes
- `[jest-snapshot-utils] Fix deprecated goo.gl snapshot guide link not getting replaced with fully canonical URL (#15787)
[jest-circus]Fixit.concurrentnot working withdescribe.skip(#15765)[jest-snapshot]Fix mangled inline snapshot updates when used with Prettier 3 and CRLF line endings[jest-runtime]Importing from@jest/globalsin more than one file no longer breaks relative paths (#15772)Chore
[expect]Update docblock fortoContain()to display info on substring check (#15789)30.0.2
What's Changed
... (truncated)
Changelog
Sourced from jest-environment-jsdom's changelog.
30.2.0
Chore & Maintenance
[*]Update example repo for testing React Native projects (#15832)[*]Updatejest-watch-typeaheadto v3 (#15830)Features
[jest-environment-jsdom-abstract]Add support for JSDOM v27 (#15834)Fixes
[jest-matcher-utils]Fix infinite recursion with self-referential getters indeepCyclicCopyReplaceable(#15831)[babel-jest]Export theTransformerConfiginterface (#15820)[jest-config]Fixjest.config.tswith TS loader specified in docblock pragma (#15839)30.1.3
Fixes
- Fix
unstable_mockModulewithnode:prefixed core modules.30.1.2
Fixes
[jest-snapshot-utils]Correct snapshot header regexp to work with newline across OSes (#15803)30.1.1
Fixes
[jest-snapshot-utils]Fix deprecated goo.gl snapshot warning not handling Windows end-of-line sequences (#15800)[jest-snapshot-utils]Improve messaging about goo.gl snapshot link change (#15821)30.1.0
Features
[jest-leak-detector]Configurable GC aggressiveness regarding to V8 heap snapshot generation (#15793)[jest-runtime]Reduce redundant ReferenceError messages[jest-core]Include test modules that failed to load when --onlyFailures is activeFixes
[jest-snapshot-utils]Fix deprecated goo.gl snapshot guide link not getting replaced with fully canonical URL (#15787)[jest-circus]Fixit.concurrentnot working withdescribe.skip(#15765)[jest-snapshot]Fix mangled inline snapshot updates when used with Prettier 3 and CRLF line endings[jest-runtime]Importing from@jest/globalsin more than one file no longer breaks relative paths (#15772)
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.