v1.14.0
-
Fix
makeBase58check()Typescript types -
Add
sideEffectsconfigurationOnly
@exodus/bytes/encoding.jsexport has side-effects, and those side-effects are internal:It is documented to load multi-byte codecs for both this import and future (and previous)
/encoding-lite.jsimports, even if the current import does not use the provided TextDecoder.Both
/encoding.jsand/encoding-lite.jsare designed to return the exact same TextDecoder class and methods, and loading full implementation provides multi-byte encodings support everywhere.As
/encoding-lite.jscan be used as a global polyfill, the setup has to avoid polyfill conflicts if something loads/encoding.jsand then something else replaces it with/encoding-lite.js(or vice versa)The same mechanism is reused to keep
/whatwg.jsminimal by default, and only support multi-byte encodings if/encoding.jswas imported and loaded them at any point.This is not a new change, just documenting the existing behavior and exposing
sideEffectsconfiguration so that bundlers can optmize out other imports. -
Further bundle size optimizations
Full Changelog: v1.13.0...v1.14.0