refactor: use non-deprecated methods internally in react and nuxt packages#3182
Merged
marandaneto merged 3 commits intomainfrom Mar 2, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Contributor
|
Size Change: +829 B (+0.01%) Total Size: 6.7 MB
ℹ️ View Unchanged
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
dustinbyrne
approved these changes
Mar 2, 2026
Contributor
dustinbyrne
left a comment
There was a problem hiding this comment.
Nice! Looks like prettier needs to be applied to one file but otherwise 👍 👍
Member
Author
pretty and i have a toxic relationship |
Member
Author
|
@PostHog/team-error-tracking i need your review or i cannot merge it |
ablaszkiewicz
approved these changes
Mar 2, 2026
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.
Problem
The
@posthog/reactand@posthog/nuxtpackages were using the deprecatedgetFeatureFlagPayload()method internally. This method is deprecated in favor ofgetFeatureFlagResult()which properly supports the new feature flag API.Changes
@posthog/react: UpdateduseFeatureFlagPayloadhook to useclient.getFeatureFlagResult(flag, { send_event: false })?.payloadinstead ofclient.getFeatureFlagPayload(flag)@posthog/nuxt: UpdateduseFeatureFlagPayloadcomposable to useposthog.getFeatureFlagResult(flag, { send_event: false })?.payloadinstead ofposthog.getFeatureFlagPayload(flag)PostHogFeature.test.tsxto includegetFeatureFlagResultBehavior is preserved:
{ send_event: false }maintains backwards compatibility (the old method never tracked calls).Release info Sub-libraries affected
Libraries affected
Checklist
If releasing new changes
pnpm changesetto generate a changeset file