Skip to content

Commit be7d6b0

Browse files
committed
v10.2.1
1 parent e70384e commit be7d6b0

File tree

9 files changed

+26
-12
lines changed

9 files changed

+26
-12
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: node_js
22
node_js:
33
- "node"
4+
- "14"
5+
- "13"
46
- "12"
57
- "11"
68
- "10"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#### 10.2.1
2+
* 28/09/2020
3+
* Correct `sqrt` initial estimate.
4+
15
#### 10.2.0
26
* 08/05/2019
37
* #128 Workaround V8 `Math.pow` change.

LICENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT Licence.
22

3-
Copyright (c) 2019 Michael Mclaughlin
3+
Copyright (c) 2020 Michael Mclaughlin
44

55
Permission is hereby granted, free of charge, to any person obtaining
66
a copy of this software and associated documentation files (the

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
An arbitrary-precision Decimal type for JavaScript.
44

5+
[![npm version](https://img.shields.io/npm/v/decimal.js.svg)](https://www.npmjs.com/package/decimal.js)
6+
[![npm downloads](https://img.shields.io/npm/dw/decimal.js)](https://www.npmjs.com/package/decimal.js)
57
[![Build Status](https://travis-ci.org/MikeMcl/decimal.js.svg)](https://travis-ci.org/MikeMcl/decimal.js)
68
[![CDNJS](https://img.shields.io/cdnjs/v/decimal.js.svg)](https://cdnjs.com/libraries/decimal.js)
79

@@ -34,25 +36,32 @@ For a lighter version of this library without the trigonometric functions see [d
3436

3537
## Load
3638

37-
The library is the single JavaScript file *decimal.js* (or minified, *decimal.min.js*).
39+
The library is the single JavaScript file *decimal.js* or ES module *decimal.mjs*.
3840

3941
Browser:
4042

4143
```html
4244
<script src='path/to/decimal.js'></script>
4345
```
4446

47+
```html
48+
<script type="module">
49+
import Decimal from './path/to/decimal.mjs';
50+
...
51+
</script>
52+
```
53+
4554
[Node.js](http://nodejs.org):
4655

4756
```bash
48-
$ npm install --save decimal.js
57+
$ npm install decimal.js
4958
```
5059

5160
```js
5261
var Decimal = require('decimal.js');
5362
```
5463

55-
ES6 module (*decimal.mjs*):
64+
ES module:
5665

5766
```js
5867
//import Decimal from 'decimal.js';

decimal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44

55
/*
6-
* decimal.js v10.2.0
6+
* decimal.js v10.2.1
77
* An arbitrary-precision Decimal type for JavaScript.
88
* https://github.com/MikeMcl/decimal.js
9-
* Copyright (c) 2019 Michael Mclaughlin <M8ch88l@gmail.com>
9+
* Copyright (c) 2020 Michael Mclaughlin <M8ch88l@gmail.com>
1010
* MIT Licence
1111
*/
1212

decimal.min.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

decimal.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

decimal.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* decimal.js v10.2.0
2+
* decimal.js v10.2.1
33
* An arbitrary-precision Decimal type for JavaScript.
44
* https://github.com/MikeMcl/decimal.js
5-
* Copyright (c) 2019 Michael Mclaughlin <M8ch88l@gmail.com>
5+
* Copyright (c) 2020 Michael Mclaughlin <M8ch88l@gmail.com>
66
* MIT Licence
77
*/
88

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "decimal.js",
33
"description": "An arbitrary-precision Decimal type for JavaScript.",
4-
"version": "10.2.0",
4+
"version": "10.2.1",
55
"keywords": [
66
"arbitrary",
77
"precision",

0 commit comments

Comments
 (0)