Skip to content

v1.14.0

Choose a tag to compare

@ChALkeR ChALkeR released this 12 Feb 03:41
· 49 commits to main since this release
Immutable release. Only release title and notes can be modified.
9cc2f20
  • Fix makeBase58check() Typescript types

  • Add sideEffects configuration

    Only @exodus/bytes/encoding.js export 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.js imports, even if the current import does not use the provided TextDecoder.

    Both /encoding.js and /encoding-lite.js are designed to return the exact same TextDecoder class and methods, and loading full implementation provides multi-byte encodings support everywhere.

    As /encoding-lite.js can be used as a global polyfill, the setup has to avoid polyfill conflicts if something loads /encoding.js and then something else replaces it with /encoding-lite.js (or vice versa)

    The same mechanism is reused to keep /whatwg.js minimal by default, and only support multi-byte encodings if /encoding.js was imported and loaded them at any point.

    This is not a new change, just documenting the existing behavior and exposing sideEffects configuration so that bundlers can optmize out other imports.

  • Further bundle size optimizations

Full Changelog: v1.13.0...v1.14.0