Packages

@cloudflare/unenv-preset

2.16.2 · 21 Sep 2026MIT OR Apache-2.043.8M / weekRepositoryHomepagenpmAtom feed

Your version

2.8.0

7 Jan 2026Where it was published

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:inspector module when the enable_nodejs_inspector_module compatibility flag is enabled. This feature is currently experimental and requires both the enable_nodejs_inspector_module and experimental compatibility 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/promises module when the enable_nodejs_inspector_module compatibility flag is enabled. This extends the existing node:inspector support 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.