Merge fix-rc-packages

This commit is contained in:
Fabio Berger 2018-07-24 16:20:25 +02:00
commit 16a38c687e
9 changed files with 38 additions and 11 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -1,5 +1,14 @@
[
{
"version": "1.0.0-rc.2",
"changes": [
{
"note": "Remove `ECSignatureBuffer`"
}
]
},
{
"timestamp": 1532030860,
"version": "1.0.1-rc.1",
"changes": [
{

View File

@ -48,12 +48,6 @@ export interface ECSignature {
s: string;
}
export interface ECSignatureBuffer {
v: number;
r: Buffer;
s: Buffer;
}
/**
* Validator signature components
*/

View File

@ -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",

View File

@ -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(

View File

@ -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.