Skip to content

Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. #1411

Open
@Wonder233

Description

@Wonder233

protobuf.js version: 6.9.0

The above deprecation error is logged from new version of Node when using this package.

internal/process/warning.js:18 (node:61713) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

how to solve it?

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