@metamask-previews/keyring-internal-snap-client 9.0.1-ea8175e → 10.0.3-023fc63

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 (4) hide show
  1. package/CHANGELOG.md +47 -6
  2. package/LICENSE +21 -0
  3. package/package.json +47 -30
  4. package/v2.js +3 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Changed
11
+
12
+ - Bump `@metamask/keyring-utils` from `^3.2.0` to `^3.3.1` ([#544](https://github.com/MetaMask/accounts/pull/544), [#546](https://github.com/MetaMask/accounts/pull/546))
13
+ - Bump `@metamask/keyring-api` from `^23.1.0` to `^23.2.0` ([#562](https://github.com/MetaMask/accounts/pull/562))
14
+
15
+ ## [10.0.3]
16
+
17
+ ### Changed
18
+
19
+ - Bump `@metamask/keyring-api` from `^23.0.1` to `^23.1.0` ([#538](https://github.com/MetaMask/accounts/pull/538))
20
+ - Bump `@metamask/keyring-snap-client` from `^9.0.1` to `^9.0.2` ([#538](https://github.com/MetaMask/accounts/pull/538))
21
+ - Bump `@metamask/keyring-internal-api` from `^11.0.0` to `^11.0.1` ([#538](https://github.com/MetaMask/accounts/pull/538))
22
+
23
+ ## [10.0.2]
24
+
25
+ ### Changed
26
+
27
+ - Bump `@metamask/keyring-internal-api` from `^10.1.1` to `^11.0.0` ([#528](https://github.com/MetaMask/accounts/pull/528))
28
+
29
+ ## [10.0.1]
30
+
31
+ ### Changed
32
+
33
+ - Bump `@metamask/keyring-api` from `^23.0.0` to `^23.0.1` ([#518](https://github.com/MetaMask/accounts/pull/518))
34
+ - Bump `@metamask/keyring-internal-api` from `^10.1.0` to `^10.1.1` ([#518](https://github.com/MetaMask/accounts/pull/518))
35
+ - Bump `@metamask/keyring-snap-client` from `^9.0.0` to `^9.0.1` ([#518](https://github.com/MetaMask/accounts/pull/518))
36
+
37
+ ### Fixed
38
+
39
+ - Workaround Browserify subpath export for `/v2` ([#516](https://github.com/MetaMask/accounts/pull/516))
40
+
41
+ ## [10.0.0]
42
+
10
43
  ### Added
11
44
 
12
45
  - Add `KeyringInternalSnapClientV2` class for communicating with a Snap using the keyring v2 RPC protocol ([#408](https://github.com/MetaMask/accounts/pull/408))
@@ -16,6 +49,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
49
  - **BREAKING:** Move and rename `KeyringInternalSnapClientV2` to the new `./v2` subpath export ([#513](https://github.com/MetaMask/accounts/pull/513))
17
50
  - `KeyringInternalSnapClientV2` is now `KeyringInternalSnapClient` from `@metamask/keyring-internal-snap-client/v2`.
18
51
  - Bump `@metamask/messenger` from `^0.3.0` to `^1.1.1` ([#489](https://github.com/MetaMask/accounts/pull/489), [#500](https://github.com/MetaMask/accounts/pull/500))
52
+ - Bump `@metamask/utils` from `^11.1.0` to `^11.11.0` ([#489](https://github.com/MetaMask/accounts/pull/489), [#483](https://github.com/MetaMask/accounts/pull/483))
53
+ - Bump `@metamask/keyring-api` from `^22.0.0` to `^23.0.0` ([#515](https://github.com/MetaMask/accounts/pull/515))
54
+ - Bump `@metamask/keyring-internal-api` from `^10.0.1` to `^10.1.0` ([#515](https://github.com/MetaMask/accounts/pull/515))
55
+ - Bump `@metamask/keyring-snap-client` from `^8.2.1` to `^9.0.0` ([#515](https://github.com/MetaMask/accounts/pull/515))
19
56
 
20
57
  ## [9.0.1]
21
58
 
@@ -34,9 +71,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
34
71
 
35
72
  - **BREAKING:** Bump `@metamask/keyring-internal-api` from `^9.1.2` to `^10.0.0` ([#460](https://github.com/MetaMask/accounts/pull/460))
36
73
  - Bump `@metamask/keyring-api` from `^21.2.0` to `^21.4.0` ([#460](https://github.com/MetaMask/accounts/pull/460))
37
- - Bump `@metamask/snaps-controllers` from `^14.0.1` to `^18.0.0` ([#422](https://github.com/MetaMask/accounts/pull/422)), ([#424](https://github.com/MetaMask/accounts/pull/424)), ([#461](https://github.com/MetaMask/accounts/pull/461))
38
- - Bump `@metamask/snaps-sdk` from `^9.0.0` to `^10.4.0` ([#422](https://github.com/MetaMask/accounts/pull/422)), ([#461](https://github.com/MetaMask/accounts/pull/461))
39
- - Bump `@metamask/snaps-utils` from `^11.0.0` to `^12.1.0` ([#422](https://github.com/MetaMask/accounts/pull/422)), ([#461](https://github.com/MetaMask/accounts/pull/461))
74
+ - Bump `@metamask/snaps-controllers` from `^14.0.1` to `^18.0.0` ([#422](https://github.com/MetaMask/accounts/pull/422), [#424](https://github.com/MetaMask/accounts/pull/424), [#461](https://github.com/MetaMask/accounts/pull/461))
75
+ - Bump `@metamask/snaps-sdk` from `^9.0.0` to `^10.4.0` ([#422](https://github.com/MetaMask/accounts/pull/422), [#461](https://github.com/MetaMask/accounts/pull/461))
76
+ - Bump `@metamask/snaps-utils` from `^11.0.0` to `^12.1.0` ([#422](https://github.com/MetaMask/accounts/pull/422), [#461](https://github.com/MetaMask/accounts/pull/461))
40
77
 
41
78
  ### Removed
42
79
 
@@ -74,7 +111,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
74
111
 
75
112
  ### Changed
76
113
 
77
- - **BREAKING:** Bump `@metamask/keyring-api` from `^20.0.0` to `^21.0.0` ([#355](https://github.com/MetaMask/accounts/pull/355)), ([#356](https://github.com/MetaMask/accounts/pull/356))
114
+ - **BREAKING:** Bump `@metamask/keyring-api` from `^20.0.0` to `^21.0.0` ([#355](https://github.com/MetaMask/accounts/pull/355), [#356](https://github.com/MetaMask/accounts/pull/356))
78
115
 
79
116
  ## [6.0.0]
80
117
 
@@ -108,7 +145,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
108
145
 
109
146
  ### Changed
110
147
 
111
- - Bump `@metamask/keyring-api` from `^17.4.0` to `^18.0.0` ([#277](https://github.com/MetaMask/accounts/pull/277)), ([#288](https://github.com/MetaMask/accounts/pull/288)), ([#291](https://github.com/MetaMask/accounts/pull/291))
148
+ - Bump `@metamask/keyring-api` from `^17.4.0` to `^18.0.0` ([#277](https://github.com/MetaMask/accounts/pull/277), [#288](https://github.com/MetaMask/accounts/pull/288), [#291](https://github.com/MetaMask/accounts/pull/291))
112
149
  - Bump `@metamask/keyring-snap-client` from `^4.1.0` to `^5.0.0` ([#291](https://github.com/MetaMask/accounts/pull/291))
113
150
  - Bump `@metamask/snaps-sdk` dependency from `^6.16.0` to `^7.0.0` ([#291](https://github.com/MetaMask/accounts/pull/291))
114
151
 
@@ -196,7 +233,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
196
233
  - This new version fixes a bug with CJS re-exports.
197
234
  - Initial release ([#24](https://github.com/MetaMask/accounts/pull/24))
198
235
 
199
- [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-snap-client@9.0.1...HEAD
236
+ [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-snap-client@10.0.3...HEAD
237
+ [10.0.3]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-snap-client@10.0.2...@metamask/keyring-internal-snap-client@10.0.3
238
+ [10.0.2]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-snap-client@10.0.1...@metamask/keyring-internal-snap-client@10.0.2
239
+ [10.0.1]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-snap-client@10.0.0...@metamask/keyring-internal-snap-client@10.0.1
240
+ [10.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-snap-client@9.0.1...@metamask/keyring-internal-snap-client@10.0.0
200
241
  [9.0.1]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-snap-client@9.0.0...@metamask/keyring-internal-snap-client@9.0.1
201
242
  [9.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-snap-client@8.0.1...@metamask/keyring-internal-snap-client@9.0.0
202
243
  [8.0.1]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-snap-client@8.0.0...@metamask/keyring-internal-snap-client@8.0.1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MetaMask
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,19 +1,27 @@
1
1
  {
2
2
  "name": "@metamask-previews/keyring-internal-snap-client",
3
- "version": "9.0.1-ea8175e",
3
+ "version": "10.0.3-023fc63",
4
4
  "description": "MetaMask Keyring Snap internal clients",
5
5
  "keywords": [
6
- "metamask",
7
- "keyring"
6
+ "keyring",
7
+ "metamask"
8
8
  ],
9
9
  "homepage": "https://github.com/MetaMask/accounts/tree/main/packages/keyring-internal-snap-client#readme",
10
10
  "bugs": {
11
11
  "url": "https://github.com/MetaMask/accounts/issues"
12
12
  },
13
+ "license": "MIT",
13
14
  "repository": {
14
15
  "type": "git",
15
16
  "url": "https://github.com/MetaMask/accounts.git"
16
17
  },
18
+ "files": [
19
+ "dist/",
20
+ "v2.js"
21
+ ],
22
+ "sideEffects": false,
23
+ "main": "./dist/index.cjs",
24
+ "types": "./dist/index.d.cts",
17
25
  "exports": {
18
26
  ".": {
19
27
  "import": {
@@ -24,41 +32,54 @@
24
32
  "types": "./dist/index.d.cts",
25
33
  "default": "./dist/index.cjs"
26
34
  }
27
- }
35
+ },
36
+ "./v2": {
37
+ "import": {
38
+ "types": "./dist/v2/index.d.mts",
39
+ "default": "./dist/v2/index.mjs"
40
+ },
41
+ "require": {
42
+ "types": "./dist/v2/index.d.cts",
43
+ "default": "./dist/v2/index.cjs"
44
+ }
45
+ },
46
+ "./package.json": "./package.json"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public",
50
+ "registry": "https://registry.npmjs.org/"
28
51
  },
29
- "main": "./dist/index.cjs",
30
- "types": "./dist/index.d.cts",
31
- "files": [
32
- "dist/"
33
- ],
34
52
  "scripts": {
35
- "build": "ts-bridge --project tsconfig.build.json --no-references",
53
+ "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references",
54
+ "build:all": "ts-bridge --project tsconfig.build.json --verbose --clean",
36
55
  "build:clean": "yarn build --clean",
37
56
  "build:docs": "typedoc",
38
57
  "changelog:update": "../../scripts/update-changelog.sh @metamask/keyring-internal-snap-client",
39
58
  "changelog:validate": "../../scripts/validate-changelog.sh @metamask/keyring-internal-snap-client",
40
59
  "publish:preview": "yarn npm publish --tag preview",
60
+ "since-latest-release": "../../scripts/since-latest-release.sh",
41
61
  "test": "yarn test:source && yarn test:types",
42
- "test:clean": "jest --clearCache",
43
- "test:source": "jest && jest-it-up",
62
+ "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
63
+ "test:source": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
44
64
  "test:types": "../../scripts/tsd-test.sh ./src",
45
- "test:watch": "jest --watch"
65
+ "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",
66
+ "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
46
67
  },
47
68
  "dependencies": {
48
- "@metamask/keyring-api": "22.0.0",
49
- "@metamask/keyring-internal-api": "10.0.1",
50
- "@metamask/keyring-snap-client": "8.2.1",
51
- "@metamask/keyring-utils": "3.2.0",
69
+ "@metamask/keyring-api": "23.2.0",
70
+ "@metamask/keyring-internal-api": "11.0.1",
71
+ "@metamask/keyring-snap-client": "9.0.2",
72
+ "@metamask/keyring-utils": "3.3.1",
52
73
  "@metamask/messenger": "^1.1.1"
53
74
  },
54
75
  "devDependencies": {
55
76
  "@lavamoat/allow-scripts": "^3.2.1",
56
77
  "@lavamoat/preinstall-always-fail": "^2.1.0",
57
- "@metamask/auto-changelog": "^3.4.4",
78
+ "@metamask/auto-changelog": "^6.1.0",
58
79
  "@metamask/snaps-controllers": "^19.0.1",
59
80
  "@metamask/snaps-sdk": "^11.0.0",
60
81
  "@metamask/snaps-utils": "^12.1.3",
61
- "@metamask/utils": "^11.10.0",
82
+ "@metamask/utils": "^11.11.0",
62
83
  "@ts-bridge/cli": "^0.6.3",
63
84
  "@types/jest": "^29.5.12",
64
85
  "@types/node": "^20.12.12",
@@ -71,24 +92,20 @@
71
92
  "ts-node": "^10.9.2",
72
93
  "tsd": "^0.31.0",
73
94
  "typedoc": "^0.25.13",
74
- "typescript": "~5.6.3"
95
+ "typescript": "~5.3.3"
96
+ },
97
+ "tsd": {
98
+ "compilerOptions": {
99
+ "composite": "false"
100
+ },
101
+ "directory": "src"
75
102
  },
76
103
  "engines": {
77
104
  "node": "^18.18 || >=20"
78
105
  },
79
- "publishConfig": {
80
- "access": "public",
81
- "registry": "https://registry.npmjs.org/"
82
- },
83
106
  "lavamoat": {
84
107
  "allowScripts": {
85
108
  "@lavamoat/preinstall-always-fail": false
86
109
  }
87
- },
88
- "tsd": {
89
- "directory": "src",
90
- "compilerOptions": {
91
- "composite": "false"
92
- }
93
110
  }
94
111
  }
package/v2.js ADDED
@@ -0,0 +1,3 @@
1
+ // Re-exported for compatibility with Browserify.
2
+ // eslint-disable-next-line
3
+ module.exports = require('./dist/v2/index.cjs');