You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bcb987e
Browse filesBrowse the repository at this point in the historyBrowse files
Close two test gaps: unverified prebuild Info.plist and a missing .node fixture
Closes#424.
- verify-prebuilds.mts now reads the Info.plist it finds inside each
.framework, asserting CFBundleExecutable matches the framework's library
name and CFBundleIdentifier matches the default writeFrameworkInfoPlist
derives (com.callstackincubator.node-api.<libraryName>, escaped), since
none of the examples pass --apple-bundle-identifier. escapeBundleIdentifier
is now exported from react-native-node-api's node entrypoint so the
verifier (a consumer of the package, like any addon author) can reuse it.
- The babel plugin's "does not touch required JS files" test now includes a
sibling my-addon.apple.node/my-addon.node fixture alongside my-addon.js,
per the TODO. That exposed a real bug: isNodeApiModule didn't check
whether a same-named .js/.cjs/.mjs/.json file would already satisfy
require() before considering .node prebuilds, so the plugin rewrote calls
Node's own resolution would never route to the addon. Fixed by deferring
to a colliding source file when the module path has no explicit .node
extension.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q1k6UQJPPaqKEKmnsRUatt
0 commit comments