hildjj / node-cbor

Encode and decode CBOR documents, with both easy mode, streaming mode, and SAX-style evented mode.
MIT License
362 stars 74 forks source link

Node.js v10 generates DeprecationWarning warnings. #74

Closed BurtHarris closed 6 years ago

BurtHarris commented 6 years ago

Repro: Run npm test using Node.js version 10 (just released.)

node:46164) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

(node:46164) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated

Additional messages reflecting the same deprecations are listed.

BurtHarris commented 6 years ago

I wasn't synced with latest change.