fix: Widen EBADF fstat version gate to include Node 24.15+#7104
Merged
arcanis merged 3 commits intoyarnpkg:masterfrom Apr 17, 2026
Merged
fix: Widen EBADF fstat version gate to include Node 24.15+#7104arcanis merged 3 commits intoyarnpkg:masterfrom
arcanis merged 3 commits intoyarnpkg:masterfrom
Conversation
The breaking change from nodejs/node#61769 was backported to Node v24.15.0, but the version guard only covered Node >= 25.7. This adds the Node 24.15+ range so PnP correctly reads CJS source from zip files on that version as well. Fixes yarnpkg#7103
The .pnp.loader.mjs is auto-generated β revert manual edit and let CI rebuild it. Add .yarn/versions/7103.yml to declare the patch bump.
Add @yarnpkg/builder, @yarnpkg/core, @yarnpkg/doctor, @yarnpkg/nm, @yarnpkg/pnpify, and @yarnpkg/sdks to the declined list β they depend on packages planned for release but don't need a bump themselves.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's the problem this PR addresses?
#7103
The fix in #7070 added a version gate for the EBADF fstat error:
However, the breaking change from nodejs/node#61769 (
lib: reduce cycles in esm loader and load it in snapshot) was backported to Node v24.15.0, causing the identicalEBADF: bad file descriptor, fstaterror on that version.Works on v24.14.1, fails on v24.15.0.
How did you fix it?
Widened the version gate to also cover Node 24.15+:
Checklist