Skip to content

deps: Update @metamask/post-message-stream and dependents#21651

Merged
brad-decker merged 4 commits intodevelopfrom
chore/update-post-message-stream
Nov 7, 2023
Merged

deps: Update @metamask/post-message-stream and dependents#21651
brad-decker merged 4 commits intodevelopfrom
chore/update-post-message-stream

Conversation

@brad-decker
Copy link
Copy Markdown
Contributor

@brad-decker brad-decker commented Nov 1, 2023

Description

  1. Updates @metamask/post-message-stream to 7.0.0
  2. Updates @metamask/phishin-warning to 3.0.0 (which eliminates dependencies on post-message-stream 6.2.0)

Related issues

Fixes: #21653

Manual testing steps

  1. No functional changes expected. Verify tests pass.

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@brad-decker brad-decker added the team-extension-platform Extension Platform team label Nov 1, 2023
@brad-decker
Copy link
Copy Markdown
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Copy Markdown
Collaborator

Policies updated

@brad-decker brad-decker marked this pull request as ready for review November 1, 2023 20:55
@brad-decker brad-decker requested review from a team as code owners November 1, 2023 20:55
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3e81e01) 68.61% compared to head (b077452) 68.61%.
Report is 6 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #21651   +/-   ##
========================================
  Coverage    68.61%   68.61%           
========================================
  Files         1045     1045           
  Lines        41611    41611           
  Branches     11111    11111           
========================================
  Hits         28550    28550           
  Misses       13061    13061           

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

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [e1ea736]
Page Load Metrics (1400 ± 268 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint8213895136
domContentLoaded7113490136
load8218951400557268
domInteractive7113489136
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -70 Bytes (-0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 12.39 KiB (0.26%)

HowardBraham
HowardBraham previously approved these changes Nov 1, 2023
@legobeat
Copy link
Copy Markdown
Contributor

legobeat commented Nov 1, 2023

Note that 6.0.0 is still pulled in through @metamask/phishing-warning.

MetaMask/phishing-warning#104 (comment)

@brad-decker
Copy link
Copy Markdown
Contributor Author

@legobeat should that block this?

@legobeat
Copy link
Copy Markdown
Contributor

legobeat commented Nov 1, 2023

@legobeat should that block this?

I have not looked deeply enough into precisely how the stream API is used extension to say for sure. Someone who is more familiar might be able to say "this is fine anyway". Behavioral changes in differences are summarized here FWIW. This may or may not be relevant for usage here.

Keeping them aligned should be safer and preferred, in any case.

@brad-decker
Copy link
Copy Markdown
Contributor Author

I am fairly confident that the two places we directly import this dependency in the extension are not affected by the breaking changes, the main one that I think could affect it is the upgrade of readable-stream. However, The phishing page is under E2E test so I feel confident that this isn't breaking due to a mismatch here. I do think we should prioritize the upgrade of the phishing-controller dependency. Ill wait for others to chime in on this and add the do-not-merge flag until a decision is reached.

@brad-decker brad-decker added the DO-NOT-MERGE Pull requests that should not be merged label Nov 2, 2023
Mrtenz
Mrtenz previously approved these changes Nov 2, 2023
Copy link
Copy Markdown
Member

@Mrtenz Mrtenz left a comment

Choose a reason for hiding this comment

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

Looks good to me, but I don't know if this would affect @metamask/phishing-warning in some way.

@brad-decker brad-decker dismissed stale reviews from Mrtenz and HowardBraham via 9870a64 November 7, 2023 14:47
@brad-decker
Copy link
Copy Markdown
Contributor Author

@metamaskbot update-policies

@brad-decker brad-decker force-pushed the chore/update-post-message-stream branch from 9870a64 to e5b72d9 Compare November 7, 2023 14:51
@brad-decker
Copy link
Copy Markdown
Contributor Author

@metamaskbot update-policies

@brad-decker brad-decker changed the title deps: Update @metamask/post-message-stream deps: Update @metamask/post-message-stream and dependents Nov 7, 2023
@brad-decker brad-decker removed the DO-NOT-MERGE Pull requests that should not be merged label Nov 7, 2023
@socket-security
Copy link
Copy Markdown

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@metamask/phishing-warning 2.1.0...3.0.0 None +1/-0 1.71 MB

@socket-security
Copy link
Copy Markdown

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Issue Package Version Note Source
Unpublished package @metamask/phishing-warning 3.0.0
  • Version: Invalid Date

Next steps

What are unpublished packages?

Package version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.

Packages can be removed from the registry by manually un-publishing, a security issue removal, or may simply never have been published to the registry. Reliance on these packages will cause problem when they are not found.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore @metamask/phishing-warning@3.0.0

@metamaskbot
Copy link
Copy Markdown
Collaborator

Policies updated

@metamaskbot
Copy link
Copy Markdown
Collaborator

Policies updated

@brad-decker
Copy link
Copy Markdown
Contributor Author

@SocketSecurity ignore @metamask/phishing-warning@3.0.0

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [b077452]
Page Load Metrics (578 ± 264 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint801119284
domContentLoaded6810983105
load761302578549264
domInteractive6810983105
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -70 Bytes (-0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 12.43 KiB (0.26%)

@brad-decker brad-decker merged commit 2ad8cd6 into develop Nov 7, 2023
@brad-decker brad-decker deleted the chore/update-post-message-stream branch November 7, 2023 17:48
@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2023
@metamaskbot metamaskbot added the release-11.6.0 Issue or pull request that will be included in release 11.6.0 label Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-11.6.0 Issue or pull request that will be included in release 11.6.0 team-extension-platform Extension Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade @metamask/post-message-stream to latest

7 participants