@metamask-previews/keyring-internal-snap-client 9.0.1-ea8175e → 10.0.1-7275dbc

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 +21 -1
  2. package/LICENSE +21 -0
  3. package/package.json +45 -28
  4. package/v2.js +3 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [10.0.1]
11
+
12
+ ### Changed
13
+
14
+ - Bump `@metamask/keyring-api` from `^23.0.0` to `^23.0.1` ([#518](https://github.com/MetaMask/accounts/pull/518))
15
+ - Bump `@metamask/keyring-internal-api` from `^10.1.0` to `^10.1.1` ([#518](https://github.com/MetaMask/accounts/pull/518))
16
+ - Bump `@metamask/keyring-snap-client` from `^9.0.0` to `^9.0.1` ([#518](https://github.com/MetaMask/accounts/pull/518))
17
+
18
+ ### Fixed
19
+
20
+ - Workaround Browserify subpath export for `/v2` ([#516](https://github.com/MetaMask/accounts/pull/516))
21
+
22
+ ## [10.0.0]
23
+
10
24
  ### Added
11
25
 
12
26
  - Add `KeyringInternalSnapClientV2` class for communicating with a Snap using the keyring v2 RPC protocol ([#408](https://github.com/MetaMask/accounts/pull/408))
@@ -16,6 +30,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
30
  - **BREAKING:** Move and rename `KeyringInternalSnapClientV2` to the new `./v2` subpath export ([#513](https://github.com/MetaMask/accounts/pull/513))
17
31
  - `KeyringInternalSnapClientV2` is now `KeyringInternalSnapClient` from `@metamask/keyring-internal-snap-client/v2`.
18
32
  - 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))
33
+ - 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))
34
+ - Bump `@metamask/keyring-api` from `^22.0.0` to `^23.0.0` ([#515](https://github.com/MetaMask/accounts/pull/515))
35
+ - Bump `@metamask/keyring-internal-api` from `^10.0.1` to `^10.1.0` ([#515](https://github.com/MetaMask/accounts/pull/515))
36
+ - Bump `@metamask/keyring-snap-client` from `^8.2.1` to `^9.0.0` ([#515](https://github.com/MetaMask/accounts/pull/515))
19
37
 
20
38
  ## [9.0.1]
21
39
 
@@ -196,7 +214,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
196
214
  - This new version fixes a bug with CJS re-exports.
197
215
  - Initial release ([#24](https://github.com/MetaMask/accounts/pull/24))
198
216
 
199
- [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-snap-client@9.0.1...HEAD
217
+ [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-snap-client@10.0.1...HEAD
218
+ [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
219
+ [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
220
  [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
221
  [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
222
  [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.1-7275dbc",
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",
69
+ "@metamask/keyring-api": "23.0.1",
70
+ "@metamask/keyring-internal-api": "10.1.1",
71
+ "@metamask/keyring-snap-client": "9.0.1",
51
72
  "@metamask/keyring-utils": "3.2.0",
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",
@@ -73,22 +94,18 @@
73
94
  "typedoc": "^0.25.13",
74
95
  "typescript": "~5.6.3"
75
96
  },
97
+ "tsd": {
98
+ "compilerOptions": {
99
+ "composite": "false"
100
+ },
101
+ "directory": "src"
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');