Skip to content

[eas-cli] update deprecated posthog session replay package with new one - #4102

Merged
gwdp merged 3 commits into
expo:mainfrom
metehandemir:@metehandemir/posthog-session-replay-package-update
Jul 29, 2026
Merged

[eas-cli] update deprecated posthog session replay package with new one#4102
gwdp merged 3 commits into
expo:mainfrom
metehandemir:@metehandemir/posthog-session-replay-package-update

Conversation

@metehandemir

Copy link
Copy Markdown
Contributor

Why

eas integrations:posthog:connect currently installs the deprecated posthog-react-native-session-replay package.

As of posthog-react-native 4.47.0+, PostHog renamed this plugin to @posthog/react-native-plugin, which now provides both Session Replay and native error tracking. The old package is only intended for projects using versions of posthog-react-native earlier than 4.47.0.

This change updates the integration to install the new package for supported versions, aligning the generated project with the current PostHog documentation.

Fixes #4101

How

Updated the PostHog integration to use @posthog/react-native-plugin instead of posthog-react-native-session-replay.

The integration now follows the current PostHog package naming introduced in posthog-react-native 4.47.0+, avoiding installation of a deprecated dependency for new projects.

Test Plan

Verified the change by running:

eas integrations:posthog:connect

Before this change:

✔ Installed posthog-react-native-session-replay

After this change:

✔ Installed @posthog/react-native-plugin

Confirmed that the generated project installs the new plugin successfully and that the PostHog integration continues to configure correctly.

@github-actions

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
packages/eas-cli/** @douglowder

Generated by CodeMention

Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead.

@metehandemir metehandemir changed the title update: deprecated posthog session replay package with new one [eas-cli] update deprecated posthog session replay package with new one Jul 28, 2026
@gwdp

gwdp commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Thanks for catching this @metehandemir 🙏 I verified the rename against PostHog's docs, and it's spot on: @posthog/react-native-plugin (≥2.0.1) is the renamed posthog-react-native-session-replay, which PostHog shipped in posthog-react-native 4.47.0 at the end of June.

One thing before it can be merged — it needs a CHANGELOG.md entry. Mind adding this under## main → ### 🐛 Bug fixes (or 🧹 Chores, either's fine)?

@gwdp
gwdp self-requested a review July 28, 2026 17:36
@metehandemir

Copy link
Copy Markdown
Contributor Author

Done! I've added the CHANGELOG.md entry under 🐛 Bug fixes and pushed the update.
@gwdp

@gwdp gwdp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ty @metehandemir! Please, check CI failure. (Changelog check is expected to fail, nothing to act, just 'Test with Node')

@metehandemir
metehandemir requested a review from gwdp July 29, 2026 02:01
@gwdp
gwdp merged commit cb0045d into expo:main Jul 29, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eas integrations:posthog:connect installs deprecated posthog-react-native-session-replay package

2 participants