Commit dfce2eb
chore(deps): update dependency jsdom to v27 (#127)
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| [jsdom](https://redirect.github.com/jsdom/jsdom) | [`^24.0.0` ->
`^27.0.0`](https://renovatebot.com/diffs/npm/jsdom/24.1.3/27.0.0) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
|
[@types/jsdom](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsdom)
([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jsdom))
| [`^21.1.1` ->
`^27.0.0`](https://renovatebot.com/diffs/npm/@types%2fjsdom/21.1.7/27.0.0)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>jsdom/jsdom (jsdom)</summary>
###
[`v27.0.0`](https://redirect.github.com/jsdom/jsdom/blob/HEAD/Changelog.md#2700)
[Compare
Source](https://redirect.github.com/jsdom/jsdom/compare/26.1.0...27.0.0)
##### 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` (omitting `requestPermission()`),
`DeviceOrientationEvent` (omitting `requestPermission()`),
`PointerEvent`, `PromiseRejectionEvent`, and `TransitionEvent`.
- Added `movementX` and `movementY` to `MouseEvent`. (These are from the
[Pointer Lock](https://w3c.github.io/pointerlock/) specification, the
rest of which is not implemented.)
- Added `customElements.getName()`. (mash-graz)
- Updated the [virtual
console](https://redirect.github.com/jsdom/jsdom/blob/ab384d4e381eb6bb99ade4146698d35167b54837/README.md#virtual-consoles):
- `"jsdomError"` events are now documented, with specific `type`
properties and other properties that depend on the type.
- `sendTo()` was renamed to `forwardTo()`.
- The `jsdomErrors` option to `forwardTo()` can be used to control which
errors are sent to the Node.js console. This replaces the previous
`omitJSDOMErrors` boolean option.
- `"jsdomError"`s for failed `XMLHttpRequest` fetches 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
[`nwsapi`](https://www.npmjs.com/nwsapi) to
[`@asamuzakjp/dom-selector`](https://www.npmjs.com/package/@​asamuzakjp/dom-selector),
closing over 20 selector-related bugs.
- Upgraded [`tough-cookie`](https://www.npmjs.com/package/tough-cookie),
which now considers URLs like `http://localhost/` to be secure contexts
(per [the
spec](https://w3c.github.io/webappsec-secure-contexts/#is-origin-trustworthy)),
and thus will return `Secure`-flagged cookies for such URLs.
(colincasey)
- Upgraded [`cssstyle`](https://redirect.github.com/jsdom/cssstyle),
which brings along many improvements and fixes to the
`CSSStyleDeclaration` object 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 a `PointerEvent` instead of a
`MouseEvent`.
- Changed certain events to be passive by default.
- Changed the `<input>` element's `pattern=""` attribute to use the `v`
regular expression flag, instead of `u`.
- Fixed many specification conformance issues with the `Window` object,
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 `ElementInternals` accessibility 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 as
`HTMLSelectElement` instances.
- Fixed `jsdom.reconfigure({ url })` not updating `document.baseURI` or
properties derived from it. (This regressed in v26.1.0.)
- Fixed CSS system colors, as well as the `initial`, `inherit`, and
`unset` keywords, to resolve correctly. (asamuzaK)
- Fixed CSS `display` style resolution. (asamuzaK)
##### Changes since 27.0.0-beta.3
- Upgraded `cssstyle`, which brings along various CSS parsing fixes.
###
[`v26.1.0`](https://redirect.github.com/jsdom/jsdom/blob/HEAD/Changelog.md#2610)
[Compare
Source](https://redirect.github.com/jsdom/jsdom/compare/26.0.0...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 `SVGAnimatedPreserveAspectRatio` and `SVGAnimatedRect`,
including support in the reflection layer.
- Added the `SVGSVGElement` `createSVGRect()` method, and the `SVGRect`
type (which is distinct from `DOMRect`.)
- Added indexed property support to `HTMLFormElement`.
- Updated the `SVGElement` `viewportElement()` method to correctly
establish the viewport based on ancestor elements.
- Removed the now-bloated `form-data` dependency in favor of our own
smaller implementation of `multipart/form-data` serialization. No
functional changes are expected.
- Various performance improvements, caches, microoptimizations, and
deferred object creation.
###
[`v26.0.0`](https://redirect.github.com/jsdom/jsdom/blob/HEAD/Changelog.md#2600)
[Compare
Source](https://redirect.github.com/jsdom/jsdom/compare/25.0.1...26.0.0)
Breaking change: [`canvas`](https://www.npmjs.com/package/canvas) peer
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 `ElementInternals`
`labels` property. The form-associated callbacks are not yet supported.
(hesxenon)
- Updated `whatwg-url`, adding support for `URL.parse()`.
- Updated `cssstyle` and `rrweb-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.
###
[`v25.0.1`](https://redirect.github.com/jsdom/jsdom/blob/HEAD/Changelog.md#2501)
[Compare
Source](https://redirect.github.com/jsdom/jsdom/compare/25.0.0...25.0.1)
- Updated dependencies, notably `tough-cookie`, which no longer prints a
deprecation warning.
###
[`v25.0.0`](https://redirect.github.com/jsdom/jsdom/blob/HEAD/Changelog.md#2500)
[Compare
Source](https://redirect.github.com/jsdom/jsdom/compare/24.1.3...25.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.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am" in timezone UTC,
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNDQuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE0NC4xIiwidGFyZ2V0QnJhbmNoIjoiZGVwcy1tYWluIiwibGFiZWxzIjpbIm1ham9yLXVwZGF0ZSIsIm5vZGVqcyJdfQ==-->
Co-authored-by: Renovate Bot <[email protected]>1 parent 9495d75 commit dfce2eb
2 files changed
+2313
-267
lines changed
0 commit comments