Skip to content

Releases: evert/bigint-money

v2.0.0

21 Apr 02:11
a8afa36
Compare
Choose a tag to compare
  • 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

19 May 05:08
c34a74b
Compare
Choose a tag to compare
  • A faster algorithm for negative powers (@oliverlj).
  • Yearly dependency update
  • Typescript 4, new linting rules, switch to github actions.

v1.2.0

01 Aug 21:03
5c92c6a
Compare
Choose a tag to compare

Added support for pow() operation, aka powers.

Currently only integer exponents are supported.

v1.1.1

02 Feb 05:09
c469e77
Compare
Choose a tag to compare
  • Update dependencies

v1.1.0

02 Feb 05:10
e4f4a7c
Compare
Choose a tag to compare
  • multiply() and divide() can now accept other Money objects as
    arguments.

0.4.0

04 Jan 20:02
2b7a08c
Compare
Choose a tag to compare
  • 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

04 Jan 20:03
8b77efa
Compare
Choose a tag to compare
  • 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.