Skip to content

Commit 11f7914

Browse files
chore(deps): update dependency posthog-node to v5.5.0 (#589)
This PR contains the following updates: | Package | Type | Update | Change | OpenSSF | |---|---|---|---|---| | [posthog-node](https://redirect.github.com/PostHog/posthog-js-lite) ([source](https://redirect.github.com/PostHog/posthog-js-lite/tree/HEAD/posthog-node)) | dependencies | minor | [`5.4.0` -> `5.5.0`](https://renovatebot.com/diffs/npm/posthog-node/5.4.0/5.5.0) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/PostHog/posthog-js-lite/badge)](https://securityscorecards.dev/viewer/?uri=github.com/PostHog/posthog-js-lite) | --- ### Release Notes <details> <summary>PostHog/posthog-js-lite (posthog-node)</summary> ### [`v5.5.0`](https://redirect.github.com/PostHog/posthog-js-lite/blob/HEAD/posthog-node/CHANGELOG.md#550--2025-07-10) [Compare Source](https://redirect.github.com/PostHog/posthog-js-lite/compare/posthog-node-v5.4.0...posthog-node-v5.5.0) 1. feat: make the `sendFeatureFlags` parameter more declarative and ergonomic. Implementation notes below: Modified `sendFeatureFlags` to be type `boolean | SendFeatureFlagsOptions`, (which is defined thusly) ```ts export interface SendFeatureFlagsOptions { onlyEvaluateLocally?: boolean personProperties?: Record<string, any> groupProperties?: Record<string, Record<string, any>> } ``` This lets users declare (1) whether to use local evaluation, and (2) which properties to supply explicitly for that evaluation, every time they want to send feature flags. It also supports the old boolean behavior if folks don't care and would rather the SDK infer it. Now, you can make calls like this ```ts posthog.captureImmediate({ distinctId: "user123", event: "test event", sendFeatureFlags: { onlyEvaluateLocally: true, personProperties: { plan: "premium", }, }, properties: { foo: "bar", }, }); ``` or simply ``` posthog.captureImmediate({ distinctId: "user123", event: "test event", sendFeatureFlags: true // this will still infer local evaluation if it appears to be configured, but it won't try to pull properties from the event message properties: { foo: "bar", }, }); ``` </details> --- ### Configuration 📅 **Schedule**: Branch creation - At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday ( * 0-4,22-23 * * 1-5 ), Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/settlemint/docs). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> ## Summary by Sourcery New Features: - Support declarative sendFeatureFlags parameter accepting boolean or options object with local evaluation and property overrides by default Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent ede9c2f commit 11f7914

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bun.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"lucide-react": "0.525.0",
4141
"next": "15.3.5",
4242
"posthog-js": "1.257.0",
43-
"posthog-node": "5.4.0",
43+
"posthog-node": "5.5.0",
4444
"prettier": "3.6.2",
4545
"react": "19.1.0",
4646
"react-dom": "19.1.0",

0 commit comments

Comments
 (0)