posthog-js 1.429.5 → 1.430.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/dist/all-external-dependencies.js +1 -1
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.es5.js.map +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.full.no-external.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/array.no-external.js.map +1 -1
- package/dist/conversations.js +1 -1
- package/dist/customizations.d.ts +5 -0
- package/dist/customizations.full.js +1 -1
- package/dist/customizations.js +1 -1
- package/dist/default-extensions.js +1 -1
- package/dist/default-extensions.js.map +1 -1
- package/dist/extension-bundles.js +1 -1
- package/dist/extension-bundles.js.map +1 -1
- package/dist/lazy-recorder.js +1 -1
- package/dist/main.d.ts +5 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.d.ts +5 -0
- package/dist/module.full.cjs +1 -0
- package/dist/module.full.d.ts +5 -0
- package/dist/module.full.js +1 -1
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.cjs +1 -0
- package/dist/module.full.no-external.d.ts +5 -0
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.full.no-external.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/module.no-external.cjs +1 -0
- package/dist/module.no-external.d.ts +5 -0
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/module.slim.js +1 -1
- package/dist/module.slim.js.map +1 -1
- package/dist/module.slim.no-external.d.ts +5 -0
- package/dist/module.slim.no-external.js +1 -1
- package/dist/module.slim.no-external.js.map +1 -1
- package/dist/posthog-recorder.js +1 -1
- package/dist/src/feature-flags-config.d.ts +1 -0
- package/dist/src/posthog-featureflags.d.ts +4 -0
- package/full/no-external/package.json +14 -0
- package/full/package.json +14 -0
- package/lib/package.json +4 -1
- package/lib/src/feature-flags-config.d.ts +1 -0
- package/lib/src/feature-flags-config.js +1 -0
- package/lib/src/feature-flags-config.js.map +1 -1
- package/lib/src/posthog-featureflags.d.ts +4 -0
- package/lib/src/posthog-featureflags.js +46 -3
- package/lib/src/posthog-featureflags.js.map +1 -1
- package/lib/src/request-queue.js +1 -12
- package/lib/src/request-queue.js.map +1 -1
- package/no-external/package.json +14 -0
- package/package.json +9 -6
|
@@ -2073,6 +2073,7 @@ interface FeatureFlagsConfig {
|
|
|
2073
2073
|
readonly deduplicateCallsPerSession: boolean;
|
|
2074
2074
|
readonly cacheTtlMs?: number;
|
|
2075
2075
|
readonly refreshIntervalMs?: number;
|
|
2076
|
+
readonly idleRefreshBackoff: boolean;
|
|
2076
2077
|
readonly requestTimeoutMs: number;
|
|
2077
2078
|
readonly compression?: Compression | 'best-available';
|
|
2078
2079
|
readonly evaluationContexts: readonly string[];
|
|
@@ -2108,6 +2109,8 @@ declare class PostHogFeatureFlags implements Extension {
|
|
|
2108
2109
|
private _consecutiveStatusZeroFailures;
|
|
2109
2110
|
private _refreshInterval?;
|
|
2110
2111
|
private _refreshIntervalMs?;
|
|
2112
|
+
private _dueRefreshIntervalMs?;
|
|
2113
|
+
private _hadUserInteraction;
|
|
2111
2114
|
private _lastRefreshAt?;
|
|
2112
2115
|
private readonly _configSource;
|
|
2113
2116
|
private readonly _mutableConfigSource?;
|
|
@@ -2119,7 +2122,9 @@ declare class PostHogFeatureFlags implements Extension {
|
|
|
2119
2122
|
private _finishSetup;
|
|
2120
2123
|
private _onOnline;
|
|
2121
2124
|
private _refreshIfDue;
|
|
2125
|
+
private _onUserInteraction;
|
|
2122
2126
|
private _onVisibilityChange;
|
|
2127
|
+
private _resumeConfiguredInterval;
|
|
2123
2128
|
private _syncAutomaticRefresh;
|
|
2124
2129
|
private _scheduleNextRefresh;
|
|
2125
2130
|
private _stopAutomaticRefresh;
|