Skip to content

v1.6.0-alpha.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Jun 15:40
· 16 commits to main since this release
v1.6.0-alpha.1
2d52eb7

ContextWeaver v1.6.0-alpha.1 prerelease

ContextWeaver v1.6.0-alpha.1 Prerelease Changelog

Highlights

  • Native decodeBytes integration: readFileWithEncoding now routes through the Rust decodeBytes NAPI port, enabling faster and consistent file decoding.
  • Native import extraction: Import extraction in resolvers now uses the new Rust extractImports regex port, improving performance for large codebases.
  • Differential tests: Added TypeScript/Rust differential tests for both decodeBytes and 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)

  1. Download the tarball from the GitHub release assets (e.g., contextweaver-v1.6.0-alpha.1.tar.gz).
  2. Install in your project:
    npm install /path/to/contextweaver-v1.6.0-alpha.1.tar.gz
  3. Run the test suite (requires Rust toolchain if building from source, but tarball includes prebuilt binary for supported platforms):
    npm test
  4. Focus on differential tests to confirm native vs. JavaScript parity:
    npx mocha test/encoding/decodeBytes.differential.test.ts test/resolvers/importExtract.differential.test.ts
  5. 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.tgz

Native 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