| Name | Modified | Size | Downloads / 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
- Use standard JavaScript modules by @jonkoops in https://github.com/mafintosh/why-is-node-running/pull/67
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