node-argon2 icon indicating copy to clipboard operation
node-argon2 copied to clipboard

Type regression between 0.41.1 and 0.43.0 - Buffer type is not generic

Open jdforsythe opened this issue 7 months ago • 2 comments

Image

jdforsythe avatar Apr 29 '25 17:04 jdforsythe

Image

I believe changing it to ArrayBuffer | undefined will fix it

jdforsythe avatar Apr 29 '25 17:04 jdforsythe

This is on v5.6.2 of typescript

Image

When compiling with v5.8.3, Buffer is now generic. However, that means that v0.43.0 is a breaking change for this library.

jdforsythe avatar Apr 29 '25 17:04 jdforsythe

v0.43.1 reverts to TS 5.6 which should fix this issue for now!

ranisalt avatar Jul 14 '25 17:07 ranisalt