Skip to content

PnP: Stop using EDABF solution for Node 26.1.0+#7133

Merged
arcanis merged 2 commits into
masterfrom
clemyan/narrow-ebadf-gate
May 12, 2026
Merged

PnP: Stop using EDABF solution for Node 26.1.0+#7133
arcanis merged 2 commits into
masterfrom
clemyan/narrow-ebadf-gate

Conversation

@clemyan
Copy link
Copy Markdown
Member

@clemyan clemyan commented May 12, 2026

What's the problem this PR addresses?

Node 26.1.0 restored patchability of the fs module inside the loader pipeline, making our EBADF solution obsolete (for now)

Our EBADF solution isn't "free" either. It triggers the "synthetic require" behavior (where the require global inside some CJS modules will only have some of the functionality, in particular it has no require.cache and require.extensions properties) which breaks some packages. It's just better than completely breaking when using affected Node versions.

How did you fix it?

Stops applying our EBADF solution for Node 26.1.0+

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

clemyan added 2 commits May 13, 2026 01:20
Node 26.1.0 restored patchability of the `fs` module inside the loader
pipeline, making our EBADF solution obsolete (for now)

This commit stops applying our EBADF solution for Node 26.1.0+, to avoid
triggering the "synthetic `require`" behavior which breaks some packages
when our EBADF solution is applied
@clemyan clemyan changed the title PnP: Stop PnP: Stop using EDABF solution for Node 26.1.0+ May 12, 2026
@arcanis arcanis merged commit 4287909 into master May 12, 2026
26 of 27 checks passed
@arcanis arcanis deleted the clemyan/narrow-ebadf-gate branch May 12, 2026 18:29
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.

2 participants