fix(deps): Bump @metamask/eth-json-rpc-middleware to ^14.0.0, @metamask/transaction-controller to ^35.1.1#26143
Conversation
|
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. |
|
As this is updating transitive Related (blocking? not sure): |
04c7968 to
67468d3
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
faea0b2 to
176f838
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
4f2217c to
4abc716
Compare
4abc716 to
520ac80
Compare
38d7512 to
c6c724a
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
@SocketSecurity ignore npm/@storybook/addon-actions@7.6.20, npm/@storybook/addon-docs@7.6.20, npm/@storybook/blocks@7.6.20, npm/@storybook/channels@7.6.20, npm/@storybook/client-logger@7.6.20, npm/@storybook/components@7.6.20, npm/@storybook/core-client@7.6.20, npm/@storybook/core-common@7.6.20, npm/@storybook/core-events@7.6.20, npm/@storybook/csf-plugin@7.6.20, npm/@storybook/csf-tools@7.6.20, npm/@storybook/docs-tools@7.6.20, npm/@storybook/manager-api@7.6.20, npm/@storybook/node-logger@7.6.20, npm/@storybook/postinstall@7.6.20, npm/@storybook/preview-api@7.6.20, npm/@storybook/react-dom-shim@7.6.20, npm/@storybook/react@7.6.20, npm/@storybook/router@7.6.20, npm/@storybook/theming@7.6.20, npm/@storybook/types@7.6.20
|
|
@SocketSecurity ignore npm/@metamask/eth-block-tracker@11.0.1, npm/lavamoat-core@15.4.0, npm/lavamoat-tofu@7.3.0 Internal packages |
This comment was marked as outdated.
This comment was marked as outdated.
3a41bd3 to
4fa246f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
@SocketSecurity ignore npm/diff@5.2.0 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as outdated.
This comment was marked as outdated.
Builds ready [3c40934]
Page Load Metrics (86 ± 20 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
|
@legobeat I bumped
Given that we might not have time to fully upgrade eth-block-tracker in this PR (it needs to be merged urgently), how would you feel about extracting the transaction-controller version bump to a separate ticket? |
|
@bschorchit Thanks for checking in on this. We're just waiting on review and approval especially from codeowners. I just bumped this to |
@metamask/eth-json-rpc-middleware from ^12.1.1 to ^14.0.0@metamask/eth-json-rpc-middleware to ^14.0.0, @metamask/transaction-controller to ^35.1.1
gantunesr
left a comment
There was a problem hiding this comment.
Approved for team-accounts.
Files reviewed,
app/scripts/lib/accounts/BalancesController.tsapp/scripts/lib/snap-keyring/snap-keyring.test.ts
| // The casts here are less than ideal but we expect the SnapController to validate the inputs. | ||
| const PREINSTALLED_SNAPS: readonly PreinstalledSnap[] = Object.freeze([ | ||
| MessageSigningSnap as unknown as PreinstalledSnap, | ||
| const PREINSTALLED_SNAPS = Object.freeze<PreinstalledSnap[]>([ |
There was a problem hiding this comment.
| const PREINSTALLED_SNAPS = Object.freeze<PreinstalledSnap[]>([ | |
| const PREINSTALLED_SNAPS = Object.freeze<ReadOnlyArray<PreinstalledSnap>>([ |
Can we do this instead since before the type was readonly?
There was a problem hiding this comment.
This would be redundant since the return type of Object.freeze<T> is readonly T. By hovering over PREINSTALLED_SNAPS, you can verify that its type is readonly PreinstalledSnap[] like before.
If we want to be extra careful about validating the type maybe we could add a satisfies clause to replace the type annotation that was originally there?
diff --git a/app/scripts/snaps/preinstalled-snaps.ts b/app/scripts/snaps/preinstalled-snaps.ts
index 6be0bb7f35..95b9c54e69 100644
--- a/app/scripts/snaps/preinstalled-snaps.ts
+++ b/app/scripts/snaps/preinstalled-snaps.ts
@@ -10,6 +10,6 @@ const PREINSTALLED_SNAPS = Object.freeze<PreinstalledSnap[]>([
///: BEGIN:ONLY_INCLUDE_IF(build-flask)
BitcoinWalletSnap as unknown as PreinstalledSnap,
///: END:ONLY_INCLUDE_IF
-]);
+]) satisfies readonly PreinstalledSnap[];
export default PREINSTALLED_SNAPS;There was a problem hiding this comment.
@daniela2000111 Is there a bug related to the changes in preinstalled-snaps.ts?
There was a problem hiding this comment.
Ah yes that's correct! Fine to leave as is :)
There was a problem hiding this comment.
Curious about this bug report ^
This comment was marked as resolved.
This comment was marked as resolved.
|
| AccountWatcherSnap as unknown as PreinstalledSnap, | ||
| const PREINSTALLED_SNAPS = Object.freeze<PreinstalledSnap[]>([ | ||
| MessageSigningSnap as PreinstalledSnap, | ||
| AccountWatcherSnap as PreinstalledSnap, |
This comment was marked as resolved.
This comment was marked as resolved.
Builds ready [4d13778]
Page Load Metrics (67 ± 7 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
|
@MajorLift What is the context behind bumping some There are still
|
|
More than one release label on PR. Keeping the lowest one (release-12.1.0) on PR and removing other release labels (release-12.5.0). |



Description
Updates
@metamask/eth-json-rpc-middlewarefrom^12.1.1to^14.0.0.@metamask/utils).Related issues
@metamask/eth-json-rpc-middlewarefrom^12.1.1to^14.0.0#26287Changelog
Added
PPOMMiddlewareRequesttype forJsonRpcRequesttypes that include thesecurityAlertResponseproperty.securityAlertResponseis defined as both optional and nullable.PPOMRequesttype foreth-sendTransactionrequests.Changed
@metamask/eth-json-rpc-middlewarefrom^12.1.1to^14.0.0.@metamask/transaction-controllerfrom^34.0.0to^35.1.1.SecurityAlertsAPIRequestas aJsonRpcRequesttype that acceptsunknown[]as itsparamstype.requestparameters of the functionsvalidateWithControllerandvalidateWithAPIto includeSecurityAlertsAPIRequest.@trezor/connect-webfrom9.2.2to9.3.0.Fixed
Paramsgeneric parameter ofcreatePPOMMiddlewarefunction fromJsonRpcParamsto(string | { to: string })[].Paramsgeneric parameter tohandleSnapRequestfunction, which defaults toJsonRpcParams.handleSnapRequestcan now be typed correctly with anyparamsobject.Security
0Xprefix with0x, and contract address normalization is removed for decimal and octal values.eth_signTypedData_v4fields to cause failures in blockaid's detectors.Manual testing steps
Screenshots/Recordings
Pre-merge author checklist
Pre-merge reviewer checklist