aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils
diff options
context:
space:
mode:
Diffstat (limited to 'packages/utils')
-rw-r--r--packages/utils/CHANGELOG.json36
-rw-r--r--packages/utils/CHANGELOG.md12
-rw-r--r--packages/utils/package.json12
-rw-r--r--packages/utils/src/configured_bignumber.ts9
4 files changed, 61 insertions, 8 deletions
diff --git a/packages/utils/CHANGELOG.json b/packages/utils/CHANGELOG.json
index 33690bb33..8abfbaf43 100644
--- a/packages/utils/CHANGELOG.json
+++ b/packages/utils/CHANGELOG.json
@@ -1,5 +1,41 @@
[
{
+ "version": "1.0.5",
+ "changes": [
+ {
+ "note": "Increased BigNumber decimal precision from 20 to 78",
+ "pr": 807
+ }
+ ]
+ },
+ {
+ "timestamp": 1532619515,
+ "version": "1.0.4",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "timestamp": 1532614997,
+ "version": "1.0.3",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "timestamp": 1532605697,
+ "version": "1.0.2",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
"version": "1.0.1",
"changes": [
{
diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md
index deae9daae..afd30080d 100644
--- a/packages/utils/CHANGELOG.md
+++ b/packages/utils/CHANGELOG.md
@@ -5,6 +5,18 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
+## v1.0.4 - _July 26, 2018_
+
+ * Dependencies updated
+
+## v1.0.3 - _July 26, 2018_
+
+ * Dependencies updated
+
+## v1.0.2 - _July 26, 2018_
+
+ * Dependencies updated
+
## v1.0.1 - _July 23, 2018_
* Add `AbortController` polyfill to `fetchAsync` (#903)
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 382604fdd..b1a0d8eb9 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@0xproject/utils",
- "version": "1.0.0",
+ "version": "1.0.4",
"engines": {
"node": ">=6.12"
},
@@ -24,8 +24,8 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/packages/utils/README.md",
"devDependencies": {
- "@0xproject/monorepo-scripts": "^1.0.0",
- "@0xproject/tslint-config": "^1.0.0",
+ "@0xproject/monorepo-scripts": "^1.0.4",
+ "@0xproject/tslint-config": "^1.0.4",
"@types/lodash": "4.14.104",
"copyfiles": "^1.2.0",
"make-promises-safe": "^1.1.0",
@@ -35,13 +35,13 @@
"typescript": "2.7.1"
},
"dependencies": {
- "@0xproject/types": "^1.0.0-rc.1",
- "@0xproject/typescript-typings": "^1.0.0",
+ "@0xproject/types": "^1.0.1-rc.3",
+ "@0xproject/typescript-typings": "^1.0.3",
"@types/node": "^8.0.53",
"abortcontroller-polyfill": "^1.1.9",
"bignumber.js": "~4.1.0",
"detect-node": "2.0.3",
- "ethereum-types": "^1.0.0",
+ "ethereum-types": "^1.0.3",
"ethereumjs-util": "^5.1.1",
"ethers": "3.0.22",
"isomorphic-fetch": "^2.2.1",
diff --git a/packages/utils/src/configured_bignumber.ts b/packages/utils/src/configured_bignumber.ts
index e44c062c2..2b22b6938 100644
--- a/packages/utils/src/configured_bignumber.ts
+++ b/packages/utils/src/configured_bignumber.ts
@@ -1,9 +1,14 @@
import { BigNumber } from 'bignumber.js';
-// By default BigNumber's `toString` method converts to exponential notation if the value has
-// more then 20 digits. We want to avoid this behavior, so we set EXPONENTIAL_AT to a high number
BigNumber.config({
+ // By default BigNumber's `toString` method converts to exponential notation if the value has
+ // more then 20 digits. We want to avoid this behavior, so we set EXPONENTIAL_AT to a high number
EXPONENTIAL_AT: 1000,
+ // Note(albrow): This is the lowest value for which
+ // `x.div(y).floor() === x.divToInt(y)`
+ // for all values of x and y <= MAX_UINT256, where MAX_UINT256 is the
+ // maximum number represented by the uint256 type in Solidity (2^256-1).
+ DECIMAL_PLACES: 78,
});
export { BigNumber };