posthog-js-lite
4.14.0
Minor Changes
- #5693
d8389d7Thanks @marandaneto! - Treat failed flag evaluations as unavailable: NodegetFeatureFlag()/isFeatureEnabled()returnundefined,getAllFlags()omits failed keys, and no failed values or payloads are exposed. (2026-11-15)
Patch Changes
- Updated dependencies [
d8389d7]:- @posthog/core@1.68.0
4.13.3
Patch Changes
- #5481
5764dddThanks @gustavohstrassburger! - Feature flags read before the user opts in to capturing now send$feature_flag_calledwhen the user opts in, without being read again. This fixes missing exposures from the React and React Native hooks, which read a flag once on mount. (2026-11-04) - Updated dependencies [
5764ddd]:- @posthog/core@1.63.1
4.13.2
Patch Changes
- #5431
96d7ff2Thanks @turnipdabeets! - DeprecategetFeatureFlags(),getFeatureFlagPayloads()andgetFeatureFlagsAndPayloads()in favor ofgetAllFeatureFlags(),onFeatureFlag()in favor ofonFeatureFlags(), thecboption ofreloadFeatureFlags()in favor ofreloadFeatureFlagsAsync(), andoverrideFeatureFlag()in favor ofupdateFlags(). In React Native, also deprecate theuseFeatureFlagWithPayload()hook in favor ofuseFeatureFlagResult(). They continue to work. (2026-10-27) - Updated dependencies [
96d7ff2]:- @posthog/core@1.61.1
4.13.1
Patch Changes
- #5365
964e736Thanks @gustavohstrassburger! - Feature flags read before the user opts in to capturing now send$feature_flag_calledthe next time they are read after opt in. (2026-10-22) - Updated dependencies [
964e736]:- @posthog/core@1.59.4
4.13.0
Minor Changes
- #5257
2788b40Thanks @turnipdabeets! - Change properties passed tocapture()and the other event methods to override SDK context properties such as$app_version,$os_nameand$lib, matching posthog-js and posthog-android (2026-10-10)
Patch Changes
- Updated dependencies [
2788b40]:- @posthog/core@1.58.0
4.12.1
Patch Changes
- #4798
4358915Thanks @posthog! - fix(error-tracking): collapse repeated frame cycles in parsed stack traces to reduce grouping differences caused by recursion depth, while preserving distinct throw locations (2026-09-09) - Updated dependencies [
4358915]:- @posthog/core@1.51.1
4.12.0
Minor Changes
- #4809
3a5b322Thanks @marandaneto! - Add best-effort in-app browser attribution using$webview_appand$webview_app_version, without changing existing$browseror$browser_versionvalues. Detect explicit user-agent markers for Facebook, Facebook Lite, Messenger, Instagram, Threads, LinkedIn, Twitter, TikTok, WhatsApp, Snapchat, WeChat, LINE, Google, Bing, Pinterest, Naver, and KakaoTalk. Unknown apps and versions are omitted; missing markers do not imply a standalone browser. (2026-09-07)
Patch Changes
- Updated dependencies [
3a5b322]:- @posthog/core@1.51.0
4.11.0
Minor Changes
-
#4663
6ae173fThanks @pauldambra! - Detect the Claude, Codex, and ChatGPT apps from their user agent markers:$browsernow reports the app name instead ofChrome.ChatGPT versions its apps differently per platform, so its
$browser_versionis not comparable across platforms. (2026-09-01) -
#4663
6ae173fThanks @pauldambra! - Use the shared@posthog/corebrowser detection instead of a separate copy.$browserand$browser_versionnow match posthog-js.This reattributes some events. Browsers the old copy missed (Vivaldi, Yandex, Whale, DuckDuckGo, Brave on iOS, Pale Moon, Waterfox, Oculus Browser) now report their own name instead of
ChromeorSafari. User agents that only containGeckonow reportFirefoxinstead ofMozilla. Opera versions older than 15 are no longer detected. (2026-09-01)
Patch Changes
- Updated dependencies [
444bf35,6ae173f,6723395]:- @posthog/core@1.50.0
4.10.4
Patch Changes
- #4581
556d235Thanks @turnipdabeets! - FixreloadFeatureFlagsandreloadFeatureFlagsAsyncreturning flags evaluated before the caller's most recent identity or person-property change when several reloads overlap, and stop overlapping reloads from skipping the remote config refresh (2026-08-21) - Updated dependencies [
556d235]:- @posthog/core@1.48.8
4.10.3
Patch Changes
- #4380
3c40b6cThanks @marandaneto! - Keep request timeouts active through response body consumption and clarify eventual event UUID deduplication semantics. (2026-08-05) - Updated dependencies [
3c40b6c]:- @posthog/core@1.46.8
4.10.2
Patch Changes
- #4347
7c3a9afThanks @marandaneto! - Preserve events added to a full queue while an earlier batch is being flushed. (2026-08-03) - Updated dependencies [
7c3a9af]:- @posthog/core@1.46.2
4.10.1
Patch Changes
- #4332
b9a241eThanks @ioannisj! - Fixidentify()leaving a user anonymous when the supplied ID already matches the persisted distinct ID (for example after a non-identified bootstrap seeded the same ID). The user is now marked identified and a person-processed$setevent is captured. Ports the same fix from posthog-js (browser) to the shared core used by React Native, Node, and posthog-js-lite. (2026-07-31) - Updated dependencies [
b9a241e]:- @posthog/core@1.46.1
4.10.0
Minor Changes
-
#4222
0f2407bThanks @turnipdabeets! - feat: add a default-value option toisFeatureEnabledisFeatureEnabled(key, { defaultValue: false })now returns the given default when the flag has no value — flags not loaded yet, or no flag with that key — and the return type narrows toboolean. The option name is the same in posthog-js, posthog-js-lite, and posthog-react-native. WithoutdefaultValue, behavior is unchanged:boolean | undefined. (2026-07-22)
Patch Changes
- Updated dependencies [
0f2407b]:- @posthog/core@1.45.0
4.9.2
Patch Changes
- #4048
5e7e132Thanks @turnipdabeets! - fix: feature-flag properties ($feature/*and$active_feature_flags) passed explicitly tocapture()now take precedence over the SDK's cached flag values, matching posthog-js (web) and posthog-android (2026-07-02) - Updated dependencies [
5e7e132]:- @posthog/core@1.39.5
4.9.1
Patch Changes
- #4055
64e04baThanks @marandaneto! - Retry/flagsrequests that receive HTTP 502 or 504 responses across SDKs that use the shared core flags client. (2026-07-02) - Updated dependencies [
64e04ba]:- @posthog/core@1.39.4
4.9.0
Minor Changes
- #3977
6200888Thanks @turnipdabeets! - AddgetAllFeatureFlags(), which returns all currently loaded feature flags as structuredFeatureFlagResults (key,enabled,variant,payload). It is a synchronous read of the cached flags and does not send a$feature_flag_calledevent. (2026-06-26)
Patch Changes
- Updated dependencies [
6200888]:- @posthog/core@1.38.0
4.8.0
Minor Changes
-
#3921
c28b161Thanks @marandaneto! - Adddisable_capture_url_hashesto strip URL fragments from automatically captured URLs. It is disabled by default for backwards compatibility, and enabled automatically whenconfig.defaultsis'2026-06-25'or later. Enabling it (either explicitly or via the'2026-06-25'defaults) is a breaking behavior change for SPAs that rely on URL hashes for routing or analytics, because hash-based routes will be collapsed to the same URL without the fragment in fields such as$current_url,$initial_current_url,$session_entry_url, autocapture$elements[*].attr__href,$external_click_url, replayhrefURLs, heatmaps, web vitals$current_url, logsurl.full, conversationscurrent_url/request_url, or Next.js Pages Router$pageview$current_url.If you only want to capture some hashes, leave hash capture enabled and use
before_sendto remove or redact sensitive hash values before events are sent. (2026-06-23)
Patch Changes
- Updated dependencies [
c28b161]:- @posthog/core@1.36.0
4.7.2
Patch Changes
- #3886
e6d7fe2Thanks @marandaneto! - Stop sending deprecated no-op top-leveltype,library, andlibrary_versionfields in event batch payloads. Useproperties.$libandproperties.$lib_versionfor SDK metadata; legacy queuedlibraryandlibrary_versionvalues are used as fallbacks when the official$properties are missing. (2026-06-18) - Updated dependencies [
e6d7fe2]:- @posthog/core@1.35.2
4.7.1
Patch Changes
- #3876
d7b1a03Thanks @turnipdabeets! - DeprecategetFeatureFlagPayloadin favor ofgetFeatureFlagResult, which returns the flag value and payload from a single evaluation.getFeatureFlagPayloadcontinues to work. (2026-06-17) - Updated dependencies [
d7b1a03]:- @posthog/core@1.35.1
4.7.0
Minor Changes
-
#3848
bd07ec4Thanks @turnipdabeets! - Add adisableRemoteFeatureFlagsoption and a publicupdateFlags(flags, payloads?, { merge })method, for apps that evaluate feature flags outside the SDK (for example on their own backend) and want to supply the results at runtime instead of having the SDK fetch them.With
disableRemoteFeatureFlags: true, the SDK no longer fetches or evaluates feature flags from PostHog —identify(),group(), andreset()stop triggering/flagsrequests — whilegetFeatureFlag()andgetFeatureFlagPayload()keep working against the values you supply. Provide those values (with optional payloads) at runtime viaupdateFlags(flags, payloads?, { merge }); they persist across restarts. This mirrors the web SDK'sadvanced_disable_feature_flagsandupdateFlags. (2026-06-17)
Patch Changes
- Updated dependencies [
bd07ec4]:- @posthog/core@1.34.0
4.6.63
Patch Changes
- #3837
29bf8e3Thanks @marandaneto! - Add missing bugs metadata to package manifests. (2026-06-15) - Updated dependencies [
29bf8e3]:- @posthog/core@1.32.4
4.6.62
Patch Changes
- Updated dependencies []:
- @posthog/core@1.32.3
4.6.61
Patch Changes
- Updated dependencies [
25822ac]:- @posthog/core@1.32.2
4.6.60
Patch Changes
- Updated dependencies []:
- @posthog/core@1.32.1
4.6.59
Patch Changes
- Updated dependencies [
612f97a]:- @posthog/core@1.32.0
4.6.58
Patch Changes
- Updated dependencies []:
- @posthog/core@1.31.4
4.6.57
Patch Changes
- Updated dependencies []:
- @posthog/core@1.31.3
4.6.56
Patch Changes
- Updated dependencies []:
- @posthog/core@1.31.2
4.6.55
Patch Changes
- Updated dependencies []:
- @posthog/core@1.31.1
4.6.54
Patch Changes
- Updated dependencies [
0c2acb9]:- @posthog/core@1.31.0
4.6.53
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.14
4.6.52
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.13
4.6.51
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.12
4.6.50
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.11
4.6.49
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.10
4.6.48
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.9
4.6.47
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.8
4.6.46
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.7
4.6.45
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.6
4.6.44
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.5
4.6.43
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.4
4.6.42
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.3
4.6.41
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.2
4.6.40
Patch Changes
- Updated dependencies []:
- @posthog/core@1.30.1
4.6.39
Patch Changes
- Updated dependencies [
3d4a76f]:- @posthog/core@1.30.0
4.6.38
Patch Changes
- Updated dependencies []:
- @posthog/core@1.29.15
4.6.37
Patch Changes
- Updated dependencies [
d9ad199]:- @posthog/core@1.29.14
4.6.36
Patch Changes
- Updated dependencies [
7b84b75]:- @posthog/core@1.29.13
4.6.35
Patch Changes
- Updated dependencies []:
- @posthog/core@1.29.12
4.6.34
Patch Changes
- Updated dependencies []:
- @posthog/core@1.29.11
4.6.33
Patch Changes
- Updated dependencies [
5568f12]:- @posthog/core@1.29.10
4.6.32
Patch Changes
- Updated dependencies [
c806cca]:- @posthog/core@1.29.9
4.6.31
Patch Changes
- Updated dependencies []:
- @posthog/core@1.29.8
4.6.30
Patch Changes
- Updated dependencies []:
- @posthog/core@1.29.7
4.6.29
Patch Changes
- Updated dependencies [
a880dbc]:- @posthog/core@1.29.6
4.6.28
Patch Changes
- Updated dependencies []:
- @posthog/core@1.29.5
4.6.27
Patch Changes
- Updated dependencies []:
- @posthog/core@1.29.4
4.6.26
Patch Changes
- Updated dependencies []:
- @posthog/core@1.29.3
4.6.25
Patch Changes
- Updated dependencies []:
- @posthog/core@1.29.2
4.6.24
Patch Changes
- Updated dependencies [
4b895bf]:- @posthog/core@1.29.1
4.6.23
Patch Changes
- Updated dependencies [
ad60818]:- @posthog/core@1.29.0
4.6.22
Patch Changes
- Updated dependencies [
223d925]:- @posthog/core@1.28.7
4.6.21
Patch Changes
- Updated dependencies []:
- @posthog/core@1.28.6
4.6.20
Patch Changes
- Updated dependencies []:
- @posthog/core@1.28.5
4.6.19
Patch Changes
- Updated dependencies []:
- @posthog/core@1.28.4
4.6.18
Patch Changes
- Updated dependencies []:
- @posthog/core@1.28.3
4.6.17
Patch Changes
- Updated dependencies [
220cd61,255b273]:- @posthog/core@1.28.2
4.6.16
Patch Changes
- Updated dependencies [
8aee3d5]:- @posthog/core@1.28.1
4.6.15
Patch Changes
- Updated dependencies [
cf56753,04db756]:- @posthog/core@1.28.0
4.6.14
Patch Changes
- Updated dependencies []:
- @posthog/core@1.27.9
4.6.13
Patch Changes
- Updated dependencies []:
- @posthog/core@1.27.8
4.6.12
Patch Changes
- Updated dependencies []:
- @posthog/core@1.27.7
4.6.11
Patch Changes
- Updated dependencies []:
- @posthog/core@1.27.6
4.6.10
Patch Changes
- Updated dependencies [
70508df]:- @posthog/core@1.27.5
4.6.9
Patch Changes
- Updated dependencies []:
- @posthog/core@1.27.4
4.6.8
Patch Changes
- Updated dependencies []:
- @posthog/core@1.27.3
4.6.7
Patch Changes
- Updated dependencies [
daf028d]:- @posthog/core@1.27.2
4.6.6
Patch Changes
- Updated dependencies [
96f19b7]:- @posthog/core@1.27.1
4.6.5
Patch Changes
- Updated dependencies [
1a8b727]:- @posthog/core@1.27.0
4.6.4
Patch Changes
- Updated dependencies [
922a1c1]:- @posthog/core@1.26.0
4.6.3
Patch Changes
- Updated dependencies [
1a0b58d]:- @posthog/core@1.25.3
4.6.2
Patch Changes
- Updated dependencies [
c735b08]:- @posthog/core@1.25.2
4.6.1
Patch Changes
- Updated dependencies [
57ee5b2]:- @posthog/core@1.25.1
4.6.0
Minor Changes
- #3302
fc5589fThanks @dmarticus! - preserve $set_once semantics in local flag evaluation cache (2026-04-07)
Patch Changes
- Updated dependencies [
fc5589f]:- @posthog/core@1.25.0
4.5.12
Patch Changes
- Updated dependencies [
a01a3d5]:- @posthog/core@1.24.6
4.5.11
Patch Changes
- #3309
197eedaThanks @marandaneto! - Extract CLI and sourcemap utilities from @posthog/core into @posthog/plugin-utils to remove cross-spawn from React Native dependencies (2026-04-01) - Updated dependencies [
197eeda]:- @posthog/core@1.24.5
4.5.10
Patch Changes
- Updated dependencies [
a863914]:- @posthog/core@1.24.4
4.5.9
Patch Changes
- Updated dependencies [
4bdfdbc]:- @posthog/core@1.24.3
4.5.8
Patch Changes
- Updated dependencies [
8d34289]:- @posthog/core@1.24.2
4.5.7
Patch Changes
- Updated dependencies [
314120a]:- @posthog/core@1.24.1
4.5.6
Patch Changes
- Updated dependencies [
9cd2313]:- @posthog/core@1.24.0
4.5.5
Patch Changes
- Updated dependencies [
bc30c2d,bc30c2d]:- @posthog/core@1.23.4
4.5.4
Patch Changes
- Updated dependencies [
4009c15]:- @posthog/core@1.23.3
4.5.3
Patch Changes
- Updated dependencies [
5e8d5fc]:- @posthog/core@1.23.2
4.5.2
Patch Changes
- Updated dependencies [
9dbc05e]:- @posthog/core@1.23.1
4.5.1
Patch Changes
- Updated dependencies [
e962f01]:- @posthog/core@1.23.0
4.5.0
Minor Changes
- #3045
0acf16fThanks @dustinbyrne! - feat: AddgetFeatureFlagResultto PostHogCore (2026-02-10)
Patch Changes
- Updated dependencies [
0acf16f]:- @posthog/core@1.22.0
4.4.10
Patch Changes
- Updated dependencies [
d578824]:- @posthog/core@1.21.0
4.4.9
Patch Changes
- Updated dependencies [
e055f9a]:- @posthog/core@1.20.2
4.4.8
Patch Changes
- Updated dependencies [
8f75dae]:- @posthog/core@1.20.1
4.4.7
Patch Changes
- Updated dependencies [
bb62809]:- @posthog/core@1.20.0
4.4.6
Patch Changes
- Updated dependencies [
c99e5fe]:- @posthog/core@1.19.0
4.4.5
Patch Changes
- Updated dependencies [
7768010]:- @posthog/core@1.18.0
4.4.4
Patch Changes
- Updated dependencies [
727536c]:- @posthog/core@1.17.0
4.4.3
Patch Changes
- Updated dependencies [
cbe84c1]:- @posthog/core@1.16.0
4.4.2
Patch Changes
- Updated dependencies [
8c0c495]:- @posthog/core@1.15.0
4.4.1
Patch Changes
- #2971
f51560cThanks @marandaneto! - fix: groups and groupidentify is a no-op if person profiles is set to never (2026-01-27) - Updated dependencies [
f51560c]:- @posthog/core@1.14.1
4.4.0
Minor Changes
- #2917
933c763Thanks @marandaneto! - feat: add support for person_profiles react native, core and web-lite (2026-01-23)
Patch Changes
- Updated dependencies [
933c763]:- @posthog/core@1.14.0
4.3.1
Patch Changes
- Updated dependencies [
8a5a3d5]:- @posthog/core@1.13.0
4.3.0
Minor Changes
- #2931
f0cbc0dThanks @marandaneto! - chore: before_send support for web lite and react native (2026-01-20)
Patch Changes
- Updated dependencies [
b7fa003,f0cbc0d]:- @posthog/core@1.12.0
4.2.8
Patch Changes
- Updated dependencies [
23770e9]:- @posthog/core@1.11.0
4.2.7
Patch Changes
- Updated dependencies [
d37e570]:- @posthog/core@1.10.0
4.2.6
Patch Changes
- Updated dependencies [
fba9fb2,c1ed63b]:- @posthog/core@1.9.1
4.2.5
Patch Changes
- Updated dependencies [
b676b4d]:- @posthog/core@1.9.0
4.2.4
Patch Changes
- Updated dependencies [
6b0aabf]:- @posthog/core@1.8.1
4.2.3
Patch Changes
- Updated dependencies [
2603a8d]:- @posthog/core@1.8.0
4.2.2
Patch Changes
-
#2690
e9c00fdThanks @robbie-c! - Related to https://www.wiz.io/blog/critical-vulnerability-in-react-cve-2025-55182We 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)
-
Updated dependencies [
e9c00fd]:- @posthog/core@1.7.1
4.2.1
Patch Changes
- Updated dependencies [
e1617d9]:- @posthog/core@1.7.0
4.2.0
Minor Changes
- #2619
86dab38Thanks @hpouillot! - package deprecation (2025-11-24)
Patch Changes
- Updated dependencies [
86dab38]:- @posthog/core@1.6.0
4.1.14
Patch Changes
- #2618
3eed1a4Thanks @marandaneto! - last version was compromised (2025-11-24) - Updated dependencies [
3eed1a4]:- @posthog/core@1.5.6
4.1.13
Patch Changes
- Updated dependencies [
83f5d07]:- @posthog/core@1.5.5
4.1.12
Patch Changes
- Updated dependencies [
c242702]:- @posthog/core@1.5.4
4.1.11
Patch Changes
- Updated dependencies [
8acd88f]:- @posthog/core@1.5.3
4.1.10
Patch Changes
- Updated dependencies [
87f9604]:- @posthog/core@1.5.2
4.1.9
Patch Changes
- Updated dependencies [
d8d98c9]:- @posthog/core@1.5.1
4.1.8
Patch Changes
- Updated dependencies [
068d55e]:- @posthog/core@1.5.0
4.1.7
Patch Changes
- Updated dependencies [
751b440]:- @posthog/core@1.4.0
4.1.6
Patch Changes
- Updated dependencies [
e0a6fe0]:- @posthog/core@1.3.1
4.1.5
Patch Changes
- Updated dependencies [
daf919b,7d45a7a]:- @posthog/core@1.3.0
4.1.4
Patch Changes
- Updated dependencies [
10da2ee]:- @posthog/core@1.2.4
4.1.3
Patch Changes
- Updated dependencies [
e19a384]:- @posthog/core@1.2.3
4.1.2
Patch Changes
- #2403
162aa86Thanks @hpouillot! - fix core dependency
4.1.1
Patch Changes
4.1.0 - 2025-06-12
- chore: use
/flags?v=2&config=trueinstead of/decide?v=4for the flag evaluation backend
4.0.0 - 2025-06-10
Breaking changes
- PostHog Web now compresses messages with GZip before sending them to our servers when the runtime supports compression. This reduces network bandwidth and improves performance. Network traffic interceptors and test assertions on payloads must handle GZip decompression to inspect the data. Alternatively, you can disable compression by setting
disableCompression: truein the client configuration during tests.
Removed
- Remove
captureModein favor ofjsoncapture mode only - Remove deprecated
personPropertiesandgroupPropertiesin favor ofsetPersonPropertiesForFlagsandsetGroupPropertiesForFlags
3.6.0 – 2025-06-05
Added
- chore: improve event prop types
- rotate session id if expired after 24 hours
3.5.1 – 2025-05-06
Fixed
- Fix exported file extensions to work with older Node versions
3.5.0 – 2025-04-17
Added
- chore: roll out new flag evaluation backend to majority of customers
3.4.2 - 2025-02-27
Added
- Added
captureHistoryEventsoption to automatically capture navigation events in single-page applications using the History API.
Fixed
- apiKey cannot be empty.
3.4.2 - 2025-02-27
Fixed
- Supports gracefully handling quotaLimited responses from the PostHog API for feature flags.
3.4.1 - 2025-02-20
Fixed
- fix: handle cases when non Error is passed to
captureException
3.4.0 - 2025-02-20
Added
- Adds the ability to capture user feedback in LLM Observability using the
captureTraceFeedbackandcaptureTraceMetricmethods.
3.3.0 - 2025-02-06
Added
- Adds
captureExceptionfunction to allow manual capture of exceptions
3.2.1 - 2025-01-17
Fixed
- fix: check if window and fetch are available before using on web env
3.2.0 - 2024-12-12
Changed
- Add new debugging property
$feature_flag_bootstrapped_response,$feature_flag_bootstrapped_payloadand$used_bootstrap_valueto$feature_flag_calledevent
3.1.0 - 2024-11-21
Changed
- chore: default
captureModechanged tojson.- To keep using the
formmode, just set thecaptureModeoption toformwhen initializing the PostHog client.
- To keep using the
- fix: identify method allows passing a $set_once object
3.0.2 - 2024-06-15
Fixed
- Fixed and error that prevented localstorage from ever being used and instead falling back to sessionstorage for persistence
Changed
- chore: change host to new address.
3.0.1 - 2024-04-25
- Prevent double JSON parsing of feature flag payloads, which would convert the payload [1] into 1.
3.0.0 - 2024-03-18
Added
- Adds a
disabledoption and the ability to change it later viaposthog.disabled = true. Useful for disabling PostHog tracking for example in a testing environment without having complex conditional checking shutdowntakes ashutdownTimeoutMsparam with a default of 30000 (30s). This is the time to wait for flushing events before shutting down the client. If the timeout is reached, the client will be shut down regardless of pending events.- Adds a new
featureFlagsRequestTimeoutMstimeout parameter for feature flags which defaults to 10 seconds. - Flushes will now try to flush up to
maxBatchSize(default 100) in one go - Queued events are limited up to
maxQueueSize(default 1000) and the oldest events are dropped when the limit is reached
Removed
- Removes the
enableoption. You can now specifydefaultOptIn: falseto start the SDK opted out of tracking flushAsyncandshutdownAsyncare removed withflushandshutdownnow being the async methods.
Changed
flushandshutdownnow being async methods.- Many methods such as
captureandidentifyno longer return thethisobject instead returning nothing
Fixed
- Fixed an issue where
shutdownwould potentially exit early if a flush was already in progress - Fixes some typos in types
3.0.0-beta.2 - 2024-03-12
flushAsyncandshutdownAsyncare removed withflushandshutdownnow being the async methods.- Fixed an issue where
shutdownAsyncwould potentially exit early if a flush was already in progress - Flushes will now try to flush up to
maxBatchSize(default 100) in one go
3.0.0-beta.1 - 2024-03-04
- Removes the
enableoption. You can now specifydefaultOptIn: falseto start the SDK opted out of tracking - Adds a
disabledoption and the ability to change it later viaposthog.disabled = true. Useful for disabling PostHog tracking for example in a testing environment without having complex conditional checking - Many methods such as
captureandidentifyno longer return thethisobject instead returning nothing - Fixes some typos in types
shutdownandshutdownAsynctakes ashutdownTimeoutMsparam with a default of 30000 (30s). This is the time to wait for flushing events before shutting down the client. If the timeout is reached, the client will be shut down regardless of pending events.- Adds a new
featureFlagsRequestTimeoutMstimeout parameter for feature flags which defaults to 10 seconds.
2.6.2 - 2024-02-15
- fix: using
captureMode=formwon't throw an error and retry unnecessarily
2.6.1 - 2024-02-06
- Swapped to
uuidv7for unique ID generation
2.6.0 - 2024-01-18
- Adds support for overriding the event
uuidvia capture options
2.5.0 - 2023-12-04
- Renamed
personPropertiestosetPersonPropertiesForFlagsto matchposthog-jsand more clearly indicated what it does - Renamed
groupPropertiestosetGroupPropertiesForFlagsto matchposthog-jsand more clearly indicated what it does
2.4.0 - 2023-04-20
- Fixes a race condition that could occur when initialising PostHog
- Fixes an issue where feature flags would not be reloaded after a reset
2.3.0 - 2023-04-19
- Some small fixes to incorrect types
- Fixed fetch compatibility by aligning error handling
- Added two errors: PostHogFetchHttpError (non-2xx status) and PostHogFetchNetworkError (fetch network error)
- Added .on('error', (err) => void)
- shutdownAsync now ignores fetch errors. They should be handled with .on('error', ...) from now on.
2.2.1 - 2023-02-13
- Fixes an issue where background network errors would trigger unhandled promise warnings
2.2.0 - 2023-02-02
- Adds support for overriding timestamp of capture events
2.1.0 - 2022-1-26
- uses v3 decide endpoint
- JSON payloads will be returned with feature flags
- Feature flags will gracefully fail and optimistically save evaluated flags if server is down
2.0.1 - 2023-01-25
- Ensures the distinctId used in
.groupIdentifyis the same as the currently identified user