Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Conversation

@mikesposito
Copy link
Member

@mikesposito mikesposito commented Nov 28, 2023

Description

This PR updates @metamask/browser-passworder minimum version to 4.3.0

The library 4.3.0 version also provides isVaultUpdated, which gives us a chance to make the way EthKeyringController checks for a potential encryption upgrade more efficient.

Changes

  • ADDED: Optional isVaultUpdated property to GenericEncryptor type
  • CHANGED: Bump @metamask/browser-passworder to ^4.3.0
  • CHANGED: When the encryptor provides an isVaultUpdated method, the latter is used to check if the vault is updated instead of updateVault
  • REMOVED: GenericEncryptor's updateVault property has been removed as no longer used

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc)
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

Gudahtt
Gudahtt previously approved these changes Nov 28, 2023
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Though we should mention the performance improvement in the changelog as well, not just the API change

@mikesposito mikesposito dismissed Gudahtt’s stale review November 29, 2023 10:02

The merge-base changed after approval.

@mikesposito mikesposito force-pushed the refactor/update-browser-passworder branch from 967105c to f962ad4 Compare November 29, 2023 10:02
@mikesposito mikesposito requested a review from Gudahtt November 29, 2023 10:29
@mikesposito mikesposito merged commit ad96120 into main Nov 29, 2023
@mikesposito mikesposito deleted the refactor/update-browser-passworder branch November 29, 2023 14:45
mikesposito added a commit that referenced this pull request Nov 29, 2023
* chore: update browser-passworder

* refactor: remove `updateVault` from `GenericEncryptor`
mikesposito added a commit that referenced this pull request Nov 29, 2023
* Prefer cached `encryptionKey` for encryption when possible (#307)

* fix: prefer encryptionKey for encryption when possible

* refactor: add test case

* Use encryptor `isVaultUpdated` (#310)

* chore: update browser-passworder

* refactor: remove `updateVault` from `GenericEncryptor`
@Gudahtt Gudahtt mentioned this pull request Nov 29, 2023
2 tasks
Gudahtt added a commit that referenced this pull request Nov 29, 2023
* origin/main:
  Use encryptor `isVaultUpdated` (#310)
  Bump @metamask/browser-passworder from 4.2.0 to 4.3.0 (#311)
  Prefer cached `encryptionKey` for encryption when possible (#307)
  Bump @metamask/obs-store from 8.1.0 to 9.0.0 (#306)
  Bump @metamask/eth-sig-util from 7.0.0 to 7.0.1 (#302)
legobeat added a commit that referenced this pull request Nov 30, 2023
legobeat added a commit that referenced this pull request Nov 30, 2023
Gudahtt added a commit that referenced this pull request Jan 9, 2024
* [15.x] Backport encryption improvements (#312)

* Prefer cached `encryptionKey` for encryption when possible (#307)

* fix: prefer encryptionKey for encryption when possible

* refactor: add test case

* Use encryptor `isVaultUpdated` (#310)

* chore: update browser-passworder

* refactor: remove `updateVault` from `GenericEncryptor`

* 15.1.0 (#313)

* 15.1.0

* edit changelog entries

* rephrase changelog entry

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Michele Esposito <michele@esposito.codes>

---------

Co-authored-by: Michele Esposito <34438276+mikesposito@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Michele Esposito <michele@esposito.codes>
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants