chore(deps): bump jsdom and @types/jsdom - #982
Conversation
Bumps [jsdom](https://github.com/jsdom/jsdom) and [@types/jsdom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jsdom). These dependencies needed to be updated together. Updates `jsdom` from 22.1.0 to 30.0.1 - [Release notes](https://github.com/jsdom/jsdom/releases) - [Commits](jsdom/jsdom@v22.1.0...v30.0.1) Updates `@types/jsdom` from 21.1.6 to 30.0.0 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jsdom) --- updated-dependencies: - dependency-name: jsdom dependency-version: 30.0.1 dependency-type: direct:production update-type: version-update:semver-major - dependency-name: "@types/jsdom" dependency-version: 30.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Safe to merge. Reviewed the jsdom 22.1.0 → 30.0.1 and @types/jsdom 21.1.6 → 30.0.0` bump against every place the library is used.
How it's used (devDependency only — not shipped in any published bundle):
packages/ui-components/vite/integrity.ts— build-time Vite plugin:new jsdom.JSDOM(html),document.querySelectorAll,get/setAttribute,serialize().- vitest
"jsdom"test environment:packages/browser/vite.config.mtsand 3@vitest-environment jsdomfiles inui-components. - Root
package.jsonjsdomdevDep is consumed by the browser tests via hoisting.
Changelog review (v22 → v30): breaking changes are confined to areas this repo does not touch — Node.js version-floor raises, the CSSOM/computed-style overhaul (v29), resource-loading customization (v28), and virtual-console renames like sendTo→forwardTo (v27). The core parse/query/serialize APIs used here are stable.
Verification:
pnpm install --frozen-lockfile✅ (jsdom@30.0.1)ui-componentsbuild ✅ — the integrity plugin emittedintegrity="sha512-…"on the<script>tag, exercising JSDOM parse + serialize end-to-end.ui-componentstypecheck ✅ (@types/jsdom30 compatible)ui-componentstests ✅ 17/17, including the 3 jsdom-environment tests.browsertests: jsdom environment loads cleanly; the only failures areteamId must be a stringfrom a missing.env(VITE_EV_* creds), unrelated to jsdom.- GitHub CI on the head SHA:
lint-and-test, e2e (browser + ui-components), CodeQL and Socket Security all green.
Notes:
- Engine floor is now
node: ^22.22.2 || ^24.15.0 || >=26.0.0. The repo's.nvmrcisv24(resolves to latest 24.x ≥ 24.15.0), and.npmrchas noengine-strict, so install won't fail — no action needed. - Dependabot's "modifies prepare script" flag: jsdom's
prepareiswireit(dev build orchestration) that only runs for git-source installs, not registry tarballs — benign.
No source changes were required; approving as-is.
Bumps jsdom and @types/jsdom. These dependencies needed to be updated together.
Updates
jsdomfrom 22.1.0 to 30.0.1Release notes
Sourced from jsdom's releases.
... (truncated)
Commits
658448530.0.10c51df6Update dependencies and dev dependencies32adb34Bump@asamuzakjp/dom-selector70f014aSpeed up range operations on large documents250d7eePartially fix getComputedStyle with calc()20a01fc30.0.08c8e583Precompute WPT expectation matchesf32245cBump Node.js floor and dependencies03ef23bAdd background-position longhandsded056fTest CSS.escape() with numeric IDsMaintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for jsdom since your current version.
Install script changes
This version modifies
preparescript that runs during installation. Review the package contents before updating.Updates
@types/jsdomfrom 21.1.6 to 30.0.0Commits
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)