Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.3.2 #3868

Merged
merged 8 commits into from
Jan 21, 2021
Merged

v1.3.2 #3868

Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
pull_request:
branches:
- "1.x"
- "release/*"
types: [opened, reopened, synchronize]
jobs:
lint:
Expand Down
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ Released with 1.0.0-beta.37 code base.
- Grammar changes to inputAddressFormatter error message
- Fixed vulnerable dependencies

## [Unreleased]

## [1.3.2]

### Fixed

- Fix EIP-1193 provider subscriptions (#3864)
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.3.1",
"version": "1.3.2-rc.2",
"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.3.1",
"version": "1.3.2-rc.2",
"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.3.1",
"version": "1.3.2-rc.2",
"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": "lib/index.js",
"dependencies": {
"underscore": "1.9.1",
"web3-eth-iban": "1.3.1",
"web3-utils": "1.3.1"
"web3-eth-iban": "1.3.2-rc.2",
"web3-utils": "1.3.2-rc.2"
},
"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.3.1",
"version": "1.3.2-rc.2",
"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.3.1",
"web3-core-promievent": "1.3.1",
"web3-core-subscriptions": "1.3.1",
"web3-utils": "1.3.1"
"web3-core-helpers": "1.3.2-rc.2",
"web3-core-promievent": "1.3.2-rc.2",
"web3-core-subscriptions": "1.3.2-rc.2",
"web3-utils": "1.3.2-rc.2"
},
"devDependencies": {
"dtslint": "^3.4.1",
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.3.1",
"version": "1.3.2-rc.2",
"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.3.1",
"version": "1.3.2-rc.2",
"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 @@ -14,9 +14,9 @@
"dependencies": {
"underscore": "1.9.1",
"util": "^0.12.0",
"web3-core-helpers": "1.3.1",
"web3-providers-http": "1.3.1",
"web3-providers-ipc": "1.3.1",
"web3-providers-ws": "1.3.1"
"web3-core-helpers": "1.3.2-rc.2",
"web3-providers-http": "1.3.2-rc.2",
"web3-providers-ipc": "1.3.2-rc.2",
"web3-providers-ws": "1.3.2-rc.2"
}
}
27 changes: 19 additions & 8 deletions packages/web3-core-requestmanager/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,25 @@ RequestManager.prototype.setProvider = function (provider, net) {

// listen to incoming notifications
if (this.provider && this.provider.on) {
this.provider.on('data', function data(result, deprecatedResult) {
result = result || deprecatedResult; // this is for possible old providers, which may had the error first handler

// if result is a subscription, call callback for that subscription
if (result.method && result.params && result.params.subscription && _this.subscriptions.has(result.params.subscription)) {
_this.subscriptions.get(result.params.subscription).callback(null, result.params.result);
}
});
if (typeof provider.request === 'function') { // EIP-1193 provider
this.provider.on('message', function (payload) {
if (payload && payload.type === 'eth_subscription' && payload.data) {
const data = payload.data
if (data.subscription && _this.subscriptions.has(data.subscription)) {
_this.subscriptions.get(data.subscription).callback(null, data.result);
}
}
})
} else { // legacy provider subscription event
this.provider.on('data', function data(result, deprecatedResult) {
result = result || deprecatedResult; // this is for possible old providers, which may had the error first handler

// if result is a subscription, call callback for that subscription
if (result.method && result.params && result.params.subscription && _this.subscriptions.has(result.params.subscription)) {
_this.subscriptions.get(result.params.subscription).callback(null, result.params.result);
}
});
}

// resubscribe if the provider has reconnected
this.provider.on('connect', function connect() {
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.3.1",
"version": "1.3.2-rc.2",
"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.3.1"
"web3-core-helpers": "1.3.2-rc.2"
},
"devDependencies": {
"dtslint": "^3.4.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.3.1",
"version": "1.3.2-rc.2",
"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.3.1",
"web3-core-method": "1.3.1",
"web3-core-requestmanager": "1.3.1",
"web3-utils": "1.3.1"
"web3-core-helpers": "1.3.2-rc.2",
"web3-core-method": "1.3.2-rc.2",
"web3-core-requestmanager": "1.3.2-rc.2",
"web3-utils": "1.3.2-rc.2"
},
"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.3.1",
"version": "1.3.2-rc.2",
"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.7",
"underscore": "1.9.1",
"web3-utils": "1.3.1"
"web3-utils": "1.3.2-rc.2"
},
"devDependencies": {
"dtslint": "^3.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-accounts/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-eth-accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth-accounts",
"version": "1.3.1",
"version": "1.3.2-rc.2",
"description": "Web3 module to generate Ethereum accounts and sign data and transactions.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-eth-accounts",
"license": "LGPL-3.0",
Expand All @@ -21,10 +21,10 @@
"scrypt-js": "^3.0.1",
"underscore": "1.9.1",
"uuid": "3.3.2",
"web3-core": "1.3.1",
"web3-core-helpers": "1.3.1",
"web3-core-method": "1.3.1",
"web3-utils": "1.3.1"
"web3-core": "1.3.2-rc.2",
"web3-core-helpers": "1.3.2-rc.2",
"web3-core-method": "1.3.2-rc.2",
"web3-utils": "1.3.2-rc.2"
},
"devDependencies": {
"dtslint": "^3.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-contract/package-lock.json

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

16 changes: 8 additions & 8 deletions packages/web3-eth-contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth-contract",
"version": "1.3.1",
"version": "1.3.2-rc.2",
"description": "Web3 module to interact with Ethereum smart contracts.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-eth-contract",
"license": "LGPL-3.0",
Expand All @@ -16,13 +16,13 @@
"dependencies": {
"@types/bn.js": "^4.11.5",
"underscore": "1.9.1",
"web3-core": "1.3.1",
"web3-core-helpers": "1.3.1",
"web3-core-method": "1.3.1",
"web3-core-promievent": "1.3.1",
"web3-core-subscriptions": "1.3.1",
"web3-eth-abi": "1.3.1",
"web3-utils": "1.3.1"
"web3-core": "1.3.2-rc.2",
"web3-core-helpers": "1.3.2-rc.2",
"web3-core-method": "1.3.2-rc.2",
"web3-core-promievent": "1.3.2-rc.2",
"web3-core-subscriptions": "1.3.2-rc.2",
"web3-eth-abi": "1.3.2-rc.2",
"web3-utils": "1.3.2-rc.2"
},
"devDependencies": {
"dtslint": "^3.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-ens/package-lock.json

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

14 changes: 7 additions & 7 deletions packages/web3-eth-ens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth-ens",
"version": "1.3.1",
"version": "1.3.2-rc.2",
"description": "ENS support for web3.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-eth-ens",
"license": "LGPL-3.0",
Expand All @@ -17,12 +17,12 @@
"content-hash": "^2.5.2",
"eth-ens-namehash": "2.0.8",
"underscore": "1.9.1",
"web3-core": "1.3.1",
"web3-core-helpers": "1.3.1",
"web3-core-promievent": "1.3.1",
"web3-eth-abi": "1.3.1",
"web3-eth-contract": "1.3.1",
"web3-utils": "1.3.1"
"web3-core": "1.3.2-rc.2",
"web3-core-helpers": "1.3.2-rc.2",
"web3-core-promievent": "1.3.2-rc.2",
"web3-eth-abi": "1.3.2-rc.2",
"web3-eth-contract": "1.3.2-rc.2",
"web3-utils": "1.3.2-rc.2"
},
"devDependencies": {
"dtslint": "^3.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-iban/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-iban/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-eth-iban",
"version": "1.3.1",
"version": "1.3.2-rc.2",
"description": "This package converts Ethereum addresses to IBAN addresses a vice versa.",
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-eth-iban",
"license": "LGPL-3.0",
Expand All @@ -15,7 +15,7 @@
"main": "lib/index.js",
"dependencies": {
"bn.js": "^4.11.9",
"web3-utils": "1.3.1"
"web3-utils": "1.3.2-rc.2"
},
"devDependencies": {
"dtslint": "^3.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-personal/package-lock.json

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

Loading