NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4153 most downloaded on npm
Type definitions for the PostHog JavaScript SDK
Last release 5 days ago
29 Sep 2026
Ships on a steady schedule
a new release about every 9 days
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 months old
261 releases · first in 2026
One column per month.
Nothing published for this version
Nothing published for this version
Nothing published for this version
### Patch Changes - #3386 `4a65604` Thanks @dustinbyrne! - Add a preview flag for versioned browser lazy bundle asset paths. (2026-04-16)
4a65604 Thanks @dustinbyrne! - Add a preview flag for versioned browser lazy bundle asset paths.
(2026-04-16)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
### Minor Changes - #3345 `3fcf5c4` Thanks @jonmcwest! - Add posthog.captureLog() API for sending structured log entries to PostHog logs (2026-04-13)
3fcf5c4 Thanks @jonmcwest! - Add posthog.captureLog() API for sending structured log entries to PostHog logs
(2026-04-13)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
### Patch Changes - #3323 `c387f6d` Thanks @pauldambra! - perf(replay): reduce memory and CPU cost of event compression by caching gzipped empty array
c387f6d Thanks @pauldambra! - perf(replay): reduce memory and CPU cost of event compression by caching gzipped empty arrays and eliminating redundant JSON.stringify for size estimation
(2026-04-08)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
### Patch Changes - #3274 `ba08262` Thanks @pauldambra! - fix: document visibility change shoudln't capture dead click (2026-03-25)
ba08262 Thanks @pauldambra! - fix: document visibility change shoudln't capture dead click
(2026-03-25)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
### Patch Changes - #3245 `1acd6fd` Thanks @dmarticus! - handle plain array and object forms in overrideFeatureFlags (2026-03-20)
1acd6fd Thanks @dmarticus! - handle plain array and object forms in overrideFeatureFlags
(2026-03-20)Nothing published for this version
Nothing published for this version
### Minor Changes - #3241 `fe1fd7b` Thanks @dustinbyrne! - feat: add advanced_feature_flags_dedup_per_session config option to scope $feature_flag_cal
fe1fd7b Thanks @dustinbyrne! - feat: add advanced_feature_flags_dedup_per_session config option to scope $feature_flag_called deduplication to the current session
(2026-03-18)Nothing published for this version
Nothing published for this version
### Minor Changes - #3207 `c5a37cb` Thanks @dustinbyrne! - feat: Add TreeShakeable (2026-03-09)
c5a37cb Thanks @dustinbyrne! - feat: Add TreeShakeable<T>
(2026-03-09)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
### Minor Changes - #3169 `4f885c0` Thanks @marandaneto! - feat: add local sampleRate config for session recording (2026-03-02)
4f885c0 Thanks @marandaneto! - feat: add local sampleRate config for session recording
(2026-03-02)Nothing published for this version
Nothing published for this version
### Minor Changes - #3142 `ec54fd8` Thanks @dmarticus! - Add feature_flag_cache_ttl_ms config to prevent stale flag values (2026-02-26) ### Patch Chan
ec54fd8 Thanks @dmarticus! - Add feature_flag_cache_ttl_ms config to prevent stale flag values
(2026-02-26)d741668 Thanks @dmarticus! - Adds a remote_config_refresh_interval_ms config option to control how often feature flags are automatically refreshed in long-running sessions.
(2026-02-26)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →