Skip to content

Commit 2d1496b

Browse files
committed
fix(deps): keep changesets working under the js-yaml 4 override
The js-yaml ^4.1.2 security override forced read-yaml-file@1.1.0 (a @changesets/cli transitive that calls the removed safeLoad API) onto js-yaml 4, crashing 'changeset status' on every PR. Override read-yaml-file to ^2.1.0 (newest CJS release using js-yaml 4's load API; 3.0.0 is ESM-only and breaks the CJS changesets requires).
1 parent 2c5cf63 commit 2d1496b

2 files changed

Lines changed: 16 additions & 18 deletions

File tree

pnpm-lock.yaml

Lines changed: 11 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ overrides:
5555
# >=4.1.2 closes GHSA-h67p-54hq-rp68 (quadratic-complexity DoS via merge-key
5656
# aliases). Pulled in transitively by @changesets/cli.
5757
"js-yaml": "^4.1.2"
58+
# read-yaml-file@1.1.0 (a @changesets/cli transitive) calls js-yaml's
59+
# `safeLoad`, removed in js-yaml 4 — so the js-yaml override above crashes
60+
# `changeset status`. 2.1.0 is the newest CJS release that uses js-yaml 4's
61+
# `load` API (3.0.0 is ESM-only and breaks the CJS changesets requires).
62+
"read-yaml-file": "^2.1.0"
5863
# react-redux@9.2.0 and reselect@5.1.1 ship without provenance attestation
5964
# even though earlier and later versions have it; pin to the latest provenance-
6065
# signed releases so pnpm's `trustPolicy: no-downgrade` lets the install

0 commit comments

Comments
 (0)