- The
SignalNumber
andSignal['number']
types in TypeScript are now stricter. They only allow valid signal numbers like 1 or 9. They do not allow invalid signal numbers like -1, 1.5 or 999. Please note that 0 is not considered a valid signal number, although it can be passed toprocess.kill()
.
- The
signalsByName[signalName]
andsignalsByNumber[signalNumber]
types in TypeScript are nowSignal
instead ofSignal | undefined
. This means you can now dosignalsByName[signalName].description
instead ofsignalsByName[signalName]!.description
.
- The
SignalName
andSignal['name']
types in TypeScript are now stricter. They only allow valid signal names like'SIGINT'
. They do not allow lowercase signals like'sigint'
nor unknown signals like'SIGOTHER'
.
- Minimal supported Node.js version is now
18.18.0
- Minimal supported Node.js version is now
16.17.0
- Remove source map comment from built package (#15)
- Improve tree-shaking support
- Reduce npm package size
- Improve TypeScript types
- Minimal supported Node.js version is now
14.18.0
- Fix
main
field inpackage.json
- Minimal supported Node.js version is now
12.20.0
- This package is now an ES module. It can only be loaded with an
import
orimport()
statement, notrequire()
. See this post for more information.
- Minimal supported Node.js version is now
10.17.0