macchiato-framework / macchiato-core

Ring style HTTP server abstraction for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Buffer() is deprecated due to security and usability issues" in macchiato.middleware.session.cookie

theasp opened this issue · comments

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

See: https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/

Thanks for the heads up, any chance you could do a PR for this? :)

I will take a look at this one as well. Thanks @theasp .

This looks like it was fixed with 1144c9e After @yogthos confirms, I think we can resolve this one.

Yup, that does look like it's been fixed.