falkordb 6.2.7 → 6.3.0

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.
@@ -47,7 +47,17 @@ class Cluster {
47
47
  return this.#client.falkordb.explain(graph, query);
48
48
  }
49
49
  async list() {
50
- return this.#client.falkordb.list();
50
+ const reply = await Promise.all(this.#client.masters.map(async (master) => {
51
+ return (await this.#client.nodeClient(master)).falkordb.list();
52
+ }));
53
+ const [result, errors] = [
54
+ reply.filter((r) => !(r instanceof Error)).flat(),
55
+ reply.filter((r) => r instanceof Error),
56
+ ];
57
+ if (errors.length > 0) {
58
+ console.error("Some nodes failed to respond:", errors);
59
+ }
60
+ return result;
51
61
  }
52
62
  async configGet(configKey) {
53
63
  return this.#client.falkordb.configGet(configKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "falkordb",
3
- "version": "6.2.7",
3
+ "version": "6.3.0",
4
4
  "description": "A FalkorDB javascript library",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -36,13 +36,13 @@
36
36
  "@tsconfig/node14": "^14.1.2",
37
37
  "@types/jest": "^29.5.14",
38
38
  "@types/lodash": "^4.17.13",
39
- "@types/node": "^22.10.2",
39
+ "@types/node": "^24.0.3",
40
40
  "@typescript-eslint/eslint-plugin": "^8.18.2",
41
41
  "@typescript-eslint/parser": "^8.18.2",
42
42
  "eslint": "^9.17.0",
43
43
  "gh-pages": "^6.2.0",
44
44
  "jest": "^29.7.0",
45
- "release-it": "^17.11.0",
45
+ "release-it": "^19.0.3",
46
46
  "ts-jest": "^29.2.5",
47
47
  "typescript": "^5.7.2"
48
48
  },