@metamask-previews/selected-network-controller 26.1.0-preview-95a687acf → 26.1.1-preview-53e60e1a5

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +21 -16
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -7,8 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [26.1.1]
11
+
10
12
  ### Changed
11
13
 
14
+ - Bump `@metamask/permission-controller` from `^12.3.0` to `^13.0.0` ([#8661](https://github.com/MetaMask/core/pull/8661))
15
+ - Bump `@metamask/json-rpc-engine` from `^10.2.4` to `^10.3.0` ([#8661](https://github.com/MetaMask/core/pull/8661))
12
16
  - Bump `@metamask/messenger` from `^1.0.0` to `^1.2.0` ([#8364](https://github.com/MetaMask/core/pull/8364), [#8373](https://github.com/MetaMask/core/pull/8373), [#8632](https://github.com/MetaMask/core/pull/8632))
13
17
  - Bump `@metamask/base-controller` from `^9.0.1` to `^9.1.0` ([#8457](https://github.com/MetaMask/core/pull/8457))
14
18
  - Bump `@metamask/network-controller` from `^30.0.1` to `^30.1.0` ([#8636](https://github.com/MetaMask/core/pull/8636))
@@ -154,7 +158,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
154
158
 
155
159
  ### Changed
156
160
 
157
- - Bump `@metamask/base-controller` from `^7.0.0` to `^7.1.1` ([#5079](https://github.com/MetaMask/core/pull/5079)), [#5135](https://github.com/MetaMask/core/pull/5135))
161
+ - Bump `@metamask/base-controller` from `^7.0.0` to `^7.1.1`, [#5135](https://github.com/MetaMask/core/pull/5135)) ([#5079](https://github.com/MetaMask/core/pull/5079))
158
162
  - Bump `@metamask/json-rpc-engine` from `^10.0.1` to `^10.0.2` ([#5082](https://github.com/MetaMask/core/pull/5082))
159
163
  - Bump `@metamask/utils` from `^10.0.0` to `^11.0.1` ([#5080](https://github.com/MetaMask/core/pull/5080))
160
164
  - This upgrade is not a breaking change because this package does not use `generateRandomMnemonic`.
@@ -215,7 +219,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
215
219
  ["Are the Types Wrong?"](https://arethetypeswrong.github.io/) tool as
216
220
  ["masquerading as CJS"](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md).
217
221
  All of the ATTW checks now pass.
218
- - Remove chunk files ([#4648](https://github.com/MetaMask/core/pull/4648)).
222
+ - Remove chunk files. ([#4648](https://github.com/MetaMask/core/pull/4648))
219
223
  - Previously, the build tool we used to generate JavaScript files extracted
220
224
  common code to "chunk" files. While this was intended to make this package
221
225
  more tree-shakeable, it also made debugging more difficult for our
@@ -361,20 +365,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
361
365
 
362
366
  ### Changed
363
367
 
364
- - **BREAKING:** `setNetworkClientIdForDomain` now throws an error if passed `metamask` for the domain param ([#3908](https://github.com/MetaMask/core/pull/3908)).
365
- - **BREAKING:** `setNetworkClientIdForDomain` now fails and throws an error if the passed in `domain` is not currently permissioned in the `PermissionsController` ([#3908](https://github.com/MetaMask/core/pull/3908)).
366
- - **BREAKING:** the `domains` state now no longer contains a `metamask` domain key. Consumers should instead use the `selectedNetworkClientId` from the `NetworkController` to get the selected network for the `metamask` domain ([#3908](https://github.com/MetaMask/core/pull/3908)).
367
- - **BREAKING:** `getProviderAndBlockTracker` now throws an error if called with any domain while the `perDomainNetwork` flag is false. Consumers should instead use the `provider` and `blockTracker` from the `NetworkController` when the `perDomainNetwork` flag is false ([#3908](https://github.com/MetaMask/core/pull/3908)).
368
- - **BREAKING:** `getProviderAndBlockTracker` now throws an error if called with a domain that does not have a networkClientId set ([#3908](https://github.com/MetaMask/core/pull/3908)).
369
- - **BREAKING:** `getNetworkClientIdForDomain` now returns the `selectedNetworkClientId` for the globally selected network if the `perDomainNetwork` flag is false or if the domain is not in the `domains` state ([#3908](https://github.com/MetaMask/core/pull/3908)).
368
+ - **BREAKING:** `setNetworkClientIdForDomain` now throws an error if passed `metamask` for the domain param. ([#3908](https://github.com/MetaMask/core/pull/3908))
369
+ - **BREAKING:** `setNetworkClientIdForDomain` now fails and throws an error if the passed in `domain` is not currently permissioned in the `PermissionsController`. ([#3908](https://github.com/MetaMask/core/pull/3908))
370
+ - **BREAKING:** the `domains` state now no longer contains a `metamask` domain key. Consumers should instead use the `selectedNetworkClientId` from the `NetworkController` to get the selected network for the `metamask` domain. ([#3908](https://github.com/MetaMask/core/pull/3908))
371
+ - **BREAKING:** `getProviderAndBlockTracker` now throws an error if called with any domain while the `perDomainNetwork` flag is false. Consumers should instead use the `provider` and `blockTracker` from the `NetworkController` when the `perDomainNetwork` flag is false. ([#3908](https://github.com/MetaMask/core/pull/3908))
372
+ - **BREAKING:** `getProviderAndBlockTracker` now throws an error if called with a domain that does not have a networkClientId set. ([#3908](https://github.com/MetaMask/core/pull/3908))
373
+ - **BREAKING:** `getNetworkClientIdForDomain` now returns the `selectedNetworkClientId` for the globally selected network if the `perDomainNetwork` flag is false or if the domain is not in the `domains` state. ([#3908](https://github.com/MetaMask/core/pull/3908))
370
374
 
371
375
  ### Removed
372
376
 
373
- - **BREAKING:** Remove logic in `selectedNetworkMiddleware` to set a default `networkClientId` for the requesting origin in the `SelectedNetworkController` when not already set. Now if `networkClientId` is not already set for the requesting origin, the middleware will not set a default `networkClientId` for that origin in the `SelectedNetworkController` but will continue to add the `selectedNetworkClientId` from the `NetworkController` to the `networkClientId` property on the request object ([#3908](https://github.com/MetaMask/core/pull/3908)).
377
+ - **BREAKING:** Remove logic in `selectedNetworkMiddleware` to set a default `networkClientId` for the requesting origin in the `SelectedNetworkController` when not already set. Now if `networkClientId` is not already set for the requesting origin, the middleware will not set a default `networkClientId` for that origin in the `SelectedNetworkController` but will continue to add the `selectedNetworkClientId` from the `NetworkController` to the `networkClientId` property on the request object. ([#3908](https://github.com/MetaMask/core/pull/3908))
374
378
 
375
379
  ### Fixed
376
380
 
377
- - The `SelectedNetworkController` now listens for `networkConfiguration` removal events on the `NetworkController` and updates domains pointed at a removed `networkClientId` to the `selectedNetworkClientId` ([#3926](https://github.com/MetaMask/core/pull/3926)).
381
+ - The `SelectedNetworkController` now listens for `networkConfiguration` removal events on the `NetworkController` and updates domains pointed at a removed `networkClientId` to the `selectedNetworkClientId`. ([#3926](https://github.com/MetaMask/core/pull/3926))
378
382
 
379
383
  ## [7.0.1]
380
384
 
@@ -404,14 +408,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
404
408
 
405
409
  ### Added
406
410
 
407
- - Add `SelectedNetworkMiddlewareJsonRpcRequest` type ([#1970](https://github.com/MetaMask/core/pull/1970)).
408
- - Add `setPerDomainNetwork` method to reset proxies when flag toggled ([#3593](https://github.com/MetaMask/core/pull/3593)).
409
- - Add `state` as a constructor argument ([#3585](https://github.com/MetaMask/core/pull/3585)).
411
+ - Add `SelectedNetworkMiddlewareJsonRpcRequest` type. ([#1970](https://github.com/MetaMask/core/pull/1970))
412
+ - Add `setPerDomainNetwork` method to reset proxies when flag toggled. ([#3593](https://github.com/MetaMask/core/pull/3593))
413
+ - Add `state` as a constructor argument. ([#3585](https://github.com/MetaMask/core/pull/3585))
410
414
 
411
415
  ### Changed
412
416
 
413
- - **BREAKING:** Rename `SelectedNetworkControllerAction` to `SelectedNetworkControllerActions` and `SelectedNetworkControllerEvent` to `SelectedNetworkControllerEvents` for consistency with corresponding type exports from other controllers ([#1970](https://github.com/MetaMask/core/pull/1970)).
414
- - **BREAKING:** `createSelectedNetworkMiddleware` return type is constrained to satisfy `JsonRpcMiddleware<JsonRpcParams, Json>`, and its `req` parameter is constrained to satisfy `SelectedNetworkMiddlewareJsonRpcRequest` ([#1970](https://github.com/MetaMask/core/pull/1970)).
417
+ - **BREAKING:** Rename `SelectedNetworkControllerAction` to `SelectedNetworkControllerActions` and `SelectedNetworkControllerEvent` to `SelectedNetworkControllerEvents` for consistency with corresponding type exports from other controllers. ([#1970](https://github.com/MetaMask/core/pull/1970))
418
+ - **BREAKING:** `createSelectedNetworkMiddleware` return type is constrained to satisfy `JsonRpcMiddleware<JsonRpcParams, Json>`, and its `req` parameter is constrained to satisfy `SelectedNetworkMiddlewareJsonRpcRequest`. ([#1970](https://github.com/MetaMask/core/pull/1970))
415
419
 
416
420
  ## [4.0.0]
417
421
 
@@ -475,7 +479,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
475
479
 
476
480
  - Initial Release ([#1643](https://github.com/MetaMask/core/pull/1643))
477
481
 
478
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@26.1.0...HEAD
482
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@26.1.1...HEAD
483
+ [26.1.1]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@26.1.0...@metamask/selected-network-controller@26.1.1
479
484
  [26.1.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@26.0.3...@metamask/selected-network-controller@26.1.0
480
485
  [26.0.3]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@26.0.2...@metamask/selected-network-controller@26.0.3
481
486
  [26.0.2]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@26.0.1...@metamask/selected-network-controller@26.0.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/selected-network-controller",
3
- "version": "26.1.0-preview-95a687acf",
3
+ "version": "26.1.1-preview-53e60e1a5",
4
4
  "description": "Provides an interface to the currently selected networkClientId for a given domain",
5
5
  "keywords": [
6
6
  "Ethereum",
@@ -54,10 +54,10 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@metamask/base-controller": "^9.1.0",
57
- "@metamask/json-rpc-engine": "^10.2.4",
57
+ "@metamask/json-rpc-engine": "^10.3.0",
58
58
  "@metamask/messenger": "^1.2.0",
59
59
  "@metamask/network-controller": "^30.1.0",
60
- "@metamask/permission-controller": "^12.3.0",
60
+ "@metamask/permission-controller": "^13.0.0",
61
61
  "@metamask/swappable-obj-proxy": "^2.3.0",
62
62
  "@metamask/utils": "^11.9.0"
63
63
  },