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