From 220f11c498971d6a02f6ca335411ca137411009d Mon Sep 17 00:00:00 2001 From: Michael Mclaughlin Date: Tue, 22 Jun 2021 19:20:14 +0100 Subject: [PATCH] v10.3.0 --- .travis.yml | 1 + CHANGELOG.md | 14 ++++++++++++ LICENCE.md | 2 +- README.md | 53 +++++++++++++++++++++---------------------- decimal.d.ts | 2 +- decimal.global.d.ts | 2 +- decimal.js | 14 +++++++----- decimal.min.js | 2 +- decimal.min.js.map | 2 +- decimal.min.mjs | 2 ++ decimal.min.mjs.map | 1 + decimal.mjs | 29 +++++++++++------------ doc/API.html | 33 ++++++++++++--------------- package.json | 12 ++++++---- test/modules/clamp.js | 4 ---- 15 files changed, 94 insertions(+), 79 deletions(-) create mode 100644 decimal.min.mjs create mode 100644 decimal.min.mjs.map diff --git a/.travis.yml b/.travis.yml index 01252c3..3bbbc3c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: node_js node_js: - "node" + - "15" - "14" - "13" - "12" diff --git a/CHANGELOG.md b/CHANGELOG.md index ae040cf..1a790f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +#### 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. + #### 10.2.1 * 28/09/2020 * Correct `sqrt` initial estimate. diff --git a/LICENCE.md b/LICENCE.md index 21b07bb..b313db0 100644 --- a/LICENCE.md +++ b/LICENCE.md @@ -1,6 +1,6 @@ The MIT Licence. -Copyright (c) 2020 Michael Mclaughlin +Copyright (c) 2021 Michael Mclaughlin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.md b/README.md index ebdc7d5..9b052a5 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ This library also adds the trigonometric functions, among others, and supports n which makes it a significantly larger library than *bignumber.js* and the even smaller [big.js](https://github.com/MikeMcl/big.js/). -For a lighter version of this library without the trigonometric functions see [decimal.js-light](https://github.com/MikeMcl/decimal.js-light/). +For a lighter version of this library without the trigonometric functions see +[decimal.js-light](https://github.com/MikeMcl/decimal.js-light/). ## Load @@ -43,7 +44,7 @@ Browser: ```html ``` - +or ```html