Skip to content

Commit 9ba6d2e

Browse files
chore(deps): update dependency jsdom to v27 (#160)
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [jsdom](https://redirect.github.com/jsdom/jsdom) | [`^26.1.0` -> `^27.0.0`](https://renovatebot.com/diffs/npm/jsdom/26.1.0/27.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/jsdom/27.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/jsdom/26.1.0/27.0.0?slim=true)](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/@&#8203;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. </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (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 this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/TanStack/devtools). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45Ny4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjk3LjEwIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent a749721 commit 9ba6d2e

File tree

3 files changed

+147
-96
lines changed

3 files changed

+147
-96
lines changed

examples/react/start/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@types/react": "^19.1.12",
4848
"@types/react-dom": "^19.1.2",
4949
"@vitejs/plugin-react": "^4.5.2",
50-
"jsdom": "^26.1.0",
50+
"jsdom": "^27.0.0",
5151
"typescript": "~5.9.2",
5252
"vite": "^7.0.6",
5353
"vite-plugin-inspect": "11.3.2",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@types/node": "^22.15.2",
6666
"eslint": "^9.25.1",
6767
"eslint-plugin-unused-imports": "^4.1.4",
68-
"jsdom": "^26.1.0",
68+
"jsdom": "^27.0.0",
6969
"knip": "^5.50.5",
7070
"nx": "^21.5.3",
7171
"premove": "^4.0.0",

0 commit comments

Comments
 (0)