[eas-cli] update deprecated posthog session replay package with new one - #4102
Conversation
|
Subscribed to pull request
Generated by CodeMention Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead. |
|
Thanks for catching this @metehandemir 🙏 I verified the rename against PostHog's docs, and it's spot on: One thing before it can be merged — it needs a CHANGELOG.md entry. Mind adding this under |
|
Done! I've added the |
gwdp
left a comment
There was a problem hiding this comment.
Ty @metehandemir! Please, check CI failure. (Changelog check is expected to fail, nothing to act, just 'Test with Node')
Why
eas integrations:posthog:connectcurrently installs the deprecatedposthog-react-native-session-replaypackage.As of
posthog-react-native4.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 ofposthog-react-nativeearlier than4.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-plugininstead ofposthog-react-native-session-replay.The integration now follows the current PostHog package naming introduced in
posthog-react-native4.47.0+, avoiding installation of a deprecated dependency for new projects.Test Plan
Verified the change by running:
Before this change:
After this change:
Confirmed that the generated project installs the new plugin successfully and that the PostHog integration continues to configure correctly.