Skip to content

Conversation

@jakebailey
Copy link
Member

@jakebailey jakebailey commented Aug 19, 2025

See below

const isMuslFromReport = () => {
const report = typeof process.report.getReport === 'function' ? process.report.getReport() : null
let report = null
if (typeof process.report?.getReport === 'function') {
Copy link
Member Author

Choose a reason for hiding this comment

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

This to me strikes me as a mistake in napi-rs; they added a ?. here but I'm fully able to declare that the package should work in old versions of node.

Copy link
Member Author

Choose a reason for hiding this comment

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

But, ?. is Node 14, so, whatever

@andrewbranch
Copy link
Member

Binding tests are failing :(

@jakebailey
Copy link
Member Author

jakebailey commented Aug 19, 2025

Somehow, callbacks are broken. The rust code all seems right, yet we are getting all of the args passed into the callbacks as an array passed to the first arg, instead of actually spread as args.

@jakebailey
Copy link
Member Author

image

@jakebailey
Copy link
Member Author

I reverted the lockfile thing since I don't think it's even used without --frozen or something, and it's napi who calls it.

I wrote a script to query each transitive dep and it seems like only cfg-if was updated today, which has since fixed itself in 1.0.3 and then yanked 1.0.2.

So, this PR is not strictly needed, but probably wise anyway since I think I mismatched napi versions.

@jakebailey jakebailey changed the title Fix napi build by updating napi, commit lock Update napi-rs, relock Aug 19, 2025
@jakebailey jakebailey merged commit 95d8cfc into main Aug 19, 2025
22 checks passed
@jakebailey jakebailey deleted the jabaile/fix-napi branch August 19, 2025 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants