Skip to content

chore(deps): update dev dependencies and patch security advisories - #53

Merged
melissa-lomray merged 2 commits into
prodfrom
chore/deps-2026-11-25
Nov 25, 2026
Merged

melissa-lomray merged 2 commits into
prodfrom
chore/deps-2026-11-25

Conversation

@melissa-lomray

@melissa-lomray melissa-lomray commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Weekly dependency maintenance. Dev dependencies only; the published package (runtime code, dependencies, peerDependencies) is unchanged, so no release is expected (chore).

Changes

  • Lockfile refreshed within existing ranges, plus npm audit fix. Notable in-range bumps: @lomray/consistent-suspense 2.0.10, @lomray/event-manager 2.0.3, lint-staged 17.6.2, rollup 4.68.8.
  • jsdom ^25.0.0 -> ^28.1.0.
    • After the refresh, jsdom 25.0.1 resolved cssstyle 4.6.0. cssstyle 4.4.0-4.6.0 drop !important on custom properties (4.1-4.3.1 and 5.x/6.x keep it), which broke the root-attributes test "restores earlier style contributions ... priorities" on React 18 and 19. This is a test-environment regression; src/root-attributes.ts handles priorities itself.
    • jsdom 28 uses cssstyle ^6 (6.2.0 here); engines ^20.19 || ^22.12 || >=24, CI runs Node 22.23.2.
    • jsdom 29+ (Dependabot chore(deps): bump jsdom from 25.0.0 to 31.0.1 #50 proposes 31.0.1) drops cssstyle and expands -webkit-line-clamp into longhands, which fails 5 client-head tests. Left for a separate change.
  • react-dom ^18.3.1 added as an explicit devDependency so the React 18 baseline matches react. CI still installs React 19.2.8 for the second test pass.
  • overrides: nested minimatch of eslint-plugin-sonarjs and eslint-plugin-jsx-a11y-x pinned to ^11.0.1 (advisories for minimatch < 11.0.1). Temporary until both plugins move to minimatch 11.

Deferred: html-react-parser 6.1.10 (Dependabot #52). It is a devDependency used as the test oracle for src/server/head-parser.ts; v6 changes its output on the edge-case oracle input and fails "should produce what html-react-parser produced". Adopting it needs a decision on whether to follow the new behaviour, so it stays on ^5.1.15 for now.

Security alerts covered

All open Dependabot alerts are in package-lock.json. After this change the lock resolves:

Not fixable here: minimatch (#84) is the copy bundled inside npm (via @semantic-release/npm, release-only). Bundled dependencies cannot be overridden; it clears when npm ships a fixed minimatch.

npm audit --omit=dev: 0 vulnerabilities. Full audit: moderate findings only, all bundled inside npm or in the semantic-release chain.

Verification (Node 22.23.2, local)

  • npm ci, npm run lint, npm run ts:check, npm run build, prettier: pass
  • Tests on React 18: 62 passed, 1 skipped, 94.21% line coverage
  • Tests on React 19.2.8 (npm install --no-save react@19.2.8 react-dom@19.2.8): 62 passed, 1 skipped
  • test:worker, test:package: pass

Observation (not changed here)

The build step in pr-check.yml passes --throw-warnings, which rollup 4 does not know: it prints "Unknown CLI flags: throw-warnings" and builds with exit 0, so warnings do not fail CI. rollup -c --failAfterWarnings passes with no warnings on this branch. Worth switching the flag in a separate change.

commitlint 21 (second commit, supersedes #41 and #43)

  • @commitlint/cli and @commitlint/config-conventional ^19.4.1 -> ^21.2.4.
  • Breaking changes read: 20.0.0 makes body-max-line-length skip lines containing URLs (looser, fine); 21.0.0 requires Node >=22.12. CI runs Node 22.23.2; .nvmrc was still 20.10.0, so it is aligned to 22.23.2.
  • Verified locally: commitlint --edit (husky hook) accepts a conventional message and rejects "Update stuff"; the CI title check passes for this PR title; npm audit --omit=dev is 0.

- Refresh the lockfile within existing ranges and apply npm audit fixes
  (fast-uri, handlebars, ip-address, serialize-javascript, undici, etc.).
- Bump jsdom 25 -> 28.1.0: jsdom 25 resolves cssstyle 4.6.0, which drops
  !important on custom properties (cssstyle 4.4-4.6 regression) and broke
  the root-attributes priority test. jsdom 28 uses cssstyle 6.x. jsdom 29+
  expands -webkit-line-clamp into longhands, so 31 is left for later.
- Add react-dom ^18.3.1 as an explicit devDependency so the React 18 test
  baseline matches react (CI still runs the suite on React 19 separately).
- Override the nested minimatch of eslint-plugin-sonarjs and
  eslint-plugin-jsx-a11y-x to ^11.0.1 (GHSA for minimatch < 11.0.1).
  Temporary until both plugins move to minimatch 11.

Production audit is clean; the remaining moderate findings are minimatch
and glob bundled inside npm via @semantic-release/npm (release-only).
commitlint 21 requires Node >=22.12; CI already runs Node 22.23.2, so .nvmrc
moves from 20.10.0 to 22.23.2 to match. Supersedes #41 and #43.
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@melissa-lomray
melissa-lomray merged commit 9083f68 into prod Nov 25, 2026
5 checks passed
@melissa-lomray
melissa-lomray deleted the chore/deps-2026-11-25 branch November 25, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant