Skip to content

Releases: Naeemo/capnp

v0.9.3 - Security Fixes

Choose a tag to compare

@Naeemo Naeemo released this 09 Mar 12:57

修复 TypeScript 类型错误,确保 CI/CD 正常发布

v0.9.2 - LZ4 Compression Support

Choose a tag to compare

@Naeemo Naeemo released this 05 Mar 10:14

What's New

LZ4 Compression

  • Transport layer compression support (pure JavaScript lz4js)
  • Automatic capability negotiation
  • TcpTransport \u0026 WebSocket Proxy integration
  • Mixed environment support (Node.js/Browser/C++)
  • Configurable compression threshold

Other

  • Updated glob dependency (security fix)
  • Improved test coverage (88.14% core modules)

v0.9.1

Choose a tag to compare

@Naeemo Naeemo released this 05 Mar 06:25

Security audit and benchmark suite

v0.9.0

Choose a tag to compare

@Naeemo Naeemo released this 04 Mar 10:15

v0.9.0 - Schema Compatibility Checker

Features

  • Schema Compatibility Checker - Detect breaking changes between schema versions
  • Unified CLI - All tools under single capnp command

489 tests passing

v0.8.1

Choose a tag to compare

@Naeemo Naeemo released this 04 Mar 09:03

v0.8.1 - Documentation Reorganization

Documentation

  • Reorganized docs site with hierarchical navigation
  • New sidebar structure: Getting Started, Guides, Best Practices, Reference
  • Added Debugging guide to both English and Chinese docs

480 tests passing

v0.8.0

Choose a tag to compare

@Naeemo Naeemo released this 04 Mar 08:49

v0.8.0 - Debug Mode

Features

  • Debug Mode - Development debugging and tracing
    • Hex dump formatting for binary data
    • Colored console output (Node.js & browser)
    • RPC message logging (send/recv)
    • Global enable via enableDebug() or CAPNP_DEBUG=1

API

import { enableDebug } from '@naeemo/capnp';
enableDebug();

480 tests passing

v0.7.0

Choose a tag to compare

@Naeemo Naeemo released this 04 Mar 08:20

v0.7.0

Features

  • JSON Codec - Bidirectional conversion between Cap'n Proto and JSON

    • All data types supported (primitives, text, data, lists, nested structs)
    • Base64 encoding for binary data
    • Field name mapping (snake_case ↔ camelCase)
    • int64/uint64 as strings for JSON safety
    • CLI tool: capnp-json
  • Doc Comments - JSDoc generation in code generator

    • Struct and field documentation
    • Getter/setter method docs

Changes

  • Added getData()/setData() methods to core API
  • 443 tests passing

v0.6.0 - WebSocket-to-TCP Proxy

Choose a tag to compare

@Naeemo Naeemo released this 04 Mar 06:13

New Features

WebSocket-to-TCP Proxy

Connect browsers to native Cap'n Proto services (C++, etc.):

npx @naeemo/capnp proxy -p 9000 -t localhost:7000

  • Browser → WebSocket → Proxy → TCP → C++ Service
  • Full-duplex binary streaming
  • CLI and programmatic API
  • Connection stats and monitoring

Documentation

  • New guide: WebSocket Proxy (EN/ZH)
  • Updated examples page

Tests

  • 6 new tests for proxy functionality
  • All tests passing (420+)

Installation

npm install @naeemo/capnp@0.6.0

v0.5.2

Choose a tag to compare

@Naeemo Naeemo released this 04 Mar 01:52

修复 CI/CD 格式检查问题,跳过 C++ 互操作测试(当服务器不可用时)

v0.5.0 - Dynamic Schema Transfer Protocol

Choose a tag to compare

@Naeemo Naeemo released this 03 Mar 01:28

v0.5.0 发布说明

新特性

  • Phase 7: Dynamic Schema Transfer Protocol
    • 运行时 schema 获取和解析
    • Dynamic Reader/Writer 支持
    • SchemaCapability 接口实现
    • 支持通过 RPC 获取远程 schema

改进

  • 文档站点支持中英文双语
  • 420+ 测试通过

完整变更

详见 CHANGELOG.md