@constl/utils-tests 1.6.3 → 1.6.5
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/dist/orbite.js +1 -0
- package/dist/orbite.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +36 -36
- package/renovate.json +14 -0
- package/src/@types/shims-orbitdb-core.d.ts +1 -0
- package/src/orbite.ts +8 -2
- package/src/version.ts +1 -1
- package/src/@types/shims-orbitdb-quickstart.d.ts +0 -1
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.6.
|
|
1
|
+
export declare const version = "1.6.5";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.6.
|
|
2
|
+
"version": "1.6.5",
|
|
3
3
|
"license": "AGPL-3.0-or-later",
|
|
4
4
|
"name": "@constl/utils-tests",
|
|
5
5
|
"author": "Julien Jean Malard-Adam",
|
|
@@ -23,55 +23,55 @@
|
|
|
23
23
|
"@chainsafe/libp2p-gossipsub": "14.1.0",
|
|
24
24
|
"@chainsafe/libp2p-noise": "^16.0.0",
|
|
25
25
|
"@chainsafe/libp2p-yamux": "^7.0.1",
|
|
26
|
-
"@constl/bohr-db": "^1.2.
|
|
27
|
-
"@constl/ipa": "1.4.
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@libp2p/
|
|
31
|
-
"@libp2p/
|
|
32
|
-
"@libp2p/
|
|
33
|
-
"@libp2p/
|
|
34
|
-
"@
|
|
35
|
-
"@multiformats/multiaddr": "^
|
|
36
|
-
"@
|
|
37
|
-
"@orbitdb/feed-db": "^1.1.
|
|
26
|
+
"@constl/bohr-db": "^1.2.1",
|
|
27
|
+
"@constl/ipa": "1.4.4",
|
|
28
|
+
"@eslint/js": "^9.15.0",
|
|
29
|
+
"@libp2p/circuit-relay-v2": "^3.1.3",
|
|
30
|
+
"@libp2p/crypto": "^5.0.7",
|
|
31
|
+
"@libp2p/identify": "^3.0.12",
|
|
32
|
+
"@libp2p/interface": "^2.2.1",
|
|
33
|
+
"@libp2p/websockets": "^9.0.13",
|
|
34
|
+
"@multiformats/multiaddr": "^12.3.3",
|
|
35
|
+
"@multiformats/multiaddr-matcher": "^1.6.0",
|
|
36
|
+
"@orbitdb/core-types": "^1.0.10",
|
|
37
|
+
"@orbitdb/feed-db": "^1.1.1",
|
|
38
38
|
"@types/crypto-js": "^4.2.2",
|
|
39
39
|
"@types/file-saver": "^2.0.7",
|
|
40
|
-
"@types/mocha": "^10.0.
|
|
41
|
-
"@types/node": "^22.
|
|
40
|
+
"@types/mocha": "^10.0.10",
|
|
41
|
+
"@types/node": "^22.10.0",
|
|
42
42
|
"@types/uuid": "^10.0.0",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
44
|
-
"@typescript-eslint/parser": "^8.
|
|
45
|
-
"aegir": "^45.0.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
|
44
|
+
"@typescript-eslint/parser": "^8.16.0",
|
|
45
|
+
"aegir": "^45.0.2",
|
|
46
46
|
"ajv": "^8.17.1",
|
|
47
47
|
"buffer": "^6.0.3",
|
|
48
|
-
"core-js": "^3.
|
|
49
|
-
"electron": "^33.0
|
|
48
|
+
"core-js": "^3.39.0",
|
|
49
|
+
"electron": "^33.2.0",
|
|
50
50
|
"esbuild": "^0.24.0",
|
|
51
|
-
"eslint": "^9.
|
|
51
|
+
"eslint": "^9.15.0",
|
|
52
52
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
53
53
|
"eslint-config-prettier": "^9.1.0",
|
|
54
54
|
"eslint-config-standard": "^17.1.0",
|
|
55
55
|
"eslint-plugin-import": "^2.31.0",
|
|
56
|
-
"eslint-plugin-n": "^17.
|
|
57
|
-
"eslint-plugin-promise": "^7.
|
|
58
|
-
"execa": "^9.5.
|
|
59
|
-
"mocha": "^10.
|
|
60
|
-
"playwright": "^1.
|
|
61
|
-
"prettier": "^3.
|
|
56
|
+
"eslint-plugin-n": "^17.14.0",
|
|
57
|
+
"eslint-plugin-promise": "^7.2.0",
|
|
58
|
+
"execa": "^9.5.1",
|
|
59
|
+
"mocha": "^10.8.2",
|
|
60
|
+
"playwright": "^1.49.0",
|
|
61
|
+
"prettier": "^3.4.0",
|
|
62
62
|
"source-map-support": "^0.5.21",
|
|
63
63
|
"ts-patch": "^3.2.1",
|
|
64
64
|
"tsconfig-paths": "^4.2.0",
|
|
65
65
|
"tscpaths": "^0.0.9",
|
|
66
66
|
"typescript": "5.6.3",
|
|
67
|
-
"typescript-eslint": "^8.
|
|
68
|
-
"typescript-transform-paths": "^3.5.
|
|
67
|
+
"typescript-eslint": "^8.16.0",
|
|
68
|
+
"typescript-transform-paths": "^3.5.2"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@helia/block-brokers": "^4.0.
|
|
72
|
-
"@libp2p/peer-id": "^5.0.
|
|
73
|
-
"@libp2p/webrtc": "^5.0.
|
|
74
|
-
"@orbitdb/core": "^2.3
|
|
71
|
+
"@helia/block-brokers": "^4.0.2",
|
|
72
|
+
"@libp2p/peer-id": "^5.0.8",
|
|
73
|
+
"@libp2p/webrtc": "^5.0.19",
|
|
74
|
+
"@orbitdb/core": "^2.4.3",
|
|
75
75
|
"blockstore-core": "^5.0.2",
|
|
76
76
|
"blockstore-level": "^2.0.1",
|
|
77
77
|
"browserify-fs": "^1.0.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"crypto-browserify": "^3.12.1",
|
|
80
80
|
"events": "^3.3.0",
|
|
81
81
|
"genversion": "^3.2.0",
|
|
82
|
-
"helia": "5.1.
|
|
83
|
-
"libp2p": "^2.
|
|
82
|
+
"helia": "5.1.1",
|
|
83
|
+
"libp2p": "^2.3.1",
|
|
84
84
|
"os-browserify": "^0.3.0",
|
|
85
85
|
"process": "^0.11.10",
|
|
86
86
|
"read-package-up": "^11.0.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"stream-browserify": "^3.0.0",
|
|
89
89
|
"uint8arrays": "^5.1.0",
|
|
90
90
|
"url-polyfill": "^1.1.12",
|
|
91
|
-
"uuid": "^11.0.
|
|
91
|
+
"uuid": "^11.0.3",
|
|
92
92
|
"wherearewe": "^2.0.1"
|
|
93
93
|
},
|
|
94
94
|
"scripts": {
|
package/renovate.json
CHANGED
|
@@ -14,6 +14,20 @@
|
|
|
14
14
|
{
|
|
15
15
|
"matchPackagePatterns": ["^actions/"],
|
|
16
16
|
"automerge": true
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"description": "Regrouper les librairies @constl.",
|
|
20
|
+
"groupName": "Constellation",
|
|
21
|
+
"groupSlug": "constellation-node",
|
|
22
|
+
"matchDatasources": ["npm"],
|
|
23
|
+
"matchPackageNames": ["@constl/**"]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"description": "Regrouper les librairies @libp2p et Helia.",
|
|
27
|
+
"groupName": "Libp2p et Helia",
|
|
28
|
+
"groupSlug": "libp2p-helia-node",
|
|
29
|
+
"matchDatasources": ["npm"],
|
|
30
|
+
"matchPackageNames": ["@libp2p/**", "@chainsafe/**", "libp2p", "helia"]
|
|
17
31
|
}
|
|
18
32
|
]
|
|
19
33
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@orbitdb/core-types";
|
package/src/orbite.ts
CHANGED
|
@@ -26,7 +26,12 @@ SOFTWARE.
|
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
import type { HeliaLibp2p } from "helia";
|
|
29
|
-
import type {
|
|
29
|
+
import type {
|
|
30
|
+
Identity,
|
|
31
|
+
OrbitDB,
|
|
32
|
+
Database,
|
|
33
|
+
IdentitiesType,
|
|
34
|
+
} from "@orbitdb/core";
|
|
30
35
|
import type { TypedKeyValue, TypedFeed, TypedSet } from "@constl/bohr-db";
|
|
31
36
|
import { once } from "events";
|
|
32
37
|
|
|
@@ -51,7 +56,7 @@ const startOrbitDB = async ({
|
|
|
51
56
|
}: {
|
|
52
57
|
id?: string;
|
|
53
58
|
identity?: Identity;
|
|
54
|
-
identities?:
|
|
59
|
+
identities?: IdentitiesType;
|
|
55
60
|
directory?: string;
|
|
56
61
|
} = {}) => {
|
|
57
62
|
const options = isBrowser()
|
|
@@ -78,6 +83,7 @@ const startOrbitDB = async ({
|
|
|
78
83
|
const stopOrbitDB = async (orbitdb: OrbitDB) => {
|
|
79
84
|
await orbitdb.stop();
|
|
80
85
|
await orbitdb.ipfs.stop();
|
|
86
|
+
// @ts-expect-error Je ne sais pas pourquoi
|
|
81
87
|
await orbitdb.ipfs.blockstore.unwrap().unwrap().child.db.close();
|
|
82
88
|
};
|
|
83
89
|
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = "1.6.
|
|
2
|
+
export const version = "1.6.5";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@constl/orbit-db-types";
|