Skip to content

docs(setup): record React Native's projectToken adoption - #152

Draft
posthog[bot] wants to merge 2 commits into
mainfrom
posthog/rn-project-token-adopted
Draft

posthog[bot] wants to merge 2 commits into
mainfrom
posthog/rn-project-token-adopted

Conversation

@posthog

@posthog posthog Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Why

The setup spec's descriptive prose says two client SDKs have not adopted the projectToken name, naming React Native's PostHogProvider apiKey prop. posthog-js#5436 implemented the spec's "Project token configuration option name" and "Deprecated project credential alias" requirements for React Native: PostHogProvider now takes projectToken, apiKey is kept as a @deprecated alias in the same release, and projectToken wins when both are set. The spec's status note is now wrong.

What changed

Prose only, in the non-normative "Surface variants" section:

  • React Native joins the list of SDKs naming the credential projectToken, with the deprecated apiKey alias noted.
  • Unity is now the one client SDK that has not adopted the name.
  • The positional constructor is written as new PostHog(projectToken, options?), matching the renamed parameter. The spec's point that a positional parameter's name is not part of the contract is unchanged.

No requirement text changes, so there is no OpenSpec delta to propose and archive — this is a factual correction to an SDK-status note, not a contract change. Happy to wrap it in a change directory if you'd rather every edit under openspec/specs/ carry one.

Not covered

compliance/posthog-react-native.md still carries the old "Downgraded on new spec text" finding for this row. The weekly compliance audit owns those files, so this PR leaves them alone.


Created with PostHog Desktop

🤖 Generated with Claude Code

posthog Bot added 2 commits October 27, 2026 07:04
posthog-android ran the hook chain twice per stateful capture, and posthog-rust merged groups and trimmed minimized $feature_flag_called events after the hook. Both now match posthog-ios and posthog-python. Specify the single invocation and the event shape the hook sees.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Generated-By: PostHog Desktop
Task-Id: 4237a2aa-9610-4c4f-a024-1ae7a64b0d75
posthog-js added a projectToken prop to PostHogProvider and deprecated apiKey, so the spec's note that React Native has not adopted the name is out of date. Unity remains the one client SDK still on ApiKey.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Generated-By: PostHog Desktop
Task-Id: 4237a2aa-9610-4c4f-a024-1ae7a64b0d75
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.

0 participants