diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/react-docs/package.json | 2 | ||||
-rw-r--r-- | packages/react-shared/package.json | 2 | ||||
-rw-r--r-- | packages/sol-cov/package.json | 1 | ||||
-rw-r--r-- | packages/subproviders/package.json | 1 | ||||
-rw-r--r-- | packages/types/CHANGELOG.json | 9 | ||||
-rw-r--r-- | packages/types/src/index.ts | 6 | ||||
-rw-r--r-- | packages/typescript-typings/package.json | 5 | ||||
-rw-r--r-- | packages/typescript-typings/types/eth-lightwallet/index.d.ts | 8 | ||||
-rw-r--r-- | packages/utils/README.md | 15 |
9 files changed, 38 insertions, 11 deletions
diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index 839b6b470..580d4de8c 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -41,7 +41,7 @@ "@types/lodash": "4.14.104", "@types/material-ui": "0.18.0", "@types/node": "^8.0.53", - "@types/react": "16.3.13", + "@types/react": "*", "@types/react-dom": "^16.0.3", "@types/react-scroll": "0.0.31", "basscss": "^8.0.3", diff --git a/packages/react-shared/package.json b/packages/react-shared/package.json index ebebd1e54..149328650 100644 --- a/packages/react-shared/package.json +++ b/packages/react-shared/package.json @@ -39,7 +39,7 @@ "@types/lodash": "4.14.104", "@types/material-ui": "0.18.0", "@types/node": "^8.0.53", - "@types/react": "16.3.13", + "@types/react": "*", "@types/react-dom": "^16.0.3", "@types/react-scroll": "0.0.31", "basscss": "^8.0.3", diff --git a/packages/sol-cov/package.json b/packages/sol-cov/package.json index 628d2b7d9..08f57a6ea 100644 --- a/packages/sol-cov/package.json +++ b/packages/sol-cov/package.json @@ -56,6 +56,7 @@ "@0xproject/typescript-typings": "^1.0.1", "@0xproject/utils": "^1.0.1", "@0xproject/web3-wrapper": "^1.0.1", + "@types/solidity-parser-antlr": "^0.2.1", "ethereum-types": "^1.0.1", "ethereumjs-util": "^5.1.1", "glob": "^7.1.2", diff --git a/packages/subproviders/package.json b/packages/subproviders/package.json index 9ecfd77e3..9ed3a2740 100644 --- a/packages/subproviders/package.json +++ b/packages/subproviders/package.json @@ -47,6 +47,7 @@ "@0xproject/web3-wrapper": "^1.0.1", "@ledgerhq/hw-app-eth": "^4.3.0", "@ledgerhq/hw-transport-u2f": "^4.3.0", + "@types/hdkey": "^0.7.0", "bip39": "^2.5.0", "bn.js": "^4.11.8", "eth-lightwallet": "^3.0.1", diff --git a/packages/types/CHANGELOG.json b/packages/types/CHANGELOG.json index b67e89c92..81a7d6977 100644 --- a/packages/types/CHANGELOG.json +++ b/packages/types/CHANGELOG.json @@ -1,5 +1,14 @@ [ { + "version": "1.0.0-rc.2", + "changes": [ + { + "note": "Remove `ECSignatureBuffer`" + } + ] + }, + { + "timestamp": 1532030860, "version": "1.0.1-rc.1", "changes": [ { diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 555cd7dec..90291a172 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -48,12 +48,6 @@ export interface ECSignature { s: string; } -export interface ECSignatureBuffer { - v: number; - r: Buffer; - s: Buffer; -} - /** * Validator signature components */ diff --git a/packages/typescript-typings/package.json b/packages/typescript-typings/package.json index c004f1111..0c4922f33 100644 --- a/packages/typescript-typings/package.json +++ b/packages/typescript-typings/package.json @@ -26,7 +26,10 @@ "homepage": "https://github.com/0xProject/0x-monorepo/packages/typescript-typings#readme", "dependencies": { "bignumber.js": "~4.1.0", - "ethereum-types": "^1.0.1" + "ethereum-types": "^1.0.1", + "@types/bn.js": "^4.11.0", + "@types/react": "16.3.13", + "popper.js": "1.14.3" }, "devDependencies": { "@0xproject/monorepo-scripts": "^1.0.1", diff --git a/packages/typescript-typings/types/eth-lightwallet/index.d.ts b/packages/typescript-typings/types/eth-lightwallet/index.d.ts index 58096e9f4..93daa5041 100644 --- a/packages/typescript-typings/types/eth-lightwallet/index.d.ts +++ b/packages/typescript-typings/types/eth-lightwallet/index.d.ts @@ -1,7 +1,11 @@ // eth-lightwallet declarations -declare module 'eth-lightwallet' { - import { ECSignatureBuffer } from '@0xproject/types'; +interface ECSignatureBuffer { + v: number; + r: Buffer; + s: Buffer; +} +declare module 'eth-lightwallet' { // tslint:disable-next-line:class-name export class signing { public static signTx( diff --git a/packages/utils/README.md b/packages/utils/README.md index c637c9af5..c9a2f5846 100644 --- a/packages/utils/README.md +++ b/packages/utils/README.md @@ -22,6 +22,21 @@ If your project is in [TypeScript](https://www.typescriptlang.org/), add the fol import { addressUtils, bigNumberConfigs, classUtils, intervalUtils, promisify } from '@0xproject/utils'; ``` +## Troubleshooting + +If you are still seeing TS type errors complaining about missing DOM types such as `Response`: + +``` +error TS2304: Cannot find name 'Response'. +``` + +Then you need to explicitly add the `dom` lib to your compiler options in `tsconfig.json`. The `dom` library is included by default, but customizing the `lib` option can cause it to be dropped. + +``` +"compilerOptions": { + "lib": [..., "dom"], +``` + ## Contributing We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository. |