1.71.0
Minor Changes
-
#5990
a393b4fThanks @turnipdabeets! -PostHogCoreBasemerges a caller$groupsover the registered groups on that event, the caller's key winning per group type, andcapture()andidentify()no longer register it;PostHogCorekeeps its behavior
(2026-12-03) -
#5990
a393b4fThanks @turnipdabeets! - Let SDKs on capture v1 keep only the events capture didn't accept, halve a batch after a 413, and cap batches by event bytes, through opt-insendBatch()outcomes, batch byte and resend size hooks, and a hold on flushes thatshutdown()waits out when it fits in its timeout; SDKs that don't use them are unchanged.
(2026-12-03) -
#5990
a393b4fThanks @turnipdabeets! - Add the@posthog/core/capture-v1entry point, the Capture V1 transport the PostHog SDKs share. It follows semver like the rest of@posthog/core, so an installed SDK keeps working with a newer core;CaptureError,CaptureDroppedEvent,CaptureErrorParamsandCaptureEndpointare also exported by posthog-node.
(2026-12-03) -
#5990
a393b4fThanks @turnipdabeets! - Mark a capture v1 send whose request timed out withtimedOuton its deferral, so an SDK can resend those events in smaller batches
(2026-12-03) -
#5990
a393b4fThanks @turnipdabeets! - - Accept capture options onalias(),setPersonProperties()andunsetPersonProperties(), applyidentify()'s capture options to the$setevent it sends for an already-identified user, and show an event'soptionstobefore_send- Fix
setPersonProperties()ignoring a repeat call with the same properties afterbefore_senddropped the earlier$setevent or changed its distinct ID,$setor$set_once, or after that event was sent without person processing. A repeat call is now skipped only when the same properties went out on a$setevent that processes the person (2026-12-03)
- Fix
-
#5990
a393b4fThanks @turnipdabeets! - - AcceptsendFeatureFlagEventas the per-call option ofgetFeatureFlag(),getFeatureFlagResult()andisFeatureEnabled(); it takes precedence oversendEvent- Add
PostHogCoreBase, the client core withoutgetFeatureFlagPayload(),getFeatureFlagPayloads(),getFeatureFlags(),getFeatureFlagsAndPayloads(),onFeatureFlag(),overrideFeatureFlag(),onFeatureFlags()andreloadFeatureFlagsAsync(), so an SDK can define its own. OnPostHogCoreBase, a flag whose variant is an empty string reads as disabled,$active_feature_flagslists only enabled flags, bootstrapped string payloads stay strings,getAllFeatureFlags()returnsundefineduntil flags are cached,$feature_flag_calledcarries$used_bootstrap_valueonly for a bootstrapped flag, andgetFeatureFlag()returnsundefinedfor a flag that isn't in the loaded flags. An SDK can overridegetFlagsRequestTimezone()to sendtimezonewith/flagsrequests.PostHogCorekeeps all of these unchanged PostHogCoreBaselets a registered or caller$is_identifiedor$process_person_profilewin (anull$process_person_profilecounts as unset; anull$is_identifiedstays), sends theprocess_person_profile: falsecapture option instead of a$process_person_profileproperty on personless events, passes a capture call'soptionson to the queued event, leaves a registered$process_person_profileoff identity and person-update events ($identify,$create_alias,$groupidentify,$set,$set_once,$merge_dangerously) and stamps person state on$autocaptureevents;PostHogCorekeeps its behavior- Add
isEnabledFlagValue(), which tells whether a flag value is on - Deprecate the per-call
sendEventoption in favor ofsendFeatureFlagEvent - Fix feature flags loaded for the previous user being stored and emitted when
reset()runs during a flag request (2026-12-03)
- Add
-
#5990
a393b4fThanks @turnipdabeets! -PostHogCoreBaselets a registered property replace the SDK's own value of the same name, fills$liband$lib_versionas a pair after the caller's properties, and lets a registered or caller$session_idor$geoip_disablewin, with a per-calldisableGeoipwinning over a registered$geoip_disableand a caller$geoip_disablewinning over both;PostHogCorekeeps its behavior
(2026-12-03) -
#5990
a393b4fThanks @turnipdabeets! - AddtimedOuttoSendBatchOutcome, which keeps the batch's events and halves the batch size for the next flush
(2026-12-03)
Patch Changes
-
#5990
a393b4fThanks @turnipdabeets! - Send a capture v1 request body uncompressed when compressing it takes longer than the request timeout, instead of waiting on the compressor
(2026-12-03) -
#5990
a393b4fThanks @turnipdabeets! - Take the capture v1 sender's token asprojectToken, and keep reading the deprecatedapiKeyfrom SDK builds that still pass it
(2026-12-03) -
#5990
a393b4fThanks @turnipdabeets! - Let an SDK with its own gzip, such as React Native's native plugin, also compress the requests core sends, such as OTLP logs, whereCompressionStreamis missing
(2026-12-03) -
#5990
a393b4fThanks @turnipdabeets! - FixgetAllFeatureFlags()onPostHogCorelisting a flag set only withoverrideFeatureFlag()without itskey
(2026-12-03) -
#5990
a393b4fThanks @turnipdabeets! - -identify()with a whitespace-only distinct ID logs a warning and does nothing, instead of saving it as the distinct ID;identify('')still sends$setfor the current user- Keep a registered
$cookieless_mode,$ignore_sent_ator$product_tour_idon minimal$feature_flag_calledevents - Log only the type of an error a
before_sendfunction throws, not the error - Add the protected
generateEventUuid(), which an SDK can override to choose how event uuids are made identify()andsetPersonProperties()no longer throw for person properties that can't be serialized, such as aBigInt; they skip the duplicate check instead- The capture v1 sender stops its compression deadline timer when the send is aborted, such as by
shutdown(), and stampsPostHog-Request-Timestampafter compressing the body (2026-12-03)
- Keep a registered