@soulcraft/brainy 0.9.11 → 0.9.13

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.
@@ -23,7 +23,7 @@ export declare function areWebWorkersAvailable(): boolean;
23
23
  export declare function areWorkerThreadsAvailable(): boolean;
24
24
  /**
25
25
  * Determine if threading is available in the current environment
26
- * Always returns false since multithreading has been removed
26
+ * Returns true if either Web Workers (browser) or Worker Threads (Node.js) are available
27
27
  */
28
28
  export declare function isThreadingAvailable(): boolean;
29
29
  //# sourceMappingURL=environment.d.ts.map
@@ -2,5 +2,5 @@
2
2
  * This file is auto-generated during the build process.
3
3
  * Do not modify this file directly.
4
4
  */
5
- export declare const VERSION = "0.9.11";
5
+ export declare const VERSION = "0.9.13";
6
6
  //# sourceMappingURL=version.d.ts.map
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Utility functions for executing functions (without Web Workers or Worker Threads)
3
- * This is a replacement for the original multithreaded implementation
2
+ * Utility functions for executing functions in Worker Threads (Node.js) or Web Workers (Browser)
3
+ * This implementation leverages Node.js 24's improved Worker Threads API for better performance
4
4
  */
5
5
  /**
6
- * Execute a function directly in the main thread
6
+ * Execute a function in a separate thread
7
7
  *
8
8
  * @param fnString The function to execute as a string
9
9
  * @param args The arguments to pass to the function
@@ -11,8 +11,8 @@
11
11
  */
12
12
  export declare function executeInThread<T>(fnString: string, args: any): Promise<T>;
13
13
  /**
14
- * No-op function for backward compatibility
15
- * This function does nothing since there are no worker pools to clean up
14
+ * Clean up all worker pools
15
+ * This should be called when the application is shutting down
16
16
  */
17
17
  export declare function cleanupWorkerPools(): void;
18
18
  //# sourceMappingURL=workerUtils.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soulcraft/brainy",
3
- "version": "0.9.11",
3
+ "version": "0.9.13",
4
4
  "description": "A vector graph database using HNSW indexing with Origin Private File System storage",
5
5
  "main": "dist/unified.js",
6
6
  "module": "dist/unified.js",
@@ -25,7 +25,7 @@
25
25
  }
26
26
  },
27
27
  "engines": {
28
- "node": ">=23.11.0"
28
+ "node": ">=24.0.0"
29
29
  },
30
30
  "scripts": {
31
31
  "prebuild": "node scripts/generate-version.js",
@@ -38,12 +38,18 @@
38
38
  "version:patch": "npm version patch",
39
39
  "version:minor": "npm version minor",
40
40
  "version:major": "npm version major",
41
+ "lint": "eslint --ext .ts,.js src/",
42
+ "lint:fix": "eslint --ext .ts,.js src/ --fix",
43
+ "format": "prettier --write \"src/**/*.{ts,js}\"",
44
+ "check-format": "prettier --check \"src/**/*.{ts,js}\"",
45
+ "check-style": "node scripts/check-code-style.js",
41
46
  "deploy": "npm run build && npm publish",
42
47
  "deploy:cloud:aws": "cd cloud-wrapper && npm run build && npm run deploy:aws",
43
48
  "deploy:cloud:gcp": "cd cloud-wrapper && npm run build && npm run deploy:gcp",
44
49
  "deploy:cloud:cloudflare": "cd cloud-wrapper && npm run build && npm run deploy:cloudflare",
45
50
  "deploy:cloud": "echo 'Please use one of the following commands to deploy to a specific cloud provider:' && echo ' npm run deploy:cloud:aws' && echo ' npm run deploy:cloud:gcp' && echo ' npm run deploy:cloud:cloudflare'",
46
- "postinstall": "echo 'Note: If you encounter dependency conflicts with TensorFlow.js packages, please use: npm install --legacy-peer-deps'"
51
+ "postinstall": "echo 'Note: If you encounter dependency conflicts with TensorFlow.js packages, please use: npm install --legacy-peer-deps'",
52
+ "dry-run": "npm pack --dry-run"
47
53
  },
48
54
  "bin": {
49
55
  "brainy": "cli-wrapper.js"