posthog-js-lite 2.6.2 → 3.0.0-beta.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 CHANGED
@@ -1,3 +1,12 @@
1
+ # 3.0.0-beta.1 - 2024-03-04
2
+
3
+ - Removes the `enable` option. You can now specify `defaultOptIn: false` to start the SDK opted out of tracking
4
+ - 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
5
+ - Many methods such as `capture` and `identify` no longer return the `this` object instead returning nothing
6
+ - Fixes some typos in types
7
+ - `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.
8
+ - Adds a new `featureFlagsRequestTimeoutMs` timeout parameter for feature flags which defaults to 10 seconds.
9
+
1
10
  # 2.6.2 - 2024-02-15
2
11
 
3
12
  1. fix: using `captureMode=form` won't throw an error and retry unnecessarily