feat(build)!: migrate to Bun and add standalone binary compilation - #10
Merged
Merged
Conversation
BREAKING CHANGES: - Package is now ESM-only (removed CommonJS builds) - Development requires Bun 1.2+ instead of pnpm - Node.js 22+ still supported for runtime consumption Features: - Add standalone binary compilation with Bun's --compile flag - Support for linux-x64, linux-arm64, darwin-x64, darwin-arm64, windows-x64 - Baseline and modern CPU variants (Haswell/AVX2+) - New GitHub workflow for automated binary builds on releases - Binary build script with cross-platform support - Maintain Node.js compatibility with runtime detection for Bun.CryptoHasher Build System: - Replace tsup with Bun.build() for faster builds (~0.6s vs 1.5s) - Simplify package exports to ESM default only - Update all 30+ benchmark scripts to use Bun - Remove pnpm workspace configuration CI/CD: - Update all GitHub workflows to use Bun - Add build-binaries.yml workflow with artifact publishing - Use SHA-pinned GitHub Actions for security - Configure proper permissions and credential handling Development: - Replace pnpm scripts with Bun equivalents - Update Husky hooks for Bun compatibility - Simplify build configuration with fewer dependencies - Maintain compatibility with Node.js 22+ runtime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGES:
Features:
Build System:
CI/CD:
Development: