Skip to content

Commit df0e524

Browse files
lwin-kyawjuanmigdr
authored andcommitted
feat: updates Subscription Controller exports (#7037)
…in controller exports ## Explanation <!-- Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: * What is the current state of things and why does it need to change? * What is the solution your changes offer and how does it work? * Are there any changes whose purpose might not obvious to those unfamiliar with the domain? * If your primary goal was to update one package but you found you had to update another one along the way, why did you do so? * If you had to upgrade a dependency, why did you do so? --> Updates Subscription Controller exports. ## References <!-- Are there any issues that this pull request is tied to? Are there other links that reviewers should consult to understand these changes better? Are there client or consumer pull requests to adopt any breaking changes? For example: * Fixes #12345 * Related to #67890 --> ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [ ] I've communicated my changes to consumers by [updating changelogs for packages I've changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs), highlighting breaking changes as necessary - [ ] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Exports `SubscriptionControllerSubmitSponsorshipIntentsAction` and `SubmitSponsorshipIntentsMethodParams`, and updates the changelog accordingly. > > - **Subscription Controller exports**: > - Add `SubscriptionControllerSubmitSponsorshipIntentsAction` to `src/index.ts`. > - Add `SubmitSponsorshipIntentsMethodParams` to `src/index.ts`. > - **Docs**: > - Update `CHANGELOG.md` to note the new `SubscriptionControllerSubmitSponsorshipIntentsAction` export. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit e8e08ff. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 9b1aac1 commit df0e524

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/subscription-controller/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Added new property, `isSponsorshipSupported` to the ControllerState, `pricing.paymentMethods.chains`. ([#7035](https://github.com/MetaMask/core/pull/7035))
13+
- Added `SubscriptionControllerSubmitSponsorshipIntentsAction` in the controller exports. ([#7037](https://github.com/MetaMask/core/pull/7037))
1314

1415
### Changed
1516

packages/subscription-controller/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export type {
1515
SubscriptionControllerMessenger,
1616
SubscriptionControllerOptions,
1717
SubscriptionControllerStateChangeEvent,
18+
SubscriptionControllerSubmitSponsorshipIntentsAction,
1819
AllowedActions,
1920
AllowedEvents,
2021
} from './SubscriptionController';
@@ -58,6 +59,7 @@ export type {
5859
UpdatePaymentMethodCardRequest,
5960
UpdatePaymentMethodCardResponse,
6061
CachedLastSelectedPaymentMethod,
62+
SubmitSponsorshipIntentsMethodParams,
6163
} from './types';
6264
export {
6365
CRYPTO_PAYMENT_METHOD_ERRORS,

0 commit comments

Comments
 (0)