Skip to content

fix(deps): scope js-yaml override by version range to unbreak docs deploy#1830

Open
steilerDev wants to merge 1 commit into
betafrom
fix/1827-docs-deploy-js-yaml
Open

fix(deps): scope js-yaml override by version range to unbreak docs deploy#1830
steilerDev wants to merge 1 commit into
betafrom
fix/1827-docs-deploy-js-yaml

Conversation

@steilerDev

Copy link
Copy Markdown
Owner

Summary

Fix for #1827: the Docs Deploy job has failed on the last two stable releases (including today's v2.12.0) because the blanket js-yaml: 4.2.0 override from #1733 forces gray-matter — which needs the js-yaml 3.x safeLoad API — onto 4.x, breaking Docusaurus front-matter parsing.

Fix

Replace the blanket override with version-ranged overrides that still fully remediate CVE-2026-53550, but within each major line (matching the advisory's patched versions):

  • js-yaml@>=4.0.0 <4.2.04.2.0
  • js-yaml@<3.15.03.15.0 (patched 3.x release)

gray-matter now resolves js-yaml 3.15.0 (nested install), everything else stays on 4.2.0.

Verification

  • npm run docs:build succeeds locally (previously failed with Function yaml.safeLoad is removed in js-yaml 4)
  • npm ls js-yaml — no invalid edges; npm audit — 0 vulnerabilities
  • Lockfile regenerated with a full npm install
  • Full CI (Quality Gates + E2E Gates) already passed on this exact commit in the closed direct-to-main PR fix(deps): scope js-yaml override by version range to unbreak docs deploy #1828

After this merges to beta, a follow-up beta → main promotion will cut a patch release whose Docs Deploy publishes the v2.12.0 documentation.

Supersedes #1828. Fixes #1827

🤖 Generated with Claude Code

The blanket js-yaml=4.2.0 override from #1733 forced gray-matter
(which requires the js-yaml 3.x safeLoad API) onto 4.x, breaking
Docusaurus front-matter parsing and failing the Docs Deploy job on
every stable release since. Replace the blanket override with
version-ranged overrides that patch CVE-2026-53550 within each major
line: vulnerable 4.x -> 4.2.0, vulnerable 3.x -> 3.15.0 (the patched
3.x release per the advisory). gray-matter now resolves js-yaml
3.15.0; docs build verified locally; npm audit reports 0
vulnerabilities.

Fixes #1827

Co-Authored-By: Claude Fable 5 <noreply@anthropic.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.

1 participant