@metamask-previews/network-controller 25.0.0-preview-c96ff8f → 25.0.0-preview-6b15e01
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 +0 -4
- package/dist/NetworkController.cjs +0 -3
- package/dist/NetworkController.cjs.map +1 -1
- package/dist/NetworkController.d.cts.map +1 -1
- package/dist/NetworkController.d.mts.map +1 -1
- package/dist/NetworkController.mjs +0 -3
- package/dist/NetworkController.mjs.map +1 -1
- package/dist/create-network-client.cjs +34 -45
- package/dist/create-network-client.cjs.map +1 -1
- package/dist/create-network-client.d.cts.map +1 -1
- package/dist/create-network-client.d.mts.map +1 -1
- package/dist/create-network-client.mjs +35 -46
- package/dist/create-network-client.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -5
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +1 -5
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,14 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
- **BREAKING:** Use `InternalProvider` instead of `SafeEventEmitterProvider` ([#6796](https://github.com/MetaMask/core/pull/6796))
|
|
13
13
|
- Providers accessible either via network clients or global proxies no longer emit events (or inherit from EventEmitter, for that matter).
|
|
14
|
-
- **BREAKING:** Make `Provider` type more specific ([#7061](https://github.com/MetaMask/core/pull/7061))
|
|
15
|
-
- The `Provider` type is now an `InternalProvider` with a context type of `{ origin: string; skipCache: boolean } & Record<string, unknown>`.
|
|
16
14
|
- **BREAKING:** Stop retrying `undefined` results for methods that include a block tag parameter ([#7001](https://github.com/MetaMask/core/pull/7001))
|
|
17
15
|
- The network client middleware, via `@metamask/eth-json-rpc-middleware`, will now throw an error if it encounters an
|
|
18
16
|
`undefined` result when dispatching a request with a later block number than the originally requested block number.
|
|
19
17
|
- In practice, this should happen rarely if ever.
|
|
20
|
-
- **BREAKING:** Migrate `NetworkClient` to `JsonRpcEngineV2` ([#7065](https://github.com/MetaMask/core/pull/7065))
|
|
21
|
-
- This ought to be unobservable, but we mark it as breaking out of an abundance of caution.
|
|
22
18
|
- Bump `@metamask/controller-utils` from `^11.14.1` to `^11.15.0` ([#7003](https://github.com/MetaMask/core/pull/7003))
|
|
23
19
|
|
|
24
20
|
### Fixed
|
|
@@ -165,7 +165,6 @@ function getDefaultCustomNetworkConfigurationsByChainId() {
|
|
|
165
165
|
// default networks.
|
|
166
166
|
return {
|
|
167
167
|
[controller_utils_1.ChainId['megaeth-testnet']]: getCustomNetworkConfiguration(controller_utils_1.CustomNetworkType['megaeth-testnet']),
|
|
168
|
-
[controller_utils_1.ChainId['monad-testnet']]: getCustomNetworkConfiguration(controller_utils_1.CustomNetworkType['monad-testnet']),
|
|
169
168
|
};
|
|
170
169
|
}
|
|
171
170
|
/**
|
|
@@ -990,8 +989,6 @@ class NetworkController extends base_controller_1.BaseController {
|
|
|
990
989
|
*
|
|
991
990
|
* In-progress requests will not be aborted.
|
|
992
991
|
*/
|
|
993
|
-
// We're intentionally changing the signature of an extended method.
|
|
994
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
995
992
|
async destroy() {
|
|
996
993
|
await __classPrivateFieldGet(this, _NetworkController_blockTrackerProxy, "f")?.destroy();
|
|
997
994
|
}
|