@exodus/bytes
1.16.0 · 22 Sep 2026MIT78.5M / weekRepositorynpmAtom feed
Your version
1.16.0 is the newest release of 1.x.
In short
1 fixed3 changed
Release note
What's Changed
fromHex on Node.js validation in 47fc52c
This fixes a bug in fromHex validation behavior on Node.js 24.x and below.
Affected are platforms resolving to "node" import condition that do not have native Uint8Array.fromHex.
Node.js 25+ is not affected.
Browsers and other non-
"node"import conditions are not affected.Valid input is not affected.
On affected platforms, fromHex failed to reject some invalid strings:
% node
Welcome to Node.js v24.21.0.
Type ".help" for more information.
> require('@exodus/bytes/hex.js').fromHex('\u0041\u0042') // correct, this is 'AB'
Uint8Array(1) [ 171 ]
> require('@exodus/bytes/hex.js').fromHex('\u0141\uFF42') // incorrect, high byte in input symbols is coerced
Uint8Array(1) [ 171 ]This is now fixed.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.