Skip to content
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

Update browser-passworder to ^4.3.0 #310

Merged
merged 2 commits into from
Nov 29, 2023

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 merged commit ad96120 into main Nov 29, 2023
17 checks passed
@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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants