Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Bump library dependencies #99

Merged
merged 7 commits into from
Sep 25, 2023
Merged

Bump library dependencies #99

merged 7 commits into from
Sep 25, 2023

Conversation

legobeat
Copy link
Contributor

@legobeat legobeat commented Sep 25, 2023

Updates all runtime dependencies to latest, except holding back @ethereumjs from latest majors to preserve Node.js v16 compatibility as well as aligning as peers.

@legobeat legobeat added the type-dependencies Pull requests that update a dependency file label Sep 25, 2023
@legobeat legobeat mentioned this pull request Sep 25, 2023
2 tasks
@socket-security
Copy link

socket-security bot commented Sep 25, 2023

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

Packages Version New capabilities Transitives Size Publisher
@metamask/eslint-config-jest 9.0.0 None +1 24.9 kB gudahtt
@metamask/eth-sig-util 7.0.0 None +1 335 kB metamaskbot

🚮 Removed packages: @ethereumjs/[email protected], [email protected]

@legobeat legobeat force-pushed the deps-bumps-v7 branch 2 times, most recently from 3782743 to 731b02f Compare September 25, 2023 09:50
@socket-security
Copy link

socket-security bot commented Sep 25, 2023

👍 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.

Ignoring: @metamask/[email protected], @metamask/[email protected]

Next steps

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 [email protected] bar@* or ignore all packages with @SocketSecurity ignore-all

@legobeat

This comment was marked as resolved.

@legobeat legobeat marked this pull request as ready for review September 25, 2023 09:52
@legobeat legobeat requested a review from a team as a code owner September 25, 2023 09:52
@legobeat legobeat requested review from a team September 25, 2023 09:56
src/HDKeyring.ts Outdated
opts: KeyringOpt = {},
): Promise<string> {
if (!isStrictHexString(data)) {
Copy link
Member

Choose a reason for hiding this comment

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

Is data expected to always have 0x? If not, we should use isHexString instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't seem like it's actually made explicit. Moved to using assertIsHexString and changed the type back to string.

The library previously rejected non-hex-string data but relied on an
underlying library to throw the error.

This makes the validation explicit, and changes the type of the `data`
parameter of `signMessage` from `string` to `Hex` to reflect that.
@legobeat legobeat merged commit 9b22611 into MetaMask:main Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type-dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants