Skip to content

fix: require @craftzdog/react-native-buffer 6.1.3, drop the base64 alias - #1121

Merged
boorad merged 1 commit into
nextfrom
fix/1116-buffer-6.1.3
Dec 4, 2026
Merged

boorad merged 1 commit into
nextfrom
fix/1116-buffer-6.1.3

Conversation

@boorad

@boorad boorad commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

@craftzdog/react-native-buffer 6.1.3 (craftzdog/react-native-buffer#18) picks its base64 library at bundle time: it always requires base64-js, and its "react-native" package.json field redirects that to react-native-quick-base64 in React Native bundlers. Bundlers without React Native no longer resolve quick-base64, so bare hosts and Nitro UI apps can drop the react-native-quick-base64 → base64-js alias.

The react-native-quick-base64 peer dependency stays. On React Native, craftzdog's Buffer still loads it, and autolinking only builds native modules the app lists in its own package.json.

Changes

  • packages/react-native-quick-crypto/package.json: @craftzdog/react-native-buffer ^6.1.3. RNQC's own base64-js dependency is removed; it now comes from craftzdog's package.
  • example/test/bare/aliases.mjs and example-nitro/app.json: the quick-base64 alias is gone.
  • example-nitro: drops base64-js and the base64ToArrayBuffer / base64FromArrayBuffer globals that nothing reads since fix: queueMicrotask for async callbacks, drop quick-base64 from the RN entry #1119.
  • docs/content/docs/guides/bare-host.mdx, scripts/bare-host.sh: no alias step.

Testing

All at 3aa8c4fb:

  • bun run e2e:ios passed: 42 suites, 2211 tests, 0 failures (iOS 27.2 simulator).
  • Then bun run e2e:android passed: 42 suites, 2211 tests, 0 failures (API 36 arm64-v8a emulator).
  • scripts/bare-host.sh ios: BARE_HOST_RESULT PASS, 26 Swift tests passed. Its bundle no longer has the alias.
  • nitro-ui bundle --release --platform ios in example-nitro builds without the alias; the Hermes bytecode contains base64-js and no react-native-quick-base64.
  • A Bun.build of src/index.ts (target browser) succeeds without any alias.
  • bun tsc across workspaces (including example-nitro), lint and Prettier are clean; pre-commit hooks passed.
  • Independent review found no breakage.

Not run here: scripts/bare-host.sh android and the Nitro UI app on a device. Android's bare-host bundle is the same JS, built by the same step as iOS.

agentscm/local-validation and screenshot posting don't apply, because the verifier only covers PRs into main.

Delivery

Consumers get the new minimum Buffer version in the next npm release from next. Apps without React Native can remove their quick-base64 alias once they're on that release.

Fixes #1116

🤖 Generated with Claude Code

6.1.3 always requires base64-js and redirects it to
react-native-quick-base64 through its react-native field, so bundlers
without React Native no longer resolve quick-base64. Remove the alias from
the bare-host tests, example-nitro and the bare-host guide, RNQC's own
base64-js dependency (now craftzdog's), and example-nitro's unused base64
globals.

The react-native-quick-base64 peer dependency stays: React Native apps
must still list it so autolinking builds the native module.

Fixes #1116
@boorad boorad self-assigned this Dec 4, 2026
@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-native-quick-crypto Ready Ready Preview Dec 4, 2026 4:43pm UTC

Request Review

@boorad
boorad merged commit 9c2ec65 into next Dec 4, 2026
5 checks passed
@boorad
boorad deleted the fix/1116-buffer-6.1.3 branch December 4, 2026 16:52

This branch was successfully deployed

1 active deployment
Preview — 3aa8c4fb Deployed Dec 4, 2026 by vercel[bot]
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