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.26.1
2 Mar 2026Improve local feature flag evaluation debugging by adding timestamp tracking. Locally evaluated flags now include timing information in
$feature_flag_calledevents to help debug cache TTL and timing issues, matching what's available for remote evaluation.
(2026-03-02)
5.26.0
25 Feb 2026getFeatureFlagResult, getAllFlags, getAllFlagsAndPayloads now have context-sensitive overrides which do not require
distinctIdas a parameter, instead reading it from the current context.
(2026-02-25)Add
enterContext()to attach a context to the current async execution context
(2026-02-25)
5.25.0
23 Feb 2026Officially adds support for super properties added with
.register(it was available as a function but did not actually work previously)
(2026-02-23)
5.24.17
18 Feb 2026Warning on manual capture('$exception')
(2026-02-18)
Patch Changes
Warning on manual capture('$exception')
(2026-02-18)
5.24.14 – 5.24.163 releases that only update dependencies@posthog/core 1.23.0Show each
- 5.24.1617 Feb 2026@posthog/core 1.23.0
- 5.24.1510 Feb 2026@posthog/core 1.22.0
- 5.24.149 Feb 2026@posthog/core 1.21.0
5.24.13
9 Feb 2026Add /edge subpath export for non-standard edge runtimes
(2026-02-09)
5.24.6 – 5.24.127 releases that only update dependencies@posthog/core 1.20.2Show each
- 5.24.129 Feb 2026@posthog/core 1.20.2
- 5.24.116 Feb 2026@posthog/core 1.20.1
- 5.24.104 Feb 2026@posthog/core 1.20.0
- 5.24.93 Feb 2026@posthog/core 1.19.0
- 5.24.83 Feb 2026@posthog/core 1.18.0
- 5.24.729 Jan 2026@posthog/core 1.17.0
- 5.24.629 Jan 2026@posthog/core 1.16.0
5.24.5
29 Jan 2026before_send in node inferred the type as any instead of EventMessage or null
(2026-01-29)
5.24.1 – 5.24.44 releases that only update dependencies@posthog/core 1.15.0Show each
- 5.24.428 Jan 2026@posthog/core 1.15.0
- 5.24.327 Jan 2026@posthog/core 1.14.1
- 5.24.223 Jan 2026@posthog/core 1.14.0
- 5.24.120 Jan 2026@posthog/core 1.13.0
5.24.0
20 Jan 2026Add $feature_flag_error to $feature_flag_called events to track flag evaluation failures
(2026-01-20)
Minor Changes
Add $feature_flag_error to $feature_flag_called events to track flag evaluation failures
(2026-01-20)
5.23.0
19 Jan 2026- Deprecated
posthog.initoptionevaluationEnvironmentsis now deprecated in favor ofevaluationContexts. The old property will continue to work and will log a deprecation warning. It will be removed in a future major version. Renamed
evaluationEnvironmentstoevaluationContextsfor clearer semantics. The term "contexts" better reflects that this feature is for specifying evaluation contexts (e.g., "web", "mobile", "checkout") rather than deployment environments (e.g., "staging", "production").
Minor Changes
Renamed
evaluationEnvironmentstoevaluationContextsfor clearer semantics. The term "contexts" better reflects that this feature is for specifying evaluation contexts (e.g., "web", "mobile", "checkout") rather than deployment environments (e.g., "staging", "production").
Deprecated
- Deprecated
posthog.initoptionevaluationEnvironmentsis now deprecated in favor ofevaluationContexts. The old property will continue to work and will log a deprecation warning. It will be removed in a future major version.
Migration Guide
// Before posthog.init('<ph_project_api_key>', { evaluationEnvironments: ['production', 'web', 'checkout'], }) // After posthog.init('<ph_project_api_key>', { evaluationContexts: ['production', 'web', 'checkout'], }) ``` (2026-01-19)5.22.0
19 Jan 2026Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
5.21.2
19 Jan 2026Add getFeatureFlagResult method to retrieve flag value and payload in a single API call.
(2026-01-19)
5.21.1
16 Jan 2026Only updates a dependency:@posthog/core 1.10.0
5.21.0
14 Jan 2026Add warning when experience continuity flags are detected during local evaluation, and new
strictLocalEvaluationoption.Warning: When using local evaluation with flags that have experience continuity enabled, a warning is now emitted explaining that these flags will cause server requests on every evaluation, negating local evaluation cost savings.
New option:
strictLocalEvaluation: truecan be set at client init to prevent all server fallback for flag evaluations. Flags that cannot be evaluated locally will returnundefinedinstead of making a server request. This is useful in high-volume environments where you want to guarantee no unexpected server costs. (2026-01-14)
5.20.0
8 Jan 2026Track LLMA trace_id on exceptions and exception_id on traces
(2026-01-08)
Minor Changes
Track LLMA trace_id on exceptions and exception_id on traces
(2026-01-08)
5.19.0
6 Jan 2026Add overrideFeatureFlags() method for local testing and development
(2026-01-06)
5.18.1
30 Dec 2025getFeatureFlag() respects exponential backoff for HTTP 401, 403, and 429 responses.
(2025-12-30)
5.18.0
22 Dec 2025Add $feature_flag_error to $feature_flag_called events when an error occurred while trying evaluate a flag
(2025-12-22)
Minor Changes
Add $feature_flag_error to $feature_flag_called events when an error occurred while trying evaluate a flag
(2025-12-22)
5.17.3 – 5.17.42 releases that only update dependencies@posthog/core 1.8.1Show each
- 5.17.417 Dec 2025@posthog/core 1.8.1
- 5.17.316 Dec 2025@posthog/core 1.8.0
5.17.2
4 Dec 2025Local evaluation polling sends If-None-Match header with latest etag to reduce bandwidth when no flags have changed.
(2025-12-04)
5.17.1
4 Dec 2025- Security
Related to wiz.io/blog/critical-vulnerability-in-react-cve…
We didn't include any of the vulnerable deps in any of our packages, however we did have them as dev / test / example project dependencies.
There was no way that any of these vulnerable packages were included in any of our published packages.
We've now patched out those dependencies.
Out of an abundance of caution, let's create a new release of all of our packages. (2025-12-04)
Patch Changes
- Security
Related to wiz.io/blog/critical-vulnerability-in-react-cve…
We didn't include any of the vulnerable deps in any of our packages, however we did have them as dev / test / example project dependencies.
There was no way that any of these vulnerable packages were included in any of our published packages.
We've now patched out those dependencies.
Out of an abundance of caution, let's create a new release of all of our packages. (2025-12-04)
5.17.0
3 Dec 2025Make contexts inherit by default
(2025-12-03)
5.16.0
3 Dec 2025Add $feature_flag_evaluated_at properties to $feature_flag_called events
(2025-12-03)
Minor Changes
Add $feature_flag_evaluated_at properties to $feature_flag_called events
(2025-12-03)
5.15.0
1 Dec 2025Improve cache initialization performance
(2025-12-01)Add context support
(2025-12-01)
5.14.1
28 Nov 2025Forward session and distinct id in express error handler
(2025-11-28)
5.14.0
24 Nov 2025Package deprecation
(2025-11-24)
Minor Changes
Package deprecation
(2025-11-24)
5.13.2 – 5.13.43 releases with no change for you1 dependency update, 2 without a note@posthog/core 1.5.5Show each
- 5.13.424 Nov 2025no note
- 5.13.324 Nov 2025no note
- 5.13.220 Nov 2025@posthog/core 1.5.5
5.13.1
20 Nov 2025Reading the note…
5.13.0
19 Nov 2025fetchis called without a bound contextThis prevents issues in edge runtimes such as Cloudflare (2025-11-19)
Fix frame platform property for $exception events
(2025-11-19)
Minor Changes
fetchis called without a bound contextThis prevents issues in edge runtimes such as Cloudflare (2025-11-19)
Patch Changes
Fix frame platform property for $exception events
(2025-11-19)
5.12.0
19 Nov 2025Add
FlagDefinitionCacheProviderinterface and client configuration option
5.11.3
24 Nov 2025Reading the note…
5.11.2
6 Nov 2025Reading the note…
5.11.1
5 Nov 2025Reading the note…
5.11.0
31 Oct 2025Add bot pageview collection behind preview flag. Enables tracking bot traffic as
$bot_pageviewevents when the__preview_capture_bot_pageviewsflag is enabled.
Minor Changes
Add bot pageview collection behind preview flag. Enables tracking bot traffic as
$bot_pageviewevents when the__preview_capture_bot_pageviewsflag is enabled.
5.10.4
27 Oct 2025Reading the note…
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.