node-unzipper
node-unzipper copied to clipboard
DeprecationWarning: Buffer() is deprecated due to security and usability issues.
Usage
await fs
.createReadStream(srcPath)
.pipe(unzipper.Extract({ path: targetPath }))
.promise();
Reason
case by
require('buffer-indexof-polyfill');
found new Buffer in
buffer-indexof-polyfill/index.js:10
value = new Buffer(value);
@ZJONSSON Can we delete the polyfills for node v0.8? That would fix this issue and improve code size.
unzipper was intended to be a drop-in replacement for unzip and be supported on all node versions supported by unzip. However we are now in 2020 and I think we should drop this requirement, do a major bump that allows us to drop polyfills and utilize ES6
Yes - let's drop support for old node versions
Will this issue be fixed?