v0.16.0
Pre-release-
BREAKING CHANGES: require Node.js 20.0.0 or above
This allows us to use the built-in Node.js CLI parser and then to remove the Commander.js dependency.
This reduces the standalone binary size from 77KB to 45KB (42%). -
Support
require(esm)
in Node.js v22.10 and aboveThis package now has the new exports condition
module-sync
.
This allows users of Node.js v22.10 and above to import the ESM version of the package usingrequire
.
This avoids the issues of dual-package hazard. -
Remove
package.json
main
andmodule
fieldsThe
main
andmodule
fields supplemented by theexports
fields.
exports
is supported since Node.js v12.7.0
Since we require Node.js v20.0.0 or above, we can safely removemain
.All major bundlers now support
exports
.
Hence, we can also remove themodule
field.