CHANGELOG.md (5872B)
1 #### 10.3.1 2 * 25/06/2021 3 * Remove minified versions. Refresh *README*. 4 5 #### 10.3.0 6 * 22/06/2021 7 * Support underscores as separators. 8 * #101 Add `Decimal.clamp` method. 9 * #161 Fix Decimal instances deemed plain objects. 10 * #100 Add `Decimal.sum` method. 11 * #146 `Symbol.for` to `Symbol['for']` for IE8. 12 * #132 Fix possible infinite loop when `minE` is very low. 13 * #180 Accept Decimals of different origin. 14 * Update Typescript definitions. 15 * Update minification examples in *README*. 16 * Add minified versions for both *decimal.js* and *decimal.mjs*. 17 * Add *files* field to *package.json*, and remove build script. 18 19 #### 10.2.1 20 * 28/09/2020 21 * Correct `sqrt` initial estimate. 22 23 #### 10.2.0 24 * 08/05/2019 25 * #128 Workaround V8 `Math.pow` change. 26 * #93 Accept `+` prefix when parsing string values. 27 * #129 Fix typo. 28 29 #### 10.1.1 30 * 27/02/2019 31 * Check `Symbol` properly. 32 33 #### 10.1.0 34 * 26/02/2019 35 * #122 Add custom `util.inspect()` function. 36 * Add `Symbol.toStringTag`. 37 * #121 Constructor: add range check for arguments of type number and Decimal. 38 * Remove premable from uglifyjs build script. 39 * Move *decimal.min.js.map* to root directory. 40 41 #### 10.0.2 42 * 13/12/2018 43 * #114 Remove soureMappingURL from *decimal.min.js*. 44 * Remove *bower.json*. 45 46 #### 10.0.1 47 * 24/05/2018 48 * Add `browser` field to *package.json*. 49 50 #### 10.0.0 51 * 10/03/2018 52 * #88 `toNearest` to return the nearest multiple in the direction of the rounding mode. 53 * #82 #91 `const` to `var`. 54 * Add trigonometric precision limit explanantion to documentation. 55 * Put global ts definitions in separate file (see *bignumber.js* #143). 56 57 #### 9.0.1 58 * 15/12/2017 59 * #80 Typings: correct return type. 60 61 #### 9.0.0 62 * 14/12/2017 63 * #78 Typings: remove `toFormat`. 64 65 #### 8.0.0 66 * 10/12/2017 67 * Correct typings: `toFraction` returns `Decimal[]`. 68 * Type-checking: add `Decimal.isDecimal` method. 69 * Enable configuration reset with `defaults: true`. 70 * Add named export, Decimal, to *decimal.mjs*. 71 72 #### 7.5.1 73 * 03/12/2017 74 * Remove typo. 75 76 #### 7.5.0 77 * 03/12/2017 78 * Use TypeScript declarations outside modules. 79 80 #### 7.4.0 81 * 25/11/2017 82 * Add TypeScript typings. 83 84 #### 7.3.0 85 * 26/09/2017 86 * Rename *decimal.es6.js* to *decimal.mjs*. 87 * Amend *.travis.yml*. 88 89 #### 7.2.4 90 * 09/09/2017 91 * Update docs regarding `global.crypto`. 92 * Fix `import` issues. 93 94 #### 7.2.3 95 * 27/06/2017 96 * Bugfix: #58 `pow` sometimes throws when result is `Infinity`. 97 98 #### 7.2.2 99 * 25/06/2017 100 * Bugfix: #57 Powers of -1 for integers over `Number.MAX_SAFE_INTEGER`. 101 102 #### 7.2.1 103 * 04/05/2017 104 * Fix *README* badges. 105 106 #### 7.2.0 107 * 09/04/2017 108 * Add *decimal.es6.js* 109 110 #### 7.1.2 111 * 05/04/2017 112 * `Decimal.default` to `Decimal['default']` IE8 issue 113 114 #### 7.1.1 115 * 10/01/2017 116 * Remove duplicated for-loop 117 * Minor refactoring 118 119 #### 7.1.0 120 * 09/11/2016 121 * Support ES6 imports. 122 123 #### 7.0.0 124 * 09/11/2016 125 * Remove `require('crypto')` - leave it to the user 126 * Default `Decimal.crypto` to `false` 127 * Add `Decimal.set` as `Decimal.config` alias 128 129 #### 6.0.0 130 * 30/06/2016 131 * Removed base-88 serialization format 132 * Amended `toJSON` and removed `Decimal.fromJSON` accordingly 133 134 #### 5.0.8 135 * 09/03/2016 136 * Add newline to single test results 137 * Correct year 138 139 #### 5.0.7 140 * 29/02/2016 141 * Add decimal.js-light link 142 * Remove outdated example from docs 143 144 #### 5.0.6 145 * 22/02/2016 146 * Add bower.json 147 148 #### 5.0.5 149 * 20/02/2016 150 * Bugfix: #26 wrong precision applied 151 152 #### 5.0.4 153 * 14/02/2016 154 * Bugfix: #26 clone 155 156 #### 5.0.3 157 * 06/02/2016 158 * Refactor tests 159 160 #### 5.0.2 161 * 05/02/2016 162 * Added immutability tests 163 * Minor *decimal.js* clean-up 164 165 #### 5.0.1 166 * 28/01/2016 167 * Bugfix: #20 cos mutates value 168 * Add pi info to docs 169 170 #### 5.0.0 171 * 25/01/2016 172 * Added trigonometric functions and `cubeRoot` method 173 * Added most of JavaScript's `Math` object methods as Decimal methods 174 * Added `toBinary`, `toHexadecimal` and `toOctal` methods 175 * Added `isPositive` method 176 * Removed the 15 significant digit limit for numbers 177 * `toFraction` now returns an array of two Decimals, not two strings 178 * String values containing whitespace or a plus sign are no longer accepted 179 * `valueOf` now returns `'-0'` for minus zero 180 * `comparedTo` now returns `NaN` not `null` for comparisons with `NaN` 181 * `Decimal.max` and `Decimal.min` no longer accept an array 182 * The Decimal constructor and `toString` no longer accept a base argument 183 * Binary, hexadecimal and octal prefixes are now recognised for string values 184 * Removed `Decimal.errors` configuration property 185 * Removed `toFormat` method 186 * Removed `Decimal.ONE` 187 * Renamed `exponential` method to `naturalExponential` 188 * Renamed `Decimal.constructor` method to `Decimal.clone` 189 * Simplified error handling and amended error messages 190 * Refactored the test suite 191 * `Decimal.crypto` is now `undefined` by default, and the `crypto` object will be used if available 192 * Major internal refactoring 193 * Removed *bower.json* 194 195 #### 4.0.2 196 * 20/02/2015 Add bower.json. Add source map. Amend travis CI. Amend doc/comments 197 198 #### 4.0.1 199 * 11/12/2014 Assign correct constructor when duplicating a Decimal 200 201 #### 4.0.0 202 * 10/11/2014 `toFormat` amended to use `Decimal.format` object for more flexible configuration 203 204 #### 3.0.1 205 * 8/06/2014 Surround crypto require in try catch. See issue #5 206 207 #### 3.0.0 208 * 4/06/2014 `random` simplified. Major internal changes mean the properties of a Decimal must now be considered read-only 209 210 #### 2.1.0 211 * 4/06/2014 Amend UMD 212 213 #### 2.0.3 214 * 8/05/2014 Fix NaN toNumber 215 216 #### 2.0.2 217 * 30/04/2014 Correct doc links 218 219 #### 2.0.1 220 * 10/04/2014 Update npmignore 221 222 #### 2.0.0 223 * 10/04/2014 Add `toSignificantDigits` 224 * Remove `toInteger` 225 * No arguments to `ceil`, `floor`, `round` and `trunc` 226 227 #### 1.0.1 228 * 07/04/2014 Minor documentation clean-up 229 230 #### 1.0.0 231 * 02/04/2014 Initial release