Skip to content

NodeJS Compat: improved process compatibility under a compat flag#4355

Merged
guybedford merged 4 commits intomainfrom
gbedford/process-with-compat-flag
Jun 18, 2025
Merged

NodeJS Compat: improved process compatibility under a compat flag#4355
guybedford merged 4 commits intomainfrom
gbedford/process-with-compat-flag

Conversation

@guybedford
Copy link
Contributor

This reinstates #4271 exactly as in that PR, but with the exception that all new process properties, methods are exported as undefined unless the new experimental nodejs_compat_process flag is set. In addition the process global will not extend from event emitter unless this flag is set.

This way all user-facing changes on this PR can be gated behind a compat date.

The goal for removing experimental here would be to complete the stdio implementations ideally as well since these are often expected to find on process, but I would like to add those as a secondary follow-on PR still. Then we can look at removing experimental and enabling the compat date at some point next month ideally.

@guybedford guybedford requested review from a team as code owners June 16, 2025 23:09
@guybedford guybedford requested a review from a team June 16, 2025 23:09
@guybedford guybedford force-pushed the gbedford/process-with-compat-flag branch from e2f8f28 to ce9b56b Compare June 16, 2025 23:22
@guybedford guybedford force-pushed the gbedford/process-with-compat-flag branch from c3492f6 to f91c587 Compare June 17, 2025 17:52
@guybedford guybedford changed the title NodeJS Compat: process with a compat flag NodeJS Compat: improved process support with a flag Jun 17, 2025
@guybedford guybedford force-pushed the gbedford/process-with-compat-flag branch from dc61a10 to 5262cd4 Compare June 18, 2025 17:07
@guybedford guybedford force-pushed the gbedford/process-with-compat-flag branch from 5262cd4 to f26da4f Compare June 18, 2025 17:09
@guybedford guybedford changed the title NodeJS Compat: improved process support with a flag NodeJS Compat: improved process compatibility support under a compat flag Jun 18, 2025
@guybedford guybedford changed the title NodeJS Compat: improved process compatibility support under a compat flag NodeJS Compat: improved process compatibility under a compat flag Jun 18, 2025
@guybedford guybedford merged commit 78902c2 into main Jun 18, 2025
19 checks passed
@guybedford guybedford deleted the gbedford/process-with-compat-flag branch June 18, 2025 19:19
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.

3 participants