Skip to content

Commit fe50903

Browse files
github-actions[bot]github-actionscryptodev-2s
authored
13.0.0 (#410)
* 13.0.0 * fix: previous CHANGELOG * fix: CHANGELOG linting * fix: update changelog * fix: remove 12.0.1 changelog updates * fix: previous changelog --------- Co-authored-by: github-actions <[email protected]> Co-authored-by: Salah-Eddine Saakoun <[email protected]>
1 parent 80013a4 commit fe50903

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [13.0.0]
10+
### Changed
11+
- **BREAKING:** Updated `SmartTransactionsController` to inherit from `StaticIntervalPollingController` instead of `StaticIntervalPollingControllerV1` ([#397](https://github.com/MetaMask/smart-transactions-controller/pull/397)).
12+
- The constructor for `SmartTransactionsController` now accepts a single options object instead of three separate arguments, with configuration options merged into this object.
13+
- `SmartTransactionsController` now requires a `messenger` option (with the corresponding type `SmartTransactionsControllerMessenger` now available).
14+
- The constructor no longer accepts `onNetworkStateChange`; instead, it subscribes to `NetworkController:stateChange`.
15+
- The `getNetworkClientById` argument has been removed from the constructor and is now accessed through the messenger.
16+
- The controller no longer subscribes to its own events; this is now managed via the messenger.
17+
- Event emission is no longer handled by `EventEmitter`; the messenger is now used for emitting events.
18+
- The `SmartTransactionsControllerConfig` type has been removed and replaced with `SmartTransactionsControllerOptions`.
19+
- Added and exported the following types: `SmartTransactionsControllerMessenger`, `SmartTransactionsControllerState`, `SmartTransactionsControllerGetStateAction`, `SmartTransactionsControllerActions`, `SmartTransactionsControllerStateChangeEvent`, `SmartTransactionsControllerSmartTransactionEvent`, and `SmartTransactionsControllerEvents`.
20+
921
## [12.0.1]
1022
### Fixed
1123
- Fix issue where this.ethQuery is sometimes unexpectedly undefined ([#405](https://github.com/MetaMask/smart-transactions-controller/pull/405))
@@ -330,7 +342,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
330342
- Add initial SmartTransactionsController ([#1](https://github.com/MetaMask/smart-transactions-controller/pull/1))
331343
- Initial commit
332344

333-
[Unreleased]: https://github.com/MetaMask/smart-transactions-controller/compare/v12.0.1...HEAD
345+
[Unreleased]: https://github.com/MetaMask/smart-transactions-controller/compare/v13.0.0...HEAD
346+
[13.0.0]: https://github.com/MetaMask/smart-transactions-controller/compare/v12.0.1...v13.0.0
334347
[12.0.1]: https://github.com/MetaMask/smart-transactions-controller/compare/v12.0.0...v12.0.1
335348
[12.0.0]: https://github.com/MetaMask/smart-transactions-controller/compare/v11.0.0...v12.0.0
336349
[11.0.0]: https://github.com/MetaMask/smart-transactions-controller/compare/v10.2.0...v11.0.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/smart-transactions-controller",
3-
"version": "12.0.1",
3+
"version": "13.0.0",
44
"description": "Improves success rates for swaps by trialing transactions privately and finding minimum fees",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)