posthog-js breaking changes
Updated December 4, 2026
On this page
Latest version 1.457.11, released December 5, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
posthog-js 1.456.4 breaking changes
- Removed
ConversationsTraits.__index
ConversationsTraits.__index was removed in posthog-js 1.456.4 npmjs.com - Removed
ConversationsTraits.email
ConversationsTraits.email was removed in posthog-js 1.456.4 npmjs.com - Removed
ConversationsTraits.name
ConversationsTraits.name was removed in posthog-js 1.456.4 npmjs.com - Removed
GetMessagesResponse.has_more
GetMessagesResponse.has_more was removed in posthog-js 1.456.4 npmjs.com - Removed
GetMessagesResponse.messages
GetMessagesResponse.messages was removed in posthog-js 1.456.4 npmjs.com - Removed
GetMessagesResponse.ticket_id
GetMessagesResponse.ticket_id was removed in posthog-js 1.456.4 npmjs.com - Removed
GetMessagesResponse.ticket_status
GetMessagesResponse.ticket_status was removed in posthog-js 1.456.4 npmjs.com - Removed
GetMessagesResponse.unread_count
GetMessagesResponse.unread_count was removed in posthog-js 1.456.4 npmjs.com - Removed
GetTicketsOptions.limit
GetTicketsOptions.limit was removed in posthog-js 1.456.4 npmjs.com - Removed
GetTicketsOptions.offset
GetTicketsOptions.offset was removed in posthog-js 1.456.4 npmjs.com - Removed
GetTicketsOptions.status
GetTicketsOptions.status was removed in posthog-js 1.456.4 npmjs.com - Removed
GetTicketsResponse.count
GetTicketsResponse.count was removed in posthog-js 1.456.4 npmjs.com - Removed
GetTicketsResponse.results
GetTicketsResponse.results was removed in posthog-js 1.456.4 npmjs.com - Removed
MarkAsReadResponse.success
MarkAsReadResponse.success was removed in posthog-js 1.456.4 npmjs.com - Removed
MarkAsReadResponse.unread_count
MarkAsReadResponse.unread_count was removed in posthog-js 1.456.4 npmjs.com - Removed
Message.author_name
Message.author_name was removed in posthog-js 1.456.4 npmjs.com - Removed
Message.author_type
Message.author_type was removed in posthog-js 1.456.4 npmjs.com - Removed
Message.content
Message.content was removed in posthog-js 1.456.4 npmjs.com - Removed
Message.created_at
Message.created_at was removed in posthog-js 1.456.4 npmjs.com - Removed
Message.id
Message.id was removed in posthog-js 1.456.4 npmjs.com - Removed
Message.is_private
Message.is_private was removed in posthog-js 1.456.4 npmjs.com - Removed
Message.rich_content
Message.rich_content was removed in posthog-js 1.456.4 npmjs.com - Removed
RequestRestoreLinkPayload.email
RequestRestoreLinkPayload.email was removed in posthog-js 1.456.4 npmjs.com - Removed
RequestRestoreLinkPayload.request_url
RequestRestoreLinkPayload.request_url was removed in posthog-js 1.456.4 npmjs.com - Removed
RequestRestoreLinkResponse.ok
RequestRestoreLinkResponse.ok was removed in posthog-js 1.456.4 npmjs.com - Removed
RestoreFromTokenPayload.current_url
RestoreFromTokenPayload.current_url was removed in posthog-js 1.456.4 npmjs.com - Removed
RestoreFromTokenPayload.distinct_id
RestoreFromTokenPayload.distinct_id was removed in posthog-js 1.456.4 npmjs.com - Removed
RestoreFromTokenPayload.restore_token
RestoreFromTokenPayload.restore_token was removed in posthog-js 1.456.4 npmjs.com - Removed
RestoreFromTokenPayload.widget_session_id
RestoreFromTokenPayload.widget_session_id was removed in posthog-js 1.456.4 npmjs.com - Removed
RestoreFromTokenResponse.code
RestoreFromTokenResponse.code was removed in posthog-js 1.456.4 npmjs.com - Removed
RestoreFromTokenResponse.migrated_ticket_ids
RestoreFromTokenResponse.migrated_ticket_ids was removed in posthog-js 1.456.4 npmjs.com - Removed
RestoreFromTokenResponse.status
RestoreFromTokenResponse.status was removed in posthog-js 1.456.4 npmjs.com - Removed
RestoreFromTokenResponse.widget_session_id
RestoreFromTokenResponse.widget_session_id was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessagePayload.distinct_id
SendMessagePayload.distinct_id was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessagePayload.identity_distinct_id
SendMessagePayload.identity_distinct_id was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessagePayload.identity_hash
SendMessagePayload.identity_hash was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessagePayload.message
SendMessagePayload.message was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessagePayload.session_context
SendMessagePayload.session_context was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessagePayload.session_id
SendMessagePayload.session_id was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessagePayload.ticket_id
SendMessagePayload.ticket_id was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessagePayload.traits
SendMessagePayload.traits was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessagePayload.widget_session_id
SendMessagePayload.widget_session_id was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessageResponse.created_at
SendMessageResponse.created_at was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessageResponse.message_id
SendMessageResponse.message_id was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessageResponse.ticket_id
SendMessageResponse.ticket_id was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessageResponse.ticket_status
SendMessageResponse.ticket_status was removed in posthog-js 1.456.4 npmjs.com - Removed
SendMessageResponse.unread_count
SendMessageResponse.unread_count was removed in posthog-js 1.456.4 npmjs.com - Removed
SessionContext.current_url
SessionContext.current_url was removed in posthog-js 1.456.4 npmjs.com - Removed
SessionContext.session_replay_url
SessionContext.session_replay_url was removed in posthog-js 1.456.4 npmjs.com - Removed
SessionRecordingPersistedConfig.cache_timestamp
SessionRecordingPersistedConfig.cache_timestamp was removed in posthog-js 1.456.4 npmjs.com
And 26 more in this version. Sign up to see every change
posthog-js 1.456.1 breaking changes
- Behavior changed
tracing_headers
Fetch requests to tracing_headers hosts no longer keep PostHog ID headers the SDK has no current value for, including headers the app or another PostHog instance set. Code that relies on those headers being sent must set them another way. github.com
posthog-js 1.455.0 breaking changes
- Behavior changed
A v=4 flag record with a field of the wrong JSON type is read as a disabled flag without a payload. Other flags in the same response are not affected. github.com - Behavior changed
posthog-js now requests /flags/?v=4 instead of /flags/?v=2 and reads typed flag records. Tests that mock /flags may need to match the new URL. github.com - Behavior changed
$feature_flag_reason
For config version 2 flags, $feature_flag_called now sends the reason code and rule attribution in place of $feature_flag_reason. Code that reads $feature_flag_reason on these events must change. Config version 2 experiment splits also now... github.com
posthog-js 1.454.7 breaking changes
- Behavior changed
Session Replay's new private early fetch response option changes WebKit behavior: a request aborted while its body is being read rejects with a TypeError instead of an AbortError. Code that checks for AbortError in WebKit must handle... github.com
posthog-js 1.454.0 breaking changes
- Behavior changed
mask_personal_data_properties
With mask_personal_data_properties enabled, ScCid, SsCid and sscid are now masked in captured URLs, including landing URLs stored by older SDK versions. Code that reads these values from captured events may see masked data. github.com
posthog-js 1.453.3 breaking changes
- Behavior changed
Events captured while session replay is off no longer include replay debug properties. Code that reads those properties from events must not expect them when replay is off. github.com
Older versions
47 older versions, each with its first changes. Sign up to see every change
Show 47 older versions
posthog-js 1.453.2 breaking changes
- Behavior changed
Survey buttons now take their accessible name from the visible, configured or translated text instead of the fixed English 'Submit survey' label. Tests that find the button by that name must use the visible text or the .form-submit class... github.com
posthog-js 1.453.1 breaking changes
- Behavior changed
$sdk_debug_extensions_init_method
$sdk_debug_extensions_init_method and $sdk_debug_extensions_init_time_ms are now registered only when extensions were loaded and their initialization took measurable time. Code that expects these properties to always be present must handle... github.com - Behavior changed
$sdk_debug_retry_queue_size
On web, $sdk_debug_retry_queue_size is only attached while requests are waiting to be retried, and on React Native $sdk_debug_pending_queue_size only once the queue reaches flushAt. Code that expects these properties on every event must... github.com
posthog-js 1.451.3 breaking changes
- Behavior changed
Privacy markers are now checked across shadow hosts and slots before autocapture collects text and attributes, so less data may be collected from those elements. github.com - Behavior changed
Autocapture now skips elements whose ancestor privacy checks cannot finish, so some events that were previously captured may no longer be sent. github.com
posthog-js 1.451.0 breaking changes
- Behavior changed
With site apps disabled, remote config is fetched as JSON and no longer falls back to config.js when that request fails. Sites with a Content Security Policy and no reverse proxy must allow the assets host in connect-src. github.com
posthog-js 1.450.0 breaking changes
- Behavior changed
getAllFlags
Node getAllFlags() no longer includes keys whose evaluation failed, and failed values and payloads are not exposed. Code that reads those keys must handle them being absent. github.com - Behavior changed
getFeatureFlag
When a flag evaluation fails, Node getFeatureFlag() returns undefined. Code that expects a fallback value must handle undefined. github.com
And 1 more in this version.
posthog-js 1.447.13 breaking changes
- Default changed
metrics.flushIntervalMs
The default metrics export interval is now one minute instead of 10 seconds. Set metrics.flushIntervalMs explicitly to keep the previous timing. github.com
posthog-js 1.447.4 breaking changes
- Removed
PersistentStore._rawText
PersistentStore._rawText was removed in posthog-js 1.447.4 npmjs.com
posthog-js 1.447.2 breaking changes
- Behavior changed
maskAllInputs
With maskAllInputs enabled, hidden input values are now masked in session replay recordings. Users who rely on recordings showing those values should review their masking settings. github.com
posthog-js 1.447.0 breaking changes
- Behavior changed
posthog.flags.request.duration
The experimental posthog.flags.request.duration histogram now uses bounds from 50ms to 10000ms, which changes its buckets. Update any dashboards or queries that depend on the old buckets. github.com
posthog-js 1.446.0 breaking changes
- Behavior changed
posthog.metrics
posthog.metrics now drops any counter, gauge, or histogram recorded after posthog.shutdown() is called, and a late sample no longer restarts the flush timer. Code that records metrics after shutdown will see those samples discarded. github.com
posthog-js 1.445.6 breaking changes
- Behavior changed
A timed-out XHR request now resolves as { statusCode: 0, error } with a named AbortError, matching the fetch transport. Feature flag requests over XHR now retry on timeout and record a timeout flag error, so code that inspects these errors... github.com
posthog-js 1.444.4 breaking changes
- Behavior changed
Web experiment HTML transforms are sanitized, so unsupported tags and attributes are removed. Code that relies on those tags or attributes in experiment transforms must change. github.com
posthog-js 1.438.23 breaking changes
- Default changed
Synchronous session replay fetch capture is enabled by default in new SDK versions. Users who need the previous behavior must turn it off explicitly. github.com
posthog-js 1.438.21 breaking changes
- Behavior changed
The IE11 Math.trunc and Number.isInteger polyfills are now shipped only in array.full.es5.js, so modern bundles no longer include them. Code relying on these polyfills from the modern bundles must load array.full.es5.js instead. github.com - Behavior changed
Prefilled survey ratings of 0 are rejected on rating scales that start at 1. Check any code that prefills a survey rating with 0. github.com
posthog-js 1.438.17 breaking changes
- Behavior changed
session_recording.recordHeaders
When recordHeaders and recordBody are false and network timing is off, the network plugin is not installed even if the project enables network payload capture. Previously request URLs and timings were still recorded, so check code that... github.com
posthog-js 1.438.14 breaking changes
- Removed
DisplaySurveyPopoverOptions.displayType
DisplaySurveyPopoverOptions.displayType was removed in posthog-js 1.438.14 npmjs.com - Removed
DisplaySurveyPopoverOptions.ignoreConditions
DisplaySurveyPopoverOptions.ignoreConditions was removed in posthog-js 1.438.14 npmjs.com
And 44 more in this version.
posthog-js 1.438.7 breaking changes
- Behavior changed
captureLog
captureLog calls made before logging setup are now dropped instead of buffered. Make sure logging is set up before calling captureLog. github.com - Behavior changed
logger
logger calls made before logging setup are now dropped instead of buffered. Make sure logging is set up before calling logger. github.com
And 3 more in this version.
posthog-js 1.438.2 breaking changes
- Removed
FlagsResponse.errorsWhileComputingFlags
FlagsResponse.errorsWhileComputingFlags was removed in posthog-js 1.438.2 npmjs.com - Removed
FlagsResponse.evaluatedAt
FlagsResponse.evaluatedAt was removed in posthog-js 1.438.2 npmjs.com
And 9 more in this version.
posthog-js 1.438.1 breaking changes
- Behavior changed
rageclick.content_ignorelist
Clicks on carousel and pager arrow controls no longer produce $rageclick events, and keyword matching now uses the clicked control's label instead of all ancestors. To keep the old capturing, set rageclick content_ignorelist to false. github.com
posthog-js 1.438.0 breaking changes
- Default changed
WebMCP tool intent and model metadata are now captured without any opt-in. Users who do not want this data collected should review their configuration. github.com
posthog-js 1.437.0 breaking changes
- Signature changed
PostHogConfig
Was type PostHogConfig = Omit<PostHogConfig$1, 'loaded'> & {loaded: (posthog: PostHogInterface) => void; disableDeviceModel?: boolean; __extensionClasses?: {exceptions?: ExtensionConstructor<PostHogExceptions>; historyAutocapture?... npmjs.com
posthog-js 1.435.7 breaking changes
- Behavior changed
Shared identity is now kept while consent is pending and cleared after shared rejection in cookieless mode. Code that relied on the previous identity handling may behave differently. github.com
posthog-js 1.435.2 breaking changes
- Behavior changed
Captured events carry fewer replay debug properties, while recording status and capture diagnostics are kept. Mutation-drop counts and dropped bytes now appear on $snapshot events only when greater than zero, so code that reads those... github.com
posthog-js 1.435.1 breaking changes
- Behavior changed
PostHogFeature
Without a match prop, PostHogFeature now renders the fallback when the flag evaluates to false. Check code that relied on the previous rendering. github.com
posthog-js 1.434.16 breaking changes
- Behavior changed
When both the modern and deprecated replay network masking callbacks are configured, the modern one is now used. Check that your masking logic in the modern callback is what you intend. github.com
posthog-js 1.434.3 breaking changes
- Behavior changed
Flag requests now retry once by default on HTTP 502/504 and request timeouts. To keep the previous behavior, set the feature_flag_request_max_retries config to 0. github.com
posthog-js 1.434.0 breaking changes
- Renamed
metrics.network
The metrics.network default attributes are renamed to OTel HTTP client semantic conventions; method, host, path and status_class are replaced. Update any dashboards or queries that use the old attribute names. github.com
posthog-js 1.433.8 breaking changes
- Behavior changed
send_instantly
Events captured with send_instantly, including the initial $pageview, now use synchronous compression to dispatch requests without delay. Code relying on the previous async timing may observe different dispatch timing. github.com
posthog-js 1.433.3 breaking changes
- Default changed
Fetch requests send only the origin as the referrer, so page paths and query strings are omitted. Code that depends on full referrers must set a different referrer policy explicitly. github.com
posthog-js 1.433.0 breaking changes
- Behavior changed
When the Meta pixel is present, the _fbc cookie's click time now takes precedence over the pageview timestamp PostHog records. The _fbp value is captured as the $fbp person property. Reads follow save_campaign_params and cookieless mode... github.com
posthog-js 1.432.0 breaking changes
- Signature changed
PostHog._send_retriable_request
Was _send_retriable_request(options: QueuedRequestWithOptions): void; now _send_retriable_request(options: QueuedRequestWithOptions, transportOverride?: QueuedRequestWithOptions['transport']): void. npmjs.com
posthog-js 1.431.8 breaking changes
- Behavior changed
Clicks stopped from bubbling are now checked for dead clicks, which may raise dead-click counts for inert controls. Review dashboards or filters that depend on those counts. github.com
posthog-js 1.431.2 breaking changes
- Behavior changed
Exceptions captured from console output are now marked as handled and identify their console origin, so exception data sent to PostHog differs from before. Check any filtering or alerting that depends on the handled flag. github.com
posthog-js 1.431.1 breaking changes
- Behavior changed
Internal SDK console diagnostics are excluded from exception autocapture, and recoverable recorder diagnostics are reported as warnings. Code that relied on those messages being captured as exceptions should check its error tracking. github.com
posthog-js 1.430.0 breaking changes
- Behavior changed
remote_config_refresh_interval_ms
If remote_config_refresh_interval_ms is not set, automatic feature flag refreshes now back off on idle visible pages. Set the interval explicitly to keep the previous refresh timing. github.com
posthog-js 1.429.5 breaking changes
- Behavior changed
Log exports now retry no later than 30 seconds after a failing endpoint recovers, instead of backing off to 192s on web or 640s on React Native. Expect more retry requests while an endpoint is down. github.com
posthog-js 1.429.4 breaking changes
- Behavior changed
Stack frames served over schemes other than http(s), file, blob, app, capacitor, ionic, a bundler scheme or a bare path are no longer in_app. Issues from those frames no longer group under your code, so review existing error grouping. github.com
posthog-js 1.429.2 breaking changes
- Signature changed
ActionStepStringMatching
Was export {ActionStepStringMatching, ActionStepType, BasicSurveyQuestion, Compression, ConversationsRemoteConfig, DisplaySurveyType, ErrorTrackingSuppressionRule, ErrorTrackingSuppressionRuleValue, FlagVariant, LinkSurveyQuestion... npmjs.com - Signature changed
ActionStepType
Was export {ActionStepStringMatching, ActionStepType, BasicSurveyQuestion, Compression, ConversationsRemoteConfig, DisplaySurveyType, ErrorTrackingSuppressionRule, ErrorTrackingSuppressionRuleValue, FlagVariant, LinkSurveyQuestion... npmjs.com
And 134 more in this version.
posthog-js 1.428.10 breaking changes
- Behavior changed
URL values inside captured JSON-LD payloads are now subject to the replay URL privacy settings, so URLs that were previously captured as-is may now be masked or filtered. github.com
posthog-js 1.428.6 breaking changes
- Behavior changed
Once PostHog's own pagehide or unload handler marks the page as unloading, unbatched events such as send_instantly captures are sent with sendBeacon. Captures from beforeunload or earlier pagehide listeners keep their normal transport. github.com
posthog-js 1.428.5 breaking changes
- Behavior changed
Recorded script placeholders are now rendered as empty text, so replays no longer leak the internal placeholder into third-party widgets. github.com - Behavior changed
Snapshots held by timing gates are stored in sessionStorage and picked up by the next page in the same tab rather than being lost on unload. github.com
posthog-js 1.428.2 breaking changes
- Behavior changed
String values in ordinary capture properties are now truncated. Check any code that depends on full-length captured strings. github.com
posthog-js 1.427.3 breaking changes
- Behavior changed
A false value now means a conclusive off evaluation, while undefined means no evaluation is available. Remote evaluation omits globally inactive flags, so code that checks flag results should handle undefined separately from false. github.com
posthog-js 1.426.0 breaking changes
- Signature changed
PostHog.identify
Was identify(new_distinct_id?: string, userPropertiesToSet?: Properties, userPropertiesToSetOnce?: Properties): void; now identify(new_distinct_id: string, userPropertiesToSet?: Properties, userPropertiesToSetOnce?: Properties): void. npmjs.com
posthog-js 1.418.15 breaking changes
- Signature changed
PostHog.__defaultExtensionClasses.surveys
Was surveys?: ExtensionConstructor<PostHogSurveys>; now surveys?: ExtensionConstructor<BrowserSurveys>. npmjs.com - Signature changed
PostHog.surveys
Was surveys: TreeShakeable<PostHogSurveys>; now surveys: TreeShakeable<BrowserSurveys>. npmjs.com
And 1 more in this version.
posthog-js 1.418.14 breaking changes
- Signature changed
PostHog.autocapture
Was autocapture?: Autocapture; now autocapture?: BrowserAutocapture. npmjs.com
posthog-js 1.416.0 breaking changes
- Signature changed
PostHog.reset
Was reset(reset_device_id?: boolean): void; now reset(options?: boolean | ResetOptions): void. npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.