Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

Upgrade to version 2 of detect-libc#166

Merged
vweevers merged 1 commit intoprebuild:masterfrom
lovell:upgrade-detect-libc
Jan 28, 2022
Merged

Upgrade to version 2 of detect-libc#166
vweevers merged 1 commit intoprebuild:masterfrom
lovell:upgrade-detect-libc

Conversation

@lovell
Copy link
Copy Markdown
Member

@lovell lovell commented Jan 19, 2022

Hi, the latest detect-libc has been modernised to use the non-blocking Node.js Report API where available (Node.js >= 12), falling back to use an efficient single child process with older versions.

It's a major version bump for detect-lib as it drops support for versions of Node.js < 8. Given prebuild-install already requires >= 10 this PR should OK to include in a patch release.

There's an extensive integration test suite, e.g. https://github.com/lovell/detect-libc/actions/runs/1717414863

Should anyone be interested in the background to this, please see lovell/detect-libc#14

Uses the Report API where available (Node.js 12+)
Otherwise spawns a single child process (Node.js 8, 10)
@vweevers vweevers added the semver-patch Bug fixes that are backward compatible label Jan 19, 2022
Copy link
Copy Markdown
Member

@vweevers vweevers left a comment

Choose a reason for hiding this comment

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

LGTM. Amazing work!

@vweevers vweevers merged commit f71c6b9 into prebuild:master Jan 28, 2022
@vweevers
Copy link
Copy Markdown
Member

7.0.1

@lovell lovell deleted the upgrade-detect-libc branch January 28, 2022 09:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

semver-patch Bug fixes that are backward compatible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants