Skip to content

Commit

Permalink
Release/148.0.0 (#4260)
Browse files Browse the repository at this point in the history
# @metamask/selected-network-controller

## [13.0.0]

### Changed

- `getProviderAndBlockTracker` now returns the `NetworkController`'s
globally selected network client proxy if the `domain` arg is either
`metamask` or a snap (identified as starting with `npm:` or `local:`)
([#4259](#4259))
- **BREAKING:** Now when `setNetworkClientIdForDomain` is called with a
snap's domain (identified as starting with `npm:` or `local:`), the
`domain` will not be added to state and no proxy will be created for
this domain in the `domainProxyMap`
([#4258](#4258))
- In order to remove snaps that made it into `domains` state prior to
this change, consumers will need to run a migration.

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
  • Loading branch information
adonesky1 and Gudahtt committed May 6, 2024
1 parent c88f286 commit 02de743
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/core-monorepo",
"version": "147.0.0",
"version": "148.0.0",
"private": true,
"description": "Monorepo for packages shared between MetaMask clients",
"repository": {
Expand Down
11 changes: 10 additions & 1 deletion packages/queued-request-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.10.0]

### Changed

- **BREAKING:** Bump peer dependency `@metamask/selected-network-controller` to `^13.0.0` ([#4260](https://github.com/MetaMask/core/pull/4260))
- Bump `@metamask/json-rpc-engine` to `^8.0.2` ([#4234](https://github.com/MetaMask/core/pull/4234))
- Bump `@metamask/base-controller` to `^5.0.2` ([#4232](https://github.com/MetaMask/core/pull/4232))

## [0.9.0]

### Changed
Expand Down Expand Up @@ -173,7 +181,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial release

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.9.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.10.0...HEAD
[0.10.0]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.9.0...@metamask/queued-request-controller@0.10.0
[0.9.0]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.8.0...@metamask/queued-request-controller@0.9.0
[0.8.0]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.7.0...@metamask/queued-request-controller@0.8.0
[0.7.0]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.6.1...@metamask/queued-request-controller@0.7.0
Expand Down
6 changes: 3 additions & 3 deletions packages/queued-request-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/queued-request-controller",
"version": "0.9.0",
"version": "0.10.0",
"description": "Includes a controller and middleware that implements a request queue",
"keywords": [
"MetaMask",
Expand Down Expand Up @@ -51,7 +51,7 @@
"devDependencies": {
"@metamask/auto-changelog": "^3.4.4",
"@metamask/network-controller": "^18.1.0",
"@metamask/selected-network-controller": "^12.0.1",
"@metamask/selected-network-controller": "^13.0.0",
"@types/jest": "^27.4.1",
"deepmerge": "^4.2.2",
"immer": "^9.0.6",
Expand All @@ -66,7 +66,7 @@
},
"peerDependencies": {
"@metamask/network-controller": "^18.0.0",
"@metamask/selected-network-controller": "^12.0.0"
"@metamask/selected-network-controller": "^13.0.0"
},
"engines": {
"node": ">=16.0.0"
Expand Down
13 changes: 12 additions & 1 deletion packages/selected-network-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [13.0.0]

### Changed

- `getProviderAndBlockTracker` now returns the `NetworkController`'s globally selected network client proxy if the `domain` arg is either `metamask` or a snap (identified as starting with `npm:` or `local:`) ([#4259](https://github.com/MetaMask/core/pull/4259))
- **BREAKING:** Now when `setNetworkClientIdForDomain` is called with a snap's domain (identified as starting with `npm:` or `local:`), the `domain` will not be added to state and no proxy will be created for this domain in the `domainProxyMap` ([#4258](https://github.com/MetaMask/core/pull/4258))
- In order to remove snaps that made it into `domains` state prior to this change, consumers will need to run a migration.
- Bump `@metamask/json-rpc-engine` to `^8.0.2` ([#4234](https://github.com/MetaMask/core/pull/4234))
- Bump `@metamask/base-controller` to `^5.0.2` ([#4232](https://github.com/MetaMask/core/pull/4232))

## [12.0.1]

### Fixed
Expand Down Expand Up @@ -196,7 +206,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial Release ([#1643](https://github.com/MetaMask/core/pull/1643))

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@12.0.1...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@13.0.0...HEAD
[13.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@12.0.1...@metamask/selected-network-controller@13.0.0
[12.0.1]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@12.0.0...@metamask/selected-network-controller@12.0.1
[12.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@11.0.0...@metamask/selected-network-controller@12.0.0
[11.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@10.0.1...@metamask/selected-network-controller@11.0.0
Expand Down
2 changes: 1 addition & 1 deletion packages/selected-network-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/selected-network-controller",
"version": "12.0.1",
"version": "13.0.0",
"description": "Provides an interface to the currently selected networkClientId for a given domain",
"keywords": [
"MetaMask",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2753,7 +2753,7 @@ __metadata:
"@metamask/json-rpc-engine": ^8.0.2
"@metamask/network-controller": ^18.1.0
"@metamask/rpc-errors": ^6.2.1
"@metamask/selected-network-controller": ^12.0.1
"@metamask/selected-network-controller": ^13.0.0
"@metamask/swappable-obj-proxy": ^2.2.0
"@metamask/utils": ^8.3.0
"@types/jest": ^27.4.1
Expand All @@ -2769,7 +2769,7 @@ __metadata:
typescript: ~4.9.5
peerDependencies:
"@metamask/network-controller": ^18.0.0
"@metamask/selected-network-controller": ^12.0.0
"@metamask/selected-network-controller": ^13.0.0
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -2825,7 +2825,7 @@ __metadata:
languageName: node
linkType: hard

"@metamask/selected-network-controller@^12.0.1, @metamask/selected-network-controller@workspace:packages/selected-network-controller":
"@metamask/selected-network-controller@^13.0.0, @metamask/selected-network-controller@workspace:packages/selected-network-controller":
version: 0.0.0-use.local
resolution: "@metamask/selected-network-controller@workspace:packages/selected-network-controller"
dependencies:
Expand Down

0 comments on commit 02de743

Please sign in to comment.