Skip to content

Commit

Permalink
merge 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
GregTheGreek committed Jul 22, 2020
2 parents ea0855f + b0b135c commit 109e0c5
Show file tree
Hide file tree
Showing 55 changed files with 235 additions and 169 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }}
key: 0-${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }}
- run: bash ./scripts/install.sh
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: bash ./scripts/ci.sh
Expand All @@ -48,7 +48,7 @@ jobs:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
key: 0-${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
- run: bash ./scripts/install.sh
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: bash ./scripts/ci.sh
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }}
key: 0-${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }}
- run: bash ./scripts/install.sh
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: bash ./scripts/ci.sh
Expand Down
1 change: 1 addition & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"bitwise": true,
"camelcase": true,
"eqeqeq": true,
"esversion": 8,
"freeze": true,
"funcscope": false,
"maxcomplexity": 15,
Expand Down
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@ Released with 1.0.0-beta.37 code base.
- Docs: spelling of pre-defined block number (#3539)
- Docs: missing defaultBlock param option in `method.call` description (#3558)

## [Unreleased]

## [1.2.10]

### Added
Expand All @@ -256,9 +254,19 @@ Released with 1.0.0-beta.37 code base.
- Add undefined callback check to websocket provider response queue (#3574)
- Fix WS clientConfig type (#3563)

## [1.2.11]

### Fixed

- Fix Provider.request response (#3647)

### Added

- Add unit tests for isHex and isHexStrict (#3622)

## [Unreleased]

## [1.2.11]
## [1.2.12]

### Added

Expand Down
49 changes: 49 additions & 0 deletions dist/web3.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/web3.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.9",
"version": "1.2.11",
"lerna": "2.0.0",
"command": {
"init": {
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-bzz/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/web3-bzz/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-bzz",
"version": "1.2.9",
"version": "1.2.11",
"description": "Web3 module to interact with the Swarm network.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-bzz",
"license": "LGPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-core-helpers/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/web3-core-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-core-helpers",
"version": "1.2.9",
"version": "1.2.11",
"description": "Web3 core tools helper for sub packages. This is an internal package.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-helpers",
"license": "LGPL-3.0",
Expand All @@ -15,8 +15,8 @@
"main": "src/index.js",
"dependencies": {
"underscore": "1.9.1",
"web3-eth-iban": "1.2.9",
"web3-utils": "1.2.9"
"web3-eth-iban": "1.2.11",
"web3-utils": "1.2.11"
},
"devDependencies": {
"@types/node": "^12.12.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-core-method/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/web3-core-method/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-core-method",
"version": "1.2.9",
"version": "1.2.11",
"description": "Creates the methods on the web3 modules. This is an internal package.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-method",
"license": "LGPL-3.0",
Expand All @@ -16,10 +16,10 @@
"dependencies": {
"@ethersproject/transactions": "^5.0.0-beta.135",
"underscore": "1.9.1",
"web3-core-helpers": "1.2.9",
"web3-core-promievent": "1.2.9",
"web3-core-subscriptions": "1.2.9",
"web3-utils": "1.2.9"
"web3-core-helpers": "1.2.11",
"web3-core-promievent": "1.2.11",
"web3-core-subscriptions": "1.2.11",
"web3-utils": "1.2.11"
},
"devDependencies": {
"dtslint": "^3.4.1",
Expand Down
10 changes: 5 additions & 5 deletions packages/web3-core-method/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ Method.prototype._confirmTransaction = function (defer, result, payload) {
gas: parsedTx.gasLimit.toHexString(),
gasPrice: parsedTx.gasPrice.toHexString(),
value: parsedTx.value.toHexString()
})
});
}

// Get revert reason string with eth_call
Expand Down Expand Up @@ -549,19 +549,19 @@ Method.prototype._confirmTransaction = function (defer, result, payload) {
var startWatching = function (existingReceipt) {
const startInterval = () => {
intervalId = setInterval(checkConfirmation.bind(null, existingReceipt, true), 1000);
}
};

if (!this.requestManager.provider.on) {
startInterval()
startInterval();
} else {
_ethereumCall.subscribe('newBlockHeaders', function (err, blockHeader, sub) {
if (err || !blockHeader) {
// fall back to polling
startInterval()
startInterval();
} else {
checkConfirmation(existingReceipt, false, err, blockHeader, sub);
}
})
});
}
}.bind(this);

Expand Down
2 changes: 1 addition & 1 deletion packages/web3-core-promievent/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/web3-core-promievent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-core-promievent",
"version": "1.2.9",
"version": "1.2.11",
"description": "This package extends the EventEmitter with the Promise class to allow chaining as well as multiple final states of a function.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-promievent",
"license": "LGPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-core-requestmanager/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/web3-core-requestmanager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-core-requestmanager",
"version": "1.2.9",
"version": "1.2.11",
"description": "Web3 module to handle requests to external providers.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-requestmanager",
"license": "LGPL-3.0",
Expand All @@ -13,9 +13,9 @@
},
"dependencies": {
"underscore": "1.9.1",
"web3-core-helpers": "1.2.9",
"web3-providers-http": "1.2.9",
"web3-providers-ipc": "1.2.9",
"web3-providers-ws": "1.2.9"
"web3-core-helpers": "1.2.11",
"web3-providers-http": "1.2.11",
"web3-providers-ipc": "1.2.11",
"web3-providers-ws": "1.2.11"
}
}
8 changes: 4 additions & 4 deletions packages/web3-core-requestmanager/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ RequestManager.prototype.send = function (data, callback) {

const payload = Jsonrpc.toPayload(data.method, data.params);

const onResult = function (err, result) {
const onJsonrpcResult = function (err, result) {
if(result && result.id && payload.id !== result.id) {
return callback(new Error(`Wrong response id ${result.id} (expected: ${payload.id}) in ${JSON.stringify(payload)}`));
}
Expand All @@ -180,11 +180,11 @@ RequestManager.prototype.send = function (data, callback) {
};

if (this.provider.request) {
callbackify(this.provider.request.bind(this.provider))(payload, onResult);
callbackify(this.provider.request.bind(this.provider))(payload, callback);
} else if (this.provider.sendAsync) {
this.provider.sendAsync(payload, onResult);
this.provider.sendAsync(payload, onJsonrpcResult);
} else if (this.provider.send) {
this.provider.send(payload, onResult);
this.provider.send(payload, onJsonrpcResult);
} else {
throw new Error('Provider does not have a request or send method to use.');
}
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-core-subscriptions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/web3-core-subscriptions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-core-subscriptions",
"version": "1.2.9",
"version": "1.2.11",
"description": "Manages web3 subscriptions. This is an internal package.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-subscriptions",
"license": "LGPL-3.0",
Expand All @@ -16,7 +16,7 @@
"dependencies": {
"eventemitter3": "4.0.4",
"underscore": "1.9.1",
"web3-core-helpers": "1.2.9"
"web3-core-helpers": "1.2.11"
},
"devDependencies": {
"dtslint": "^3.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-core-subscriptions/src/subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Subscription.prototype.subscribe = function() {
// Re-subscription only: continue fetching from the last block we received.
// a dropped connection may have resulted in gaps in the logs...
if (this.lastBlock && _.isObject(this.options.params)){
payload.params[1] = this.options.params
payload.params[1] = this.options.params;
payload.params[1].fromBlock = formatters.inputBlockNumberFormatter(this.lastBlock + 1);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/web3-core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/web3-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-core",
"version": "1.2.9",
"version": "1.2.11",
"description": "Web3 core tools for sub-packages. This is an internal package.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core",
"license": "LGPL-3.0",
Expand All @@ -17,10 +17,10 @@
"@types/bn.js": "^4.11.5",
"@types/node": "^12.12.6",
"bignumber.js": "^9.0.0",
"web3-core-helpers": "1.2.9",
"web3-core-method": "1.2.9",
"web3-core-requestmanager": "1.2.9",
"web3-utils": "1.2.9"
"web3-core-helpers": "1.2.11",
"web3-core-method": "1.2.11",
"web3-core-requestmanager": "1.2.11",
"web3-utils": "1.2.11"
},
"devDependencies": {
"dtslint": "^3.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-abi/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/web3-eth-abi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth-abi",
"version": "1.2.9",
"version": "1.2.11",
"description": "Web3 module encode and decode EVM in/output.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-eth-abi",
"license": "LGPL-3.0",
Expand All @@ -16,7 +16,7 @@
"dependencies": {
"@ethersproject/abi": "5.0.0-beta.153",
"underscore": "1.9.1",
"web3-utils": "1.2.9"
"web3-utils": "1.2.11"
},
"devDependencies": {
"dtslint": "^3.4.1",
Expand Down
Loading

0 comments on commit 109e0c5

Please sign in to comment.