Skip to content

Commit dae80f8

Browse files
committed
chore: Mark the sendFeatureFlagEvents option for getFeatureFlagPayload as deprecated
This option is not used.
1 parent fe898a4 commit dae80f8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.changeset/thin-pets-cut.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'posthog-node': patch
3+
---
4+
5+
The `sendFeatureFlagEvents` option for `getFeatureFlagPayload` is now marked as deprecated as it is not used.

packages/node/src/client.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,12 +781,13 @@ export abstract class PostHogBackendClient extends PostHogCoreStateless implemen
781781
personProperties?: Record<string, string>
782782
groupProperties?: Record<string, Record<string, string>>
783783
onlyEvaluateLocally?: boolean
784+
/** @deprecated THIS OPTION HAS NO EFFECT, kept here for backwards compatibility reasons. */
784785
sendFeatureFlagEvents?: boolean
785786
disableGeoip?: boolean
786787
}
787788
): Promise<JsonType | undefined> {
788789
const { groups, disableGeoip } = options || {}
789-
let { onlyEvaluateLocally, sendFeatureFlagEvents, personProperties, groupProperties } = options || {}
790+
let { onlyEvaluateLocally, personProperties, groupProperties } = options || {}
790791

791792
const adjustedProperties = this.addLocalPersonAndGroupProperties(
792793
distinctId,
@@ -826,9 +827,6 @@ export abstract class PostHogBackendClient extends PostHogCoreStateless implemen
826827
if (onlyEvaluateLocally == undefined) {
827828
onlyEvaluateLocally = false
828829
}
829-
if (sendFeatureFlagEvents == undefined) {
830-
sendFeatureFlagEvents = true
831-
}
832830

833831
const payloadWasLocallyEvaluated = response !== undefined
834832

0 commit comments

Comments
 (0)