diff --git a/CHANGELOG.md b/CHANGELOG.md index b9770ddb0..c74d3a6a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ + +# [29.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v28.1.2...v29.0.0) (2019-01-15) + + +### Code Refactoring + +* switch to bignumber.js ([#927](https://github.com/ipfs/js-ipfs-http-client/issues/927)) ([1a54ae5](https://github.com/ipfs/js-ipfs-http-client/commit/1a54ae5)) + + +### BREAKING CHANGES + +* All API methods that returned [`big.js`](https://github.com/MikeMcl/big.js/) instances now return [`bignumber.js`](https://github.com/MikeMcl/bignumber.js/) instances. + +License: MIT +Signed-off-by: Alan Shaw + + + ## [28.1.2](https://github.com/ipfs/js-ipfs-http-client/compare/v28.1.1...v28.1.2) (2019-01-14) diff --git a/README.md b/README.md index db1b3ac47..9c62638e0 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ - - + +

diff --git a/package.json b/package.json index d0fedb4da..fec879c53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipfs-http-client", - "version": "28.1.2", + "version": "29.0.0", "description": "A client library for the IPFS HTTP API", "leadMaintainer": "Alan Shaw ", "main": "src/index.js", @@ -28,7 +28,7 @@ }, "dependencies": { "async": "^2.6.1", - "big.js": "^5.2.2", + "bignumber.js": "^8.0.2", "bl": "^2.1.2", "bs58": "^4.0.1", "cids": "~0.5.5", diff --git a/src/bitswap/stat.js b/src/bitswap/stat.js index ef12433e2..f0770d47d 100644 --- a/src/bitswap/stat.js +++ b/src/bitswap/stat.js @@ -1,7 +1,7 @@ 'use strict' const promisify = require('promisify-es6') -const Big = require('big.js') +const Big = require('bignumber.js') const transform = function (res, callback) { callback(null, { diff --git a/src/repo/stat.js b/src/repo/stat.js index 840aad4c5..2b922de03 100644 --- a/src/repo/stat.js +++ b/src/repo/stat.js @@ -1,7 +1,7 @@ 'use strict' const promisify = require('promisify-es6') -const Big = require('big.js') +const Big = require('bignumber.js') const transform = function (res, callback) { callback(null, { diff --git a/src/stats/bitswap.js b/src/stats/bitswap.js index cdf892240..3f641f680 100644 --- a/src/stats/bitswap.js +++ b/src/stats/bitswap.js @@ -1,7 +1,7 @@ 'use strict' const promisify = require('promisify-es6') -const Big = require('big.js') +const Big = require('bignumber.js') const transform = function (res, callback) { callback(null, { diff --git a/src/stats/bw-util.js b/src/stats/bw-util.js index 828874024..928ee0c3c 100644 --- a/src/stats/bw-util.js +++ b/src/stats/bw-util.js @@ -1,6 +1,6 @@ 'use strict' -const Big = require('big.js') +const Big = require('bignumber.js') module.exports = (chunk) => { return { diff --git a/src/stats/repo.js b/src/stats/repo.js index 8d7943dec..81f808951 100644 --- a/src/stats/repo.js +++ b/src/stats/repo.js @@ -1,7 +1,7 @@ 'use strict' const promisify = require('promisify-es6') -const Big = require('big.js') +const Big = require('bignumber.js') const transform = function (res, callback) { callback(null, {