@cloudflare/unenv-preset
2.16.2 · 21 Sep 2026MIT OR Apache-2.043.8M / weekRepositoryHomepagenpmAtom feed
2.16.2 is the newest release of 2.x.
In short
1 fixed
Release note
The section about @cloudflare/unenv-preset of a note shared by several packages.
Patch Changes
Use the native
node: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);
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.