Skip to content

Runtime: DeprecationWarning: Buffer() is deprecated due to security and usability issues... #1

@sawilde

Description

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

setting NODE_OPTIONS=--trace-deprecation reveals issue in mailparser

    at showFlaggedDeprecation (buffer.js:194:11)
    at new Buffer (buffer.js:278:3)
    at decode (webpack-internal:///./node_modules/libqp/lib/libqp.js:68:18)
    at Decoder._transform (webpack-internal:///./node_modules/libqp/lib/libqp.js:297:15)
    at Decoder.Transform._read (internal/streams/transform.js:205:10)
    at Decoder.Transform._write (internal/streams/transform.js:193:12)
    at writeOrBuffer (internal/streams/writable.js:358:12)
    at Decoder.Writable.write (internal/streams/writable.js:303:10)
    at MailParser.processChunk (webpack-internal:///./node_modules/mailparser/lib/mail-parser.js:945:46)
    at MailParser.readData (webpack-internal:///./node_modules/mailparser/lib/mail-parser.js:227:14)

and is also reported here nodemailer/mailparser#286

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions