Skip to content

ripple v0.11.0

Choose a tag to compare

@yotsuda yotsuda released this 20 Apr 08:32
· 87 commits to master since this release

Native binaries for Linux and macOS Apple Silicon ship alongside Windows, distributed as platform-specific npm subpackages. npm i -g @ytsuda/ripple now installs from @ytsuda/ripple-win32-x64, @ytsuda/ripple-linux-x64, or @ytsuda/ripple-darwin-arm64 automatically via optionalDependencies; a small Node launcher (bin/cli.mjs) resolves the matching subpackage and spawns its binary with stdio inherited and SIGTERM/SIGINT/SIGHUP/SIGQUIT forwarded. The release workflow is a three-runner matrix build (windows-latest, ubuntu-latest, macos-latest) followed by a single Linux publish job that Authenticode-signs the Windows binary via AzureSignTool, publishes three subpackages + one meta-package with SLSA provenance, and attaches all three binaries to the GitHub Release.

Added

  • Linux x64 and macOS arm64 native binaries. NativeAOT-compiled from the same source as the Windows binary via the build matrix job; identical --test suite gates publish. macOS is Apple Silicon only — GHA's macos-13 (Intel) runner pool capacity made osx-x64 unshippable.
  • @ytsuda/ripple-<platform> subpackages. Each carries os + cpu filters so npm installs only the matching one; the meta package's optionalDependencies skip the rest silently.
  • npm/bin/cli.mjs dispatcher. Resolves <platform>-<arch> against an allow-list, require.resolves the subpackage binary, spawns it with stdio: 'inherit', forwards SIGTERM/SIGINT/SIGHUP/SIGQUIT to the child, and re-raises the child's exit signal so $? / %ERRORLEVEL% / $status match a direct invocation.

Changed

  • .github/workflows/release.yml is now a two-job matrix build + single-runner publish. build uses strategy.matrix over {win-x64, linux-x64, osx-arm64} and uploads artifacts; publish (Linux, environment: release) downloads all three, signs the Windows binary, and publishes subpackages sequentially (win32-x64 → linux-x64 → darwin-arm64) before the meta package so a mid-sequence failure halts before the meta points at a missing subpackage.
  • npm/package.json is now a meta-package. Ships only bin/cli.mjs, README, LICENSE; optionalDependencies pin the three subpackages to the exact current version. The os restriction on the meta package has been removed — Node can install everywhere, the native binary enforcement is the subpackage filter.
  • Version cross-check verifies five fields. csproj <Version>, meta npm/package.json, and each of the three npm/platforms/*/package.json must all equal the pushed tag; the publish job aborts fast if any disagree.