Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,30 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.1.6] - 2026-03-27

Comment on lines +7 to +8
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

## [v0.1.6] is written as a reference-style Markdown link, but there is no corresponding [v0.1.6]: … definition at the bottom of the file (same for v0.1.5). Add link definitions so the version headers render as links like v0.1.4 and earlier.

Copilot uses AI. Check for mistakes.
### Added

- **Cross-platform npm publishing** — Publish workflow now builds native addons on Linux (glibc + musl) and Windows in parallel, uploads artifacts, and combines them into a single cross-platform npm package
- **musl/Alpine support** — Added `x86_64-unknown-linux-musl` NAPI build target for `hyperlight-analysis`; CI cross-compiles musl from glibc runner with `musl-tools`
- **Runtime NAPI platform detection** — Binary launcher uses napi-rs generated `index.js` for `js-host-api` (full musl/glibc/win32 detection) and probes `ldd` for `hyperlight-analysis` musl vs glibc resolution
- **ha-modules.d.ts sync test** — New test in `dts-sync.test.ts` regenerates `ha-modules.d.ts` and compares to committed version, catching drift when module exports/types change without re-running the generator

### Fixed

- **Cross-platform .node loading** — `build-binary.js` no longer hardcodes the NAPI triple at build time; copies all available platform `.node` files and uses runtime detection to load the correct one
- **postinstall script** — Fixed missing closing brace in `package.json` `node -e` snippet that caused SyntaxError during `npm install`
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog item "postinstall script — Fixed missing closing brace…" is already listed under v0.1.5 (line 55). If this fix wasn't reintroduced, it should only appear in one release; otherwise clarify that it regressed and was fixed again.

Suggested change
- **postinstall script** — Fixed missing closing brace in `package.json` `node -e` snippet that caused SyntaxError during `npm install`

Copilot uses AI. Check for mistakes.
- **Publish artifact ordering** — Download artifacts AFTER `just setup` to avoid symlink/junction clobber when `build-hyperlight` re-creates `deps/js-host-api`
- **ha-modules.d.ts stale types** — Regenerated with `ShapeFragment` return types (was `string`) to match upstream ShapeFragment safety system
- **Node.js launcher URL** — Use `pathToFileURL(cjs).href` instead of manual `file://` concatenation (fixes invalid URLs on Windows)
- **Unix PATH instructions** — Removed backslash escaping of `$PATH` in post-build output
- **pattern-loader test cleanup** — `afterEach` only swallows `EBUSY`/`EPERM` on Windows; rethrows real errors on other platforms

### Changed

- **Publish workflow** — Replaced single-platform `ubuntu-latest` publish with multi-platform matrix build (Linux KVM, Linux musl, Windows WHP) followed by artifact-combining publish job on self-hosted runner
- **Publish runner** — `publish-npm` job now runs on self-hosted `hld-kvm-amd` runner (needs Rust toolchain for `just setup`)

## [v0.1.5] - 2026-03-27

### Added
Expand Down
Loading