mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
789122d587
* 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> |
||
---|---|---|
.. | ||
ens | ||
permissions | ||
transactions | ||
alert.js | ||
app-metadata.test.ts | ||
app-metadata.ts | ||
app-state.js | ||
app-state.test.js | ||
backup.js | ||
backup.test.js | ||
cached-balances.js | ||
cached-balances.test.js | ||
decrypt-message.test.ts | ||
decrypt-message.ts | ||
detect-tokens.js | ||
detect-tokens.test.js | ||
encryption-public-key.test.ts | ||
encryption-public-key.ts | ||
incoming-transactions.js | ||
incoming-transactions.test.js | ||
metametrics.js | ||
metametrics.test.js | ||
mmi-controller.js | ||
mmi-controller.test.js | ||
onboarding.js | ||
preferences.js | ||
preferences.test.js | ||
swaps.js | ||
swaps.test.js |