posthog-js 1.70.2 → 1.72.0
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 +9 -0
- package/dist/array.full.js +2 -2
- package/dist/array.full.js.map +1 -1
- package/dist/array.js +2 -2
- package/dist/array.js.map +1 -1
- package/dist/es.js +2 -2
- package/dist/es.js.map +1 -1
- package/dist/module.d.ts +15 -19
- package/dist/module.js +2 -2
- package/dist/module.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/dist/module.d.ts
CHANGED
|
@@ -238,6 +238,8 @@ interface PostHogConfig {
|
|
|
238
238
|
mask_all_element_attributes: boolean;
|
|
239
239
|
mask_all_text: boolean;
|
|
240
240
|
advanced_disable_decide: boolean;
|
|
241
|
+
advanced_disable_feature_flags: boolean;
|
|
242
|
+
advanced_disable_feature_flags_on_first_load: boolean;
|
|
241
243
|
advanced_disable_toolbar_metrics: boolean;
|
|
242
244
|
get_device_id: (uuid: string) => string;
|
|
243
245
|
name: string;
|
|
@@ -440,24 +442,6 @@ declare type NetworkRequest = {
|
|
|
440
442
|
url: string;
|
|
441
443
|
};
|
|
442
444
|
|
|
443
|
-
/**
|
|
444
|
-
* PostHog People Object
|
|
445
|
-
* @constructor
|
|
446
|
-
*/
|
|
447
|
-
declare class PostHogPeople {
|
|
448
|
-
_posthog: PostHog;
|
|
449
|
-
set: (prop: string | Properties, to?: string, callback?: RequestCallback) => void;
|
|
450
|
-
set_once: (prop: string | Properties, to?: string, callback?: RequestCallback) => void;
|
|
451
|
-
constructor(posthog: PostHog);
|
|
452
|
-
toString(): string;
|
|
453
|
-
_send_request(data: Properties, callback?: RequestCallback): Properties;
|
|
454
|
-
_get_config<K extends keyof PostHogConfig>(conf_var: K): PostHogConfig[K];
|
|
455
|
-
_is_reserved_property(prop: string): boolean;
|
|
456
|
-
private set_action;
|
|
457
|
-
private set_once_action;
|
|
458
|
-
private apiActionParser;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
445
|
/**
|
|
462
446
|
* PostHog Persistence Object
|
|
463
447
|
* @constructor
|
|
@@ -1204,7 +1188,6 @@ declare class PostHog {
|
|
|
1204
1188
|
sessionPersistence: PostHogPersistence;
|
|
1205
1189
|
sessionManager: SessionIdManager;
|
|
1206
1190
|
pageViewIdManager: PageViewIdManager;
|
|
1207
|
-
people: PostHogPeople;
|
|
1208
1191
|
featureFlags: PostHogFeatureFlags;
|
|
1209
1192
|
surveys: PostHogSurveys;
|
|
1210
1193
|
toolbar: Toolbar;
|
|
@@ -1224,6 +1207,11 @@ declare class PostHog {
|
|
|
1224
1207
|
SentryIntegration: typeof SentryIntegration;
|
|
1225
1208
|
segmentIntegration: () => any;
|
|
1226
1209
|
private uuidFn;
|
|
1210
|
+
/** DEPRECATED: We keep this to support existing usage but now one should just call .setPersonProperties */
|
|
1211
|
+
people: {
|
|
1212
|
+
set: (prop: string | Properties, to?: string, callback?: RequestCallback) => void;
|
|
1213
|
+
set_once: (prop: string | Properties, to?: string, callback?: RequestCallback) => void;
|
|
1214
|
+
};
|
|
1227
1215
|
constructor();
|
|
1228
1216
|
/**
|
|
1229
1217
|
* This function initializes a new instance of the PostHog capturing object.
|
|
@@ -1457,6 +1445,14 @@ declare class PostHog {
|
|
|
1457
1445
|
* @param {Object} [userPropertiesToSetOnce] Optional: An associative array of properties to store about the user. If property is previously set, this does not override that value.
|
|
1458
1446
|
*/
|
|
1459
1447
|
identify(new_distinct_id?: string, userPropertiesToSet?: Properties, userPropertiesToSetOnce?: Properties): void;
|
|
1448
|
+
/**
|
|
1449
|
+
* Sets properties for the Person associated with the current distinct_id.
|
|
1450
|
+
*
|
|
1451
|
+
*
|
|
1452
|
+
* @param {Object} [userPropertiesToSet] Optional: An associative array of properties to store about the user
|
|
1453
|
+
* @param {Object} [userPropertiesToSetOnce] Optional: An associative array of properties to store about the user. If property is previously set, this does not override that value.
|
|
1454
|
+
*/
|
|
1455
|
+
setPersonProperties(userPropertiesToSet?: Properties, userPropertiesToSetOnce?: Properties): void;
|
|
1460
1456
|
/**
|
|
1461
1457
|
* Alpha feature: don't use unless you know what you're doing!
|
|
1462
1458
|
*
|