You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+54-54
Original file line number
Diff line number
Diff line change
@@ -11,67 +11,67 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
### Added
13
13
14
-
-`BaseProvider`, implementing EIP-1193 without any legacy features ([#144](https://github.com/MetaMask/inpage-provider/pull/144))
15
-
-`createExternalExtensionProvider`, from the [extension-provider](https://github.com/MetaMask/extension-provider/) package ([#152](https://github.com/MetaMask/inpage-provider/pull/152))
14
+
-`BaseProvider`, implementing EIP-1193 without any legacy features ([#144](https://github.com/MetaMask/providers/pull/144))
15
+
-`createExternalExtensionProvider`, from the [extension-provider](https://github.com/MetaMask/extension-provider/) package ([#152](https://github.com/MetaMask/providers/pull/152))
16
16
17
17
## [8.0.4] - 2021-02-04
18
18
19
19
### Fixed
20
20
21
-
- Fix warning on second `currentProvider` access ([#138](https://github.com/MetaMask/inpage-provider/pull/138))
21
+
- Fix warning on second `currentProvider` access ([#138](https://github.com/MetaMask/providers/pull/138))
- This is to maintain `window.web3.currentProvider` once MetaMask stops injecting `window.web3` (very soon), and to log attempts to access any properties on the shim other than `currentProvider`.
48
48
-`initializeWeb3` now has a `shouldShimWeb3` argument, which causes the shim to be set as `window.web3` if `true`.
49
49
50
50
### Changed
51
51
52
-
-**(BREAKING)** Rename `initProvider` export to `initializeProvider` ([#114](https://github.com/MetaMask/inpage-provider/pull/114))
53
-
-**(BREAKING)** Replace `ethereum.publicConfigStore` with new set of JSON-RPC notifications ([#109](https://github.com/MetaMask/inpage-provider/pull/109))
52
+
-**(BREAKING)** Rename `initProvider` export to `initializeProvider` ([#114](https://github.com/MetaMask/providers/pull/114))
53
+
-**(BREAKING)** Replace `ethereum.publicConfigStore` with new set of JSON-RPC notifications ([#109](https://github.com/MetaMask/providers/pull/109))
54
54
55
55
### Fixed
56
56
57
-
- Correctly implement `connect` and `disconnect` events ([#120](https://github.com/MetaMask/inpage-provider/pull/120))
57
+
- Correctly implement `connect` and `disconnect` events ([#120](https://github.com/MetaMask/providers/pull/120))
58
58
- See [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193#connect) for the specification of these events.
59
59
-`disconnect` emits with an RPC error. Like all such errors emitted by this module, they have a `code` property with a `number` value. There are currently two codes:
60
60
-`1013` indicates that MetaMask is attempting to reestablish the connection
61
61
-`1011` indicates that a page reload is required
62
-
- Send page metadata even if page is already loaded ([#119](https://github.com/MetaMask/inpage-provider/pull/119))
63
-
- Convert `MetaMaskInpageProvider``logger` to instance variable ([#118](https://github.com/MetaMask/inpage-provider/pull/118))
62
+
- Send page metadata even if page is already loaded ([#119](https://github.com/MetaMask/providers/pull/119))
63
+
- Convert `MetaMaskInpageProvider``logger` to instance variable ([#118](https://github.com/MetaMask/providers/pull/118))
64
64
- Previously, it was erroneously a singleton across all class instances.
65
-
- Stop emitting state change events on initialization ([#117](https://github.com/MetaMask/inpage-provider/pull/117))
65
+
- Stop emitting state change events on initialization ([#117](https://github.com/MetaMask/providers/pull/117))
66
66
- Includes `accountsChanged`, `chainChanged`, and `networkChanged`.
67
67
- This prevents sites that handle any of these events by reloading the page from entering into a reload loop.
68
68
69
69
### Removed
70
70
71
-
-**(BREAKING)** Remove `_metamask.isEnabled` and `_metamask.isApproved` ([#112](https://github.com/MetaMask/inpage-provider/pull/112))
72
-
-**(BREAKING)** Remove the `chainIdChanged` event ([#111](https://github.com/MetaMask/inpage-provider/pull/111))
- This functionality caused the page to reload if there was a `web3.js` instance at `window.web3`, and kept `web3.eth.defaultAccount` in sync with `ethereum.selectedAddress`.
76
76
- This functionality is replicated in [@metamask/legacy-web3](https://www.npmjs.com/package/@metamask/legacy-web3).
77
77
@@ -112,19 +112,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
112
112
### Changed
113
113
114
114
- Only emit `data` event for notifications present in `^4.0.0`
-**(BREAKING)** Revert `send` to match provider in v7.7.8 of `metamask-extension` ([#29](https://github.com/MetaMask/inpage-provider/pull/29))
218
-
- The `connect` event now emits with a `ProviderConnectInfo` object per EIP 1193 ([#30](https://github.com/MetaMask/inpage-provider/pull/30))
219
-
- Deprecated the `send` method ([#30](https://github.com/MetaMask/inpage-provider/pull/30))
Copy file name to clipboardexpand all lines: README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
-
# MetaMask Inpage Provider
1
+
# MetaMask Providers
2
2
3
-
The inpage Ethereum provider object injected by MetaMask into web pages.
3
+
The Ethereum provider object injected by MetaMask into various environments.
4
4
Contains a lot of implementation details specific to MetaMask, and is probably
5
5
not suitable for out-of-the-box use with other wallets.
6
6
7
-
Implements the Ethereum JavaScript provider specification, [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193).
7
+
The `BaseProvider` implements the Ethereum JavaScript provider specification, [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193). `MetamaskInpageProvider` implements [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) and legacy interfaces.
0 commit comments