Buffer() is deprecated
I've got a warning for deprecation, please reconsider to change Buffer().
DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
at showFlaggedDeprecation (node:buffer:184:11)
at new Buffer (node:buffer:271:3)
at Object.toBuffer (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/Protocol/Wrappers/ScalarValues/bytes.js:57:1)
at Object.serialize (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/Protocol/Wrappers/Traits/Serializable.js:50:1)
at Object.exports.encodeCapabilitiesSet (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/Protocol/OutboundHandlers/Connection.js:70:1)
at Client.capabilitiesSet (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/Protocol/Client.js:292:1)
at Client.enableTLS (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/Protocol/Client.js:101:1)
at Session._createConnection (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/DevAPI/Session.js:264:1)
at Session.connect_ (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/DevAPI/Session.js:310:1)
at Socket.<anonymous> (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/DevAPI/Session.js:351:1)
Subject
Written By
Posted
Buffer() is deprecated
April 22, 2021 12:54AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.