Repository navigation
docs(react-native): add the 4.x to 5.0 migration guide - #5725
turnipdabeets wants to merge 3 commits into
Conversation
📝 No Changeset FoundThis PR doesn't include a changeset. A changeset is required to release a new version. How to add a changesetRun this command and follow the prompts: pnpm changesetRemember: Never use |
|
Coherence📄 0 spec file errors · ⛔ 0 broken rules · 🚪 2 unchecked inputs · 🐛 0 bugs that came back What is Coherence?Coherence compares the code with its spec files ( This check read 44 parts of the code and 7 rules. Note These findings do not make this check fail. None of these findings are in files that this pull request changes. You do not need to fix them in this pull request. 🚪 Unchecked inputs (2)
What this means and how to fix itInput from outside this code comes in at these places. The spec does not say what checks that input. 10 more places were already like this when Coherence was added. This list does not show them. To close one of these, find the place by its name in the
To get the line to add, run |
SDK performance: posthog-nodeBenchmarks completed. No changes flagged for review. Flags require at least a 5% change in the median and all six pairs agreeing on direction. This is a noise filter, not proof of a performance change or a CI gate. View all results
Values are medians of paired measurements. Not flagged does not mean unchanged. Unavailable means a measurement could not be provided, not zero. Estimated allocation measurements retain their instrumentation uncertainty. RSS measures the whole process, not just SDK allocations; observed peaks are sampled checkpoints. Paired ranges in the diagnostics describe variability, not confidence intervals. Each shard uses its own runner; compare Before PR against With PR within a row, not across shards. Compared 102 metric rows; 102 rows shown in all results. Omitted or shortened data remain in |
…reMethod in the 5.0 guide Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
Part of the posthog-react-native 5.0 major (#5534). 5.0 changes the capture endpoint, removes deprecated options, plugin fallbacks and feature flag methods, and adds
captureAi(). Apps upgrading need one place that lists what to change, like posthog-node 6'sMIGRATION.md.Changes
packages/react-native/MIGRATION.md: a checklist, then sections for reverse proxies and self-hosted PostHog, the native plugin, removed options, feature flags (onFeatureFlags, removed methods, payloads, hooks), event delivery and AI events, with before/after snippets.It documents the changes in #5701, #5703, #5702 and #5708, so it should merge into
chore/rn-v5after them; anything those PRs change before merging needs a matching edit here. The guide links to the plugin'sMIGRATION.mdfrom #5194.Not covered yet: the posthog.com upgrade guide, which will be built from this.
Release info Sub-libraries affected
Libraries affected
Docs only;
MIGRATION.mdisn't in the npm package, so there's no changeset.Checklist
If releasing new changes
pnpm changesetto generate a changeset file🤖 Agent context
Autonomy: Human-driven (agent-assisted)
getAllFeatureFlags()returns a list of results,fetchRetryCountisn't described as still applying elsewhere, andscreenshotModeBackgroundCapturestays (feat(react-native)!: drop legacy replay plugin and deprecated config #5701 restored it).$localeisn't in the guide: RN already sends the first preferred language as a full tag (de-CH) through expo-localization or react-native-localize, matching posthog-ios 4.0. On Android with a per-app language it follows the app's language, while posthog-android 4.0 reports the device language; that's unchanged in 5.0.