@metamask/connect-evm 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -1
- package/README.md +6 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.6.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Bump `@metamask/connect-multichain` to `^0.8.0` ([#203](https://github.com/MetaMask/connect-monorepo/pull/203))
|
|
15
|
+
|
|
10
16
|
## [0.5.0]
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -18,6 +24,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
18
24
|
- `createEVMClient()` param option `api.supportedNetworks` now expects hex chain IDs as keys (e.g., `'0x1'`) instead of CAIP chain IDs
|
|
19
25
|
- Event handler types for `connectAndSign` and `connectWith` now use `Hex` for `chainId`
|
|
20
26
|
- **BREAKING** `getInfuraRpcUrls` now returns a rpc url map keyed by hex chain ID rather than CAIP Chain ID ([#152](https://github.com/MetaMask/connect-monorepo/pull/152))
|
|
27
|
+
- **BREAKING** `disconnect()` now revokes only `eip155:*` scopes instead of revoking the entire multichain session. Non-EVM scopes (for example Solana) are preserved. ([#157](https://github.com/MetaMask/connect-monorepo/pull/157))
|
|
28
|
+
- **BREAKING** EIP-1193 `connect` event payload now includes accounts: `{ chainId: Hex; accounts: Address[] }` (previously `{ chainId: Hex }`). ([#157](https://github.com/MetaMask/connect-monorepo/pull/157))
|
|
21
29
|
- The `debug` option param used by `createEVMClient()` now enables console debug logs of the underlying `MultichainClient` instance ([#149](https://github.com/MetaMask/connect-monorepo/pull/149))
|
|
22
30
|
- update `connect()` and `createEVMClient()` typings to be more accurate ([#153](https://github.com/MetaMask/connect-monorepo/pull/153))
|
|
23
31
|
- update `switchChain()` to return `Promise<void>` ([#153](https://github.com/MetaMask/connect-monorepo/pull/153))
|
|
@@ -119,7 +127,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
119
127
|
|
|
120
128
|
- Initial release ([#58](https://github.com/MetaMask/connect-monorepo/pull/58))
|
|
121
129
|
|
|
122
|
-
[Unreleased]: https://github.com/MetaMask/connect-monorepo/compare/@metamask/connect-evm@0.
|
|
130
|
+
[Unreleased]: https://github.com/MetaMask/connect-monorepo/compare/@metamask/connect-evm@0.6.0...HEAD
|
|
131
|
+
[0.6.0]: https://github.com/MetaMask/connect-monorepo/compare/@metamask/connect-evm@0.5.0...@metamask/connect-evm@0.6.0
|
|
123
132
|
[0.5.0]: https://github.com/MetaMask/connect-monorepo/compare/@metamask/connect-evm@0.4.1...@metamask/connect-evm@0.5.0
|
|
124
133
|
[0.4.1]: https://github.com/MetaMask/connect-monorepo/compare/@metamask/connect-evm@0.4.0...@metamask/connect-evm@0.4.1
|
|
125
134
|
[0.4.0]: https://github.com/MetaMask/connect-monorepo/compare/@metamask/connect-evm@0.3.1...@metamask/connect-evm@0.4.0
|
package/README.md
CHANGED
|
@@ -216,11 +216,11 @@ Connects to MetaMask wallet.
|
|
|
216
216
|
|
|
217
217
|
**Parameters**
|
|
218
218
|
|
|
219
|
-
| Name | Type | Required | Description
|
|
220
|
-
| ---------------------- | --------- | -------- |
|
|
221
|
-
| `options.chainIds` | `Hex[]` | No | Array of hex chain IDs to request permission for (defaults to `['0x1']` if not provided) |
|
|
222
|
-
| `options.account` | `string` | No | Specific account address to connect
|
|
223
|
-
| `options.forceRequest` | `boolean` | No | Force a new connection request even if already connected
|
|
219
|
+
| Name | Type | Required | Description |
|
|
220
|
+
| ---------------------- | --------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
221
|
+
| `options.chainIds` | `Hex[]` | No | Array of hex chain IDs to request permission for (defaults to `['0x1']` if not provided). Note: Ethereum mainnet (`0x1`) is always included in the request regardless of what is passed. |
|
|
222
|
+
| `options.account` | `string` | No | Specific account address to connect |
|
|
223
|
+
| `options.forceRequest` | `boolean` | No | Force a new connection request even if already connected |
|
|
224
224
|
|
|
225
225
|
**Returns**
|
|
226
226
|
|
|
@@ -290,7 +290,7 @@ const result = await client.connectWith({
|
|
|
290
290
|
|
|
291
291
|
##### `disconnect()`
|
|
292
292
|
|
|
293
|
-
Disconnects from
|
|
293
|
+
Disconnects all EVM (`eip155`) scopes from MetaMask and cleans up local state. This only revokes the EVM-specific scopes currently held in the session; it does not terminate the broader multichain session if non-EVM scopes are also active.
|
|
294
294
|
|
|
295
295
|
**Parameters**
|
|
296
296
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/connect-evm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "EVM Layer for MetaMask Connect",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@metamask/analytics": "^0.2.0",
|
|
59
59
|
"@metamask/chain-agnostic-permission": "^1.2.2",
|
|
60
|
-
"@metamask/connect-multichain": "^0.
|
|
60
|
+
"@metamask/connect-multichain": "^0.8.0",
|
|
61
61
|
"@metamask/utils": "^11.8.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|