-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved for team-accounts.
Files reviewed,
app/scripts/lib/accounts/BalancesController.ts
app/scripts/lib/snap-keyring/snap-keyring.test.ts
@@ -5,8 +5,8 @@ import BitcoinWalletSnap from '@metamask/bitcoin-wallet-snap/dist/preinstalled-s | |||
///: END:ONLY_INCLUDE_IF | |||
|
|||
// 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug report
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daniela2000111 Is there a bug related to the changes in preinstalled-snaps.ts
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes that's correct! Fine to leave as is :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious about this bug report ^
This comment was marked as resolved.
This comment was marked as resolved.
Quality Gate passedIssues Measures |
AccountWatcherSnap as unknown as PreinstalledSnap, | ||
const PREINSTALLED_SNAPS = Object.freeze<PreinstalledSnap[]>([ | ||
MessageSigningSnap as PreinstalledSnap, | ||
AccountWatcherSnap as PreinstalledSnap, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-middleware
from^12.1.1
to^14.0.0
.@metamask/utils
).Related issues
@metamask/eth-json-rpc-middleware
from^12.1.1
to^14.0.0
#26287Changelog
Added
PPOMMiddlewareRequest
type forJsonRpcRequest
types that include thesecurityAlertResponse
property.securityAlertResponse
is defined as both optional and nullable.PPOMRequest
type foreth-sendTransaction
requests.Changed
@metamask/eth-json-rpc-middleware
from^12.1.1
to^14.0.0
.@metamask/transaction-controller
from^34.0.0
to^35.1.1
.SecurityAlertsAPIRequest
as aJsonRpcRequest
type that acceptsunknown[]
as itsparams
type.request
parameters of the functionsvalidateWithController
andvalidateWithAPI
to includeSecurityAlertsAPIRequest
.@trezor/connect-web
from9.2.2
to9.3.0
.Fixed
Params
generic parameter ofcreatePPOMMiddleware
function fromJsonRpcParams
to(string | { to: string })[]
.Params
generic parameter tohandleSnapRequest
function, which defaults toJsonRpcParams
.handleSnapRequest
can now be typed correctly with anyparams
object.Security
0X
prefix with0x
, and contract address normalization is removed for decimal and octal values.eth_signTypedData_v4
fields to cause failures in blockaid's detectors.Manual testing steps
Screenshots/Recordings
Pre-merge author checklist
Pre-merge reviewer checklist