posthog-node
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -0,1 +1,5 @@ | ||
# 3.1.2 - 2023-08-17 | ||
1. Returns the current flag property with $feature_flag_called events, to make it easier to use in experiments | ||
# 3.1.1 - 2023-04-26 | ||
@@ -2,0 +6,0 @@ |
@@ -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; | ||
/*** | ||
@@ -99,0 +104,0 @@ *** TRACKING |
{ | ||
"name": "posthog-node", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "PostHog Node.js integration", | ||
@@ -5,0 +5,0 @@ "repository": "PostHog/posthog-node", |
@@ -210,2 +210,3 @@ import { version } from '../package.json' | ||
locally_evaluated: flagWasLocallyEvaluated, | ||
[`$feature/${key}`]: response, | ||
}, | ||
@@ -212,0 +213,0 @@ groups, |
@@ -558,2 +558,3 @@ // import { PostHog } from '../' | ||
locally_evaluated: true, | ||
'$feature/beta-feature': true, | ||
}), | ||
@@ -614,2 +615,3 @@ }, | ||
$feature_flag_response: true, | ||
'$feature/beta-feature': true, | ||
$lib: 'posthog-node', | ||
@@ -657,2 +659,3 @@ $lib_version: '1.2.3', | ||
locally_evaluated: true, | ||
'$feature/beta-feature': true, | ||
$groups: { x: 'y' }, | ||
@@ -694,2 +697,3 @@ }) | ||
locally_evaluated: false, | ||
'$feature/decide-flag': 'decide-value', | ||
$groups: { organization: 'org1' }, | ||
@@ -696,0 +700,0 @@ }), |
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
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
857322
12082