·
26 commits
to main
since this release
Minor Changes
-
b1f160b: - CJS + ESM improvements
-
Updated
package.json
to provide separate CommonJS (index.cjs
) and ES modules (index.js
). -
Added an
exports
section to explicitly define import/require entry points. -
attw support
- Added a
.attw.json
file and introduced a"package-types"
script (yarn attw --pack .
) for detecting type issues.
- Added a
-
Expanded currency utilities
- Introduced
EUR
handling inCurrencyUnit
and extended the conversion logic to accommodate more fiat/btc transformations. - Added new helper methods like
isUmaCurrencyAmount
andisRecord
to strengthen type checks and conversions. - Updated
formatCurrencyStr()
to handleUmaCurrencyAmount
and incorporate new format logic.
- Introduced
-
Refined the
mapCurrencyAmount()
function and improvedformatCurrencyStr()
to handle short vs. full precision more flexibly. -
Revised sub‐paths (e.g.
./utils
) inpackage.json
exports for both ESM and CJS.
-