chore: fix Dependabot security alerts via yarn resolutions#84
chore: fix Dependabot security alerts via yarn resolutions#84jonathannorris merged 2 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR aims to clear Dependabot security alerts by forcing patched versions of vulnerable transitive dependencies via Yarn resolutions, and updating the lockfile to reflect the resolved versions.
Changes:
- Add Yarn
resolutionsforhandlebars,picomatch,flatted, andminimatch(in addition to existingcross-spawn). - Regenerate
yarn.lockso the dependency graph resolves to the targeted patched versions.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Adds new Yarn resolutions entries to force patched transitive dependency versions. |
| yarn.lock | Updates the lockfile to match the resolved dependency graph (now in a modern Yarn/Berry lockfile format). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "flatted": "^3.4.2", | ||
| "minimatch": "^9.0.7" |
There was a problem hiding this comment.
The minimatch resolution forces v9 for the whole dependency graph, but several dependencies in the lockfile still declare minimatch@^3.x (e.g. glob@7.x depends on minimatch@^3.0.4 / ^3.1.1). Overriding a major version like this can violate semver expectations and can break tooling at runtime even if the project’s own tests pass. Prefer upgrading the dependents to versions that natively use minimatch@9, or (if possible) pin minimatch@3 to a patched 3.x for the packages that require it, and keep minimatch@9 only where it’s already required.
| "flatted": "^3.4.2", | |
| "minimatch": "^9.0.7" | |
| "flatted": "^3.4.2" |
Summary
resolutionsentries topackage.jsonto force patched versions of vulnerable transitive dependencieshandlebars,picomatch,flatted, andminimatch(v3 and v9 ranges)handlebarspicomatchflattedminimatchNotes
The
minimatch@^9.0.7resolution also collapses the v3 range — all dependents now resolve to 9.0.9.🤖 Generated with Claude (OpenCode)