@constl/utils-tests 1.6.2 → 1.6.4

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/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.6.2";
1
+ export declare const version = "1.6.4";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = "1.6.2";
2
+ export const version = "1.6.4";
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.6.2",
2
+ "version": "1.6.4",
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.0",
27
- "@constl/ipa": "1.3.0",
28
- "@constl/orbit-db-types": "^2.0.6",
29
- "@eslint/js": "^9.13.0",
30
- "@libp2p/circuit-relay-v2": "^3.1.0",
31
- "@libp2p/crypto": "^5.0.6",
32
- "@libp2p/identify": "^3.0.10",
33
- "@libp2p/interface": "^2.2.0",
34
- "@libp2p/websockets": "^9.0.10",
35
- "@multiformats/multiaddr": "^12.3.1",
36
- "@multiformats/multiaddr-matcher": "^1.3.0",
37
- "@orbitdb/feed-db": "^1.1.0",
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.9",
41
- "@types/node": "^22.8.1",
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.11.0",
44
- "@typescript-eslint/parser": "^8.11.0",
45
- "aegir": "^45.0.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.38.1",
49
- "electron": "^33.0.2",
48
+ "core-js": "^3.39.0",
49
+ "electron": "^33.2.0",
50
50
  "esbuild": "^0.24.0",
51
- "eslint": "^9.13.0",
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.11.1",
57
- "eslint-plugin-promise": "^7.1.0",
58
- "execa": "^9.5.0",
59
- "mocha": "^10.7.3",
60
- "playwright": "^1.48.2",
61
- "prettier": "^3.3.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
- "typescript": "5.5.4",
67
- "typescript-eslint": "^8.11.0",
68
- "typescript-transform-paths": "^3.5.1"
66
+ "typescript": "5.6.3",
67
+ "typescript-eslint": "^8.16.0",
68
+ "typescript-transform-paths": "^3.5.2"
69
69
  },
70
70
  "dependencies": {
71
- "@helia/block-brokers": "^4.0.1",
72
- "@libp2p/peer-id": "^5.0.7",
73
- "@libp2p/webrtc": "^5.0.15",
74
- "@orbitdb/core": "^2.3.0",
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.0",
83
- "libp2p": "^2.2.0",
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.1",
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/config.ts CHANGED
@@ -53,6 +53,8 @@ export const obtConfigEsbuild = async (): Promise<BuildOptions> => {
53
53
  "env-paths",
54
54
  "@libp2p/tcp",
55
55
  "@libp2p/mdns",
56
+ "datastore-fs",
57
+ "blockstore-fs",
56
58
  ],
57
59
  };
58
60
  return configEsbuild;
package/src/orbite.ts CHANGED
@@ -26,7 +26,12 @@ SOFTWARE.
26
26
  */
27
27
 
28
28
  import type { HeliaLibp2p } from "helia";
29
- import type { Identities, Identity, OrbitDB, Database } from "@orbitdb/core";
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?: typeof Identities;
59
+ identities?: IdentitiesType;
55
60
  directory?: string;
56
61
  } = {}) => {
57
62
  const options = isBrowser()
@@ -78,7 +83,7 @@ const startOrbitDB = async ({
78
83
  const stopOrbitDB = async (orbitdb: OrbitDB) => {
79
84
  await orbitdb.stop();
80
85
  await orbitdb.ipfs.stop();
81
- await orbitdb.ipfs.blockstore.unwrap().unwrap().child.db.close();
86
+ // await orbitdb.ipfs.blockstore.unwrap().unwrap().child.db.close();
82
87
  };
83
88
 
84
89
  export const créerOrbiteTest = async ({
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = "1.6.2";
2
+ export const version = "1.6.4";
@@ -1 +0,0 @@
1
- export * from "@constl/orbit-db-types";