bignumber.js
Advanced tools
Comparing version 9.0.2 to 9.1.0
@@ -0,1 +1,10 @@ | ||
#### 9.1.0 | ||
* 08/08/22 | ||
* #329 Remove `import` example. | ||
* #277 Resolve lint warnings and add number `toString` note. | ||
* Correct `decimalPlaces()` return type in *bignumber.d.ts*. | ||
* Add ES module global `crypto` example. | ||
* #322 Add `exports` field to *package.json*. | ||
* #251 (#308) Amend *bignumber.d.ts* to allow instantiating a BigNumber without `new`. | ||
#### 9.0.2 | ||
@@ -2,0 +11,0 @@ * 12/12/21 |
The MIT License (MIT) | ||
===================== | ||
Copyright © `<2021>` `Michael Mclaughlin` | ||
Copyright © `<2022>` `Michael Mclaughlin` | ||
@@ -6,0 +6,0 @@ Permission is hereby granted, free of charge, to any person |
{ | ||
"name": "bignumber.js", | ||
"description": "A library for arbitrary-precision decimal and non-decimal arithmetic", | ||
"version": "9.0.2", | ||
"version": "9.1.0", | ||
"keywords": [ | ||
@@ -27,2 +27,13 @@ "arbitrary", | ||
"types": "bignumber.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./bignumber.d.ts", | ||
"require": "./bignumber.js", | ||
"import": "./bignumber.mjs", | ||
"browser": "./bignumber.js" | ||
}, | ||
"./bignumber.mjs": "./bignumber.mjs", | ||
"./bignumber.js": "./bignumber.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"author": { | ||
@@ -29,0 +40,0 @@ "name": "Michael Mclaughlin", |
@@ -51,3 +51,3 @@ ![bignumber.js](https://raw.githubusercontent.com/MikeMcl/bignumber.js/gh-pages/bignumberjs.png) | ||
```html | ||
<script src='https://cdn.jsdelivr.net/npm/bignumber.js@9.0.2/bignumber.min.js'></script> | ||
<script src='https://cdn.jsdelivr.net/npm/bignumber.js@9.1.0/bignumber.min.js'></script> | ||
``` | ||
@@ -69,5 +69,2 @@ | ||
import BigNumber from "bignumber.js"; | ||
// or maybe | ||
import { BigNumber } from "bignumber.js"; | ||
// else | ||
import { BigNumber } from "./node_modules/bignumber.js/bignumber.mjs"; | ||
@@ -79,3 +76,3 @@ ``` | ||
```javascript | ||
import BigNumber from 'https://raw.githubusercontent.com/mikemcl/bignumber.js/v9.0.2/bignumber.mjs'; | ||
import BigNumber from 'https://raw.githubusercontent.com/mikemcl/bignumber.js/v9.1.0/bignumber.mjs'; | ||
import BigNumber from 'https://unpkg.com/bignumber.js@latest/bignumber.mjs'; | ||
@@ -82,0 +79,0 @@ ``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
350301
6367
287