Skip to content

Update js-yaml to v4 - #1772

Merged
Andarist merged 1 commit into
changesets:mainfrom
marcalexiei:feat/update-js-yaml
Nov 19, 2025
Merged

Andarist merged 1 commit into
changesets:mainfrom
marcalexiei:feat/update-js-yaml

Conversation

@marcalexiei

Copy link
Copy Markdown
Contributor

Closes #1762

Followup of #1764 (comment)

For now, I'd prefer to update the dependency instead to avoid some unexpected weird breaks.

@changeset-bot

changeset-bot Bot commented Nov 17, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 896cc50

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@changesets/parse Patch
@changesets/cli Patch
@changesets/read Patch
@changesets/get-release-plan Patch
@changesets/release-utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Nov 17, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.09%. Comparing base (60512b5) to head (896cc50).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1772      +/-   ##
==========================================
+ Coverage   81.05%   81.09%   +0.04%     
==========================================
  Files          54       54              
  Lines        2264     2264              
  Branches      684      684              
==========================================
+ Hits         1835     1836       +1     
+ Misses        424      423       -1     
  Partials        5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

tk-o added a commit to namehash/ensnode that referenced this pull request Nov 18, 2025
This is a temprorary fix, the permanent one will be to update  after [this PR](changesets/changesets#1772) is released.
@Andarist
Andarist merged commit 4c5a207 into changesets:main Nov 19, 2025
6 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 19, 2025
@marcalexiei
marcalexiei deleted the feat/update-js-yaml branch November 19, 2025 12:26
@unional

unional commented Dec 3, 2025 •

Copy link
Copy Markdown

@Andarist FYI this doesn't fully fix the issue.

Also need to update read-yaml-file to v2.

image

[email protected] still depends on js-yaml@3

🦋  error Error: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default.
🦋  error     at Object.safeLoad (/.../node_modules/.pnpm/[email protected]/node_modules/js-yaml/index.js:10:11)
🦋  error     at parse (/.../node_modules/.pnpm/[email protected]/node_modules/read-yaml-file/index.js:8:28)
🦋  error     at /.../node_modules/.pnpm/[email protected]/node_modules/read-yaml-file/index.js:10:71

@marcalexiei

Copy link
Copy Markdown
Contributor Author

read-yaml-file is a dependency of @manypkg/get-packages.
I'll try to up date to v2.
v3 doesn't provide cjs files so this might be a problem since main branch is still relying on jest@29.

@unional

unional commented Dec 3, 2025

Copy link
Copy Markdown

To share, I confirm overriding read-yaml-file to v2 does fix the issue.

So if there is still problem due to @manypkg/get-packages after the additional fix, there is a workaround.

@marcalexiei

Copy link
Copy Markdown
Contributor Author

To be clear I was speaking about upgrading @manypkg/get-packages not read-yaml-file 😅

@bluwy

bluwy commented Dec 3, 2025

Copy link
Copy Markdown
Member

On mobile, but there's an issue/pr about upgrading the get-packages dependency that you should search for first. I think we cant upgrade it in this major due to its breaking change.

@marcalexiei

Copy link
Copy Markdown
Contributor Author

there's an issue/pr about upgrading the get-packages dependency that you should search for first

I tackled an hour and I was able to get CI green using @manypkg/get-packages@2.
I've opened #1795, if you have time you can take a look!

nnecec pushed a commit to nnecec/changesets-docs that referenced this pull request Apr 16, 2026
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.

Security Advisory: js-yaml Prototype Pollution (CVE) used via @changesets/* Dependencies

4 participants