-
Notifications
You must be signed in to change notification settings - Fork 256
Closed
Description
Summary
Currently @bugsnag/node raises one deprecation warning on latest node:
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:160:11)
at new Buffer (buffer.js:175:3)
at Object../node_modules/sshpk/lib/algs.js (C:\github\slack-desktop\dist\main.bundle.js:95613:6)
at __webpack_require__ (C:\github\slack-desktop\dist\main.bundle.js:27:30)
at Object../node_modules/sshpk/lib/key.js (C:\github\slack-desktop\dist\main.bundle.js:100103:12)
at __webpack_require__ (C:\github\slack-desktop\dist\main.bundle.js:27:30)
at Object../node_modules/sshpk/lib/index.js (C:\github\slack-desktop\dist\main.bundle.js:100050:11)
at __webpack_require__ (C:\github\slack-desktop\dist\main.bundle.js:27:30)
at Object../node_modules/@bugsnag/node/node_modules/http-signature/lib/utils.js (C:\github\slack-desktop\dist\main.bundle.js:10826:13)
at __webpack_require__ (C:\github\slack-desktop\dist\main.bundle.js:27:30)
coming from innerdependency of @bugsnag/node.
We are under bit special circumstances of grabbing console.warn in our Electron renderer process and send it to bugsnag, which results our event collection is polluted by this event.
Possible approaches?
I'm not sure if there's easy way to deal with this: sshpk itself already fixed (TritonDataCenter/node-sshpk#46), but parent dep http-signature doesn't updated so not sure if there's way to control bump up inner dependency selectively.
Metadata
Metadata
Assignees
Labels
No labels