@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
2 new
Release note
The section about @cloudflare/unenv-preset of a note shared by several packages.
Minor Changes
Add support for native
node:inspectormodule when theenable_nodejs_inspector_modulecompatibility flag is enabled. This feature is currently experimental and requires both theenable_nodejs_inspector_moduleandexperimentalcompatibility flags to be set.To enable the native inspector module, add the following to your
wrangler.jsonc:{ "compatibility_flags": ["experimental", "enable_nodejs_inspector_module"] }Then you can import and use the inspector module in your Worker:
import inspector from "node:inspector"; // Access inspector APIs (note: workerd's implementation is a non-functional stub) inspector.url(); // returns undefined inspector.close(); // no-op
Add support for native
node:inspector/promisesmodule when theenable_nodejs_inspector_modulecompatibility flag is enabled. This extends the existingnode:inspectorsupport to include the promises-based API.To enable the native inspector/promises module, add the following to your
wrangler.jsonc:{ "compatibility_flags": ["experimental", "enable_nodejs_inspector_module"] }Then you can import and use the inspector/promises module in your Worker:
import inspector from "node:inspector/promises"; // Access inspector APIs (note: workerd's implementation is a non-functional stub) inspector.url(); // returns undefined inspector.close(); // no-op
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.