paragonie / sodium-plus

Developer-friendly libsodium interface
Other
170 stars 21 forks source link

Buffer() and new Buffer() are deprecated, showing warnings #40

Closed furiousOyster closed 4 years ago

furiousOyster commented 4 years ago

Thank you for this very helpful library.

As per https://nodejs.org/fr/docs/guides/buffer-constructor-deprecation/ these methods, used extensively throughout the codebase, are deprecated, and throw warnings.

Also as an unrelated side note, I see "let variable = 'something'" being used throughout as well where the variable is never reassigned - any reason you're not using 'const' ?

paragonie-security commented 4 years ago

This should be fixed in v0.9.0

furiousOyster commented 4 years ago

confirmed fixed