Commit graph

77 commits

Author SHA1 Message Date
b102cae81f 0.9.4 2025-06-23 11:11:39 -07:00
056add09fb **chore: update README, add image to package files, bump version to 0.9.3**
### Changes:
- **README.md**:
  - Updated `Brainy Logo` image URL to reference a specific commit for consistent display.
  - Simplified the description by removing "lightweight" for a more concise statement.

- **package.json**:
  - Added `brainy.png` to the `files` array to include it in published packages.

- **src/utils/version.ts**:
  - Updated `VERSION` constant from `0.9.2` to `0.9.3`.

### Purpose:
Aligned the documentation with a specific asset version for consistent display. Improved package completeness by including the project logo. Incremented the version to `0.9.3` to reflect the latest changes.
2025-06-23 11:11:31 -07:00
0d9bf47750 0.9.3 2025-06-23 10:59:43 -07:00
f27d2739ac **chore(deps): update @soulcraft/brainy to v0.9.2 and adjust dependencies**
### Changes:
- **package.json** & **package-lock.json**:
  - Upgraded `@soulcraft/brainy` dependency from `^0.7.5` to `^0.9.2`.
  - Updated dependencies within `@soulcraft/brainy`, including:
    - Added `@tensorflow/tfjs-converter` and `buffer` as new dependencies.
    - Adjusted peer dependencies for `@tensorflow/tfjs-core`.
    - Included `base64-js` and `ieee754` packages.

- **package.json**:
  - Refined `demo` script by replacing `demo.html` with `index.html` under `/demo/`.

### Purpose:
Upgraded `@soulcraft/brainy` to the latest version, ensuring compatibility with the new features and performance enhancements. Adjusted related dependencies to align with the updated version. Improved demo path structure for better organization.
2025-06-23 10:58:09 -07:00
310ab6ad2a 0.9.2 2025-06-23 10:48:14 -07:00
26961d0eb2 0.9.1 2025-06-23 10:39:59 -07:00
5f694bf1d1 **feat(cli): add script to estimate package size and .npmignore cleanup**
### Changes:
- **verify-package-size.js**:
  - Added a CLI script to calculate and display the estimated package size.
  - Integrated support for parsing `.npmignore` and `package.json` `files` patterns.
  - Outputs total package size and lists the largest files included.

- **.npmignore**:
  - Introduced an `.npmignore` file to exclude unnecessary development, configuration, and large files from the package.
  - Added patterns for source maps, development files, configuration files, and artifacts.

- **package.json**:
  - Updated the `files` array to include new patterns for distribution files (`.js`, `.d.ts`, `types`).
  - Improved package inclusion accuracy with precise file patterns.

### Purpose:
Introduced a new utility to provide quick insights into the package size for better maintenance and optimization. Optimized `.npmignore` and `files` configurations in `package.json` to exclude irrelevant files, ensuring a smaller, cleaner package distribution.
2025-06-23 10:39:05 -07:00
9ac7b4011f **ci(workflows): update permissions and token usage for deploy workflow**
### Changes:
- **deploy-demo.yml**:
  - Added `contents: write` permissions to ensure the workflow can access repository content during operations.
  - Used `${{ secrets.GITHUB_TOKEN }}` for authentication in the deployment step.

- **package.json**:
  - Removed the `deploy:demo` script and its `gh-pages` dependency to clean up unused scripts and dependencies.

### Purpose:
Enhanced the deploy workflow by explicitly defining required permissions and securely managing authentication. Simplified the configuration by removing outdated scripts and dependencies.
2025-06-20 14:46:10 -07:00
5cc6f9d683 **build(demo): remove GitHub Pages workflow and streamline demo deployment**
### Changes:
- Removed `github-pages.yml` GitHub Actions workflow file.
- Updated `README.md`:
  - Added documentation for `npm run deploy:demo` to deploy the demo to GitHub Pages.
  - Updated the live demo link to reflect the repository's namespace change.
- Added `gh-pages` dependency (v6.3.0) in `package.json`.
- Introduced `deploy:demo` script in `package.json` for demo deployment.

### Purpose:
Streamlined the demo deployment process by removing the dedicated GitHub Pages workflow and replacing it with a manual deployment script (`npm run deploy:demo`). This enhances developer control while maintaining simplicity in deploying updates to the live demo.
2025-06-20 14:23:30 -07:00
b9f8466d5d **chore: update ESLint rules and reorganize dependencies in package.json**
### Changes:
- Disabled the `@typescript-eslint/no-explicit-any` rule in `cloud-wrapper/package.json`.
- Reformatted ESLint rule configurations for `semi` and `@typescript-eslint/semi`.
- Reorganized dependencies in `package.json` for better readability:
  - Moved `buffer`, `commander`, `omelette`, and `uuid` to the end of the list to match alphabetical order.

### Purpose:
Improved code clarity and maintainability by updating ESLint configurations and reordering dependencies in `package.json`. These adjustments ensure consistent formatting and easier navigation of dependencies.
2025-06-20 10:56:50 -07:00
5a67d48bbc **chore: rename npm script for publishing and update version to 0.9.0**
### Changes:
- Renamed the `publish` script to `deploy` in `package.json` for clarity and consistency with deployment terminology.
- Incremented version number from `0.8.11` to `0.9.0` in `src/utils/version.ts`.

### Purpose:
Aligned the naming of the deployment script with standard practices to improve readability and maintainability. Updated the version to `0.9.0` to reflect recent changes and enhancements in the project.
2025-06-19 16:20:33 -07:00
8273bb3301 0.9.0 2025-06-19 16:18:36 -07:00
ced7c6eaec **chore: update dependencies and streamline build/deployment scripts**
### Changes:
- Added new TensorFlow.js dependencies:
  - `@tensorflow/tfjs-backend-cpu`
  - `@tensorflow/tfjs-converter`
  - `@tensorflow/tfjs-core`
  - `@tensorflow/tfjs-layers`
- Updated `package-lock.json` to reflect dependency updates and changes in peer dependencies.
- Refactored build scripts for clarity and consistency:
  - Simplified build commands using `BUILD_TYPE` environment variable for unified and browser builds.
  - Updated `demo` and `publish` scripts to align with new build structure.
  - Introduced specific deployment scripts for AWS, GCP, and Cloudflare in `cloud-wrapper`:
    - `deploy☁️aws`
    - `deploy☁️gcp`
    - `deploy☁️cloudflare`
  - Added a user-friendly `deploy:cloud` script for deployment guidance.
- Removed redundant script configurations and legacy-based Rollup files.

### Purpose:
Enhanced dependency management and standardized build/deployment workflows by improving script clarity, removing redundancy, and aligning configurations with TensorFlow.js changes. This improves maintainability and user experience in development and production environments.
2025-06-19 16:03:16 -07:00
8eaf9f67cb **feat: add browser-compatible build configuration and environment detection**
### Changes:
- Added `rollup.unified.js` for building a unified bundle with environment detection (Node.js, Browser, Serverless).
- Added `rollup_config.js` for browser-specific bundle configurations.
- Created `tsconfig.browser.json` for browser builds and `tsconfig.unified.json` for unified builds.
- Implemented custom Rollup plugins:
  - **`fixThisReferences`**: Resolves `this` reference issues in TensorFlow files.
  - **`nodeModuleShims`**: Provides empty shims for Node.js built-in modules in browser environments.
- Updated dependencies in `package-lock.json` to include Rollup plugins and updated `buffer` dependency for polyfills.
- Created `src/unified.ts` as the unified library entry point with dynamic environment detection.

### Purpose:
- Introduced a unified and browser-compatible build pipeline to ensure `Brainy` can seamlessly operate across multiple environments (Node.js, Browser, Serverless).
- Resolved compatibility issues with Node.js modules and specific library builds.
- Enhanced flexibility and usability for developers working in diverse runtime environments.
2025-06-19 14:59:42 -07:00
1f9910cf17 remove: brainy.png and brainy-large.png from package files and repository 2025-06-12 16:52:08 -07:00
b3240f39cb 0.8.11 2025-06-12 08:44:59 -07:00
38dfed9636 0.8.10 2025-06-11 10:00:34 -07:00
caa399003c 0.8.9 2025-06-11 09:58:41 -07:00
bbb7639b8e 0.8.8 2025-06-11 09:57:17 -07:00
af5fae9195 0.8.7 2025-06-11 09:37:14 -07:00
4551bbab96 0.8.6 2025-06-11 09:32:23 -07:00
61e4172aab 0.8.5 2025-06-11 09:17:36 -07:00
4e15237a17 0.8.4 2025-06-11 09:03:16 -07:00
c2ff5d335b chore: add repository information to package.json 2025-06-11 09:03:04 -07:00
3b706e48de 0.8.3 2025-06-11 08:58:29 -07:00
9b4ac287e6 chore: update README.md with logo alignment and define package file inclusions
Added spacing adjustment for Brainy logo in README. Specified files to be included in package publication to streamline distribution.
2025-06-11 08:58:19 -07:00
ef41ec07f6 0.8.2 2025-06-11 08:49:54 -07:00
21ae491913 0.8.1 2025-06-10 11:47:15 -07:00
cb43391ee2 0.8.0 2025-06-10 11:15:47 -07:00
dbea051572 0.7.7 2025-06-06 10:49:36 -07:00
0d12f68f32 0.7.6 2025-06-06 09:09:32 -07:00
6feab06f34 feat: add cloud deployment support and contribution guidelines
Introduced a cloud deployment wrapper for Brainy supporting AWS Lambda, Google Cloud Run, and Cloudflare Workers. Added configuration options, deployment scripts, and API reference. Updated `README.md` with contribution guidelines and cloud deployment documentation.
2025-06-06 09:08:33 -07:00
4c0922cb94 0.7.5 2025-06-05 14:51:32 -07:00
32d5f45552 chore: update Node.js requirement to 23.11.0 and optimize pipelines and utilities
Upgraded minimum Node.js version from 18.0.0 to 23.11.0 across `README.md`, `package.json`, and `version.ts`. Optimized distance utilities and pipelines to leverage Node.js 23.11+ native performance improvements (e.g., `array.reduce`, WebStreams API). Incremented version to 0.7.4 for consistency.
2025-06-05 14:51:21 -07:00
46631b7bb7 0.7.4 2025-06-05 14:25:33 -07:00
bb11827d43 chore: refine package description in package.json for improved clarity 2025-06-05 14:15:00 -07:00
ad1c7a3130 0.7.3 2025-06-05 14:13:10 -07:00
3a9c424dc9 0.7.2 2025-06-05 14:05:14 -07:00
e2f65c8146 feat: add random graph generation and improve metadata vectorization
Introduced `generateRandomGraph` method to create randomized graphs with configurable entity counts and types, supporting automated testing and experimentation. Enhanced metadata vectorization logic to handle various metadata formats reliably, ensuring compatibility and fallback mechanisms during embedding. Updated `README.md` with detailed feature descriptions and usage guides.
2025-06-05 14:04:29 -07:00
93eb73f471 0.7.1 2025-06-05 11:44:31 -07:00
be67c1b753 docs: update README.md and suppress TensorFlow.js warnings
Enhanced the installation section with guidance on resolving TensorFlow.js dependency conflicts using `--legacy-peer-deps`. Added CLI autocomplete setup instructions to improve user experience. Suppressed specific TensorFlow.js Node.js backend warnings in the embedding utils. Updated dependencies to the latest versions.
2025-06-05 11:44:18 -07:00
bdb0b98b74 0.7.0 2025-06-05 11:18:41 -07:00
cdbd2a9db4 feat: introduce CLI for Brainy and enhance type validation
Added a comprehensive command-line interface (CLI) for interacting with the Brainy vector database. The CLI supports various operations, including database initialization, adding/searching nouns, managing relationships, and querying database status. Enhanced type validation logic for nouns and verbs to ensure consistency and enforce default types for invalid inputs. Updated test scripts to verify type validation and edge cases.
2025-06-05 11:18:20 -07:00
f674d75002 0.6.0 2025-06-04 10:04:34 -07:00
100d4c7839 feat: add read-only database mode and S3-compatible storage options
Introduced configurable read-only mode for databases to restrict write operations. Added support for S3-compatible storage services, including Cloudflare R2, Amazon S3, and Google Cloud Storage. Updated `README.md` with usage examples and configuration details.
2025-06-04 10:00:00 -07:00
6bd3570baf 0.5.3 2025-06-02 17:04:10 -07:00
40dd046884 0.5.2 2025-06-02 12:44:17 -07:00
3659b0069b chore: temporarily disable Firestore functionality and remove Firebase dependencies
Commented out all Firestore-related code across the project, including sync, storage, and vector search features. Removed Firebase dependencies (`firebase`, `firebase-admin`) from `package.json`. Updated `README.md` to reflect the temporary unavailability of Firestore features.
2025-06-02 12:43:44 -07:00
7e31719b2a 0.5.1 2025-06-02 12:29:45 -07:00
9a4f1ab1f6 chore: update README.md with Firestore vector search fallback note, remove unused dependency from package.json 2025-06-02 12:29:39 -07:00