Download Latest Version v3.2.2 source code.zip (7.2 kB)
Email in envelope

Get an email when there's a new version of why-is-node-running

Home / v3.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2024-07-08 901 Bytes
v3.0.0 source code.tar.gz 2024-07-08 4.3 kB
v3.0.0 source code.zip 2024-07-08 6.7 kB
Totals: 3 Items   11.9 kB 1

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

:::diff
-const why = require('why-is-node-running')
+import why from 'why-is-node-running'

Use --import instead of --require

:::diff
-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: https://github.com/mafintosh/why-is-node-running/compare/v2.3.0...v3.0.0

Source: README.md, updated 2024-07-08