v1.6.0-alpha.1
Pre-release
Pre-release
·
16 commits
to main
since this release
ContextWeaver v1.6.0-alpha.1 prerelease
ContextWeaver v1.6.0-alpha.1 Prerelease Changelog
Highlights
- Native decodeBytes integration:
readFileWithEncodingnow routes through the RustdecodeBytesNAPI port, enabling faster and consistent file decoding. - Native import extraction: Import extraction in resolvers now uses the new Rust
extractImportsregex port, improving performance for large codebases. - Differential tests: Added TypeScript/Rust differential tests for both
decodeBytesand import extraction to validate correctness against the existing implementation. - Internal cleanup: Fixed a Clippy lint (
manual_contains) in the chunker; no user-facing change.
Risk Notes
- New native module: This alpha release introduces a Rust-native NAPI addon. Node-gyp scripts have been explicitly skipped, but platform compatibility should be verified (see testing instructions).
- Behavioral changes: Routing existing functions through the Rust layer may introduce subtle differences in encoding handling or import parsing. Differential tests help mitigate this, but edge cases may emerge.
- Prerelease stability: As an alpha, further breaking changes or reworks are expected. Not recommended for production use.
Testing (local tarball)
- Download the tarball from the GitHub release assets (e.g.,
contextweaver-v1.6.0-alpha.1.tar.gz). - Install in your project:
npm install /path/to/contextweaver-v1.6.0-alpha.1.tar.gz
- Run the test suite (requires Rust toolchain if building from source, but tarball includes prebuilt binary for supported platforms):
npm test - Focus on differential tests to confirm native vs. JavaScript parity:
npx mocha test/encoding/decodeBytes.differential.test.ts test/resolvers/importExtract.differential.test.ts
- Report any issues on the repository with the tag
v1.6.0-alpha.1.
Local npm package
Download the attached main tarball plus the chunker tarball matching your platform, then install:
npm install -g ./chiway-contextweaver-1.6.0-alpha.1.tgzNative chunker is optional — without the matching platform tarball it falls back to the TypeScript path.
This prerelease does not publish to npm.
Full Changelog: v1.6.0-alpha.0...v1.6.0-alpha.1