Patch Changes
-
#12377
312b5ebThanks @vicb! - Use the nativenode:processv2 when it is availableNote that we only enable this if all of the following conditions are met:
- compatibility_date >= 2025-09-15 or process v2 enabled by flag (enable_nodejs_process_v2)
fetch_iterable_type_supportandfetch_iterable_type_support_override_adjustmentare active (explicitly specified or implied by date or other flags).
Note that EventEmitters (
on,off,addListener,removeListener, ...) used to be available on the imported process module while they should not have been. They are now only available on the global process:import p from "node:process"; // Working before this PR, not working after this PR p.on("exit", exitHandler); // Use the global process instead (works before and after the PR) process.on("exit", exitHandler);