8000 Remove redundant pnpm overrides from JS workspace by edewit · Pull Request #49546 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Remove redundant pnpm overrides from JS workspace - #49546

Merged
stianst merged 1 commit into
keycloak:mainfrom
edewit:remove-redundant-pnpm-overrides
Jun 11, 2026
Merged

stianst merged 1 commit into
keycloak:mainfrom
edewit:remove-redundant-pnpm-overrides

Conversation

@edewit
@edewit edewit commented Jun 1, 2026 •
Copy link
Copy Markdown
Contributor

Summary

  • Removes six pnpm overrides that no longer affect resolved dependency versions: picomatch@^2, flatted, minimatch@~3, minimatch@~9, @isaacs/brace-expansion@^5, and diff@^4.
  • Keeps overrides still required for mocha transitive dependencies in keycloak-admin-client: serialize-javascript and diff@^7.
  • Bumps the serialize-javascript override floor from ^7.0.3 to ^7.0.5 to match the fully patched advisory range.

Rationale

These overrides were added during the pnpm 11 upgrade (#48975) as security floors. Re-testing shows the removed ones are redundant today — pnpm already resolves to patched versions without them. Removing them reduces lockfile churn and review noise on future installs.

@edewit
edewit requested review from a team as code owners June 1, 2026 11:37
@edewit
edewit force-pushed the remove-redundant-pnpm-overrides branch 2 times, most recently from d64e623 to c26aba9 Compare June 1, 2026 11:42
@edewit
edewit commented Jun 1, 2026 •
Copy link
Copy Markdown
Contributor Author

@abstractj

abstractj
abstractj previously approved these changes Jun 1, 2026
@abstractj abstractj left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, LGTM. We only need a rebase.

The pnpm 11 upgrade (keycloak#48975) added security floor overrides for several
transitive dependencies. Re-testing shows most of them are no longer
needed: pnpm already resolves to patched versions without forcing them.

Remove overrides that no longer change resolution:
- picomatch@^2, flatted, minimatch@~3, minimatch@~9
- @isaacs/brace-expansion@^5 (unused in the lockfile)
- diff@^4 (already resolves to 4.0.4)

Keep overrides still required because mocha (dev dep of
keycloak-admin-client) would otherwise pull vulnerable versions:
- serialize-javascript: ^7.0.5 (mocha requests ^6.0.2)
- diff@^7: ^8.0.3 (mocha requests ^7.0.0, CVE fix requires >=8.0.3)

Also bump the serialize-javascript floor from ^7.0.3 to ^7.0.5 to
match the fully patched advisory range.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
@edewit
edewit force-pushed the remove-redundant-pnpm-overrides branch from c26aba9 to 4d715cf Compare June 2, 2026 06:26
@vmuzikar
vmuzikar commented Jun 2, 2026
Copy link
Copy Markdown
Contributor

@edewit Could you please create and link an issue to this?

@stianst
stianst merged commit 78aa941 into keycloak:main Jun 11, 2026
65 checks passed
@edewit
edewit deleted the remove-redundant-pnpm-overrides branch July 2, 2026 09:03
sashyo pushed a commit to tide-foundation/keycloak-IGA that referenced this pull request Jul 20, 2026
The pnpm 11 upgrade (keycloak#48975) added security floor overrides for several
transitive dependencies. Re-testing shows most of them are no longer
needed: pnpm already resolves to patched versions without forcing them.

Remove overrides that no longer change resolution:
- picomatch@^2, flatted, minimatch@~3, minimatch@~9
- @isaacs/brace-expansion@^5 (unused in the lockfile)
- diff@^4 (already resolves to 4.0.4)

Keep overrides still required because mocha (dev dep of
keycloak-admin-client) would otherwise pull vulnerable versions:
- serialize-javascript: ^7.0.5 (mocha requests ^6.0.2)
- diff@^7: ^8.0.3 (mocha requests ^7.0.0, CVE fix requires >=8.0.3)

Also bump the serialize-javascript floor from ^7.0.3 to ^7.0.5 to
match the fully patched advisory range.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
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.

4 participants

0