posthog-js-lite
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -0,1 +1,6 @@ | ||
# 2.5.0 - 2023-12-04 | ||
1. Renamed `personProperties` to `setPersonPropertiesForFlags` to match `posthog-js` and more clearly indicated what it does | ||
2. Renamed `groupProperties` to `setGroupPropertiesForFlags` to match `posthog-js` and more clearly indicated what it does | ||
# 2.4.0 - 2023-04-20 | ||
@@ -2,0 +7,0 @@ |
@@ -33,3 +33,5 @@ declare type PosthogCoreOptions = { | ||
PersonProperties = "person_properties", | ||
GroupProperties = "group_properties" | ||
GroupProperties = "group_properties", | ||
InstalledAppBuild = "installed_app_build", | ||
InstalledAppVersion = "installed_app_version" | ||
} | ||
@@ -177,2 +179,3 @@ declare type PostHogFetchOptions = { | ||
protected _sessionExpirationTimeSeconds: number; | ||
protected sessionProps: PostHogEventProperties; | ||
constructor(apiKey: string, options?: PosthogCoreOptions); | ||
@@ -187,3 +190,3 @@ protected setupBootstrap(options?: Partial<PosthogCoreOptions>): void; | ||
protected getCommonEventProperties(): any; | ||
private enrichProperties; | ||
enrichProperties(properties?: PostHogEventProperties): any; | ||
getSessionId(): string | undefined; | ||
@@ -193,6 +196,10 @@ resetSessionId(): void; | ||
getDistinctId(): string; | ||
unregister(property: string): void; | ||
register(properties: { | ||
[key: string]: any; | ||
}): void; | ||
unregister(property: string): void; | ||
registerForSession(properties: { | ||
[key: string]: any; | ||
}): void; | ||
unregisterForSession(property: string): void; | ||
/*** | ||
@@ -218,5 +225,15 @@ *** TRACKING | ||
***/ | ||
setPersonPropertiesForFlags(properties: { | ||
[type: string]: string; | ||
}): this; | ||
resetPersonPropertiesForFlags(): void; | ||
/** @deprecated - Renamed to setPersonPropertiesForFlags */ | ||
personProperties(properties: { | ||
[type: string]: string; | ||
}): this; | ||
setGroupPropertiesForFlags(properties: { | ||
[type: string]: Record<string, string>; | ||
}): this; | ||
resetGroupPropertiesForFlags(): void; | ||
/** @deprecated - Renamed to setGroupPropertiesForFlags */ | ||
groupProperties(properties: { | ||
@@ -223,0 +240,0 @@ [type: string]: Record<string, string>; |
@@ -77,2 +77,3 @@ import { PostHogFetchOptions, PostHogFetchResponse, PostHogAutocaptureElement, PostHogDecideResponse, PosthogCoreOptions, PostHogEventProperties, PostHogPersistedProperty, PosthogCaptureOptions, JsonType } from './types'; | ||
protected _sessionExpirationTimeSeconds: number; | ||
protected sessionProps: PostHogEventProperties; | ||
constructor(apiKey: string, options?: PosthogCoreOptions); | ||
@@ -87,3 +88,3 @@ protected setupBootstrap(options?: Partial<PosthogCoreOptions>): void; | ||
protected getCommonEventProperties(): any; | ||
private enrichProperties; | ||
enrichProperties(properties?: PostHogEventProperties): any; | ||
getSessionId(): string | undefined; | ||
@@ -93,6 +94,10 @@ resetSessionId(): void; | ||
getDistinctId(): string; | ||
unregister(property: string): void; | ||
register(properties: { | ||
[key: string]: any; | ||
}): void; | ||
unregister(property: string): void; | ||
registerForSession(properties: { | ||
[key: string]: any; | ||
}): void; | ||
unregisterForSession(property: string): void; | ||
/*** | ||
@@ -118,5 +123,15 @@ *** TRACKING | ||
***/ | ||
setPersonPropertiesForFlags(properties: { | ||
[type: string]: string; | ||
}): this; | ||
resetPersonPropertiesForFlags(): void; | ||
/** @deprecated - Renamed to setPersonPropertiesForFlags */ | ||
personProperties(properties: { | ||
[type: string]: string; | ||
}): this; | ||
setGroupPropertiesForFlags(properties: { | ||
[type: string]: Record<string, string>; | ||
}): this; | ||
resetGroupPropertiesForFlags(): void; | ||
/** @deprecated - Renamed to setGroupPropertiesForFlags */ | ||
groupProperties(properties: { | ||
@@ -123,0 +138,0 @@ [type: string]: Record<string, string>; |
@@ -33,3 +33,5 @@ export declare type PosthogCoreOptions = { | ||
PersonProperties = "person_properties", | ||
GroupProperties = "group_properties" | ||
GroupProperties = "group_properties", | ||
InstalledAppBuild = "installed_app_build", | ||
InstalledAppVersion = "installed_app_version" | ||
} | ||
@@ -36,0 +38,0 @@ export declare type PostHogFetchOptions = { |
{ | ||
"name": "posthog-js-lite", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"main": "lib/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.esm.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
528939
4912