merge2 icon indicating copy to clipboard operation
merge2 copied to clipboard

Require "node:stream" instead of "stream"

Open boenrobot opened this issue 1 year ago • 0 comments

And adjust minimum nodejs version accordingly.

Also removed package-lock.json and added it to .gitignore.


Using "node:stream" instead of "stream" enable use of this library in runtimes other than nodejs (e.g. workerd), at the cost of leaving behind older Nodejs versions.

The package-lock.json is unnecessary in a library, especially when not in a monorepo under CI. It generated a lockfile with older versions due to me testing at 14.18.0 and its bundled npm, while I imagine the latest used was newer.

boenrobot avatar Jul 26 '24 11:07 boenrobot