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
|
@@ -2236,6 +2236,7 @@ interface FeatureFlagsConfig {
|
|
|
2236
2236
|
readonly deduplicateCallsPerSession: boolean;
|
|
2237
2237
|
readonly cacheTtlMs?: number;
|
|
2238
2238
|
readonly refreshIntervalMs?: number;
|
|
2239
|
+
readonly idleRefreshBackoff: boolean;
|
|
2239
2240
|
readonly requestTimeoutMs: number;
|
|
2240
2241
|
readonly compression?: Compression | 'best-available';
|
|
2241
2242
|
readonly evaluationContexts: readonly string[];
|
|
@@ -2271,6 +2272,8 @@ declare class PostHogFeatureFlags implements Extension {
|
|
|
2271
2272
|
private _consecutiveStatusZeroFailures;
|
|
2272
2273
|
private _refreshInterval?;
|
|
2273
2274
|
private _refreshIntervalMs?;
|
|
2275
|
+
private _dueRefreshIntervalMs?;
|
|
2276
|
+
private _hadUserInteraction;
|
|
2274
2277
|
private _lastRefreshAt?;
|
|
2275
2278
|
private readonly _configSource;
|
|
2276
2279
|
private readonly _mutableConfigSource?;
|
|
@@ -2282,7 +2285,9 @@ declare class PostHogFeatureFlags implements Extension {
|
|
|
2282
2285
|
private _finishSetup;
|
|
2283
2286
|
private _onOnline;
|
|
2284
2287
|
private _refreshIfDue;
|
|
2288
|
+
private _onUserInteraction;
|
|
2285
2289
|
private _onVisibilityChange;
|
|
2290
|
+
private _resumeConfiguredInterval;
|
|
2286
2291
|
private _syncAutomaticRefresh;
|
|
2287
2292
|
private _scheduleNextRefresh;
|
|
2288
2293
|
private _stopAutomaticRefresh;
|