LinusU / scandium

🚀 Easily deploy any Node.js web server to AWS Lambda
71 stars 8 forks source link

Buffer() is deprecated due to security and usability issues. #34

Closed albinekb closed 6 years ago

albinekb commented 6 years ago

With node 10 you get this error when running scandium:


yarn run v1.6.0
(node:42312) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
$ AWS_REGION=eu-central-1 scandium update --name-postfix=--prod
(node:42314) ExperimentalWarning: The fs.promises API is experimental```
LinusU commented 6 years ago

Hmm, can you run it with --trace-deprecations?

AWS_REGION=eu-central-1 node --trace-deprecations node_modules/.bin/sacndium update --name-postfix=--prod
albinekb commented 6 years ago

Fixed https://github.com/LinusU/scandium/commit/222d9e784c4f114b2e0d5801f1196970af222534