1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/app/scripts/controllers
Dan J Miller 789122d587 Capture app and migration version (#20458)
* Add AppMetadataController so current and previous application and migration version can be captured in sentry

* Add currentAppVersion, previousAppVersion, previousMigrationVersion, currentMigrationVersion to SENTRY_OBJECT

* Update app/scripts/controllers/app-metadata.ts

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Update app/scripts/controllers/app-metadata.ts

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Update app/scripts/controllers/app-metadata.ts

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Fix types

* Add tests for app-metadata.test.ts

* Lint fixes

* Modify loadStateFromPersistence to return the whole versionData object, so that the migration version can be passed to the metamask-controller on instantiation

* Remove reference to implementation details in test descriptions in app/scripts/controllers/app-metadata.test.ts

* Reset all mocks afterEach in AppMetadataController

* Refactor AppMetadataController to be passed version instead of calling platform.version directly (for ease of unit testing the MetaMask Controller)

* Make maybeUpdateAppVersion and maybeUpdateMigrationVersion private, and remove unit tests of those specific functions

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-08-16 14:47:01 -02:30
..
ens Fix/use etherjs specific imports (#15461) 2023-01-24 08:10:36 -06:00
permissions [FLASK] Add Snaps Keyring (#19710) 2023-06-29 09:24:08 -04:00
transactions feat: add new linea mainnet network (#19326) 2023-06-16 14:05:33 -02:30
alert.js feature: convert level 32 files to typescript (#17390) 2023-01-27 18:28:03 +00:00
app-metadata.test.ts Capture app and migration version (#20458) 2023-08-16 14:47:01 -02:30
app-metadata.ts Capture app and migration version (#20458) 2023-08-16 14:47:01 -02:30
app-state.js Fix autolock field to accept decimals in Firefox (#19653) 2023-06-22 10:29:24 -06:00
app-state.test.js [FLASK] Add Snaps privacy warning on snap install (#18835) 2023-05-31 14:43:39 +02:00
backup.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
backup.test.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
cached-balances.js remove exclusions for mismatched object jsdoc type casing (#15351) 2022-07-27 08:28:05 -05:00
cached-balances.test.js Deprecating the Rinkeby, Ropsten, and Kovan test networks (#15989) 2022-09-28 20:26:01 -07:00
decrypt-message.test.ts Consume Decrypt Message Manager from @metamask/message-manager (#18379) 2023-04-26 17:02:33 +02:00
decrypt-message.ts Accept SignController approval request from frontend (#19184) 2023-06-20 15:37:09 +02:00
detect-tokens.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
detect-tokens.test.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
encryption-public-key.test.ts Return state when calling EncryptionPublicKeyController.cancelEncryptionPublicKey (#18845) 2023-04-27 11:39:37 +01:00
encryption-public-key.ts Accept SignController approval request from frontend (#19184) 2023-06-20 15:37:09 +02:00
incoming-transactions.js Additional incoming transactions support (#14219) 2023-02-14 12:35:42 -06:00
incoming-transactions.test.js Additional incoming transactions support (#14219) 2023-02-14 12:35:42 -06:00
metametrics.js Added code fences to updateExtensionUninstallUrl (#19845) 2023-06-30 16:27:16 +02:00
metametrics.test.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
mmi-controller.js [MMI] replace logic from preferences controller with event emitter (#19781) 2023-06-28 16:45:22 +02:00
mmi-controller.test.js [MMI] adds mmi code fences to mm controller (#18279) 2023-05-29 16:38:28 +01:00
onboarding.js Use async/await instead of Promise.resolve (#16221) 2023-01-20 14:20:18 -06:00
preferences.js fix: fetch for snap registry (#19866) 2023-07-10 13:54:52 -02:30
preferences.test.js Make network controller internal fields private (#18607) 2023-04-17 12:45:33 -02:30
swaps.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
swaps.test.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00