From f4dc6959a41032a3fc591d83118a33eff3d44b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BCpper?= Date: Mon, 31 Aug 2026 12:27:24 +0000 Subject: [PATCH 1/2] fix(runtime): restore Node-API host build after Buffer refactor --- crates/perry-runtime/src/node_api_host/buffers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/perry-runtime/src/node_api_host/buffers.rs b/crates/perry-runtime/src/node_api_host/buffers.rs index c9fc9faf8f..9248c19ce3 100644 --- a/crates/perry-runtime/src/node_api_host/buffers.rs +++ b/crates/perry-runtime/src/node_api_host/buffers.rs @@ -145,7 +145,7 @@ pub unsafe extern "C" fn napi_get_buffer_info( length: *mut usize, ) -> NapiStatus { let owner = match pointer_owner(env, value) { - Ok(owner) if is_node_buffer(owner) => owner, + Ok(owner) if crate::buffer::is_node_buffer(owner) => owner, _ => return set_status(env, NapiStatus::InvalidArg, "value must be a Buffer"), }; let buffer = owner as *const BufferHeader; From f713bb28cb29641ea165afc37ea53e0fb932084e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BCpper?= Date: Mon, 31 Aug 2026 12:28:37 +0000 Subject: [PATCH 2/2] docs(changelog): record Node-API host build fix --- changelog.d/9282-node-api-host-buffer-brand.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 changelog.d/9282-node-api-host-buffer-brand.md diff --git a/changelog.d/9282-node-api-host-buffer-brand.md b/changelog.d/9282-node-api-host-buffer-brand.md new file mode 100644 index 0000000000..8c35b72f40 --- /dev/null +++ b/changelog.d/9282-node-api-host-buffer-brand.md @@ -0,0 +1,4 @@ +Fixed the feature-gated Node-API host build after the Buffer branding refactor. +Allowlisted native addons once again link the complete 145-symbol host ABI and +load their authenticated sidecars instead of falling back to a runtime without +Node-API support.