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

Commit 52391a2

Browse files
github-actions[bot]github-actionsadonesky1Gudahtt
authored
4.0.2 (#66)
* 4.0.2 Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Alex <adonesky@gmail.com> Co-authored-by: Mark Stacey <markjstacey@gmail.com>
1 parent 21f7fc0 commit 52391a2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [4.0.2]
10+
### Added
11+
- Add parameter validation for constructor / `deserialize` method ([#65](https://github.com/MetaMask/eth-hd-keyring/pull/65))
12+
- As of v4.0.0, the `deserialize` method (which is also called by the constructor) can no longer generate accounts with the `numberOfAccounts` option without a `mnemonic`. Prior to v4.0.0, a mnemonic was generated automatically if it was missing, but we now want to ensure a mnemonic is never implicitly generated without the caller knowing.
13+
914
## [4.0.1]
1015
### Added
1116
- Add tests to get coverage to 100% ([#62](https://github.com/MetaMask/eth-hd-keyring/pull/62))
@@ -22,8 +27,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2227
- We now have an allowlist for all post-install scripts. The standard setup script has been added, along with new contributor documentation in the README to explain this script.
2328
- Obfuscate serialized mnemonic ([#59](https://github.com/MetaMask/eth-hd-keyring/pull/59))
2429
- Class variable `mnemonic` on `HdKeyring` can now be either type `Buffer` or type `string`.
30+
- Deserialize method (and `HdKeyring` constructor by extension) can no longer be passed an options object containing a value for `numberOfAccounts` if it is not also containing a value for `mnemonic`.
2531
- Package name changed from `eth-hd-keyring` to `@metamask/eth-hd-keyring`.
2632

27-
[Unreleased]: https://github.com/MetaMask/eth-hd-keyring/compare/v4.0.1...HEAD
33+
[Unreleased]: https://github.com/MetaMask/eth-hd-keyring/compare/v4.0.2...HEAD
34+
[4.0.2]: https://github.com/MetaMask/eth-hd-keyring/compare/v4.0.1...v4.0.2
2835
[4.0.1]: https://github.com/MetaMask/eth-hd-keyring/compare/v4.0.0...v4.0.1
2936
[4.0.0]: https://github.com/MetaMask/eth-hd-keyring/releases/tag/v4.0.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/eth-hd-keyring",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"description": "A simple standard interface for a seed phrase generated set of Ethereum accounts.",
55
"keywords": [
66
"ethereum",

0 commit comments

Comments
 (0)