brainy/scripts
David Snelling 5f267b14ed **feat(tests): add tests for TextEncoder, TensorFlow.js, and fallback mechanisms**
- Introduced `test-fallback-function.js` and `test-fallback-simple.js` to validate `executeInThread` fallback functionality with both named and anonymous compute-intensive functions.
- Added `test-tensorflow-textencoder.js` for TensorFlow.js and TextEncoder tests in a Node.js environment.
- Created `test-tensorflow-textencoder.html` for browser-based TensorFlow.js and TextEncoder tests.
- Implemented cross-environment test support in `cli-package/src/test-tensorflow-textencoder.ts` for CLI functionality.
- Enhanced `src/utils/embedding.ts`, `textEncoding.ts`, and `brainy-wrapper.js` to include updated global `TextEncoder` and `TextDecoder` utilities for compatibility and worker improvements.
- Standardized and expanded utility methods in `PlatformNode` for broader support, including `isFloat32Array` and `isTypedArray` checks.
- Updated Node.js requirement to `>= 24.4.0` across documentation and configuration files for compatibility improvements.

This update introduces comprehensive testing for fallback mechanisms, TensorFlow.js, and TextEncoder across multiple environments, ensuring robustness and compatibility.
2025-07-11 11:11:56 -07:00
..
check-code-style.js feat(scripts, project): add comprehensive code style enforcement script and update style-related workflows 2025-06-30 09:51:53 -07:00
create-favicon.js **feat(cli, workers): introduce text encoding patches and worker improvements** 2025-07-04 14:42:33 -07:00
create-github-release.js **chore(release): bump version to 0.10.0 and refactor project structure** 2025-07-07 10:19:04 -07:00
encode-image.js Initial commit 2025-06-24 11:41:30 -07:00
generate-version.js **feat(cli, scripts): introduce CLI package and automated publishing process** 2025-07-02 11:32:06 -07:00
patch-textencoder.js **chore(release): bump version to 0.10.0 and refactor project structure** 2025-07-07 10:19:04 -07:00
publish-cli.js **chore(release): enhance deployment workflows with GitHub release automation** 2025-07-04 12:29:38 -07:00
test-all-environments.js **feat(tests): add tests for TextEncoder, TensorFlow.js, and fallback mechanisms** 2025-07-11 11:11:56 -07:00
test-cli-locally.js **feat: improve TensorFlow.js compatibility and remove unnecessary patches** 2025-07-02 16:16:19 -07:00
update-readme.js Initial commit 2025-06-24 11:41:30 -07:00