@exodus/bytes
1.16.0 · 22 Sep 2026MIT78.5M / weekRepositorynpmAtom feed
1.16.0 is the newest release of 1.x.
In short
2 changed
Release note
What's Changed
Bundle size reductions, especially for browsers
Under
browsermodule resolution target, we rely on browsers to have a working UTF-8 / UTF-16 / windows-1252 (latin1 subset)TextDecoderimplementation that doesn't have bugs when used without streaming and withignoreBOM: true, and aTextEncoderWhile browsers have bugs even in UTF-8, those bugs are related to streams and/or BOM processing, and that specific combination we use seems to be always robust.
In previous versions we already used native codepaths for those where possible and operated under the same assumption.
Disable hex/base64 performance optimization for Firefox >=133 <146
We used a guarded useragent check for those versions to prefer js fallback instead of native base64 / hex implementations, as native was slow before FF 146 (ref: bugzilla.mozilla.org/show_bug.cgi and linked issues)
As the usage of FF <146 diminished according to caniuse stats, this check is not worth it anymore.
This version removes that useragent check.
Those Firefox versions are still supported by the library, but now the native base64 / hex implementation is always used when available.
See 8cab29a for implementation details.
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.