Open Rotzbua opened 1 week ago
The dependency is-utf8 has it latest release 0.2.1 in 2015 and seems to have some issues: https://github.com/wayfind/is-utf8/issues/6
is-utf8
0.2.1
Use a maintained dependency or native implementation.
This project already uses websocket library ws which offers its own utf8 library utf-8-validate.
ws
By increasing required node version to new patch level 18.5 -> 18.14 it is possible to use native implementation https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufferisutf8input .
The native implementation would be preferable, but tests fail.
Current Behavior
The dependency
is-utf8
has it latest release0.2.1
in 2015 and seems to have some issues: https://github.com/wayfind/is-utf8/issues/6Expected Behavior
Use a maintained dependency or native implementation.
This project already uses websocket library
ws
which offers its own utf8 library utf-8-validate.By increasing required node version to new patch level 18.5 -> 18.14 it is possible to use native implementation https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufferisutf8input .
The native implementation would be preferable, but tests fail.
Environment