fix: update yarn resolutions to patch open Dependabot alerts#968
fix: update yarn resolutions to patch open Dependabot alerts#968jonathannorris merged 1 commit intomainfrom
Conversation
Deploying devcycle-docs with
|
| Latest commit: |
6c01230
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://9f29b5c0.devcycle-docs.pages.dev |
| Branch Preview URL: | https://fix-dependabot-alerts.devcycle-docs.pages.dev |
There was a problem hiding this comment.
Pull request overview
This PR aims to address Dependabot security alerts in the docs site by forcing patched transitive dependency versions via Yarn resolutions, and then regenerating the lockfile to reflect those overrides.
Changes:
- Add/update
package.jsonresolutionsto pin patched versions for several vulnerable transitive dependencies. - Regenerate
yarn.lockto apply the new resolution results.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Adds new resolutions overrides (and bumps serialize-javascript) to force patched versions. |
| yarn.lock | Updated lockfile entries reflecting the new resolution/pinning outcomes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "ajv@^8.0.0": "8.18.0", | ||
| "fast-xml-parser": "^5.5.7" | ||
| "fast-xml-parser": "^5.5.7", | ||
| "path-to-regexp": "0.1.13", |
There was a problem hiding this comment.
The resolutions entry for path-to-regexp is currently global (no range selector), which forces all consumers onto 0.1.13. In this lockfile, react-router@5.3.4 requests path-to-regexp@^1.7.0 and serve-handler@6.1.7 requests path-to-regexp@3.3.0; pinning both to 0.1.x is very likely to be a breaking change at runtime. Please scope this resolution to only the vulnerable 0.1.12 line (e.g., match ~0.1.12) so that 1.x/3.x consumers keep their compatible major versions.
| "path-to-regexp": "0.1.13", | |
| "path-to-regexp@~0.1.12": "0.1.13", |
Summary
resolutionsentries inpackage.jsonto force patched versions of all 10 open Dependabot alertsyarn.lockwith the fixed versionsPackages updated:
path-to-regexpserialize-javascriptbrace-expansion(1.x)brace-expansion(2.x)yaml(1.x)yaml(2.x)picomatch(2.x)picomatch(4.x)