@metamask/keyring-api 0.2.5 → 0.2.7
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.
- package/CHANGELOG.md +17 -4
 - package/dist/index.d.ts +3 -2
 - package/dist/index.js +3 -2
 - package/dist/index.js.map +1 -1
 - package/dist/internal/index.d.ts +1 -0
 - package/dist/internal/index.js +1 -0
 - package/dist/internal/index.js.map +1 -1
 - package/package.json +6 -12
 
    
        package/CHANGELOG.md
    CHANGED
    
    | 
         @@ -6,11 +6,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 
     | 
|
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            ## [Unreleased]
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
      
 9 
     | 
    
         
            +
            ## [0.2.7]
         
     | 
| 
      
 10 
     | 
    
         
            +
            ### Added
         
     | 
| 
      
 11 
     | 
    
         
            +
            - Export events types ([#125](https://github.com/MetaMask/keyring-api/pull/125))
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            ## [0.2.6]
         
     | 
| 
      
 14 
     | 
    
         
            +
            ### Changed
         
     | 
| 
      
 15 
     | 
    
         
            +
            - Remove unused lavamoat allowed scripts ([#122](https://github.com/MetaMask/keyring-api/pull/122)).
         
     | 
| 
      
 16 
     | 
    
         
            +
            - Update events in sequence diagram ([#121](https://github.com/MetaMask/keyring-api/pull/121)).
         
     | 
| 
      
 17 
     | 
    
         
            +
            - Update Snap and ESLint dependencies ([#117](https://github.com/MetaMask/keyring-api/pull/117)).
         
     | 
| 
      
 18 
     | 
    
         
            +
            - Bump @metamask/rpc-methods from 0.38.1-flask.1 to 2.0.0 ([#120](https://github.com/MetaMask/keyring-api/pull/120)).
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
       9 
20 
     | 
    
         
             
            ## [0.2.5]
         
     | 
| 
       10 
21 
     | 
    
         
             
            ### Changed
         
     | 
| 
       11 
     | 
    
         
            -
            - Remove `buildHandlersChain` ([#114](https://github.com/MetaMask/keyring-api/pull/114))
         
     | 
| 
       12 
     | 
    
         
            -
            - Update doc for `eth_signTransaction` ([#111](https://github.com/MetaMask/keyring-api/pull/111))
         
     | 
| 
       13 
     | 
    
         
            -
            - Remove un-versioned `eth_signTypedData` method ([#113](https://github.com/MetaMask/keyring-api/pull/113))
         
     | 
| 
      
 22 
     | 
    
         
            +
            - Remove `buildHandlersChain` ([#114](https://github.com/MetaMask/keyring-api/pull/114)).
         
     | 
| 
      
 23 
     | 
    
         
            +
            - Update doc for `eth_signTransaction` ([#111](https://github.com/MetaMask/keyring-api/pull/111)).
         
     | 
| 
      
 24 
     | 
    
         
            +
            - Remove un-versioned `eth_signTypedData` method ([#113](https://github.com/MetaMask/keyring-api/pull/113)).
         
     | 
| 
       14 
25 
     | 
    
         | 
| 
       15 
26 
     | 
    
         
             
            ## [0.2.4]
         
     | 
| 
       16 
27 
     | 
    
         
             
            ### Changed
         
     | 
| 
         @@ -85,7 +96,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 
     | 
|
| 
       85 
96 
     | 
    
         
             
            - SnapController keyring client. It is intended to be used by MetaMask to talk to the snap.
         
     | 
| 
       86 
97 
     | 
    
         
             
            - Helper functions to create keyring handler in the snap.
         
     | 
| 
       87 
98 
     | 
    
         | 
| 
       88 
     | 
    
         
            -
            [Unreleased]: https://github.com/MetaMask/keyring-api/compare/v0.2. 
     | 
| 
      
 99 
     | 
    
         
            +
            [Unreleased]: https://github.com/MetaMask/keyring-api/compare/v0.2.7...HEAD
         
     | 
| 
      
 100 
     | 
    
         
            +
            [0.2.7]: https://github.com/MetaMask/keyring-api/compare/v0.2.6...v0.2.7
         
     | 
| 
      
 101 
     | 
    
         
            +
            [0.2.6]: https://github.com/MetaMask/keyring-api/compare/v0.2.5...v0.2.6
         
     | 
| 
       89 
102 
     | 
    
         
             
            [0.2.5]: https://github.com/MetaMask/keyring-api/compare/v0.2.4...v0.2.5
         
     | 
| 
       90 
103 
     | 
    
         
             
            [0.2.4]: https://github.com/MetaMask/keyring-api/compare/v0.2.3...v0.2.4
         
     | 
| 
       91 
104 
     | 
    
         
             
            [0.2.3]: https://github.com/MetaMask/keyring-api/compare/v0.2.2...v0.2.3
         
     | 
    
        package/dist/index.d.ts
    CHANGED
    
    | 
         @@ -1,8 +1,9 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            export * from './api';
         
     | 
| 
      
 2 
     | 
    
         
            +
            export * from './events';
         
     | 
| 
      
 3 
     | 
    
         
            +
            export * from './internal';
         
     | 
| 
       2 
4 
     | 
    
         
             
            export * from './KeyringClient';
         
     | 
| 
       3 
     | 
    
         
            -
            export * from './rpc-handler';
         
     | 
| 
       4 
5 
     | 
    
         
             
            export * from './KeyringSnapControllerClient';
         
     | 
| 
       5 
6 
     | 
    
         
             
            export * from './KeyringSnapRpcClient';
         
     | 
| 
       6 
     | 
    
         
            -
            export * from './ 
     | 
| 
      
 7 
     | 
    
         
            +
            export * from './rpc-handler';
         
     | 
| 
       7 
8 
     | 
    
         
             
            export * from './snap-utils';
         
     | 
| 
       8 
9 
     | 
    
         
             
            export * from './superstruct';
         
     | 
    
        package/dist/index.js
    CHANGED
    
    | 
         @@ -15,11 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { 
     | 
|
| 
       15 
15 
     | 
    
         
             
            };
         
     | 
| 
       16 
16 
     | 
    
         
             
            Object.defineProperty(exports, "__esModule", { value: true });
         
     | 
| 
       17 
17 
     | 
    
         
             
            __exportStar(require("./api"), exports);
         
     | 
| 
      
 18 
     | 
    
         
            +
            __exportStar(require("./events"), exports);
         
     | 
| 
      
 19 
     | 
    
         
            +
            __exportStar(require("./internal"), exports);
         
     | 
| 
       18 
20 
     | 
    
         
             
            __exportStar(require("./KeyringClient"), exports);
         
     | 
| 
       19 
     | 
    
         
            -
            __exportStar(require("./rpc-handler"), exports);
         
     | 
| 
       20 
21 
     | 
    
         
             
            __exportStar(require("./KeyringSnapControllerClient"), exports);
         
     | 
| 
       21 
22 
     | 
    
         
             
            __exportStar(require("./KeyringSnapRpcClient"), exports);
         
     | 
| 
       22 
     | 
    
         
            -
            __exportStar(require("./ 
     | 
| 
      
 23 
     | 
    
         
            +
            __exportStar(require("./rpc-handler"), exports);
         
     | 
| 
       23 
24 
     | 
    
         
             
            __exportStar(require("./snap-utils"), exports);
         
     | 
| 
       24 
25 
     | 
    
         
             
            __exportStar(require("./superstruct"), exports);
         
     | 
| 
       25 
26 
     | 
    
         
             
            //# sourceMappingURL=index.js.map
         
     | 
    
        package/dist/index.js.map
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,kDAAgC;AAChC, 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB;AACzB,6CAA2B;AAC3B,kDAAgC;AAChC,gEAA8C;AAC9C,yDAAuC;AACvC,gDAA8B;AAC9B,+CAA6B;AAC7B,gDAA8B","sourcesContent":["export * from './api';\nexport * from './events';\nexport * from './internal';\nexport * from './KeyringClient';\nexport * from './KeyringSnapControllerClient';\nexport * from './KeyringSnapRpcClient';\nexport * from './rpc-handler';\nexport * from './snap-utils';\nexport * from './superstruct';\n"]}
         
     | 
    
        package/dist/internal/index.d.ts
    CHANGED
    
    
    
        package/dist/internal/index.js
    CHANGED
    
    | 
         @@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { 
     | 
|
| 
       15 
15 
     | 
    
         
             
            };
         
     | 
| 
       16 
16 
     | 
    
         
             
            Object.defineProperty(exports, "__esModule", { value: true });
         
     | 
| 
       17 
17 
     | 
    
         
             
            __exportStar(require("./api"), exports);
         
     | 
| 
      
 18 
     | 
    
         
            +
            __exportStar(require("./events"), exports);
         
     | 
| 
       18 
19 
     | 
    
         
             
            __exportStar(require("./types"), exports);
         
     | 
| 
       19 
20 
     | 
    
         
             
            //# sourceMappingURL=index.js.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB","sourcesContent":["export * from './api';\nexport * from './types';\n"]}
         
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB;AACzB,0CAAwB","sourcesContent":["export * from './api';\nexport * from './events';\nexport * from './types';\n"]}
         
     | 
    
        package/package.json
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "name": "@metamask/keyring-api",
         
     | 
| 
       3 
     | 
    
         
            -
              "version": "0.2. 
     | 
| 
      
 3 
     | 
    
         
            +
              "version": "0.2.7",
         
     | 
| 
       4 
4 
     | 
    
         
             
              "description": "MetaMask Keyring API",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "keywords": [
         
     | 
| 
       6 
6 
     | 
    
         
             
                "metamask",
         
     | 
| 
         @@ -39,9 +39,9 @@ 
     | 
|
| 
       39 
39 
     | 
    
         
             
              },
         
     | 
| 
       40 
40 
     | 
    
         
             
              "dependencies": {
         
     | 
| 
       41 
41 
     | 
    
         
             
                "@metamask/providers": "^13.0.0",
         
     | 
| 
       42 
     | 
    
         
            -
                "@metamask/rpc-methods": "^0. 
     | 
| 
       43 
     | 
    
         
            -
                "@metamask/snaps-controllers": "^0. 
     | 
| 
       44 
     | 
    
         
            -
                "@metamask/snaps-utils": "^0. 
     | 
| 
      
 42 
     | 
    
         
            +
                "@metamask/rpc-methods": "^2.0.0",
         
     | 
| 
      
 43 
     | 
    
         
            +
                "@metamask/snaps-controllers": "^2.0.0",
         
     | 
| 
      
 44 
     | 
    
         
            +
                "@metamask/snaps-utils": "^2.0.0",
         
     | 
| 
       45 
45 
     | 
    
         
             
                "@metamask/utils": "^8.1.0",
         
     | 
| 
       46 
46 
     | 
    
         
             
                "@types/uuid": "^9.0.1",
         
     | 
| 
       47 
47 
     | 
    
         
             
                "superstruct": "^1.0.3",
         
     | 
| 
         @@ -62,10 +62,10 @@ 
     | 
|
| 
       62 
62 
     | 
    
         
             
                "depcheck": "^1.4.3",
         
     | 
| 
       63 
63 
     | 
    
         
             
                "eslint": "^8.27.0",
         
     | 
| 
       64 
64 
     | 
    
         
             
                "eslint-config-prettier": "^8.5.0",
         
     | 
| 
       65 
     | 
    
         
            -
                "eslint-plugin-import": " 
     | 
| 
      
 65 
     | 
    
         
            +
                "eslint-plugin-import": "~2.26.0",
         
     | 
| 
       66 
66 
     | 
    
         
             
                "eslint-plugin-jest": "^27.1.5",
         
     | 
| 
       67 
67 
     | 
    
         
             
                "eslint-plugin-jsdoc": "^39.6.2",
         
     | 
| 
       68 
     | 
    
         
            -
                "eslint-plugin-n": "^ 
     | 
| 
      
 68 
     | 
    
         
            +
                "eslint-plugin-n": "^15.7.0",
         
     | 
| 
       69 
69 
     | 
    
         
             
                "eslint-plugin-prettier": "^4.2.1",
         
     | 
| 
       70 
70 
     | 
    
         
             
                "eslint-plugin-promise": "^6.1.1",
         
     | 
| 
       71 
71 
     | 
    
         
             
                "jest": "^28.1.3",
         
     | 
| 
         @@ -90,12 +90,6 @@ 
     | 
|
| 
       90 
90 
     | 
    
         
             
              "lavamoat": {
         
     | 
| 
       91 
91 
     | 
    
         
             
                "allowScripts": {
         
     | 
| 
       92 
92 
     | 
    
         
             
                  "@lavamoat/preinstall-always-fail": false,
         
     | 
| 
       93 
     | 
    
         
            -
                  "@metamask/snaps-controllers>@metamask/base-controller>@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>keccak": false,
         
     | 
| 
       94 
     | 
    
         
            -
                  "@metamask/snaps-controllers>@metamask/base-controller>@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>secp256k1": false,
         
     | 
| 
       95 
     | 
    
         
            -
                  "@metamask/snaps-utils>@metamask/base-controller>@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>keccak": false,
         
     | 
| 
       96 
     | 
    
         
            -
                  "@metamask/snaps-utils>@metamask/base-controller>@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>secp256k1": false,
         
     | 
| 
       97 
     | 
    
         
            -
                  "@metamask/snaps-utils>@metamask/permission-controller>@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>keccak": false,
         
     | 
| 
       98 
     | 
    
         
            -
                  "@metamask/snaps-utils>@metamask/permission-controller>@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>secp256k1": false,
         
     | 
| 
       99 
93 
     | 
    
         
             
                  "@metamask/rpc-methods>@metamask/permission-controller>@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>keccak": false,
         
     | 
| 
       100 
94 
     | 
    
         
             
                  "@metamask/rpc-methods>@metamask/permission-controller>@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>secp256k1": false
         
     | 
| 
       101 
95 
     | 
    
         
             
                }
         
     |