Repository navigation
fix: require @craftzdog/react-native-buffer 6.1.3, drop the base64 alias - #1121
Merged
Merged
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@craftzdog/react-native-buffer6.1.3 (craftzdog/react-native-buffer#18) picks its base64 library at bundle time: it always requiresbase64-js, and its"react-native"package.json field redirects that toreact-native-quick-base64in React Native bundlers. Bundlers without React Native no longer resolve quick-base64, so bare hosts and Nitro UI apps can drop thereact-native-quick-base64→base64-jsalias.The
react-native-quick-base64peer dependency stays. On React Native, craftzdog's Buffer still loads it, and autolinking only builds native modules the app lists in its ownpackage.json.Changes
packages/react-native-quick-crypto/package.json:@craftzdog/react-native-buffer^6.1.3. RNQC's ownbase64-jsdependency is removed; it now comes from craftzdog's package.example/test/bare/aliases.mjsandexample-nitro/app.json: the quick-base64 alias is gone.example-nitro: dropsbase64-jsand thebase64ToArrayBuffer/base64FromArrayBufferglobals 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:iospassed: 42 suites, 2211 tests, 0 failures (iOS 27.2 simulator).bun run e2e:androidpassed: 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 iosinexample-nitrobuilds without the alias; the Hermes bytecode containsbase64-jsand noreact-native-quick-base64.Bun.buildofsrc/index.ts(targetbrowser) succeeds without any alias.bun tscacross workspaces (includingexample-nitro), lint and Prettier are clean; pre-commit hooks passed.Not run here:
scripts/bare-host.sh androidand 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-validationand screenshot posting don't apply, because the verifier only covers PRs intomain.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