Uh oh!
There was an error while loading. Please reload this page.
Add types for store and fix type discrepancies - #247
Conversation
8b29513 to
bdea599CompareNew and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages:obs-store@4.0.3 |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring: Next stepsTake a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with |
bdea599 to
71c792bCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Gudahtt
left a comment
There was a problem hiding this comment.
Looks great! Let me know when the description is ready so that I can review the list of changes. Lots of changes here.
I spotted a few more type errors caused by the |
Gudahtt
commented
Jul 17, 2023
These are our packages |
mikesposito
commented
Jul 17, 2023
The description should now be ready, I hope I mentioned everything 😄 |
Gudahtt
commented
Jul 17, 2023
I have created a few extra PRs for the problems I found related to |
mcmire
left a comment
There was a problem hiding this comment.
Did a quick pass on this and had a couple of suggestions/questions. Will do another pass tomorrow to make sure I understand how these types are changing.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
da16875 to
c4d087aCompareCo-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
c4d087a to
f2b241dCompareUh oh!
There was an error while loading. Please reload this page.
Gudahtt
left a comment
There was a problem hiding this comment.
LGTM! Description of changes looks great too
Description
This PR updates
obs-storeto@metamask/obs-storeand fixes some type discrepancies with the actual statesChanges
KeyringControllerArgsproperties types changedkeyringBuilders, now is an optional{ (): Keyring<Json>; type: string }[]initStatenow accepts only an optional persistent state, of typeKeyringControllerPersistentStatestoreandmemStorepublic properties changedKeyringController.storeis now anObservableStore<KeyringControllerPersistentState>KeyringController.memStoreis now anObservableStore<KeyringControllerState>updateMemStoreKeyringsmethod return type changed toPromise<void>KeyringControllerStatetype changed to include only non-persistent state:undefinedis used instead ofnullwhenencryptionKeyandencryptionSaltare unsetkeyringsis now of typeKeyringObject[]instead ofKeyring<Json>password,store,memStorehave been removed - note that in practice this change only affects typescreateNewVaultAndKeychaincreateNewVaultAndRestoresetLockedsubmitPasswordsubmitEncryptionKeyaddNewAccountremoveAccountfullUpdateKeyringControllerPersistentStatetype which includes only persistent state, an optional string property with keyvaultKeyringObjecttype for how keyrings are represented inmemStoreReferences
Checklist