Repository navigation
chore!: remove 5.x-deprecated names for v6 - #638
Conversation
|
[High risk] Removes deprecated API names across the SDK. This PR appears safe to merge as an intentional v6 breaking change. Reviews (1) · Last reviewed commit: "chore!: remove enable/disable and sendFe..." |
posthog-flutter Compliance ReportDate: 2026-10-07 00:36:09 UTC ✅ All Tests Passed!45/45 tests passed Capture Tests✅ 29/29 tests passed View Details
Feature_Flags Tests✅ 16/16 tests passed View Details
|
fc1a4c3 to
08a61e2
Compare
b996dea to
047d564
Compare
08a61e2 to
1a5ba2f
Compare
|
@ioannisj thoughts on this? |
| "posthog_flutter": minor | ||
| --- | ||
|
|
||
| - Add `Posthog().optIn()` and `Posthog().optOut()`, and deprecate `enable()` and `disable()` | ||
| - Add `PostHogConfig.sendFeatureFlagEvent`, and deprecate `sendFeatureFlagEvents` |
There was a problem hiding this comment.
seems somewhat confusing to deprecate as minor and remove as major within a single change. depending on where i'm looking at the changelog i'll be getting different information about enable(), disable(), sendFeatureFlagEvents
There was a problem hiding this comment.
Yea, that changeset was from #636, which has now shipped in 5.51.0. Rebasing the v6 stack on main removed changeset.
Removes the names deprecated in 5.x in favor of optIn/optOut and sendFeatureFlagEvent. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
0ae4f04 to
9279d41
Compare
1a5ba2f to
61ca95d
Compare
* chore!: rename platform enable/disable to optIn/optOut PosthogFlutterPlatformInterface.enable()/disable() become optIn()/optOut() to match the public Posthog API renamed in #636/#638. The method-channel names sent to native stay 'enable'/'disable'. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * docs(changeset): cover direct platform callers in the opt-in/out rename Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Removes the names deprecated in 5.x in favor of optIn/optOut and sendFeatureFlagEvent. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore!: rename platform enable/disable to optIn/optOut PosthogFlutterPlatformInterface.enable()/disable() become optIn()/optOut() to match the public Posthog API renamed in #636/#638. The method-channel names sent to native stay 'enable'/'disable'. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * docs(changeset): cover direct platform callers in the opt-in/out rename Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Removes the names deprecated in 5.x in favor of optIn/optOut and sendFeatureFlagEvent. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore!: rename platform enable/disable to optIn/optOut PosthogFlutterPlatformInterface.enable()/disable() become optIn()/optOut() to match the public Posthog API renamed in #636/#638. The method-channel names sent to native stay 'enable'/'disable'. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * docs(changeset): cover direct platform callers in the opt-in/out rename Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
💡 Motivation and Context
Stacked on #637 (v6 base). This removes the APIs that 5.x deprecates:
Posthog().enable()/disable()optIn()/optOut()PostHogConfig.sendFeatureFlagEventssendFeatureFlagEventCommits:
main.Merge order: #636 into
main→ rebase #637 → this PR.💚 How did you test it?
flutter analyze: no issues, for the plugin and for the example appflutter test: 781 passdart format --set-exit-if-changed: cleanscripts/check-api-dart.sh: snapshot updated per commit📝 Checklist
If releasing new changes
pnpm changesetto generate a changeset file🤖 Agent context
Autonomy: Human-driven (agent-assisted)
PostHogWidgetStateandPostHogMaskWidgetStatearen't touched here. chore: make PostHogWidgetState and PostHogMaskWidgetState internal #635 already marks them@internaland hides them from the export, so making them private would only be tidying.TRACK_APPLICATION_LIFECYCLE_EVENTSfallback andgetFeatureFlagResult(sendEvent:)out on purpose. The fallback was never deprecated, andsendEventalready matches posthog-js / React Native.🤖 Generated with Claude Code