Skip to content

Add base64url/utf16le encoding, Jest parity tests, and example app#1

Open
cybercarrot wants to merge 8 commits intoiwater:mainfrom
cybercarrot:main
Open

Add base64url/utf16le encoding, Jest parity tests, and example app#1
cybercarrot wants to merge 8 commits intoiwater:mainfrom
cybercarrot:main

Conversation

@cybercarrot
Copy link
Copy Markdown

Summary

  • feat: Add JS-side encoding helpers for base64url, utf16le/ucs2, and ASCII decoding — eliminates unnecessary native round-trips for these encodings
  • fix: Fix lastIndexOf bounds overflow, improve Buffer.from for typed arrays and Symbol.toPrimitive, make concat respect totalLength truncation
  • fix: Correct podspec homepage/source URLs (previously pointed to rn-http-server), add nitro.json to published files so consumers get working autolinking
  • chore: Upgrade react-native-nitro-modules peer dep from ^0.32.0 to ^0.35.0, add nitrogen as explicit devDependency, configure ignorePaths in nitro.json
  • test: Add Node-environment Jest parity tests validating Buffer behavior against node:buffer, with NitroModules mock
  • chore: Add React Native CLI example app with Maestro smoke test flows
  • docs: Update READMEs with testing section and revised API descriptions, add AGENTS.md and CLAUDE.md

Test plan

  • yarn test — all Jest parity tests pass
  • cd example && yarn ios — verify example app runs on iOS simulator
  • cd example && yarn android — verify example app runs on Android emulator
  • cd example && yarn test:e2e — Maestro smoke tests pass

🤖 Generated with Claude Code

moonhoo and others added 8 commits March 10, 2026 18:28
Add JS-side encoding helpers for base64url, utf16le/ucs2, and ASCII
so these paths no longer require native round-trips. Fix lastIndexOf
bounds overflow, improve Buffer.from for typed arrays and
Symbol.toPrimitive, and make concat respect totalLength truncation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Bump react-native-nitro-modules peer dep from ^0.32.0 to ^0.35.0,
add nitrogen as explicit devDependency, simplify build script, and
configure ignorePaths in nitro.json to skip node_modules and example.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix podspec homepage and source pointing to wrong repo (rn-http-server),
add repository/homepage/bugs fields to package.json, and include
nitro.json in the files array so consumers get working autolinking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add Node-environment Jest tests validating Buffer behavior against
node:buffer, including core API, encoding edge cases, and utility
functions. Include NitroModules mock backed by Node.js Buffer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add standalone example app for real-device validation of the
Nitro Buffer implementation, including smoke test cases and
Maestro automation flows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Revise API compatibility claims, add testing section and new encoding
examples to both READMEs. Add repository guidelines (AGENTS.md) and
Claude Code guidance (CLAUDE.md) for contributor onboarding.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove 12000+ files in example/ios/build-targeted/ that were
accidentally committed. Add build-targeted/ to .gitignore.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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