From 0f57ec5c18156be9ff91e434e6958de7c3c7e907 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 22 Sep 2025 17:14:08 +0200 Subject: [PATCH 1/4] fix: export enum values --- src/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 8a70f9a..800c6c0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,13 +9,13 @@ export type { SmartTransactionsControllerSmartTransactionConfirmationDoneEvent, SmartTransactionsControllerEvents, } from './SmartTransactionsController'; -export type { - Fee, - Fees, - IndividualTxFees, - FeatureFlags, +export { + type Fee, + type Fees, + type IndividualTxFees, + type FeatureFlags, + type SmartTransaction, SmartTransactionMinedTx, - SmartTransaction, SmartTransactionCancellationReason, SmartTransactionStatuses, ClientId, From 1490c1c241454132823bf5fdd87fb00182d941e2 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 22 Sep 2025 21:10:49 +0200 Subject: [PATCH 2/4] update jest thresholds --- jest.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jest.config.js b/jest.config.js index 8c3ebb8..a1f4e7e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -7,9 +7,9 @@ module.exports = { coverageThreshold: { global: { branches: 74.65, - functions: 91.5, - lines: 92.52, - statements: 92.51, + functions: 88.18, + lines: 92.33, + statements: 91.89, }, }, moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'], From f8ae548a888500027b53685797cbdafe0bfd4ba3 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 22 Sep 2025 21:33:40 +0200 Subject: [PATCH 3/4] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07aab0b..5feb1e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Export `SmartTransactionMinedTx`, `SmartTransactionCancellationReason`, `SmartTransactionStatuses`, and `ClientId` enums values instead of types only ([#539](https://github.com/MetaMask/smart-transactions-controller/pull/539)) + ## [19.2.0] ### Added From 639760d736fa52ba57579839360a32cc3245d7da Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 22 Sep 2025 21:36:08 +0200 Subject: [PATCH 4/4] fix pr number --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5feb1e5..259137e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- Export `SmartTransactionMinedTx`, `SmartTransactionCancellationReason`, `SmartTransactionStatuses`, and `ClientId` enums values instead of types only ([#539](https://github.com/MetaMask/smart-transactions-controller/pull/539)) +- Export `SmartTransactionMinedTx`, `SmartTransactionCancellationReason`, `SmartTransactionStatuses`, and `ClientId` enums values instead of types only ([#541](https://github.com/MetaMask/smart-transactions-controller/pull/541)) ## [19.2.0]