You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node 10 has deprecated the Buffer constructor 'new Buffer()` (see Node JS Documentation).
While this may not affect the use of node-zookeeper-client within node_modules it becomes a problem when packaging up using webpack and then deploying to a node 10.x (or later) runtime environment, e.g. when running in the current AWS lambda node environment (nodejs 10.x).
When running in such an environment, an error message like the following will be produced:
ERROR (node:7) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
In the case of AWS lambdas, this leads to non functioning lambdas as the deprecation warning is treated as an error when using nodejs 10.x as the runtime.
The text was updated successfully, but these errors were encountered:
ManfredLange
changed the title
Remove use of deprecated Buffer functions
Remove use of deprecated Buffer() constructor
Jun 17, 2019
Node 10 has deprecated the Buffer constructor 'new Buffer()` (see Node JS Documentation).
While this may not affect the use of
node-zookeeper-client
withinnode_modules
it becomes a problem when packaging up using webpack and then deploying to a node 10.x (or later) runtime environment, e.g. when running in the current AWS lambda node environment (nodejs 10.x).When running in such an environment, an error message like the following will be produced:
In the case of AWS lambdas, this leads to non functioning lambdas as the deprecation warning is treated as an error when using nodejs 10.x as the runtime.
The text was updated successfully, but these errors were encountered: