MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.52k stars 4.7k forks source link

chore: bump assets controllers to latest #24360

Closed sahar-fehri closed 1 week ago

sahar-fehri commented 2 weeks ago

Description

Bumps assets-controllers to latest.

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

github-actions[bot] commented 2 weeks ago

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

socket-security[bot] commented 2 weeks ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/assets-controllers@29.0.0 Transitive: environment +15 5.9 MB metamaskbot
npm/@metamask/preferences-controller@11.0.0 None +5 1.25 MB metamaskbot
npm/@types/ms@0.7.34 None 0 3.2 kB types
npm/cockatiel@3.1.3 None 0 409 kB connor.peet
npm/jsonschema@1.4.1 None 0 81.8 kB acubed

🚮 Removed packages: npm/@metamask/assets-controllers@26.0.0, npm/@metamask/polling-controller@5.0.1

View full report↗︎

sahar-fehri commented 2 weeks ago

@metamaskbot update-policies

metamaskbot commented 2 weeks ago

Policies updated

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 67.38%. Comparing base (4519cac) to head (d13aff2).

:exclamation: Current head d13aff2 differs from pull request most recent head e87e242. Consider uploading reports for the commit e87e242 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #24360 +/- ## =========================================== + Coverage 67.36% 67.38% +0.02% =========================================== Files 1285 1285 Lines 50088 50052 -36 Branches 12996 12992 -4 =========================================== - Hits 33738 33726 -12 + Misses 16350 16326 -24 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

metamaskbot commented 2 weeks ago
Builds ready [a8e77c6]
Page Load Metrics (953 ± 653 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint62150942210
domContentLoaded9381573
load5034889531359653
domInteractive9381573
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -30 Bytes (-0.00%)
  • ui: -2 Bytes (-0.00%)
  • common: -41.45 KiB (-0.70%)
legobeat commented 2 weeks ago

@metamask/assets-controllers has a peerDependency on @metamask/account-controllers.

Before this change, the direct dependency version of @metamask/account-controllers satisfies the peerDependency requirement. This change will break it. Also upgrading @metamask/account-controllers from ^11.0.0 to ^14.0.0 would make them align again.

I haven't looked closer than this, but I would think that there is something behind the peerDependency bumps?

Is it actually safe, or should @metamask/account-controllers also be upgraded alongside?

metamaskbot commented 1 week ago
Builds ready [99c3db1]
Page Load Metrics (1256 ± 636 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint68224953818
domContentLoaded95316105
load56293512561325636
domInteractive95316105
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -30 Bytes (-0.00%)
  • ui: -2 Bytes (-0.00%)
  • common: -41.45 KiB (-0.70%)
sahar-fehri commented 1 week ago

@metamask/assets-controllers has a peerDependency on @metamask/account-controllers.

Before this change, the direct dependency version of @metamask/account-controllers satisfies the peerDependency requirement. This change will break it. Also upgrading @metamask/account-controllers from ^11.0.0 to ^14.0.0 would make them align again.

I haven't looked closer than this, but I would think that there is something behind the peerDependency bumps?

Is it actually safe, or should @metamask/account-controllers also be upgraded alongside?

Hey @legobeat! that's a good point! I think i expected to see build errors or errors in console extension/background if a peer dependency needed an upgrade, i have tested this PR locally and i do not see any errors. I see the changelog in core marked accounts-controller v14.0.0 as breaking but maybe it does not necessarily need an update?

metamaskbot commented 1 week ago
Builds ready [a23a64a]
Page Load Metrics (1302 ± 660 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint622251053919
domContentLoaded99418189
load50325013021375660
domInteractive99418189
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -30 Bytes (-0.00%)
  • ui: -2 Bytes (-0.00%)
  • common: -41.45 KiB (-0.67%)
metamaskbot commented 1 week ago
Builds ready [a23a64a]
Page Load Metrics (1302 ± 660 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint622251053919
domContentLoaded99418189
load50325013021375660
domInteractive99418189
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -30 Bytes (-0.00%)
  • ui: -2 Bytes (-0.00%)
  • common: -41.45 KiB (-0.67%)
sahar-fehri commented 1 week ago

@metamaskbot update-policies

socket-security[bot] commented 1 week ago

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

metamaskbot commented 1 week ago

Policies updated

mcmire commented 1 week ago

I just checked through the changes in the peer dependencies that assets-controllers has, and most of them are type-related, so they don't have an impact here. It seems that we can address those upgrades in a separate PR.

metamaskbot commented 1 week ago
Builds ready [d13aff2]
Page Load Metrics (1247 ± 703 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint70181942613
domContentLoaded9221231
load58375412471463703
domInteractive9221231
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -30 Bytes (-0.00%)
  • ui: -2 Bytes (-0.00%)
  • common: -41.45 KiB (-0.67%)
metamaskbot commented 1 week ago
Builds ready [e87e242]
Page Load Metrics (687 ± 522 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6013980168
domContentLoaded9181121
load4928756871088522
domInteractive9181121
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -30 Bytes (-0.00%)
  • ui: -2 Bytes (-0.00%)
  • common: -41.45 KiB (-0.67%)