Releases: Naeemo/capnp
Releases · Naeemo/capnp
Release list
v0.9.3 - Security Fixes
v0.9.2 - LZ4 Compression Support
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
v0.9.0
v0.8.1
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
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
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
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
v0.5.0 - Dynamic Schema Transfer Protocol
v0.5.0 发布说明
新特性
- Phase 7: Dynamic Schema Transfer Protocol
- 运行时 schema 获取和解析
- Dynamic Reader/Writer 支持
- SchemaCapability 接口实现
- 支持通过 RPC 获取远程 schema
改进
- 文档站点支持中英文双语
- 420+ 测试通过
完整变更
详见 CHANGELOG.md