Minor Changes
-
#11733
62fd118Thanks @petebacondarwin! - Add support for nativenode: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: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
a7e9f80Thanks @petebacondarwin! - Add support for nativenode: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
{ "compatibility_flags": ["experimental", "enable_nodejs_inspector_module"], }