@metamask-previews/profile-sync-controller 8.0.0-preview-7a21cbc → 8.1.0-preview-e2b3b183
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 +15 -1
- package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.cjs +1 -0
- package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.cjs.map +1 -1
- package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.d.cts.map +1 -1
- package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.d.mts.map +1 -1
- package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.mjs +1 -0
- package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [8.1.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Create RPC middleware using RPC services ([#5290](https://github.com/MetaMask/core/pull/5290))
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Use `KeyringController:withKeyring` for account syncing operations ([#5345](https://github.com/MetaMask/core/pull/5345))
|
|
19
|
+
- Add accounts in bulk during big sync
|
|
20
|
+
- Filter and keep only HD accounts from the primary SRP for all account sync operations
|
|
21
|
+
- Bump `@metamask/keyring-controller` dependency from `^19.1.0` to `^19.2.0` ([#5357](https://github.com/MetaMask/core/pull/5357))
|
|
22
|
+
|
|
10
23
|
## [8.0.0]
|
|
11
24
|
|
|
12
25
|
### Added
|
|
@@ -483,7 +496,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
483
496
|
|
|
484
497
|
- Initial release
|
|
485
498
|
|
|
486
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/profile-sync-controller@8.
|
|
499
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/profile-sync-controller@8.1.0...HEAD
|
|
500
|
+
[8.1.0]: https://github.com/MetaMask/core/compare/@metamask/profile-sync-controller@8.0.0...@metamask/profile-sync-controller@8.1.0
|
|
487
501
|
[8.0.0]: https://github.com/MetaMask/core/compare/@metamask/profile-sync-controller@7.0.1...@metamask/profile-sync-controller@8.0.0
|
|
488
502
|
[7.0.1]: https://github.com/MetaMask/core/compare/@metamask/profile-sync-controller@7.0.0...@metamask/profile-sync-controller@7.0.1
|
|
489
503
|
[7.0.0]: https://github.com/MetaMask/core/compare/@metamask/profile-sync-controller@6.0.0...@metamask/profile-sync-controller@7.0.0
|
|
@@ -37,6 +37,7 @@ const createMockInfuraRpcEndpoint = () => {
|
|
|
37
37
|
type: network_controller_1.RpcEndpointType.Infura,
|
|
38
38
|
networkClientId: 'mainnet',
|
|
39
39
|
url: `https://mainnet.infura.io/v3/{infuraProjectId}`,
|
|
40
|
+
failoverUrls: [],
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
43
|
exports.createMockInfuraRpcEndpoint = createMockInfuraRpcEndpoint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockNetwork.cjs","sourceRoot":"","sources":["../../../../../src/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.ts"],"names":[],"mappings":";;;AACA,qEAA+D;AAMxD,MAAM,8BAA8B,GAAG,CAC5C,QAAwC,EAClB,EAAE;IACxB,OAAO;QACL,OAAO,EAAE,QAAQ;QACjB,iBAAiB,EAAE,CAAC,sBAAsB,CAAC;QAC3C,uBAAuB,EAAE,CAAC;QAC1B,IAAI,EAAE,cAAc;QACpB,cAAc,EAAE,YAAY;QAC5B,YAAY,EAAE,EAAE;QAChB,4BAA4B,EAAE,CAAC;QAC/B,GAAG,QAAQ;KACZ,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,8BAA8B,kCAazC;AAEK,MAAM,oCAAoC,GAAG,CAClD,QAA8C,EAClB,EAAE;IAC9B,OAAO;QACL,CAAC,EAAE,GAAG;QACN,GAAG,IAAA,sCAA8B,GAAE;QACnC,GAAG,QAAQ;KACZ,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,oCAAoC,wCAQ/C;AAEK,MAAM,2BAA2B,GAAG,CACzC,QAAyE,EAC5D,EAAE;IACf,OAAO;QACL,IAAI,EAAE,oCAAe,CAAC,MAAM;QAC5B,eAAe,EAAE,gBAAgB;QACjC,GAAG,EAAE,mBAAmB;QACxB,GAAG,QAAQ;KACG,CAAC;AACnB,CAAC,CAAC;AATW,QAAA,2BAA2B,+BAStC;AAEK,MAAM,2BAA2B,GAAG,GAAgB,EAAE;IAC3D,OAAO;QACL,IAAI,EAAE,oCAAe,CAAC,MAAM;QAC5B,eAAe,EAAE,SAAS;QAC1B,GAAG,EAAE,gDAAgD;
|
|
1
|
+
{"version":3,"file":"mockNetwork.cjs","sourceRoot":"","sources":["../../../../../src/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.ts"],"names":[],"mappings":";;;AACA,qEAA+D;AAMxD,MAAM,8BAA8B,GAAG,CAC5C,QAAwC,EAClB,EAAE;IACxB,OAAO;QACL,OAAO,EAAE,QAAQ;QACjB,iBAAiB,EAAE,CAAC,sBAAsB,CAAC;QAC3C,uBAAuB,EAAE,CAAC;QAC1B,IAAI,EAAE,cAAc;QACpB,cAAc,EAAE,YAAY;QAC5B,YAAY,EAAE,EAAE;QAChB,4BAA4B,EAAE,CAAC;QAC/B,GAAG,QAAQ;KACZ,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,8BAA8B,kCAazC;AAEK,MAAM,oCAAoC,GAAG,CAClD,QAA8C,EAClB,EAAE;IAC9B,OAAO;QACL,CAAC,EAAE,GAAG;QACN,GAAG,IAAA,sCAA8B,GAAE;QACnC,GAAG,QAAQ;KACZ,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,oCAAoC,wCAQ/C;AAEK,MAAM,2BAA2B,GAAG,CACzC,QAAyE,EAC5D,EAAE;IACf,OAAO;QACL,IAAI,EAAE,oCAAe,CAAC,MAAM;QAC5B,eAAe,EAAE,gBAAgB;QACjC,GAAG,EAAE,mBAAmB;QACxB,GAAG,QAAQ;KACG,CAAC;AACnB,CAAC,CAAC;AATW,QAAA,2BAA2B,+BAStC;AAEK,MAAM,2BAA2B,GAAG,GAAgB,EAAE;IAC3D,OAAO;QACL,IAAI,EAAE,oCAAe,CAAC,MAAM;QAC5B,eAAe,EAAE,SAAS;QAC1B,GAAG,EAAE,gDAAgD;QACrD,YAAY,EAAE,EAAE;KACjB,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,2BAA2B,+BAOtC","sourcesContent":["import type { NetworkConfiguration } from '@metamask/network-controller';\nimport { RpcEndpointType } from '@metamask/network-controller';\n\nimport type { RemoteNetworkConfiguration } from '../types';\n\nexport type RPCEndpoint = NetworkConfiguration['rpcEndpoints'][number];\n\nexport const createMockNetworkConfiguration = (\n override?: Partial<NetworkConfiguration>,\n): NetworkConfiguration => {\n return {\n chainId: '0x1337',\n blockExplorerUrls: ['https://etherscan.io'],\n defaultRpcEndpointIndex: 0,\n name: 'Mock Network',\n nativeCurrency: 'MOCK TOKEN',\n rpcEndpoints: [],\n defaultBlockExplorerUrlIndex: 0,\n ...override,\n };\n};\n\nexport const createMockRemoteNetworkConfiguration = (\n override?: Partial<RemoteNetworkConfiguration>,\n): RemoteNetworkConfiguration => {\n return {\n v: '1',\n ...createMockNetworkConfiguration(),\n ...override,\n };\n};\n\nexport const createMockCustomRpcEndpoint = (\n override: Partial<Extract<RPCEndpoint, { type: RpcEndpointType.Custom }>>,\n): RPCEndpoint => {\n return {\n type: RpcEndpointType.Custom,\n networkClientId: '1111-1111-1111',\n url: `https://FAKE_RPC/`,\n ...override,\n } as RPCEndpoint;\n};\n\nexport const createMockInfuraRpcEndpoint = (): RPCEndpoint => {\n return {\n type: RpcEndpointType.Infura,\n networkClientId: 'mainnet',\n url: `https://mainnet.infura.io/v3/{infuraProjectId}`,\n failoverUrls: [],\n };\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockNetwork.d.cts","sourceRoot":"","sources":["../../../../../src/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,qCAAqC;AACzE,OAAO,EAAE,eAAe,EAAE,qCAAqC;AAE/D,OAAO,KAAK,EAAE,0BAA0B,EAAE,qBAAiB;AAE3D,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvE,eAAO,MAAM,8BAA8B,cAC9B,QAAQ,oBAAoB,CAAC,KACvC,oBAWF,CAAC;AAEF,eAAO,MAAM,oCAAoC,cACpC,QAAQ,0BAA0B,CAAC,KAC7C,0BAMF,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAC5B,QAAQ,QAAQ,WAAW,EAAE;IAAE,IAAI,EAAE,gBAAgB,MAAM,CAAA;CAAE,CAAC,CAAC,KACxE,WAOF,CAAC;AAEF,eAAO,MAAM,2BAA2B,QAAO,
|
|
1
|
+
{"version":3,"file":"mockNetwork.d.cts","sourceRoot":"","sources":["../../../../../src/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,qCAAqC;AACzE,OAAO,EAAE,eAAe,EAAE,qCAAqC;AAE/D,OAAO,KAAK,EAAE,0BAA0B,EAAE,qBAAiB;AAE3D,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvE,eAAO,MAAM,8BAA8B,cAC9B,QAAQ,oBAAoB,CAAC,KACvC,oBAWF,CAAC;AAEF,eAAO,MAAM,oCAAoC,cACpC,QAAQ,0BAA0B,CAAC,KAC7C,0BAMF,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAC5B,QAAQ,QAAQ,WAAW,EAAE;IAAE,IAAI,EAAE,gBAAgB,MAAM,CAAA;CAAE,CAAC,CAAC,KACxE,WAOF,CAAC;AAEF,eAAO,MAAM,2BAA2B,QAAO,WAO9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockNetwork.d.mts","sourceRoot":"","sources":["../../../../../src/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,qCAAqC;AACzE,OAAO,EAAE,eAAe,EAAE,qCAAqC;AAE/D,OAAO,KAAK,EAAE,0BAA0B,EAAE,qBAAiB;AAE3D,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvE,eAAO,MAAM,8BAA8B,cAC9B,QAAQ,oBAAoB,CAAC,KACvC,oBAWF,CAAC;AAEF,eAAO,MAAM,oCAAoC,cACpC,QAAQ,0BAA0B,CAAC,KAC7C,0BAMF,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAC5B,QAAQ,QAAQ,WAAW,EAAE;IAAE,IAAI,EAAE,gBAAgB,MAAM,CAAA;CAAE,CAAC,CAAC,KACxE,WAOF,CAAC;AAEF,eAAO,MAAM,2BAA2B,QAAO,
|
|
1
|
+
{"version":3,"file":"mockNetwork.d.mts","sourceRoot":"","sources":["../../../../../src/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,qCAAqC;AACzE,OAAO,EAAE,eAAe,EAAE,qCAAqC;AAE/D,OAAO,KAAK,EAAE,0BAA0B,EAAE,qBAAiB;AAE3D,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvE,eAAO,MAAM,8BAA8B,cAC9B,QAAQ,oBAAoB,CAAC,KACvC,oBAWF,CAAC;AAEF,eAAO,MAAM,oCAAoC,cACpC,QAAQ,0BAA0B,CAAC,KAC7C,0BAMF,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAC5B,QAAQ,QAAQ,WAAW,EAAE;IAAE,IAAI,EAAE,gBAAgB,MAAM,CAAA;CAAE,CAAC,CAAC,KACxE,WAOF,CAAC;AAEF,eAAO,MAAM,2BAA2B,QAAO,WAO9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockNetwork.mjs","sourceRoot":"","sources":["../../../../../src/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,qCAAqC;AAM/D,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC5C,QAAwC,EAClB,EAAE;IACxB,OAAO;QACL,OAAO,EAAE,QAAQ;QACjB,iBAAiB,EAAE,CAAC,sBAAsB,CAAC;QAC3C,uBAAuB,EAAE,CAAC;QAC1B,IAAI,EAAE,cAAc;QACpB,cAAc,EAAE,YAAY;QAC5B,YAAY,EAAE,EAAE;QAChB,4BAA4B,EAAE,CAAC;QAC/B,GAAG,QAAQ;KACZ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,QAA8C,EAClB,EAAE;IAC9B,OAAO;QACL,CAAC,EAAE,GAAG;QACN,GAAG,8BAA8B,EAAE;QACnC,GAAG,QAAQ;KACZ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,QAAyE,EAC5D,EAAE;IACf,OAAO;QACL,IAAI,EAAE,eAAe,CAAC,MAAM;QAC5B,eAAe,EAAE,gBAAgB;QACjC,GAAG,EAAE,mBAAmB;QACxB,GAAG,QAAQ;KACG,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAgB,EAAE;IAC3D,OAAO;QACL,IAAI,EAAE,eAAe,CAAC,MAAM;QAC5B,eAAe,EAAE,SAAS;QAC1B,GAAG,EAAE,gDAAgD;
|
|
1
|
+
{"version":3,"file":"mockNetwork.mjs","sourceRoot":"","sources":["../../../../../src/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,qCAAqC;AAM/D,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC5C,QAAwC,EAClB,EAAE;IACxB,OAAO;QACL,OAAO,EAAE,QAAQ;QACjB,iBAAiB,EAAE,CAAC,sBAAsB,CAAC;QAC3C,uBAAuB,EAAE,CAAC;QAC1B,IAAI,EAAE,cAAc;QACpB,cAAc,EAAE,YAAY;QAC5B,YAAY,EAAE,EAAE;QAChB,4BAA4B,EAAE,CAAC;QAC/B,GAAG,QAAQ;KACZ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,QAA8C,EAClB,EAAE;IAC9B,OAAO;QACL,CAAC,EAAE,GAAG;QACN,GAAG,8BAA8B,EAAE;QACnC,GAAG,QAAQ;KACZ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,QAAyE,EAC5D,EAAE;IACf,OAAO;QACL,IAAI,EAAE,eAAe,CAAC,MAAM;QAC5B,eAAe,EAAE,gBAAgB;QACjC,GAAG,EAAE,mBAAmB;QACxB,GAAG,QAAQ;KACG,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAgB,EAAE;IAC3D,OAAO;QACL,IAAI,EAAE,eAAe,CAAC,MAAM;QAC5B,eAAe,EAAE,SAAS;QAC1B,GAAG,EAAE,gDAAgD;QACrD,YAAY,EAAE,EAAE;KACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { NetworkConfiguration } from '@metamask/network-controller';\nimport { RpcEndpointType } from '@metamask/network-controller';\n\nimport type { RemoteNetworkConfiguration } from '../types';\n\nexport type RPCEndpoint = NetworkConfiguration['rpcEndpoints'][number];\n\nexport const createMockNetworkConfiguration = (\n override?: Partial<NetworkConfiguration>,\n): NetworkConfiguration => {\n return {\n chainId: '0x1337',\n blockExplorerUrls: ['https://etherscan.io'],\n defaultRpcEndpointIndex: 0,\n name: 'Mock Network',\n nativeCurrency: 'MOCK TOKEN',\n rpcEndpoints: [],\n defaultBlockExplorerUrlIndex: 0,\n ...override,\n };\n};\n\nexport const createMockRemoteNetworkConfiguration = (\n override?: Partial<RemoteNetworkConfiguration>,\n): RemoteNetworkConfiguration => {\n return {\n v: '1',\n ...createMockNetworkConfiguration(),\n ...override,\n };\n};\n\nexport const createMockCustomRpcEndpoint = (\n override: Partial<Extract<RPCEndpoint, { type: RpcEndpointType.Custom }>>,\n): RPCEndpoint => {\n return {\n type: RpcEndpointType.Custom,\n networkClientId: '1111-1111-1111',\n url: `https://FAKE_RPC/`,\n ...override,\n } as RPCEndpoint;\n};\n\nexport const createMockInfuraRpcEndpoint = (): RPCEndpoint => {\n return {\n type: RpcEndpointType.Infura,\n networkClientId: 'mainnet',\n url: `https://mainnet.infura.io/v3/{infuraProjectId}`,\n failoverUrls: [],\n };\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/profile-sync-controller",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.0-preview-e2b3b183",
|
|
4
4
|
"description": "The profile sync helps developers synchronize data across multiple clients and devices in a privacy-preserving way. All data saved in the user storage database is encrypted client-side to preserve privacy. The user storage provides a modular design, giving developers the flexibility to construct and manage their storage spaces in a way that best suits their needs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@metamask/base-controller": "^8.0.0",
|
|
104
104
|
"@metamask/keyring-api": "^17.0.0",
|
|
105
|
-
"@metamask/keyring-controller": "^19.
|
|
105
|
+
"@metamask/keyring-controller": "^19.2.0",
|
|
106
106
|
"@metamask/network-controller": "^22.2.1",
|
|
107
107
|
"@metamask/snaps-sdk": "^6.17.1",
|
|
108
108
|
"@metamask/snaps-utils": "^8.10.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@lavamoat/preinstall-always-fail": "^2.1.0",
|
|
118
118
|
"@metamask/accounts-controller": "^24.0.0",
|
|
119
119
|
"@metamask/auto-changelog": "^3.4.4",
|
|
120
|
-
"@metamask/keyring-internal-api": "^4.0.
|
|
120
|
+
"@metamask/keyring-internal-api": "^4.0.2",
|
|
121
121
|
"@metamask/providers": "^18.1.1",
|
|
122
122
|
"@metamask/snaps-controllers": "^9.19.0",
|
|
123
123
|
"@types/jest": "^27.4.1",
|