-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore: Bump Snaps packages #15232
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
chore: Bump Snaps packages #15232
Conversation
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
|
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. |
…14428) ## **Description** This PR adds MetaMetrics tracking hook to Snap controller init. This way we delegate Snap export tracking to Snap controller. ## **Related issues** Related PR: MetaMask/snaps#3281 MetaMask/metamask-extension#31553 ## **Notes** - Requires Snaps release. - Snaps PR: MetaMask/snaps#3281 - Targets Snaps release when ready. ## **Manual testing steps** 1. TBD ## **Screenshots/Recordings** ### **Before** n/a ### **After** n/a ## **Pre-merge author checklist** - [ ] I’ve followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **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.
## **Description** Add integration for new RPC method: `snap_trackEvent` SIP-32: https://metamask.github.io/SIPs/SIPS/sip-32 Related PRs: - Snaps: MetaMask/snaps#3375 - Extension: MetaMask/metamask-extension#32554 ## **Related issues** MetaMask/snaps#3274 ## **Manual testing steps** 1. Within some of the preinstalled Snaps use `snap_trackEvent` RPC method and send some tracking data in format specified in [SIP-32](https://metamask.github.io/SIPs/SIPS/sip-32). 2. Find a way and verify that the event is sent (intercept MetaMetrics track event method or check with other e2e metrics testing utilities) Example Snap code used for testing the method: ```typescript await snap.request({ method: 'snap_trackEvent', params: { event: { event: 'SnapExportUsed', properties: { export: 'onRpcRequest', origin: 'https://metamask.io', snap_category: null, snap_id: 'npm:@metamask/example-snap', success: true, }, sensitiveProperties: { transaction_hash: 'transaction-hash', }, }, }, }); ``` ## **Screenshots/Recordings** ### **Before** n/a ### **After** n/a ## **Pre-merge author checklist** - [ ] I’ve followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **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.
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring alerts on:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15232 +/- ##
==========================================
+ Coverage 68.46% 68.67% +0.21%
==========================================
Files 2372 2378 +6
Lines 51275 51372 +97
Branches 7634 7652 +18
==========================================
+ Hits 35103 35281 +178
+ Misses 13942 13846 -96
- Partials 2230 2245 +15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@SocketSecurity ignore npm/@metamask/[email protected] This is ours. |
|
Description
This bumps Snaps packages to the latest versions. The main changes are:
snap_trackEvent
.@lavamoat/webpack
, resulting in a smaller bundle.Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist