You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MikeMcl_decimal.js/CHANGELOG.md

250 lines
5.9 KiB

1 year ago
#### 10.4.3
* 04/12/2022
* #211 Remove `toStringTag` declaration for type compatibility.
2 years ago
#### 10.4.2
* 12/10/2022
* #209 Correct return type.
2 years ago
#### 10.4.1
* 16/09/2022
* #205 Add './decimal' subpath to *package.json* `exports`.
2 years ago
#### 10.4.0
* 14/08/2022
* #201 Add `exports` field to *package.json*.
* #203 Preserve license comment after bundling.
* #198 Use type predicate on `isDecimal`.
3 years ago
#### 10.3.1
* 25/06/2021
* Remove minified versions. Refresh *README*.
3 years ago
#### 10.3.0
* 22/06/2021
* Support underscores as separators.
* #101 Add `Decimal.clamp` method.
* #161 Fix Decimal instances deemed plain objects.
* #100 Add `Decimal.sum` method.
* #146 `Symbol.for` to `Symbol['for']` for IE8.
* #132 Fix possible infinite loop when `minE` is very low.
* #180 Accept Decimals of different origin.
* Update Typescript definitions.
* Update minification examples in *README*.
* Add minified versions for both *decimal.js* and *decimal.mjs*.
* Add *files* field to *package.json*, and remove build script.
4 years ago
#### 10.2.1
* 28/09/2020
* Correct `sqrt` initial estimate.
5 years ago
#### 10.2.0
* 08/05/2019
* #128 Workaround V8 `Math.pow` change.
* #93 Accept `+` prefix when parsing string values.
* #129 Fix typo.
5 years ago
#### 10.1.1
* 27/02/2019
* Check `Symbol` properly.
#### 10.1.0
* 26/02/2019
* #122 Add custom `util.inspect()` function.
* Add `Symbol.toStringTag`.
* #121 Constructor: add range check for arguments of type number and Decimal.
5 years ago
* Remove premable from uglifyjs build script.
* Move *decimal.min.js.map* to root directory.
6 years ago
#### 10.0.2
* 13/12/2018
* #114 Remove soureMappingURL from *decimal.min.js*.
* Remove *bower.json*.
6 years ago
#### 10.0.1
* 24/05/2018
6 years ago
* Add `browser` field to *package.json*.
6 years ago
6 years ago
#### 10.0.0
* 10/03/2018
* #88 `toNearest` to return the nearest multiple in the direction of the rounding mode.
* #82 #91 `const` to `var`.
* Add trigonometric precision limit explanantion to documentation.
6 years ago
* Put global ts definitions in separate file (see *bignumber.js* #143).
6 years ago
7 years ago
#### 9.0.1
* 15/12/2017
* #80 Typings: correct return type.
7 years ago
#### 9.0.0
* 14/12/2017
* #78 Typings: remove `toFormat`.
7 years ago
#### 8.0.0
* 10/12/2017
* Correct typings: `toFraction` returns `Decimal[]`.
* Type-checking: add `Decimal.isDecimal` method.
* Enable configuration reset with `defaults: true`.
* Add named export, Decimal, to *decimal.mjs*.
7 years ago
#### 7.5.1
* 03/12/2017
* Remove typo.
7 years ago
#### 7.5.0
* 03/12/2017
* Use TypeScript declarations outside modules.
7 years ago
#### 7.4.0
* 25/11/2017
7 years ago
* Add TypeScript typings.
7 years ago
7 years ago
#### 7.3.0
* 26/09/2017
* Rename *decimal.es6.js* to *decimal.mjs*.
* Amend *.travis.yml*.
7 years ago
#### 7.2.4
* 09/09/2017
* Update docs regarding `global.crypto`.
* Fix `import` issues.
7 years ago
#### 7.2.3
* 27/06/2017
* Bugfix: #58 `pow` sometimes throws when result is `Infinity`.
7 years ago
#### 7.2.2
* 25/06/2017
* Bugfix: #57 Powers of -1 for integers over `Number.MAX_SAFE_INTEGER`.
7 years ago
#### 7.2.1
* 04/05/2017
* Fix *README* badges.
#### 7.2.0
* 09/04/2017
* Add *decimal.es6.js*
7 years ago
#### 7.1.2
* 05/04/2017
* `Decimal.default` to `Decimal['default']` IE8 issue
7 years ago
#### 7.1.1
* 10/01/2017
* Remove duplicated for-loop
* Minor refactoring
8 years ago
#### 7.1.0
* 09/11/2016
* Support ES6 imports.
8 years ago
#### 7.0.0
* 09/11/2016
* Remove `require('crypto')` - leave it to the user
* Default `Decimal.crypto` to `false`
* Add `Decimal.set` as `Decimal.config` alias
#### 6.0.0
8 years ago
* 30/06/2016
8 years ago
* Removed base-88 serialization format
* Amended `toJSON` and removed `Decimal.fromJSON` accordingly
8 years ago
8 years ago
#### 5.0.8
8 years ago
* 09/03/2016
8 years ago
* Add newline to single test results
* Correct year
8 years ago
8 years ago
#### 5.0.7
8 years ago
* 29/02/2016
8 years ago
* Add decimal.js-light link
* Remove outdated example from docs
8 years ago
8 years ago
#### 5.0.6
8 years ago
* 22/02/2016
8 years ago
* Add bower.json
8 years ago
8 years ago
#### 5.0.5
8 years ago
* 20/02/2016
8 years ago
* Bugfix: #26 wrong precision applied
8 years ago
8 years ago
#### 5.0.4
8 years ago
* 14/02/2016
8 years ago
* Bugfix: #26 clone
8 years ago
8 years ago
#### 5.0.3
8 years ago
* 06/02/2016
8 years ago
* Refactor tests
8 years ago
8 years ago
#### 5.0.2
8 years ago
* 05/02/2016
8 years ago
* Added immutability tests
* Minor *decimal.js* clean-up
8 years ago
8 years ago
#### 5.0.1
8 years ago
* 28/01/2016
8 years ago
* Bugfix: #20 cos mutates value
* Add pi info to docs
8 years ago
8 years ago
#### 5.0.0
8 years ago
* 25/01/2016
8 years ago
* Added trigonometric functions and `cubeRoot` method
* Added most of JavaScript's `Math` object methods as Decimal methods
* Added `toBinary`, `toHexadecimal` and `toOctal` methods
* Added `isPositive` method
* Removed the 15 significant digit limit for numbers
* `toFraction` now returns an array of two Decimals, not two strings
* String values containing whitespace or a plus sign are no longer accepted
* `valueOf` now returns `'-0'` for minus zero
* `comparedTo` now returns `NaN` not `null` for comparisons with `NaN`
* `Decimal.max` and `Decimal.min` no longer accept an array
* The Decimal constructor and `toString` no longer accept a base argument
* Binary, hexadecimal and octal prefixes are now recognised for string values
* Removed `Decimal.errors` configuration property
* Removed `toFormat` method
* Removed `Decimal.ONE`
* Renamed `exponential` method to `naturalExponential`
* Renamed `Decimal.constructor` method to `Decimal.clone`
* Simplified error handling and amended error messages
* Refactored the test suite
* `Decimal.crypto` is now `undefined` by default, and the `crypto` object will be used if available
* Major internal refactoring
* Removed *bower.json*
#### 4.0.2
* 20/02/2015 Add bower.json. Add source map. Amend travis CI. Amend doc/comments
#### 4.0.1
* 11/12/2014 Assign correct constructor when duplicating a Decimal
#### 4.0.0
* 10/11/2014 `toFormat` amended to use `Decimal.format` object for more flexible configuration
#### 3.0.1
8 years ago
* 8/06/2014 Surround crypto require in try catch. See issue #5
8 years ago
#### 3.0.0
8 years ago
* 4/06/2014 `random` simplified. Major internal changes mean the properties of a Decimal must now be considered read-only
8 years ago
#### 2.1.0
8 years ago
* 4/06/2014 Amend UMD
8 years ago
#### 2.0.3
8 years ago
* 8/05/2014 Fix NaN toNumber
8 years ago
#### 2.0.2
8 years ago
* 30/04/2014 Correct doc links
8 years ago
#### 2.0.1
8 years ago
* 10/04/2014 Update npmignore
8 years ago
#### 2.0.0
8 years ago
* 10/04/2014 Add `toSignificantDigits`
* Remove `toInteger`
* No arguments to `ceil`, `floor`, `round` and `trunc`
8 years ago
#### 1.0.1
8 years ago
* 07/04/2014 Minor documentation clean-up
8 years ago
#### 1.0.0
8 years ago
* 02/04/2014 Initial release