posthog-js-lite 4.1.0 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md DELETED
@@ -1,187 +0,0 @@
1
- # Next
2
-
3
- # 4.1.0 - 2025-06-12
4
-
5
- 1. chore: use `/flags?v=2&config=true` instead of `/decide?v=4` for the flag evaluation backend
6
-
7
- # 4.0.0 - 2025-06-10
8
-
9
- ## Removed
10
-
11
- 1. Remove `captureMode` in favor of `json` capture mode only
12
- 2. Remove deprecated `personProperties` and `groupProperties` in favor of `setPersonPropertiesForFlags` and `setGroupPropertiesForFlags`
13
-
14
- # 3.6.0 – 2025-06-05
15
-
16
- ## Added
17
-
18
- 1. chore: improve event prop types
19
- 2. rotate session id if expired after 24 hours
20
-
21
- # 3.5.1 – 2025-05-06
22
-
23
- ## Fixed
24
-
25
- 1. Fix exported file extensions to work with older Node versions
26
-
27
- # 3.5.0 – 2025-04-17
28
-
29
- ## Added
30
-
31
- 1. chore: roll out new flag evaluation backend to majority of customers
32
-
33
- # 3.4.2 - 2025-02-27
34
-
35
- ## Added
36
-
37
- 1. Added `captureHistoryEvents` option to automatically capture navigation events in single-page applications using the History API.
38
-
39
- ## Fixed
40
-
41
- 1. apiKey cannot be empty.
42
-
43
- # 3.4.2 - 2025-02-27
44
-
45
- ## Fixed
46
-
47
- 1. Supports gracefully handling quotaLimited responses from the PostHog API for feature flags.
48
-
49
- # 3.4.1 - 2025-02-20
50
-
51
- ## Fixed
52
-
53
- 1. fix: handle cases when non Error is passed to `captureException`
54
-
55
- # 3.4.0 - 2025-02-20
56
-
57
- ## Added
58
-
59
- 1. Adds the ability to capture user feedback in LLM Observability using the `captureTraceFeedback` and `captureTraceMetric` methods.
60
-
61
- # 3.3.0 - 2025-02-06
62
-
63
- ## Added
64
-
65
- 1. Adds `captureException` function to allow manual capture of exceptions
66
-
67
- # 3.2.1 - 2025-01-17
68
-
69
- ## Fixed
70
-
71
- 1. fix: check if window and fetch are available before using on web env
72
-
73
- # 3.2.0 - 2024-12-12
74
-
75
- ## Changed
76
-
77
- 1. Add new debugging property `$feature_flag_bootstrapped_response`, `$feature_flag_bootstrapped_payload` and `$used_bootstrap_value` to `$feature_flag_called` event
78
-
79
- # 3.1.0 - 2024-11-21
80
-
81
- ## Changed
82
-
83
- 1. chore: default `captureMode` changed to `json`.
84
- 1. To keep using the `form` mode, just set the `captureMode` option to `form` when initializing the PostHog client.
85
- 2. fix: identify method allows passing a $set_once object
86
-
87
- # 3.0.2 - 2024-06-15
88
-
89
- ## Fixed
90
-
91
- 1. Fixed and error that prevented localstorage from ever being used and instead falling back to sessionstorage for persistence
92
-
93
- ## Changed
94
-
95
- 1. chore: change host to new address.
96
-
97
- # 3.0.1 - 2024-04-25
98
-
99
- 1. Prevent double JSON parsing of feature flag payloads, which would convert the payload [1] into 1.
100
-
101
- # 3.0.0 - 2024-03-18
102
-
103
- ## Added
104
-
105
- 1. Adds a `disabled` option and the ability to change it later via `posthog.disabled = true`. Useful for disabling PostHog tracking for example in a testing environment without having complex conditional checking
106
- 2. `shutdown` takes a `shutdownTimeoutMs` param 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.
107
- 3. Adds a new `featureFlagsRequestTimeoutMs` timeout parameter for feature flags which defaults to 10 seconds.
108
- 4. Flushes will now try to flush up to `maxBatchSize` (default 100) in one go
109
- 5. Queued events are limited up to `maxQueueSize` (default 1000) and the oldest events are dropped when the limit is reached
110
-
111
- ## Removed
112
-
113
- 1. Removes the `enable` option. You can now specify `defaultOptIn: false` to start the SDK opted out of tracking
114
- 2. `flushAsync` and `shutdownAsync` are removed with `flush` and `shutdown` now being the async methods.
115
-
116
- ## Changed
117
-
118
- 1. `flush` and `shutdown` now being async methods.
119
- 2. Many methods such as `capture` and `identify` no longer return the `this` object instead returning nothing
120
-
121
- ## Fixed
122
-
123
- 1. Fixed an issue where `shutdown` would potentially exit early if a flush was already in progress
124
- 2. Fixes some typos in types
125
-
126
- # 3.0.0-beta.2 - 2024-03-12
127
-
128
- 1. `flushAsync` and `shutdownAsync` are removed with `flush` and `shutdown` now being the async methods.
129
- 2. Fixed an issue where `shutdownAsync` would potentially exit early if a flush was already in progress
130
- 3. Flushes will now try to flush up to `maxBatchSize` (default 100) in one go
131
-
132
- # 3.0.0-beta.1 - 2024-03-04
133
-
134
- 1. Removes the `enable` option. You can now specify `defaultOptIn: false` to start the SDK opted out of tracking
135
- 2. Adds a `disabled` option and the ability to change it later via `posthog.disabled = true`. Useful for disabling PostHog tracking for example in a testing environment without having complex conditional checking
136
- 3. Many methods such as `capture` and `identify` no longer return the `this` object instead returning nothing
137
- 4. Fixes some typos in types
138
- 5. `shutdown` and `shutdownAsync` takes a `shutdownTimeoutMs` param 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.
139
- 6. Adds a new `featureFlagsRequestTimeoutMs` timeout parameter for feature flags which defaults to 10 seconds.
140
-
141
- # 2.6.2 - 2024-02-15
142
-
143
- 1. fix: using `captureMode=form` won't throw an error and retry unnecessarily
144
-
145
- # 2.6.1 - 2024-02-06
146
-
147
- 1. Swapped to `uuidv7` for unique ID generation
148
-
149
- # 2.6.0 - 2024-01-18
150
-
151
- 1. Adds support for overriding the event `uuid` via capture options
152
-
153
- # 2.5.0 - 2023-12-04
154
-
155
- 1. Renamed `personProperties` to `setPersonPropertiesForFlags` to match `posthog-js` and more clearly indicated what it does
156
- 2. Renamed `groupProperties` to `setGroupPropertiesForFlags` to match `posthog-js` and more clearly indicated what it does
157
-
158
- # 2.4.0 - 2023-04-20
159
-
160
- 1. Fixes a race condition that could occur when initialising PostHog
161
- 2. Fixes an issue where feature flags would not be reloaded after a reset
162
-
163
- # 2.3.0 - 2023-04-19
164
-
165
- 1. Some small fixes to incorrect types
166
- 2. Fixed fetch compatibility by aligning error handling
167
- 3. Added two errors: PostHogFetchHttpError (non-2xx status) and PostHogFetchNetworkError (fetch network error)
168
- 4. Added .on('error', (err) => void)
169
- 5. shutdownAsync now ignores fetch errors. They should be handled with .on('error', ...) from now on.
170
-
171
- # 2.2.1 - 2023-02-13
172
-
173
- 1. Fixes an issue where background network errors would trigger unhandled promise warnings
174
-
175
- # 2.2.0 - 2023-02-02
176
-
177
- 1. Adds support for overriding timestamp of capture events
178
-
179
- # 2.1.0 - 2022-1-26
180
-
181
- 1. uses v3 decide endpoint
182
- 2. JSON payloads will be returned with feature flags
183
- 3. Feature flags will gracefully fail and optimistically save evaluated flags if server is down
184
-
185
- # 2.0.1 - 2023-01-25
186
-
187
- 1. Ensures the distinctId used in `.groupIdentify` is the same as the currently identified user
package/index.ts DELETED
@@ -1,5 +0,0 @@
1
- import { PostHog } from './src/posthog-web'
2
-
3
- export default PostHog
4
-
5
- export * from './src/posthog-web'