Releases: evert/bigint-money
Releases · evert/bigint-money
v2.0.0
- Full ESM conversion. If you require the commonjs version of this library, stay on the 1.x version until you are ready to upgrade.
- This library now requires Node 16.
- Switch to built-in Node test runner and assertion library, and removed
nyc
, mocha
and chai
.
v1.3.0
- A faster algorithm for negative powers (@oliverlj).
- Yearly dependency update
- Typescript 4, new linting rules, switch to github actions.
v1.2.0
Added support for pow()
operation, aka powers.
Currently only integer exponents are supported.
v1.1.0
multiply()
and divide()
can now accept other Money
objects as
arguments.
0.4.0
- This library now adds a
toJSON()
function that has a default serialization
for JSON files. Example: 1.5 USD will be JSON-stringified as ["1.5", "USD"]
.
- The Money class is now the default export.
0.3.0
- Support for
divide()
, multiply()
, compare()
.
- Added an implementation of the
allocate()
function from Fowler's
Enterprise Design Patterns.
- Fixed parsing string numbers without a fractional part.
- Added
toSource()
and fromSource()
methods to easily get access to the
underlying bigint.
Money.value
is now private.
- Nice v8 debugger output. Shows the currency + the symbol.