@metamask/keyring-controller
Advanced tools
Comparing version 10.0.0 to 11.0.0
@@ -9,2 +9,14 @@ # Changelog | ||
## [11.0.0] | ||
### Changed | ||
- **BREAKING:** Bump `@metamask/preferences-controller` peer dependency from `^5.0.0` to `^5.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695)) | ||
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695)) | ||
- Bump `@metamask/eth-keyring-controller` to `^15.1.0` ([#3617](https://github.com/MetaMask/core/pull/3617)) | ||
- Bump `@metamask/eth-sig-util` to `^7.0.1` ([#3614](https://github.com/MetaMask/core/pull/3614)) | ||
- Bump `@metamask/message-manager` to `^7.3.7` ([#3695](https://github.com/MetaMask/core/pull/3695)) | ||
- Update `forgetQRDevice` to return an object containing `removedAccounts` and `remainingAccounts` ([#3641](https://github.com/MetaMask/core/pull/3641)) | ||
### Fixed | ||
- Remove `@metamask/preferences-controller` dependency ([#3607](https://github.com/MetaMask/core/pull/3607)) | ||
## [10.0.0] | ||
@@ -244,3 +256,4 @@ ### Changed | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@10.0.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@11.0.0...HEAD | ||
[11.0.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@10.0.0...@metamask/keyring-controller@11.0.0 | ||
[10.0.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@9.0.0...@metamask/keyring-controller@10.0.0 | ||
@@ -247,0 +260,0 @@ [9.0.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@8.1.0...@metamask/keyring-controller@9.0.0 |
@@ -432,5 +432,8 @@ import type { TxData, TypedTransaction } from '@ethereumjs/tx'; | ||
getAccountKeyringType(account: string): Promise<string>; | ||
forgetQRDevice(): Promise<void>; | ||
forgetQRDevice(): Promise<{ | ||
removedAccounts: string[]; | ||
remainingAccounts: string[]; | ||
}>; | ||
} | ||
export default KeyringController; | ||
//# sourceMappingURL=KeyringController.d.ts.map |
@@ -444,3 +444,6 @@ "use strict"; | ||
*/ | ||
importAccountWithStrategy(strategy, args) { | ||
importAccountWithStrategy(strategy, | ||
// TODO: Replace `any` with type | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
args) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -689,2 +692,4 @@ let privateKey; | ||
} | ||
// TODO: Replace `any` with type | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
restoreQRKeyring(serialized) { | ||
@@ -751,2 +756,4 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
// TODO: Replace `any` with type | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
return accounts.map((account) => { | ||
@@ -794,8 +801,9 @@ return Object.assign(Object.assign({}, account), { balance: '0x0' }); | ||
const keyring = yield this.getOrAddQRKeyring(); | ||
const allAccounts = (yield __classPrivateFieldGet(this, _KeyringController_keyring, "f").getAccounts()); | ||
keyring.forgetDevice(); | ||
const accounts = (yield __classPrivateFieldGet(this, _KeyringController_keyring, "f").getAccounts()); | ||
accounts.forEach((account) => { | ||
this.setSelectedAddress(account); | ||
}); | ||
const remainingAccounts = (yield __classPrivateFieldGet(this, _KeyringController_keyring, "f").getAccounts()); | ||
const removedAccounts = allAccounts.filter((address) => !remainingAccounts.includes(address)); | ||
this.updateIdentities(remainingAccounts); | ||
yield __classPrivateFieldGet(this, _KeyringController_keyring, "f").persistAllKeyrings(); | ||
return { removedAccounts, remainingAccounts }; | ||
}); | ||
@@ -802,0 +810,0 @@ } |
{ | ||
"name": "@metamask/keyring-controller", | ||
"version": "10.0.0", | ||
"version": "11.0.0", | ||
"description": "Stores identities seen in the wallet and manages interactions such as signing", | ||
@@ -25,2 +25,3 @@ "keywords": [ | ||
"build:docs": "typedoc", | ||
"changelog:update": "../../scripts/update-changelog.sh @metamask/keyring-controller", | ||
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/keyring-controller", | ||
@@ -35,6 +36,5 @@ "publish:preview": "yarn npm publish --tag preview", | ||
"@keystonehq/metamask-airgapped-keyring": "^0.13.1", | ||
"@metamask/base-controller": "^4.0.0", | ||
"@metamask/eth-keyring-controller": "^15.0.0", | ||
"@metamask/message-manager": "^7.3.6", | ||
"@metamask/preferences-controller": "^5.0.0", | ||
"@metamask/base-controller": "^4.0.1", | ||
"@metamask/eth-keyring-controller": "^15.1.0", | ||
"@metamask/message-manager": "^7.3.7", | ||
"@metamask/utils": "^8.2.0", | ||
@@ -50,4 +50,5 @@ "async-mutex": "^0.2.6", | ||
"@keystonehq/bc-ur-registry-eth": "^0.9.0", | ||
"@metamask/auto-changelog": "^3.4.3", | ||
"@metamask/eth-sig-util": "^7.0.0", | ||
"@metamask/auto-changelog": "^3.4.4", | ||
"@metamask/eth-sig-util": "^7.0.1", | ||
"@metamask/preferences-controller": "^5.0.1", | ||
"@metamask/scure-bip39": "^2.1.1", | ||
@@ -66,3 +67,3 @@ "@types/jest": "^27.4.1", | ||
"peerDependencies": { | ||
"@metamask/preferences-controller": "^5.0.0" | ||
"@metamask/preferences-controller": "^5.0.1" | ||
}, | ||
@@ -69,0 +70,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149067
10
1315
17
+ Added@noble/hashes@1.6.0(transitive)
+ Added@types/node@22.9.3(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@noble/hashes@1.6.1(transitive)
- Removed@types/node@22.10.0(transitive)
- Removedundici-types@6.20.0(transitive)