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: Update @metamask/polling-controller to v11 #28759

Merged
merged 4 commits into from
Nov 27, 2024

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Nov 27, 2024

Description

The @metamask/polling-controller package has been updated from v10 to v11. This update included several breaking changes to the polling controller mixins, impacting the BridgeController and BridgeStatusController. They have been updated to account for the changes. There should be no functional changes.

Changelog: https://github.com/MetaMask/core/blob/main/packages/polling-controller/CHANGELOG.md#1100

Open in GitHub Codespaces

Related issues

N/A

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.

@Gudahtt
Copy link
Member Author

Gudahtt commented Nov 27, 2024

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@metamaskbot
Copy link
Collaborator

Builds ready [bd7447a]
Page Load Metrics (1747 ± 70 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15702184175715876
domContentLoaded15262104171914771
load15702119174714570
domInteractive258239189
backgroundConnect87133199
firstReactRender17103493115
getState55814157
initialActions01000
loadScripts11281609128213163
setupStore65215147
uiStartup18092395202716780
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -16.88 KiB (-0.29%)
  • ui: 0 Bytes (0.00%)
  • common: -662 Bytes (-0.01%)

@Gudahtt Gudahtt force-pushed the update-polling-controller-v11 branch from bd7447a to d6cd3d9 Compare November 27, 2024 13:07
@metamaskbot
Copy link
Collaborator

Builds ready [d6cd3d9]
Page Load Metrics (1565 ± 28 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1487169115736029
domContentLoaded1441164315305627
load1453169315655928
domInteractive149137199
backgroundConnect1285372010
firstReactRender1596403115
getState692293015
initialActions01000
loadScripts1043127211345526
setupStore684232612
uiStartup16252284185119995
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -16.88 KiB (-0.29%)
  • ui: 0 Bytes (0.00%)
  • common: -662 Bytes (-0.01%)

Gudahtt and others added 3 commits November 27, 2024 12:09
The `@metamask/polling-controller` package has been updated from v10 to
v11. This update included several breaking changes to the polling
controller mixins, impacting the `BridgeController` and
`BridgeStatusController`. They have been updated to account for the
changes. There should be no functional changes.

Changelog: https://github.com/MetaMask/core/blob/main/packages/polling-controller/CHANGELOG.md#1100
@Gudahtt Gudahtt force-pushed the update-polling-controller-v11 branch from 609d6c4 to 830db15 Compare November 27, 2024 15:39
@metamaskbot
Copy link
Collaborator

Builds ready [830db15]
Page Load Metrics (1797 ± 91 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint46022461749356171
domContentLoaded14842135176418890
load14972165179719191
domInteractive236037115
backgroundConnect997412311
firstReactRender16179504321
getState667242211
initialActions00000
loadScripts10511659131116177
setupStore687232713
uiStartup164226722118286137
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -16.88 KiB (-0.29%)
  • ui: 0 Bytes (0.00%)
  • common: -662 Bytes (-0.01%)

The mocks are setup incorrectly, so the `networkClientId` is not a
string as it should be. Really we should fix the mocks, but this can
be fixed later and is a pre-existing problem.
@Gudahtt Gudahtt force-pushed the update-polling-controller-v11 branch from bd0bdeb to fe985db Compare November 27, 2024 16:35
@Gudahtt Gudahtt marked this pull request as ready for review November 27, 2024 17:04
@Gudahtt Gudahtt requested review from a team as code owners November 27, 2024 17:04
@metamaskbot
Copy link
Collaborator

Builds ready [fe985db]
Page Load Metrics (1702 ± 87 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint29722131632352169
domContentLoaded14752195167117685
load14832240170218187
domInteractive247541178
backgroundConnect799292512
firstReactRender156836209
getState477262311
initialActions01000
loadScripts10601533123312761
setupStore67013157
uiStartup16212422190920196
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -16.88 KiB (-0.29%)
  • ui: 0 Bytes (0.00%)
  • common: -662 Bytes (-0.01%)

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.

Makes sense!

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!

@Gudahtt Gudahtt added this pull request to the merge queue Nov 27, 2024
Merged via the queue into develop with commit 86e616b Nov 27, 2024
77 checks passed
@Gudahtt Gudahtt deleted the update-polling-controller-v11 branch November 27, 2024 18:17
@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2024
@metamaskbot metamaskbot added the release-12.9.0 Issue or pull request that will be included in release 12.9.0 label Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.9.0 Issue or pull request that will be included in release 12.9.0 team-bridge team-wallet-framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants