Skip to content

🔧 Bump napi and napi-derive from 3.10.5/3.5.10 to 3.11.0/3.6.0 (synced)#322

Merged
Chisanan232 merged 1 commit into
masterfrom
fix/napi-sync-3.11
Jul 22, 2026
Merged

🔧 Bump napi and napi-derive from 3.10.5/3.5.10 to 3.11.0/3.6.0 (synced)#322
Chisanan232 merged 1 commit into
masterfrom
fix/napi-sync-3.11

Conversation

@Chisanan232

Copy link
Copy Markdown
Contributor

Combines dependabot #319 (napi-derive 3.5.10 → 3.6.0) and #320 (napi 3.10.5 → 3.11.0).

Both crates must be upgraded together — bumping only one (as #319 and #320 each did individually) breaks the build:

error[E0405]: cannot find trait `TypeTag` in module `napi::bindgen_prelude`
error[E0425]: cannot find type `napi_type_tag` in crate `napi::bindgen_prelude::sys`
error[E0425]: cannot find function `type_tag_from_ident` in module `napi::bindgen_prelude`
error[E0425]: cannot find function `validate_type_tag` in module `napi::bindgen_prelude`
  = note: this error originates in the attribute macro `napi`

The #[napi] macro (from napi-derive) expands to reference bindgen_prelude symbols that only exist consistently when both crates are the same generation.

Verified locally: pnpm native:build (napi's own build tooling, same command CI's napi-build job runs) succeeds, and the full test suite passes (631 tests, 2 pre-existing skips).

Closes the need for #319 and #320 — closing those individually.

@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Combines dependabot #319 (napi-derive 3.5.10 -> 3.6.0) and #320
(napi 3.10.5 -> 3.11.0). Bumping either alone breaks the build:
the napi attribute macro expansion references bindgen_prelude
symbols (TypeTag, napi_type_tag, type_tag_from_ident,
validate_type_tag) that only exist when both crates are on the
same generation. Verified with `pnpm native:build` (napi-build's
own toolchain, matching CI) and the full test suite (631 passing).
@sonarqubecloud

Copy link
Copy Markdown

@Chisanan232
Chisanan232 merged commit c3d7545 into master Jul 22, 2026
24 checks passed
@Chisanan232
Chisanan232 deleted the fix/napi-sync-3.11 branch July 22, 2026 03:39
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.

1 participant