metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

chore: bump extension-port-stream to v5.0.1

Open gauthierpetetin opened this issue 1 month ago • 4 comments

Description

Bumps extension-port-stream from 5.0.0 to 5.0.1.

Changes in 5.0.1

1. Chromium Error Message Compatibility Fix

Chromium changed the error message format for oversized messages around November 2025 (chromium-review). This release adds support for both the old and new error message formats to ensure backward compatibility with older Chrome versions while supporting newer versions.

2. Port Disconnect Handling Improvement

Changed the port disconnect handler to cleanly destroy without throwing an error, providing cleaner stream cleanup when browser ports disconnect, and avoiding Port disconnected logged in the console when Extension starts.

3. LavaMoat Security Configuration

Added LavaMoat security configuration to the package for improved supply chain security.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: null

Related issues

Fixes: N/A - Dependency maintenance

Manual testing steps

  1. Build the extension with yarn build
  2. Load the extension in Chrome
  3. Verify extension loads and operates correctly
  4. Verify no Port disconnected errors in the console

Screenshots/Recordings

Before

N/A - No visual changes

After

N/A - No visual changes

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.

gauthierpetetin avatar Dec 10 '25 15:12 gauthierpetetin

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.

github-actions[bot] avatar Dec 10 '25 15:12 github-actions[bot]

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedextension-port-stream@​5.0.0 ⏵ 5.0.210010092 -892 -8100

View full report

socket-security[bot] avatar Dec 10 '25 15:12 socket-security[bot]

Builds ready [e5b1d15]
UI Startup Metrics (1278 ± 110 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12781044158911013301480
load104387012768710861202
domContentLoaded103786012708710801194
domInteractive2816164242391
firstPaint55587120841210341173
backgroundConnect21620024710222235
firstReactRender443283114967
getState41181582346104
initialActions103112
loadScripts828658105685866989
setupStore1274361223
numNetworkReqs1368520674
BrowserifyPower User HomeuiStartup18911556235516219922172
load1079901143012311771295
domContentLoaded1068893140712211671279
domInteractive3117123232898
firstPaint60097144643810491293
backgroundConnect24719765988235556
firstReactRender48398475062
getState20915571990219266
initialActions104112
loadScripts85268711881189511075
setupStore15103661533
numNetworkReqs72581492068133
WebpackStandard HomeuiStartup8466811206938801030
load685568106987733836
domContentLoaded679562106586725829
domInteractive2717107212390
firstPaint27972852194294722
backgroundConnect1168391126
firstReactRender59332533874133
getState281462123750
initialActions104112
loadScripts676560106285723823
setupStore1273751421
numNetworkReqs1368020672
WebpackPower User HomeuiStartup13121031196919314471613
load68757291590737863
domContentLoaded68056790390731856
domInteractive2915119232594
firstPaint386111860238645760
backgroundConnect51762510245127
firstReactRender48396245154
getState19814966584195255
initialActions102111
loadScripts67756489589728849
setupStore1574691338
numNetworkReqs71571522266137
FirefoxBrowserifyStandard HomeuiStartup14091093197517514951803
load1126932138010011841324
domContentLoaded1126932138010111841324
domInteractive74322344290163
firstPaint------
backgroundConnect57232434666177
firstReactRender4131111114266
getState146182181224
initialActions104112
loadScripts109491813379111521259
setupStore14674131249
numNetworkReqs1568121877
BrowserifyPower User HomeuiStartup26041583400852530473380
load1630982303051620682453
domContentLoaded1629982303051620672453
domInteractive18632193032198953
firstPaint------
backgroundConnect177241202227191923
firstReactRender5435106125979
getState1286739053155225
initialActions3041527
loadScripts1524966300448219672311
setupStore3643816132185
numNetworkReqs74491312269123
WebpackStandard HomeuiStartup15831300204315216771870
load13061116163811113671536
domContentLoaded13061116163711113671536
domInteractive762819735103131
firstPaint------
backgroundConnect57201533564137
firstReactRender4434119134677
getState14796121346
initialActions103122
loadScripts12741099160810513401467
setupStore176119201470
numNetworkReqs1568521873
WebpackPower User HomeuiStartup28241837375955132493601
load19251185295452924112704
domContentLoaded19251185295452824112703
domInteractive2163211283291891004
firstPaint------
backgroundConnect198251168243210966
firstReactRender6142142156699
getState1407729154168270
initialActions3047526
loadScripts18311167290449823022659
setupStore3964156733165
numNetworkReqs71481232268118
📊 Page Load Benchmark Results

Current Commit: e5b1d15 | Date: 12/10/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±69ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 741ms (±67ms) 🟢 | historical mean value: 720ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±11ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 69ms 1.01s 1.33s 1.29s 1.33s
domContentLoaded 741ms 67ms 701ms 1.01s 970ms 1.01s
firstPaint 77ms 11ms 56ms 172ms 88ms 172ms
firstContentfulPaint 77ms 11ms 56ms 172ms 88ms 172ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 91 Bytes (0%)

metamaskbot avatar Dec 10 '25 16:12 metamaskbot

Builds ready [e5b1d15]
UI Startup Metrics (1278 ± 110 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12781044158911013301480
load104387012768710861202
domContentLoaded103786012708710801194
domInteractive2816164242391
firstPaint55587120841210341173
backgroundConnect21620024710222235
firstReactRender443283114967
getState41181582346104
initialActions103112
loadScripts828658105685866989
setupStore1274361223
numNetworkReqs1368520674
BrowserifyPower User HomeuiStartup18911556235516219922172
load1079901143012311771295
domContentLoaded1068893140712211671279
domInteractive3117123232898
firstPaint60097144643810491293
backgroundConnect24719765988235556
firstReactRender48398475062
getState20915571990219266
initialActions104112
loadScripts85268711881189511075
setupStore15103661533
numNetworkReqs72581492068133
WebpackStandard HomeuiStartup8466811206938801030
load685568106987733836
domContentLoaded679562106586725829
domInteractive2717107212390
firstPaint27972852194294722
backgroundConnect1168391126
firstReactRender59332533874133
getState281462123750
initialActions104112
loadScripts676560106285723823
setupStore1273751421
numNetworkReqs1368020672
WebpackPower User HomeuiStartup13121031196919314471613
load68757291590737863
domContentLoaded68056790390731856
domInteractive2915119232594
firstPaint386111860238645760
backgroundConnect51762510245127
firstReactRender48396245154
getState19814966584195255
initialActions102111
loadScripts67756489589728849
setupStore1574691338
numNetworkReqs71571522266137
FirefoxBrowserifyStandard HomeuiStartup14091093197517514951803
load1126932138010011841324
domContentLoaded1126932138010111841324
domInteractive74322344290163
firstPaint------
backgroundConnect57232434666177
firstReactRender4131111114266
getState146182181224
initialActions104112
loadScripts109491813379111521259
setupStore14674131249
numNetworkReqs1568121877
BrowserifyPower User HomeuiStartup26041583400852530473380
load1630982303051620682453
domContentLoaded1629982303051620672453
domInteractive18632193032198953
firstPaint------
backgroundConnect177241202227191923
firstReactRender5435106125979
getState1286739053155225
initialActions3041527
loadScripts1524966300448219672311
setupStore3643816132185
numNetworkReqs74491312269123
WebpackStandard HomeuiStartup15831300204315216771870
load13061116163811113671536
domContentLoaded13061116163711113671536
domInteractive762819735103131
firstPaint------
backgroundConnect57201533564137
firstReactRender4434119134677
getState14796121346
initialActions103122
loadScripts12741099160810513401467
setupStore176119201470
numNetworkReqs1568521873
WebpackPower User HomeuiStartup28241837375955132493601
load19251185295452924112704
domContentLoaded19251185295452824112703
domInteractive2163211283291891004
firstPaint------
backgroundConnect198251168243210966
firstReactRender6142142156699
getState1407729154168270
initialActions3047526
loadScripts18311167290449823022659
setupStore3964156733165
numNetworkReqs71481232268118
📊 Page Load Benchmark Results

Current Commit: e5b1d15 | Date: 12/10/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±69ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 741ms (±67ms) 🟢 | historical mean value: 720ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±11ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 69ms 1.01s 1.33s 1.29s 1.33s
domContentLoaded 741ms 67ms 701ms 1.01s 970ms 1.01s
firstPaint 77ms 11ms 56ms 172ms 88ms 172ms
firstContentfulPaint 77ms 11ms 56ms 172ms 88ms 172ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 91 Bytes (0%)

metamaskbot avatar Dec 10 '25 17:12 metamaskbot

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/extension-platform (1 files, +1 -0)
  • 📄 .yarnrc.yml +1 -0

metamaskbotv2[bot] avatar Dec 19 '25 07:12 metamaskbotv2[bot]

Builds ready [2b25856]
UI Startup Metrics (1307 ± 109 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup13071052156910913791497
load109987313099711661250
domContentLoaded109286713029711611245
domInteractive2816114212579
firstPaint179651216171195307
backgroundConnect2161982469220238
firstReactRender1594871733
getState3619114144368
initialActions104112
loadScripts8836751090969551029
setupStore1273241322
numNetworkReqs171183171167
BrowserifyPower User HomeuiStartup17571418244718018612067
load1040871134111711431238
domContentLoaded1031866133511711251236
domInteractive29161202425104
firstPaint1506739566203248
backgroundConnect23519652263227466
firstReactRender14113331519
getState18514270858198230
initialActions106112
loadScripts82367011191149161026
setupStore1684071635
numNetworkReqs65511321863119
WebpackStandard HomeuiStartup77864499875820953
load63156684359640767
domContentLoaded62656183659635760
domInteractive251591182180
firstPaint1025930048116212
backgroundConnect265144283597
firstReactRender14103131622
getState3415160194258
initialActions104111
loadScripts62355982858632751
setupStore1364281335
numNetworkReqs181178171172
WebpackPower User HomeuiStartup1221958178920512811711
load706594111494715910
domContentLoaded700588110994708897
domInteractive33172183326113
firstPaint13862904101170288
backgroundConnect65764613556561
firstReactRender15132321619
getState15714022212161178
initialActions102011
loadScripts697585110092706889
setupStore1494571334
numNetworkReqs65521352061126
FirefoxBrowserifyStandard HomeuiStartup13841073241722914791747
load1106906200118011531426
domContentLoaded1106906200118011531426
domInteractive8631841115102178
firstPaint------
backgroundConnect56213295070161
firstReactRender1393541321
getState177125221474
initialActions102012
loadScripts1071892188516211251321
setupStore1951883014100
numNetworkReqs20991211480
BrowserifyPower User HomeuiStartup26631614344756431313326
load17141043274057022592543
domContentLoaded17141043274057022592543
domInteractive87324377989283
firstPaint------
backgroundConnect40623127746010231203
firstReactRender19115562127
getState12540105499133185
initialActions3136428
loadScripts13871010254544214142326
setupStore655118719346207
numNetworkReqs71531222192110
WebpackStandard HomeuiStartup15751309200717316631946
load13161094177113113841544
domContentLoaded13161093177113113841544
domInteractive79282213899142
firstPaint------
backgroundConnect63192604787157
firstReactRender16115971726
getState166144201449
initialActions2045422
loadScripts12781079172811713431469
setupStore186135231553
numNetworkReqs19983201377
WebpackPower User HomeuiStartup27881698777675031583541
load20471142727576425082684
domContentLoaded20461141727476425062683
domInteractive10229419841479157
firstPaint------
backgroundConnect4022013494514041267
firstReactRender2012151142126
getState1076823831113181
initialActions3042427
loadScripts17121126606663922012446
setupStore584114816836237
numNetworkReqs63381202372114
📊 Page Load Benchmark Results

Current Commit: 2b25856 | Date: 12/19/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±66ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 725ms (±63ms) 🟢 | historical mean value: 727ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 74ms (±10ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 66ms 997ms 1.33s 1.27s 1.33s
domContentLoaded 725ms 63ms 690ms 1.01s 944ms 1.01s
firstPaint 74ms 10ms 56ms 152ms 84ms 152ms
firstContentfulPaint 74ms 10ms 56ms 152ms 84ms 152ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -379.25 KiB (-7.18%)
  • ui: 100.39 KiB (1.3%)
  • common: 18.5 KiB (0.21%)

metamaskbotv2[bot] avatar Dec 19 '25 07:12 metamaskbotv2[bot]

LGTM !

DDDDDanica avatar Dec 19 '25 13:12 DDDDDanica