Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/drop-shadowing-napi-fatal-error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-native-node-api": patch
---

Drop the host's shadowing `napi_fatal_error` in favor of Hermes' own implementation. Fatal Node-API errors still abort the process, but on Android their message now goes to stderr instead of logcat.
4 changes: 2 additions & 2 deletions .claude/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ is exactly the case above. **Whenever you open a PR here:**
| `Ferric 🦀` | Ferric Apple triplets build | `packages/ferric`, `packages/ferric-example`, or anything napi-rs/Cargo related |
| `weak-node-api` | weak-node-api tests | `packages/weak-node-api` |

A PR can need more than one label — e.g. a change to `RuntimeNodeApi.cpp`
that alters buffer semantics warrants `Host 🏡` plus `Apple 🍎` and
A PR can need more than one label — e.g. a change to `HermesNapiHost.cpp`
that alters async work semantics warrants `Host 🏡` plus `Apple 🍎` and
`Android 🤖`, since the actual behavior change can only be verified on a
real device.

Expand Down
2 changes: 0 additions & 2 deletions packages/host/android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ add_library(node-api-host SHARED
../cpp/Logger.cpp
../cpp/CxxNodeApiHostModule.cpp
../cpp/WeakNodeApiInjector.cpp
../cpp/RuntimeNodeApi.cpp
../cpp/RuntimeNodeApi.hpp
../cpp/HermesNapiHost.cpp
../cpp/HermesNapiHost.hpp
)
Expand Down
22 changes: 0 additions & 22 deletions packages/host/cpp/RuntimeNodeApi.cpp

This file was deleted.

32 changes: 0 additions & 32 deletions packages/host/cpp/RuntimeNodeApi.hpp

This file was deleted.

1 change: 0 additions & 1 deletion packages/host/scripts/generate-injector.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export function generateSource(functions: FunctionDecl[]) {
#include <weak_node_api.hpp>

#include <Logger.hpp>
#include <RuntimeNodeApi.hpp>

#if defined(__APPLE__)
#define WEAK_NODE_API_LIBRARY_NAME "@rpath/weak-node-api.framework/weak-node-api"
Expand Down
Loading