Skip to content

v1.15.2

Choose a tag to compare

@ChALkeR ChALkeR released this 21 Sep 12:05
· 4 commits to main since this release
Immutable release. Only release title and notes can be modified.
5412c5c

Full Changelog: v1.15.1...v1.15.2

What's Changed

  • fix: 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.