• v3.6.0 2793cef197

    dpsifr released this 2025-09-17 23:54:24 +02:00 | 943 commits to main since this release

    🚀 What's New in v3.6.0

    Features

    • Browser Environment Compatibility: Brainy can now run in browser environments without requiring Node.js polyfills
      • Removed Node.js-specific imports from module level
      • Added dynamic imports with environment detection
      • Wrapped all file system operations in conditional blocks
      • Added proper fallbacks for browser environments

    🛠 Technical Improvements

    • Uses modern isNode() helper for environment detection
    • Implements conditional loading patterns for Node.js modules
    • Maintains backward compatibility with existing Node.js applications
    • No breaking changes to existing APIs

    📦 Installation

    npm install @soulcraft/brainy@3.6.0
    

    🌐 Browser Usage

    Brainy can now be imported directly in browser applications without webpack/vite polyfills:

    import { Brainy } from '@soulcraft/brainy'
    // Works in both Node.js and browser environments!
    

    This release makes Brainy truly universal, enabling it to run seamlessly in both Node.js and browser environments.

    Downloads