v3.0.0
What's Changed
Breaking Changes
This release raises the required Node.js version to 20.11 or higher, and introduces support for standardized JavaScript modules. This makes the package incompatible with CommonJS based environments and is thus a breaking change. If you want to use this version the following changes should be made:
Use JavaScript modules instead of CommonJS
-const why = require('why-is-node-running')
+import why from 'why-is-node-running'
Use --import
instead of --require
-node --require why-is-node-running/include /path/to/some/file.js
+node --import why-is-node-running/include /path/to/some/file.js
Full Changelog: v2.3.0...v3.0.0