github cloudflare/workers-sdk @cloudflare/unenv-preset@2.8.0

latest releases: @cloudflare/pages-shared@0.13.97, miniflare@4.20260107.0, wrangler@4.58.0...
3 days ago

Minor Changes

  • #11733 62fd118 Thanks @petebacondarwin! - 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
  • #11744 a7e9f80 Thanks @petebacondarwin! - 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

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.