Repository navigation
feat: Support getExperimentFlag, trackEvent and trackExposure methods - #156
Conversation
Its entry in Flagsmith/sdk-spec's compatibility matrix at v0.7.1: `core or events or local-evaluation`.
|
Important Review skippedThis PR was authored by a bot without an assigned CodeRabbit review seat. Ask an organization administrator to assign a seat to the bot. See the seat-assignment guide. After the seat is assigned, request a review again.
|
…osures Implements the events steps of SDK spec v0.6.0. - `Flagsmith::getExperimentFlag()` gets an identity's flag and records a `$flag_exposure` event for the variant served, when the identity is enrolled in a running experiment on the feature. - `Flagsmith::trackEvent()` and `Flagsmith::trackExposureEvent()` record custom and exposure events; `Flagsmith::flushEvents()` sends them now. - `EventProcessor` buffers events, deduplicates exposures, and posts them to the Flagsmith events API on flush, when full, after the flush interval, or when destroyed. Events are opt-in via `enableEvents`. - `Flag` exposes the `variant` and `experiment` the identities API returns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 0dad745)
- Reject `withEventProcessor()` on offline instances, as the constructor already does for `enableEvents`. - Remove `EventProcessor`'s unused `$timeout` parameter: PSR-18 has no per-request timeout, so document passing a client configured with one. - Read the SDK version from composer.json once per process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit c3b3474)
|
The spec job failed because v0.7.1 now runs this SDK's Changes
Verification (local)
|
getExperimentFlag, trackEvent and trackExposure methods
🤖 I have created a release *beep* *boop* --- ## [5.3.0](v5.2.0...v5.3.0) (2026-11-09) ### Features * Support `getExperimentFlag`, `trackEvent` and `trackExposure` methods ([#156](#156)) ([42b3fff](42b3fff)) ### Other * Let Renovate keep updating spec bumps the webhook handler commits to ([#153](#153)) ([faddb16](faddb16)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Contributes to Flagsmith/sdk-spec#13