Download Latest Version v0.23.0 source code.tar.gz (2.4 MB)
Email in envelope

Get an email when there's a new version of KaibanJS

Home / v0.19.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-04-23 2.3 kB
v0.19.0 source code.tar.gz 2025-04-23 2.0 MB
v0.19.0 source code.zip 2025-04-23 2.3 MB
Totals: 3 Items   4.3 MB 1

KaibanJS v0.19.0 🚀.

Overview

TypeScript Migration: This release introduces the TypeScript migration for KaibanJS, providing enhanced type safety and developer experience while maintaining backward compatibility.

Key Changes

  • Complete conversion of JavaScript codebase to TypeScript
  • Added comprehensive type definitions for core functionality
  • Migrated all tools to TypeScript with proper typing
  • Updated build system to handle TypeScript compilation
  • Added TypeScript tests to validate type safety
  • Maintained backward compatibility by preserving .js files as .deprecated.js
  • Enhanced documentation with TypeScript usage examples
  • Updated Jest configuration to support TypeScript tests

Tool Improvements

  • All tools now include strong type definitions for inputs and outputs
  • Type-safe tool registration and execution flow
  • Enhanced error handling with typed error responses
  • Better intellisense support when creating custom tools
  • Type guards for runtime validation of tool responses

Benefits for Developers

  • Improved autocompletion in modern IDEs
  • Better error detection during development
  • Self-documenting code with type signatures
  • Enhanced refactoring capabilities
  • Stronger guarantees around API contracts
  • Easier custom tool creation with TypeScript interfaces

Usage

The alpha version can be installed with:

:::bash
npm install kaibanjs

TypeScript users can now enjoy native type support without additional configuration.

Testing

  • All existing tests have been migrated to TypeScript
  • New type-specific tests have been added
  • Tool-specific type tests ensure proper input/output handling
  • All functionality remains identical to the JavaScript version

Migration for Existing Users

No breaking changes have been introduced for JavaScript users. The existing API remains fully compatible, and JavaScript projects using KaibanJS will continue to work without any changes.

Special Thanks

Thanks to @ernestocarrasco for their initial TypeScript migration work, which served as the foundation for this improved implementation and @anthonydevs17 for tools package migration work. Additional contributions from the community that helped refine the types and testing approach are greatly appreciated.

Source: README.md, updated 2025-04-23