Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump @metamask/transaction-controller to v34 #26124

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jul 25, 2024

Description

The @metamask/transaction-controller package has been updated from v32 to v34. The @metamask/user-operation-controller package had to be bumped as well to avoid new peer dependency warnings.

Primarily the only breaking changes in these ranges were peer dependency updates and an update to the minimum supported Node.js version. The new peer dependencies did not introduce any new warnings, they are all met. This update has resolved some pre-existing peer dependency warnings.

The only functional change required was this update to the TransactionController in v33.0.0:

- **BREAKING:** The `TransactionController` messenger must now allow the `AccountsController:getSelectedAccount` action ([#4244](https://github.com/MetaMask/core/pull/4244))

...

- **BREAKING:** Remove `getSelectedAddress` option from `TransactionController` ([#4244](https://github.com/MetaMask/core/pull/4244))
  - The AccountsController is used to get the currently selected address automatically.

That change has been applied.

See the full changelogs here:

Open in GitHub Codespaces

Related issues

This helps unblock #9372

Manual testing steps

N/A

Screenshots/Recordings

N/A

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

The `@metamask/transaction-controller` package has been updated from v32 to
v34. The `@metamask/user-operation-controller` package had to be bumped as
well to avoid new peer dependency warnings.

Primarily the only breaking changes in these ranges were peer dependency
updates and an update to the minimum supported Node.js version. The new
peer dependencies did not introduce any new warnings, they are all met. This
update has resolved some pre-existing peer dependency warnings.

The only functional change required was this update to the
TransactionController in v33.0.0:

```
- **BREAKING:** The `TransactionController` messenger must now allow the `AccountsController:getSelectedAccount` action ([#4244](MetaMask/core#4244))

...

- **BREAKING:** Remove `getSelectedAddress` option from `TransactionController` ([#4244](MetaMask/core#4244))
  - The AccountsController is used to get the currently selected address automatically.
```

That change has been applied.

See the full changelogs here:
* [`@metamask/transaction-controller`](https://github.com/MetaMask/core/blob/%40metamask/transaction-controller%4034.0.0/packages/transaction-controller/CHANGELOG.md)
* [`@metamask/user-operation-controller`](https://github.com/MetaMask/core/blob/%40metamask/user-operation-controller%4013.0.0/packages/user-operation-controller/CHANGELOG.md)

This helps unblock #9372
@Gudahtt
Copy link
Member Author

Gudahtt commented Jul 25, 2024

@metamaskbot update-policies

Copy link

socket-security bot commented Jul 25, 2024

@metamaskbot
Copy link
Collaborator

Policies updated

Copy link

sonarcloud bot commented Jul 25, 2024

@Gudahtt Gudahtt marked this pull request as ready for review July 25, 2024 14:56
@Gudahtt Gudahtt requested review from a team as code owners July 25, 2024 14:56
@metamaskbot
Copy link
Collaborator

Builds ready [c75ac22]
Page Load Metrics (202 ± 202 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6711789157
domContentLoaded95325115
load481560202421202
domInteractive95325115
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 35.94 KiB (1.07%)
  • ui: 0 Bytes (0.00%)
  • common: 369 Bytes (0.01%)

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.70%. Comparing base (9b6e343) to head (c75ac22).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #26124   +/-   ##
========================================
  Coverage    69.70%   69.70%           
========================================
  Files         1409     1409           
  Lines        49793    49792    -1     
  Branches     13773    13773           
========================================
  Hits         34705    34705           
+ Misses       15088    15087    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@kanthesha kanthesha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Gudahtt Gudahtt merged commit 8db8ba7 into develop Jul 25, 2024
76 checks passed
@Gudahtt Gudahtt deleted the update-transaction-controller-v34 branch July 25, 2024 16:23
@github-actions github-actions bot locked and limited conversation to collaborators Jul 25, 2024
@metamaskbot metamaskbot added the release-12.3.0 Issue or pull request that will be included in release 12.3.0 label Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.3.0 Issue or pull request that will be included in release 12.3.0 team-accounts team-confirmations Push issues to confirmations team team-extension-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants