Skip to content

fix: standardize on npm, remove yarn resolutions, regenerate lockfile#16

Merged
majdkt merged 1 commit intomasterfrom
fix/npm-standardization-picomatch
Apr 9, 2026
Merged

fix: standardize on npm, remove yarn resolutions, regenerate lockfile#16
majdkt merged 1 commit intomasterfrom
fix/npm-standardization-picomatch

Conversation

@majdkt
Copy link
Copy Markdown
Collaborator

@majdkt majdkt commented Apr 9, 2026

Summary

This PR fixes the picomatch ReDoS vulnerability by standardizing on npm across CI and local development.

Changes

  • Remove Yarn-only fields: Removed resolutions field from package.json (npm ignores it anyway)
  • Update packageManager: Changed from yarn@1.22.22 to npm@10
  • Regenerate lockfile: Fresh npm install to apply overrides correctly
  • Verified safety: Confirmed picomatch versions are safe:
    • picomatch@4.0.4 ✅ (not vulnerable 4.0.0-4.0.3)
    • picomatch@2.3.2 ✅ (not vulnerable 2.3.0-2.3.1)
    • No picomatch@3.x

Why This Matters

  • Consistency: CI already used npm; this aligns local dev with CI
  • Security: npm overrides now reliably pin safe picomatch versions
  • Maintainability: Single package manager reduces confusion and errors
  • Lockfile matters: npm.ci in CI uses exactly what's in package-lock.json

Testing

Run locally:

npm ls picomatch --all

Verify output shows only safe versions and no vulnerable picomatch instances.

Fixes: Prevents reintroduction of picomatch ReDoS vulnerabilities

- Remove yarn-only 'resolutions' field (npm ignores it)
- Update 'packageManager' from yarn@1.22.22 to npm@10
- Regenerate lockfile with npm to apply overrides correctly
- Verified picomatch pinned to safe versions:
  - picomatch@4.0.4 (not vulnerable 4.0.0-4.0.3)
  - picomatch@2.3.2 (not vulnerable 2.3.0-2.3.1)
  - No picomatch@3.x present

This ensures the workflow CI consistency and prevents picomatch
ReDoS vulnerabilities from being reintroduced.
@majdkt majdkt merged commit b9112cc into master Apr 9, 2026
1 check 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.

1 participant