@metamask/eth-simple-keyring 6.0.1 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +40 -11
  2. package/package.json +12 -26
package/CHANGELOG.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Changelog
2
+
2
3
  All notable changes to this project will be documented in this file.
3
4
 
4
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
@@ -6,47 +7,75 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
7
 
7
8
  ## [Unreleased]
8
9
 
10
+ ## [6.0.3]
11
+
12
+ ### Changed
13
+
14
+ - Convert to monorepo
15
+ - Package name does not change (`@metamask/eth-simple-keyring`) and sources have been moved to: `packages/keyring-eth-simple`.
16
+ - You can find all the changes [here](https://github.com/MetaMask/accounts/compare/6da58b4...38794aa).
17
+
18
+ ## [6.0.2]
19
+
20
+ ### Changed
21
+
22
+ - Bump `@metamask/utils` from `^8.1.0` to `^9.0.0` ([#177](https://github.com/MetaMask/eth-simple-keyring/pull/177))
23
+
9
24
  ## [6.0.1]
25
+
10
26
  ### Fixed
27
+
11
28
  - Treat `undefined` and `null` as empty array in deserialize function ([#163](https://github.com/MetaMask/eth-simple-keyring/pull/163))
12
29
 
13
30
  ## [6.0.0]
31
+
14
32
  ### Changed
33
+
15
34
  - **BREAKING**: Increase minimum Node.js version to 16 ([#152](https://github.com/MetaMask/eth-simple-keyring/pull/152))
16
35
  - **BREAKING**: Bump @metamask/eth-sig-util from ^6.0.1 to ^7.0.0 ([#156](https://github.com/MetaMask/eth-simple-keyring/pull/156))
17
36
  - Bump @metamask/utils from ^5.0.0 to ^8.1.0 ([#153](https://github.com/MetaMask/eth-simple-keyring/pull/153))
18
37
  - Bump ethereum-cryptography from ^1.2.0 to ^2.1.2 ([#153](https://github.com/MetaMask/eth-simple-keyring/pull/153))
19
38
 
20
39
  ## [5.1.1]
40
+
21
41
  ### Fixed
42
+
22
43
  - Treat `undefined` and `null` as empty array in deserialize function ([#166](https://github.com/MetaMask/eth-simple-keyring/pull/166))
23
44
 
24
45
  ## [5.1.0]
46
+
25
47
  ### Changed
48
+
26
49
  - Export TypeScript interfaces ([#140](https://github.com/MetaMask/eth-simple-keyring/pull/140))
27
50
  - Update all dependencies ([#140](https://github.com/MetaMask/eth-simple-keyring/pull/140)) ([#149](https://github.com/MetaMask/eth-simple-keyring/pull/149))
28
51
 
29
52
  ### Fixed
53
+
30
54
  - Add `validateMessage` option to `signMessage` to configure if runtime-validation should be done that input string is hex (default: `true`) ([#148](https://github.com/MetaMask/eth-simple-keyring/pull/148))
31
55
 
32
56
  ## [5.0.0]
57
+
33
58
  ### Changed
59
+
34
60
  - **BREAKING:** Makes version-specific `signTypedData` methods private ([#84](https://github.com/MetaMask/eth-simple-keyring/pull/84))
35
- - Consumers should use the generic `signTypedData` method and pass the version they'd like as a property in the options argument.
61
+ - Consumers should use the generic `signTypedData` method and pass the version they'd like as a property in the options argument.
36
62
  - **BREAKING:** Makes the `wallets` property private ([#87](https://github.com/MetaMask/eth-simple-keyring/pull/87))
37
- - Consumers should not use this property as it is intended for internal use only.
63
+ - Consumers should not use this property as it is intended for internal use only.
38
64
  - **BREAKING:** Makes `getPrivateKeyFor` a private method ([#83](https://github.com/MetaMask/eth-simple-keyring/pull/83))
39
- - Consumers who wish to get the private key for a given account should use the `exportAccount` method.
65
+ - Consumers who wish to get the private key for a given account should use the `exportAccount` method.
40
66
  - **BREAKING:** Set the minimum Node.js version to 14 ([#68](https://github.com/MetaMask/eth-simple-keyring/pull/68)) ([#109](https://github.com/MetaMask/eth-simple-keyring/pull/109))
41
67
  - Always return rejected Promise upon failure ([#85](https://github.com/MetaMask/eth-simple-keyring/pull/85))
42
68
 
43
69
  ### Removed
70
+
44
71
  - **BREAKING:** Remove redundant `newGethSignMessage` method ([#72](https://github.com/MetaMask/eth-simple-keyring/pull/72))
45
- - Consumers can use `signPersonalMessage` method as a replacement for `newGethSignMessage`.
46
-
47
- [Unreleased]: https://github.com/MetaMask/eth-simple-keyring/compare/v6.0.1...HEAD
48
- [6.0.1]: https://github.com/MetaMask/eth-simple-keyring/compare/v6.0.0...v6.0.1
49
- [6.0.0]: https://github.com/MetaMask/eth-simple-keyring/compare/v5.1.1...v6.0.0
50
- [5.1.1]: https://github.com/MetaMask/eth-simple-keyring/compare/v5.1.0...v5.1.1
51
- [5.1.0]: https://github.com/MetaMask/eth-simple-keyring/compare/v5.0.0...v5.1.0
52
- [5.0.0]: https://github.com/MetaMask/eth-simple-keyring/releases/tag/v5.0.0
72
+ - Consumers can use `signPersonalMessage` method as a replacement for `newGethSignMessage`.
73
+
74
+ [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/eth-simple-keyring@6.0.3...HEAD
75
+ [6.0.3]: https://github.com/MetaMask/accounts/compare/@metamask/eth-simple-keyring@6.0.2...@metamask/eth-simple-keyring@6.0.3
76
+ [6.0.2]: https://github.com/MetaMask/accounts/compare/@metamask/eth-simple-keyring@6.0.1...@metamask/eth-simple-keyring@6.0.2
77
+ [6.0.1]: https://github.com/MetaMask/accounts/compare/@metamask/eth-simple-keyring@6.0.0...@metamask/eth-simple-keyring@6.0.1
78
+ [6.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/eth-simple-keyring@5.1.1...@metamask/eth-simple-keyring@6.0.0
79
+ [5.1.1]: https://github.com/MetaMask/accounts/compare/@metamask/eth-simple-keyring@5.1.0...@metamask/eth-simple-keyring@5.1.1
80
+ [5.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/eth-simple-keyring@5.0.0...@metamask/eth-simple-keyring@5.1.0
81
+ [5.0.0]: https://github.com/MetaMask/accounts/releases/tag/@metamask/eth-simple-keyring@5.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/eth-simple-keyring",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
4
4
  "description": "A simple standard interface for a series of Ethereum private keys.",
5
5
  "keywords": [
6
6
  "ethereum",
@@ -20,59 +20,45 @@
20
20
  "dist/"
21
21
  ],
22
22
  "scripts": {
23
- "build": "tsc --project tsconfig.build.json",
23
+ "build": "tsc --build tsconfig.build.json",
24
24
  "build:clean": "rimraf dist && yarn build",
25
25
  "build:docs": "typedoc",
26
- "lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:dependencies",
27
- "lint:dependencies": "depcheck",
28
- "lint:eslint": "eslint . --cache --ext js,ts",
29
- "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
30
- "lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern",
31
- "prepack": "./scripts/prepack.sh",
26
+ "build:force": "tsc --build tsconfig.build.json --force",
27
+ "changelog:update": "../../scripts/update-changelog.sh @metamask/eth-simple-keyring",
28
+ "changelog:validate": "../../scripts/validate-changelog.sh @metamask/eth-simple-keyring",
29
+ "publish:preview": "yarn npm publish --tag preview",
32
30
  "sample": "ts-node src/sample.ts",
33
31
  "test": "jest",
32
+ "test:clean": "jest --clearCache",
33
+ "test:verbose": "jest --verbose",
34
34
  "test:watch": "jest --watch"
35
35
  },
36
36
  "dependencies": {
37
37
  "@ethereumjs/util": "^8.1.0",
38
38
  "@metamask/eth-sig-util": "^7.0.0",
39
- "@metamask/utils": "^8.1.0",
39
+ "@metamask/utils": "^9.0.0",
40
+ "deepmerge": "^4.2.2",
40
41
  "ethereum-cryptography": "^2.1.2",
41
42
  "randombytes": "^2.1.0"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@ethereumjs/tx": "^4.1.1",
45
- "@lavamoat/allow-scripts": "^3.0.0",
46
+ "@lavamoat/allow-scripts": "^3.0.4",
46
47
  "@metamask/auto-changelog": "^3.1.0",
47
- "@metamask/eslint-config": "^11.1.0",
48
- "@metamask/eslint-config-jest": "^11.1.0",
49
- "@metamask/eslint-config-nodejs": "^11.1.0",
50
- "@metamask/eslint-config-typescript": "^11.1.0",
51
48
  "@types/ethereumjs-tx": "^1.0.1",
52
49
  "@types/jest": "^29.5.0",
53
50
  "@types/node": "^18.15.10",
54
51
  "@types/randombytes": "^2.0.0",
55
- "@typescript-eslint/eslint-plugin": "^5.57.0",
56
- "@typescript-eslint/parser": "^5.57.0",
57
52
  "depcheck": "^1.4.3",
58
- "eslint": "^8.36.0",
59
- "eslint-config-prettier": "^8.8.0",
60
- "eslint-plugin-import": "^2.27.5",
61
- "eslint-plugin-jest": "^27.2.1",
62
- "eslint-plugin-jsdoc": "^39.6.2",
63
- "eslint-plugin-node": "^11.1.0",
64
- "eslint-plugin-prettier": "^4.2.1",
65
53
  "ethereumjs-tx": "^1.3.7",
66
54
  "jest": "^29.5.0",
67
- "prettier": "^2.8.7",
68
55
  "ts-jest": "^29.0.5",
69
56
  "ts-node": "^10.9.1",
70
57
  "typedoc": "^0.25.1",
71
58
  "typescript": "~4.8.4"
72
59
  },
73
- "packageManager": "yarn@3.3.0",
74
60
  "engines": {
75
- "node": "^16.20 || ^18.16 || >=20"
61
+ "node": "^18.18 || >=20"
76
62
  },
77
63
  "publishConfig": {
78
64
  "access": "public",