@metamask-previews/gas-fee-controller
Advanced tools
Comparing version 11.0.0-preview.3fbb6b41 to 12.0.0-preview.1ef189c
@@ -9,2 +9,12 @@ # Changelog | ||
## [12.0.0] | ||
### Changed | ||
- **BREAKING:** Bump `@metamask/network-controller` dependency and peer dependency from `^17.0.0` to `^17.1.0` ([#3695](https://github.com/MetaMask/core/pull/3695)) | ||
- **BREAKING:** The `GasFeeController` now detects network changes using the `NetworkController:networkDidChange` event instead of `NetworkController:stateChange` ([#3610](https://github.com/MetaMask/core/pull/3610)) | ||
- Additionally, the optional constructor parameter `onNetworkStateChange` has been replaced by `onNetworkDidChange` | ||
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695)) | ||
- Bump `@metamask/controller-utils` to `^8.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3678](https://github.com/MetaMask/core/pull/3678), [#3667](https://github.com/MetaMask/core/pull/3667), [#3580](https://github.com/MetaMask/core/pull/3580)) | ||
- Bump `@metamask/polling-controller` to `^4.0.0` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3667](https://github.com/MetaMask/core/pull/3667), [#3636](https://github.com/MetaMask/core/pull/3636)) | ||
- This update adds two new methods to each polling controller: `_startPollingByNetworkClientId` and `_stopPollingByPollingTokenSetId`. These methods are intended for internal use, and should not be called directly. | ||
## [11.0.0] | ||
@@ -138,3 +148,4 @@ ### Changed | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@11.0.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@12.0.0...HEAD | ||
[12.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@11.0.0...@metamask/gas-fee-controller@12.0.0 | ||
[11.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@10.0.1...@metamask/gas-fee-controller@11.0.0 | ||
@@ -141,0 +152,0 @@ [10.0.1]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@10.0.0...@metamask/gas-fee-controller@10.0.1 |
import type { ControllerGetStateAction, ControllerStateChangeEvent, RestrictedControllerMessenger } from '@metamask/base-controller'; | ||
import type { NetworkClientId, NetworkControllerGetEIP1559CompatibilityAction, NetworkControllerGetNetworkClientByIdAction, NetworkControllerGetStateAction, NetworkControllerNetworkDidChangeEvent, NetworkState, ProviderProxy } from '@metamask/network-controller'; | ||
import { PollingController } from '@metamask/polling-controller'; | ||
import { StaticIntervalPollingController } from '@metamask/polling-controller'; | ||
import type { Hex } from '@metamask/utils'; | ||
@@ -151,3 +151,3 @@ export declare const LEGACY_GAS_PRICES_API_URL = "https://api.metaswap.codefi.network/gasPrices"; | ||
*/ | ||
export declare class GasFeeController extends PollingController<typeof name, GasFeeState, GasFeeMessenger> { | ||
export declare class GasFeeController extends StaticIntervalPollingController<typeof name, GasFeeState, GasFeeMessenger> { | ||
#private; | ||
@@ -154,0 +154,0 @@ private intervalId?; |
@@ -67,3 +67,3 @@ "use strict"; | ||
*/ | ||
class GasFeeController extends polling_controller_1.PollingController { | ||
class GasFeeController extends polling_controller_1.StaticIntervalPollingController { | ||
/** | ||
@@ -70,0 +70,0 @@ * Creates a GasFeeController instance. |
{ | ||
"name": "@metamask-previews/gas-fee-controller", | ||
"version": "11.0.0-preview.3fbb6b41", | ||
"version": "12.0.0-preview.1ef189c", | ||
"description": "Periodically calculates gas fee estimates based on various gas limits as well as other data displayed on transaction confirm screens", | ||
@@ -25,2 +25,3 @@ "keywords": [ | ||
"build:docs": "typedoc", | ||
"changelog:update": "../../scripts/update-changelog.sh @metamask/gas-fee-controller", | ||
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/gas-fee-controller", | ||
@@ -34,9 +35,9 @@ "publish:preview": "yarn npm publish --tag preview", | ||
"dependencies": { | ||
"@metamask/base-controller": "^4.0.0", | ||
"@metamask/controller-utils": "^6.1.0", | ||
"@metamask/base-controller": "^4.1.0", | ||
"@metamask/controller-utils": "^8.0.1", | ||
"@metamask/eth-query": "^4.0.0", | ||
"@metamask/ethjs-unit": "^0.2.1", | ||
"@metamask/network-controller": "^17.0.0", | ||
"@metamask/polling-controller": "^2.0.0", | ||
"@metamask/utils": "^8.2.0", | ||
"@metamask/network-controller": "^17.1.0", | ||
"@metamask/polling-controller": "^4.0.0", | ||
"@metamask/utils": "^8.3.0", | ||
"@types/uuid": "^8.3.0", | ||
@@ -47,3 +48,3 @@ "ethereumjs-util": "^7.0.10", | ||
"devDependencies": { | ||
"@metamask/auto-changelog": "^3.4.3", | ||
"@metamask/auto-changelog": "^3.4.4", | ||
"@types/jest": "^27.4.1", | ||
@@ -62,3 +63,3 @@ "@types/jest-when": "^2.7.3", | ||
"peerDependencies": { | ||
"@metamask/network-controller": "^17.0.0" | ||
"@metamask/network-controller": "^17.1.0" | ||
}, | ||
@@ -65,0 +66,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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
174735
+ Added@metamask/polling-controller@4.0.0(transitive)
+ Added@noble/hashes@1.6.0(transitive)
+ Added@types/node@22.9.3(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@metamask/controller-utils@6.1.0(transitive)
- Removed@metamask/polling-controller@2.0.0(transitive)
- Removed@noble/hashes@1.6.1(transitive)
- Removed@types/node@22.10.0(transitive)
- Removedundici-types@6.20.0(transitive)
Updated@metamask/utils@^8.3.0