Full error message showed in stderr:
(node:5124) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
at showFlaggedDeprecation (buffer.js:174:11)
at new Buffer (buffer.js:257:3)
at Object.<anonymous> (/Users/my-project/node_modules/dicer/lib/HeaderParser.js:6:15)
at Module._compile (internal/modules/cjs/loader.js:967:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1004:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
As you can see, the error comes from dicer, the unique dependency of busboy.
Are there any blockers to update busboy to 0.3.x, version that includes the right Buffer.from syntax instead of new Buffer(). See following commit https://github.com/mscdex/busboy/commit/5777457431dbcd165c520d632c39d807cb6597a4
This previously opened PR would fix it:
https://github.com/expressjs/multer/pull/736
Its travis tests only fail on Node.js version 0.10 an 0.12 (https://travis-ci.org/github/expressjs/multer/builds/522381120) which have ended their life 4 years ago (2016-12-31). Even if https://github.com/expressjs/multer/issues/414 is underway, can we at least:
so the Buffer problem goes away?
Thanks
Would be pretty nice to get rid of this warning!
Most helpful comment
Would be pretty nice to get rid of this warning!