brainy/src/utils
David Snelling ac82c55a6b **feat: enhance threading compatibility and refactor module loading**
- Refactored `TextEncoder` and `TextDecoder` in `src/utils/tensorflowUtils.ts` to handle environments without global availability, logging warnings and providing fallback implementations.
- Enhanced threading utilities in `src/utils/environment.ts`:
  - Introduced `areWorkerThreadsAvailableSync()` and `isThreadingAvailableAsync()` for synchronous and asynchronous checks.
  - Improved compatibility across browser and Node.js environments.
- Migrated `fileSystemStorage.ts` to use dynamic imports for Node.js modules, removing synchronous loading mechanisms to align with ES module standards.
- Updated `cli-package/package.json` keywords to include `browser` and `container`, improving discoverability.
- Added `worker_threads` as an external dependency in `cli-package/rollup.config.js` and `rollup.config.js`.
- Updated `.gitignore` to ignore all `tgz` files dynamically under main and CLI package.

This update improves threading compatibility, enhances environment-specific support, and aligns with modern module loading practices.
2025-07-02 16:52:44 -07:00
..
distance.ts feat(src/brainyData, src/utils): enhance embedding efficiency with batch processing and initialize safeguards 2025-06-27 14:06:59 -07:00
embedding.ts **feat: improve TensorFlow.js compatibility and remove unnecessary patches** 2025-07-02 16:16:19 -07:00
environment.ts **feat: enhance threading compatibility and refactor module loading** 2025-07-02 16:52:44 -07:00
index.ts feat(src/brainyData, src/utils): enhance embedding efficiency with batch processing and initialize safeguards 2025-06-27 14:06:59 -07:00
tensorflowUtils.ts **feat: enhance threading compatibility and refactor module loading** 2025-07-02 16:52:44 -07:00
version.ts **chore(version): bump version to 0.9.30 and enhance publishing instructions** 2025-07-02 16:33:30 -07:00
workerUtils.ts feat(demo, docs): introduce threading test demos for browser and fallback, enhance threading documentation 2025-07-01 10:39:12 -07:00