posthog-node
6.0.5 · 19 Nov 2026MIT23.9M / weekRepositorynpmAtom feed
370 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
5.34.6
19 May 2026Fix six edge cases in local feature flag evaluation.
gt/gte/lt/ltenow compare numerically when both sides parse as finite numbers — previously a string override like"10"against numeric value9slipped into lexicographic comparison and returned false, andparseFloat's NaN return value leaked through the old!= nullguard.is_not_setnow resolves locally — true when the property key is absent, false when present — instead of always throwingInconclusiveMatchErrorand forcing the flag to return undefined. Flag-level condition properties withnegation: trueare now correctly inverted, matching the existing cohort-path behavior inmatchPropertyGroup. An inactive flag (active: false) now short-circuits to false even whenensure_experience_continuity: true— previously it threwInconclusiveMatchErrorand resolved to undefined.is_setnow returns true for properties whose value isnullorundefinedas long as the key is present —is_setis about key presence, not value. Cohort property groups containing a flag-type property no longer silently skip the dependency; the cohort eval is now marked inconclusive so the flag returns undefined instead of a wrong definitive answer.
(2026-05-19)
5.34.1 – 5.34.55 releases that only update dependencies@posthog/core 1.29.5Show each
- 5.34.518 May 2026@posthog/core 1.29.5
- 5.34.418 May 2026@posthog/core 1.29.4
- 5.34.318 May 2026@posthog/core 1.29.3
- 5.34.215 May 2026@posthog/core 1.29.2
- 5.34.112 May 2026@posthog/core 1.29.1
5.34.0
12 May 2026Expose UUID and cookie helpers from
@posthog/coreandposthog-nodefor users managing distinct_id outside the browser SDK (e.g. Lambda functions handing out cross-domain redirects). The helpers were already implemented in@posthog/next— this change lifts them to core so all SDKs can re-use them.@posthog/nextnow re-exports the same surface from@posthog/coreto keep existing consumers working without churn. Closes #2143.
(2026-05-12)
Minor Changes
Expose UUID and cookie helpers from
@posthog/coreandposthog-nodefor users managing distinct_id outside the browser SDK (e.g. Lambda functions handing out cross-domain redirects). The helpers were already implemented in@posthog/next— this change lifts them to core so all SDKs can re-use them.@posthog/nextnow re-exports the same surface from@posthog/coreto keep existing consumers working without churn. Closes #2143.
(2026-05-12)
5.33.3 – 5.33.75 releases that only update dependencies@posthog/core 1.28.7Show each
- 5.33.711 May 2026@posthog/core 1.28.7
- 5.33.611 May 2026@posthog/core 1.28.6
- 5.33.511 May 2026@posthog/core 1.28.5
- 5.33.47 May 2026@posthog/core 1.28.4
- 5.33.35 May 2026@posthog/core 1.28.3
5.33.2
4 May 2026Consume fetch response body to prevent CF Workers runtime warnings
(2026-05-04)
Patch Changes
Consume fetch response body to prevent CF Workers runtime warnings
(2026-05-04)
5.33.1
4 May 2026Only updates a dependency:@posthog/core 1.28.1
5.33.0
2 May 2026Add
evaluateFlags()and a newflagsoption oncapture()so a single/flagsrequest powers both flag branching and event enrichment per incoming request:const flags = await posthog.evaluateFlags(distinctId, { personProperties: { plan: 'enterprise' } }) if (flags.isEnabled('new-dashboard')) { renderNewDashboard() } posthog.capture({ distinctId, event: 'page_viewed', flags })The returned
FeatureFlagEvaluationssnapshot exposesisEnabled(),getFlag(),getFlagPayload()for branching, plusonlyAccessed()andonly([keys])for filtering which flags get attached to a captured event. PassflagKeys: [...]toevaluateFlags()to scope the underlying/flagsrequest itself.captureException()/captureExceptionImmediate()accept aflagsargument so$exceptionevents carry the same flag context as the rest of your request's events.Deprecates
isFeatureEnabled(),getFeatureFlag(),getFeatureFlagPayload(), andcapture({ sendFeatureFlags }). They continue to work but now log a deduped[PostHog] ... is deprecatedwarning the first time they're used. Removal is planned for the next major version. (2026-05-02)
5.32.1
1 May 2026Only updates a dependency:@posthog/core 1.28.0
5.32.0
30 Apr 2026flags: Support mixed targeting in local evaluation
(2026-04-30)
5.31.0
29 Apr 2026Add Express and NestJS request context support for PostHog tracing headers.
(2026-04-29)
5.30.1 – 5.30.88 releases that only update dependencies@posthog/core 1.27.9Show each
- 5.30.829 Apr 2026@posthog/core 1.27.9
- 5.30.729 Apr 2026@posthog/core 1.27.8
- 5.30.627 Apr 2026@posthog/core 1.27.7
- 5.30.527 Apr 2026@posthog/core 1.27.6
- 5.30.424 Apr 2026@posthog/core 1.27.5
- 5.30.324 Apr 2026@posthog/core 1.27.4
- 5.30.224 Apr 2026@posthog/core 1.27.3
- 5.30.124 Apr 2026@posthog/core 1.27.2
5.30.0
23 Apr 2026Send relative file paths in frames
(2026-04-23)
5.29.5 – 5.29.73 releases that only update dependencies@posthog/core 1.27.1Show each
- 5.29.723 Apr 2026@posthog/core 1.27.1
- 5.29.623 Apr 2026@posthog/core 1.27.0
- 5.29.522 Apr 2026@posthog/core 1.26.0
5.29.4
21 Apr 2026flags: Switch local evaluation polling from
/api/feature_flag/local_evaluationto/flags/definitions
(2026-04-21)
5.29.3
21 Apr 2026Trim surrounding whitespace from user-provided API keys, personal API keys, and host config values before using them.
(2026-04-21)
Patch Changes
Trim surrounding whitespace from user-provided API keys, personal API keys, and host config values before using them.
(2026-04-21)
5.29.2
9 Apr 2026Send $device_id as a top-level field in /flags requests so the feature flags service can use it for device-based bucketing during remote evaluation
(2026-04-09)
Patch Changes
Send $device_id as a top-level field in /flags requests so the feature flags service can use it for device-based bucketing during remote evaluation
(2026-04-09)
5.29.1
7 Apr 2026Only updates a dependency:@posthog/core 1.25.1
5.29.0
7 Apr 2026Preserve $set_once semantics in local flag evaluation cache
(2026-04-07)
Minor Changes
Preserve $set_once semantics in local flag evaluation cache
(2026-04-07)
5.28.11
2 Apr 2026Only updates a dependency:@posthog/core 1.24.6
5.28.10
1 Apr 2026Extract CLI and sourcemap utilities from @posthog/core into @posthog/plugin-utils to remove cross-spawn from React Native dependencies
(2026-04-01)
Patch Changes
Extract CLI and sourcemap utilities from @posthog/core into @posthog/plugin-utils to remove cross-spawn from React Native dependencies
(2026-04-01)
5.28.7 – 5.28.93 releases that only update dependencies@posthog/core 1.24.4Show each
- 5.28.930 Mar 2026@posthog/core 1.24.4
- 5.28.827 Mar 2026@posthog/core 1.24.3
- 5.28.727 Mar 2026@posthog/core 1.24.2
5.28.6
26 Mar 2026captureException now uses distinctId from request context
(2026-03-26)
5.28.4 – 5.28.52 releases that only update dependencies@posthog/core 1.24.1Show each
- 5.28.520 Mar 2026@posthog/core 1.24.1
- 5.28.418 Mar 2026@posthog/core 1.24.0
5.28.3
18 Mar 2026Fix captureExceptionImmediate return value
(2026-03-18)
5.28.2
13 Mar 2026Omit the config query parameter by default to request only the necessary data
(2026-03-13)Client shutdown awaits the feature flags poller to stop
(2026-03-13)
Patch Changes
Omit the config query parameter by default to request only the necessary data
(2026-03-13)Client shutdown awaits the feature flags poller to stop
(2026-03-13)
5.28.1
11 Mar 2026Only updates a dependency:@posthog/core 1.23.3
5.28.0
5 Mar 2026Add nestjs integration with interceptor for context propagation
(2026-03-05)
5.27.1
5 Mar 2026Add semver comparison operators to local feature flag evaluation: semver_eq, semver_neq, semver_gt, semver_gte, semver_lt, semver_lte, semver_tilde, semver_caret, and semver_wildcard
(2026-03-05)
5.27.0
4 Mar 2026Accept a
waitUntilmethod for serverless environments
(2026-03-04)
5.26.2
2 Mar 2026Only updates a dependency:@posthog/core 1.23.2
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.