Skip to content

Releases: vend/vend-number

Expose ROUND MODES

06 Nov 23:02
Compare
Choose a tag to compare

PR adds the missing ROUNDING_MODES to the TypeScript declaration file.

Fix type of isFinite

25 Sep 21:17
Compare
Choose a tag to compare

The type of isFinite inadvertantly changed between 4.0.0 and 4.1.0 in a backward-incompatible way. This restores the type from 4.0.0.

This only updates type declarations. There are no runtime code changes.

Unfork bignumber

21 Sep 20:12
Compare
Choose a tag to compare

The bignumber fork is no longer necessary with the V8 Maglev bug fixed. This release should be functionally equivalent to 4.0.0.

Fork bignumber

22 Aug 01:22
Compare
Choose a tag to compare

Release forks bignumber.js to v5 directly into this code base and makes a small change to work around this V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=14271

The functionality should be equivalent.

See: #40

Update isFinite type

29 Jan 00:44
Compare
Choose a tag to compare
  • Merge pull request #26 from vend/update-is-finite a41b9ca
  • Use node 6 ceeebae
  • Allow null values to be passed to isFinite 343f9a3

v3.1.3...v3.1.4

Fixed not being able to access static function

06 Aug 22:09
Compare
Choose a tag to compare

The static function such as subtract or add wasn't accessible when they are VendNumber class static function. Moving and exporting these functions outside the class allows us to use these function.

Also keeping the static function in the class to avoid breaking any existing usage

Fixed RoundingMode type not exported

25 Jul 22:57
Compare
Choose a tag to compare

Copy and pasted the RoundingMode type declaration from bignumber.js into vend-number because it is not exported in bignumber.js 5.0.0

RoudingMode type is exported from bignumber.js 6.0.0 version onward

TypeScript types and updated bignumber.js

01 Jul 21:05
Compare
Choose a tag to compare

This release adds TypeScript type declarations and updates bignumber.js to 5.0.0. This is a major version bump for bignumber.js, but the changes were only related to its constructor, which consumers of this library shouldn't be calling directly, so I'm not considering it a breaking change for this library.

Fixes Safari/iOS Number issues

03 May 20:22
Compare
Choose a tag to compare

Updates lib to depend on bignumber.js v4.0.2 which works around the bugs in Safari/iOS.

Updates lib to use bignumber.js v4.0.0

03 May 20:21
Compare
Choose a tag to compare