Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: only build one binary for all node versions #50

Merged
merged 8 commits into from
Sep 23, 2023

Conversation

giladgd
Copy link
Contributor

@giladgd giladgd commented Sep 23, 2023

Description of change

The current compilation flow produces a binary that uses N-API properly and thus is ABI-Stable, meaning that the binary is compatible with the node.js version it was compiled for (v18) and all subsequent versions.
This means that we only need to compile one binary for each platform and architecture.

This PR makes the result npm module much smaller in size and ensures compatibility with all future node.js versions in terms of binary compatibility.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run format to apply prettier formatting
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits and pull request title follow conventions explained in CONTRIBUTING.md (PRs that do not follow this convention will not be merged)

@giladgd giladgd self-assigned this Sep 23, 2023
Copy link
Contributor

@ido-pluto ido-pluto left a comment

Choose a reason for hiding this comment

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

LGTM

@giladgd giladgd changed the title feat: only build one binary for all node versions, add Windows arm64 support feat: only build one binary for all node versions Sep 23, 2023
@giladgd giladgd merged commit 1e617cd into master Sep 23, 2023
9 checks passed
@giladgd giladgd deleted the gilad/decreaseModulesSize branch September 23, 2023 20:07
@github-actions
Copy link

🎉 This PR is included in version 2.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants