Skip to content

chore(deps): upgrade Nx 21.5.3 to 22.6.5#473

Merged
karelhala merged 1 commit intoRedHatInsights:mainfrom
platex-rehor-bot:bot/RHCLOUD-47079
Apr 28, 2026
Merged

chore(deps): upgrade Nx 21.5.3 to 22.6.5#473
karelhala merged 1 commit intoRedHatInsights:mainfrom
platex-rehor-bot:bot/RHCLOUD-47079

Conversation

@platex-rehor-bot
Copy link
Copy Markdown
Contributor

Summary

Upgrades all @nx/* packages from 21.5.3 to 22.6.5 to eliminate vulnerable picomatch@4.0.2 instances (GHSA-3v7f-55p6-f55p, GHSA-c2c7-rcm5-vvqj).

RHCLOUD-47079

Changes

  • All 11 @nx/* packages: 21.5.3 → 22.6.5, nx: 21.5.3 → 22.6.5
  • jest.config.ts: getJestProjectsgetJestProjectsAsync (removed in Nx 22)
  • nx.json: releaseTagPatternreleaseTag.pattern (Nx 22 migration)
  • .gitignore: added .claude/worktrees and .claude/settings.local.json (Nx 22 migration)
  • @swc/* packages updated to match Nx 22 peer expectations
  • cypress: 14.5.4 → 15.9.0
  • @emotion/*: minor version bumps
  • AGENTS.md: updated Nx version reference

Picomatch verification

npm ls picomatch confirms no instances in the vulnerable range (4.0.0–4.0.3):

  • All picomatch@4.0.2 instances → picomatch@4.0.4
  • picomatch@2.3.2 (via micromatch) — not in vulnerable range ✅

Validation

Check Result
npm run build:no-cache ✅ 17 projects built
npm run test:unit ✅ 17 projects passed
npm run test:integration ✅ 3 projects passed

Known issue: npx nx release --dry-run

The dry-run release exits with code 1 due to a pre-existing issue — not introduced by this PR:

"preserveMatchingDependencyRanges" is enabled for "dependencies" and the new
version "^3.0.0" is outside the current range for
"@redhat-cloud-services/javascript-clients-shared" in manifest
"packages/topological-inventory/package.json".

This occurs because existing breaking conventional commits in git history would trigger a major bump for shared (2.0.5 → 3.0.0), but all client packages have ^2.0.5 which doesn't accept 3.x. On Nx 21, this was a silent warning (exit 0). Nx 22 made preserveMatchingDependencyRanges stricter (exit 1). The fix is to either update the dependency ranges before the next release, or to perform the pending release first.

Test plan

  • npm run build:no-cache — all 17 projects build successfully
  • npm run test:unit — all unit tests pass
  • npm run test:integration — all integration tests pass
  • npm ls picomatch — no instances in 4.0.0–4.0.3 range
  • CI passes on this PR

🤖 Generated with Claude Code

RHCLOUD-47079
Upgrade all @nx/* packages from 21.5.3 to 22.6.5 to remediate
picomatch vulnerabilities (GHSA-3v7f-55p6-f55p, GHSA-c2c7-rcm5-vvqj).

Changes:
- All 11 @nx/* packages: 21.5.3 → 22.6.5
- nx: 21.5.3 → 22.6.5
- jest.config.ts: getJestProjects → getJestProjectsAsync (breaking)
- nx.json: releaseTagPattern → releaseTag.pattern (migration)
- .gitignore: added .claude/ entries (Nx migration)
- @swc/*: updated to match Nx 22 peer expectations
- cypress: 14.5.4 → 15.9.0
- @emotion/*: minor bumps

Validated: build (17 projects), unit tests, integration tests.
@karelhala karelhala merged commit c08b192 into RedHatInsights:main Apr 28, 2026
9 checks passed
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.

2 participants