posthog-js
Advanced tools
Comparing version 1.3.8 to 1.4.0
@@ -0,1 +1,5 @@ | ||
## 1.4.0 - 2020-08-10 | ||
- Add option `.reloadFeatureFlags()`. Pass it a callback to get the flags array upon reload. (See [#71](https://github.com/PostHog/posthog-js/pull/71)) | ||
- Add config option `sanitize_properties` that accepts a function which sanitizes your params (See [#75](https://github.com/PostHog/posthog-js/issues/75)) | ||
## 1.3.8 - 2020-08-07 | ||
@@ -2,0 +6,0 @@ - Set `secure_cookie` config to `true` if the page is running over https |
@@ -550,2 +550,3 @@ // Type definitions for exported methods | ||
request_batching?: boolean | ||
sanitize_properties?: (properties: Record<string, any>, event_name: string) => Record<string, any> | ||
} | ||
@@ -685,2 +686,4 @@ | ||
static reloadFeatureFlags(callback: (flags: string[]) => any): void | ||
/* | ||
@@ -687,0 +690,0 @@ * See if feature flag is enabled for user. |
{ | ||
"name": "posthog-js", | ||
"version": "1.3.8", | ||
"version": "1.4.0", | ||
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/PostHog/posthog-js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
309352
5978