non-breaking
- V1 still available, import from "money-lib"
- V2 import from "money-lib/v2"
- simplified API
- type safe string literal initialization
- fix
toFloatString
0 padding - fix
fromIntString
- fix
fromFloatString
- exclude test files from build
- use bun for testing
- expose
config
method
- added
abs
method
- added
withPlusSign
format() option, default: false; if true, positive numbers will be prefixed with a plus sign
- use
Bankers Rounding
as default rounder when parsing floats (configurable in config)
toCents
alias fortoInt
min
andmax
methods
- default currency when initializing money chain
- fixed return type of chained
formatParts
(added sign field)
- added
fromIntString
,fromFloatString
methods
- formatting values of less than 10 cents
- changed output of
format
,formatParts
- made
currency
optional in money initialization (defaults to config.defaultCurrency)