Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@metamask/selected-network-controller

Package Overview
Dependencies
Maintainers
12
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/selected-network-controller - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

13

CHANGELOG.md

@@ -9,2 +9,12 @@ # Changelog

## [3.0.0]
### Changed
- **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^14.0.0 ([#1747](https://github.com/MetaMask/core/pull/1747))
- **BREAKING:** Move from `json-rpc-engine` ^7.1.1 to `@metamask/json-rpc-engine` ^8.0.0 ([#1653](https://github.com/MetaMask/core/pull/1653))
- **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^15.0.0
- Bump dependency on `@metamask/base-controller` to ^3.2.3 ([#1747](https://github.com/MetaMask/core/pull/1747))
### Fixed
- `setNetworkClientIdForDomain()` will now ignore the passed in domain value and set the `networkClientId` for the metamask domain instead when the `state.perDomainNetwork` flag is false (default) ([#1757](https://github.com/MetaMask/core/pull/1757))
## [2.0.1]

@@ -22,5 +32,6 @@ ### Changed

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@2.0.1...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@3.0.0...HEAD
[3.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@2.0.1...@metamask/selected-network-controller@3.0.0
[2.0.1]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@2.0.0...@metamask/selected-network-controller@2.0.1
[2.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@1.0.0...@metamask/selected-network-controller@2.0.0
[1.0.0]: https://github.com/MetaMask/core/releases/tag/@metamask/selected-network-controller@1.0.0

@@ -54,3 +54,7 @@ "use strict";

this.update((state) => {
state.domains[domain] = networkClientId;
if (state.perDomainNetwork) {
state.domains[domain] = networkClientId;
return;
}
state.domains[METAMASK_DOMAIN] = networkClientId;
});

@@ -57,0 +61,0 @@ }

2

dist/SelectedNetworkMiddleware.d.ts
import type { ControllerMessenger } from '@metamask/base-controller';
import type { JsonRpcMiddleware } from '@metamask/json-rpc-engine';
import type { NetworkControllerGetStateAction } from '@metamask/network-controller';
import type { JsonRpcMiddleware } from 'json-rpc-engine';
import type { SelectedNetworkControllerGetNetworkClientIdForDomainAction, SelectedNetworkControllerSetNetworkClientIdForDomainAction } from './SelectedNetworkController';
export declare const createSelectedNetworkMiddleware: (messenger: ControllerMessenger<SelectedNetworkControllerGetNetworkClientIdForDomainAction | SelectedNetworkControllerSetNetworkClientIdForDomainAction | NetworkControllerGetStateAction, never>) => JsonRpcMiddleware<any, any>;
//# sourceMappingURL=SelectedNetworkMiddleware.d.ts.map
{
"name": "@metamask/selected-network-controller",
"version": "2.0.1",
"version": "3.0.0",
"description": "Provides an interface to the currently selected networkClientId for a given domain",

@@ -28,8 +28,9 @@ "keywords": [

"test": "jest",
"test:clean": "jest --clearCache",
"test:watch": "jest --watch"
},
"dependencies": {
"@metamask/base-controller": "^3.2.2",
"@metamask/network-controller": "^13.0.1",
"json-rpc-engine": "^6.1.0"
"@metamask/base-controller": "^3.2.3",
"@metamask/json-rpc-engine": "^7.1.1",
"@metamask/network-controller": "^15.0.0"
},

@@ -46,8 +47,8 @@ "devDependencies": {

"ts-jest": "^27.1.4",
"typedoc": "^0.23.15",
"typedoc-plugin-missing-exports": "^0.23.0",
"typedoc": "^0.24.8",
"typedoc-plugin-missing-exports": "^2.0.0",
"typescript": "~4.8.4"
},
"peerDependencies": {
"@metamask/network-controller": "^13.0.1"
"@metamask/network-controller": "^15.0.0"
},

@@ -54,0 +55,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc