Commit 87ac2d7
authored
fix: Stop using EBADF workaround for Node 24.16.0+ (#7152)
<!--
IMPORTANT: While Yarn 4.x is still actively developed we're now
focusing work on our next major releases (5.x and 6.x).
These sister releases use the same pattern as TypeScript-Go:
- 5.x will only contain a handful of breaking changes to provide a safe
migration path.
- 6.x will be the "true" release, notable for being implemented in Rust
and including a significantly improved core.
While PRs can still be opened against 4.x, we recommend power users
to try Yarn 6.x now and help us get it over the finish line. It uses
the same testsuite as Berry, so compatibility should be at its best.
To check out the working trunk for Yarn 6.x, please refer to this
repository: https://github.com/yarnpkg/zpm
-->
## What's the problem this PR addresses?
Node backported nodejs/node#62835 restoring `fs`
patchability, so we can now disable the same EBADF workaround for it.
This follows the same pattern as #7133.
...
## How did you fix it?
Changed the condition to only enable the workaround for node 24.15.x, as
it is the only release with the issue.
I tested the adjusted version works on 24.16.0.
...
## Checklist
<!--- Don't worry if you miss something, chores are automatically
tested. -->
<!--- This checklist exists to help you remember doing the chores when
you submit a PR. -->
<!--- Put an `x` in all the boxes that apply. -->
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
<!-- See
https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released
for more details. -->
<!-- Check with `yarn version check` and fix with `yarn version check
-i` -->
- [x] I have set the packages that need to be released for my changes to
be effective. (I used the same version bumps as #7133)
<!-- The "Testing chores" workflow validates that your PR follows our
guidelines. -->
<!-- If it doesn't pass, click on it to see details as to what your PR
might be missing. -->
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.1 parent 6861e75 commit 87ac2d7
5 files changed
Lines changed: 32 additions & 4 deletions
File tree
- .yarn/versions
- packages/yarnpkg-pnp
- sources/esm-loader
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
0 commit comments