@splithub/core 0.6.1 → 0.7.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/chunk-73Y4OWKF.js +929 -0
- package/dist/chunk-73Y4OWKF.js.map +1 -0
- package/dist/index.cjs +253 -136
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -4
- package/dist/index.d.ts +52 -4
- package/dist/index.js +1339 -40
- package/dist/index.js.map +1 -1
- package/dist/{types-0c_5qhVX.d.cts → types-DEEyqr9C.d.cts} +5 -1
- package/dist/{types-0c_5qhVX.d.ts → types-DEEyqr9C.d.ts} +5 -1
- package/dist/vite.cjs +77 -14
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +4 -7
- package/dist/vite.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-BBUR5ZJ4.js +0 -2173
- package/dist/chunk-BBUR5ZJ4.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SplitHubConfigInput, a as SplitHubConfig, E as Experiment, V as Variant, F as Factor, P as PropertyInput, G as Goal, b as Property, T as TargetingContext, A as Assignment, c as AppInfo, d as Flow, e as TargetCondition, f as TargetField, g as TargetOp, h as EventBatch, i as SplitHubEvent, j as ExperimentStatus, k as PropertyStatus, H as Holdout } from './types-
|
|
2
|
-
export { o as AppPlatform, r as ComponentExperimentInput, C as ComponentVariantInput, K as EngageEvent, p as ExperimentBase, u as ExperimentInput, l as ExperimentKind, z as ExperimentMetrics, B as ExposureEvent, n as FlowNode, D as GoalEvent, w as GoalInput, v as GoalLabels, q as GuardrailInput, L as IdentifyEvent, M as MvtExperimentInput, I as PageEvent, y as PropertyKind, t as RedirectExperimentInput, R as RedirectVariantInput, x as StorageInput, J as TrackEvent, s as ValueExperimentInput, m as ValueVariantInput } from './types-
|
|
1
|
+
import { S as SplitHubConfigInput, a as SplitHubConfig, E as Experiment, V as Variant, F as Factor, P as PropertyInput, G as Goal, b as Property, T as TargetingContext, A as Assignment, c as AppInfo, d as Flow, e as TargetCondition, f as TargetField, g as TargetOp, h as EventBatch, i as SplitHubEvent, j as ExperimentStatus, k as PropertyStatus, H as Holdout } from './types-DEEyqr9C.cjs';
|
|
2
|
+
export { o as AppPlatform, r as ComponentExperimentInput, C as ComponentVariantInput, K as EngageEvent, p as ExperimentBase, u as ExperimentInput, l as ExperimentKind, z as ExperimentMetrics, B as ExposureEvent, n as FlowNode, D as GoalEvent, w as GoalInput, v as GoalLabels, q as GuardrailInput, L as IdentifyEvent, M as MvtExperimentInput, I as PageEvent, y as PropertyKind, t as RedirectExperimentInput, R as RedirectVariantInput, x as StorageInput, J as TrackEvent, s as ValueExperimentInput, m as ValueVariantInput } from './types-DEEyqr9C.cjs';
|
|
3
3
|
|
|
4
4
|
declare class ConfigError extends Error {
|
|
5
5
|
constructor(message: string);
|
|
@@ -286,6 +286,10 @@ interface TransportOptions {
|
|
|
286
286
|
keyInQuery?: boolean;
|
|
287
287
|
/** `fetch(..., { keepalive })`; default true. Apps pass false: there is no page to outlive. */
|
|
288
288
|
keepalive?: boolean;
|
|
289
|
+
/** Tried in order when `endpoint` cannot be reached (a network error, not an error status). */
|
|
290
|
+
fallbacks?: string[];
|
|
291
|
+
/** Called once a fallback answers; later batches go there first. */
|
|
292
|
+
onEndpoint?: (endpoint: string) => void;
|
|
289
293
|
}
|
|
290
294
|
/** Default transport: fetch with keepalive; sendBeacon on page hide when the endpoint allows it. */
|
|
291
295
|
declare function createFetchTransport(options: TransportOptions): Transport;
|
|
@@ -391,6 +395,8 @@ interface RemoteOverrides {
|
|
|
391
395
|
}>;
|
|
392
396
|
/** What the cloud knows about this request: country, region, city. Per visitor. */
|
|
393
397
|
ctx?: Pick<TargetingContext, 'country' | 'region' | 'city' | 'timezone'>;
|
|
398
|
+
/** The cloud's current events URL. Clients on the cloud remember it and send there from then on. */
|
|
399
|
+
endpoint?: string;
|
|
394
400
|
}
|
|
395
401
|
declare const EMPTY_OVERRIDES: RemoteOverrides;
|
|
396
402
|
/** Pure merge: returns a new config, never mutates the input. */
|
|
@@ -410,6 +416,48 @@ declare const REMOTE_TTL_MS = 60000;
|
|
|
410
416
|
declare function readRemoteCache(publicKey: string, store?: KeyValueStorage | null, all?: boolean): CacheEntry | null;
|
|
411
417
|
declare function writeRemoteCache(publicKey: string, overrides: RemoteOverrides, store?: KeyValueStorage | null, all?: boolean): void;
|
|
412
418
|
declare function fetchRemoteOverrides(url: string, fetchImpl?: typeof fetch): Promise<RemoteOverrides | null>;
|
|
419
|
+
/**
|
|
420
|
+
* Tries each URL until one answers; only a network failure moves on (a 404 means the address
|
|
421
|
+
* works and the key does not). `answered` is the index of the URL that answered, -1 if none did.
|
|
422
|
+
*/
|
|
423
|
+
declare function fetchRemoteOverridesFrom(urls: string[], fetchImpl?: typeof fetch): Promise<{
|
|
424
|
+
overrides: RemoteOverrides | null;
|
|
425
|
+
answered: number;
|
|
426
|
+
}>;
|
|
427
|
+
|
|
428
|
+
/** SplitHub Cloud's ingest. */
|
|
429
|
+
declare const CLOUD_ENDPOINT = "https://go.sh2.uk/v1/events";
|
|
430
|
+
/** Tried when the addresses before them cannot be reached. */
|
|
431
|
+
declare const CLOUD_FALLBACK_ENDPOINTS: readonly string[];
|
|
432
|
+
/** Where the announced address is kept (localStorage, or the app's storage). */
|
|
433
|
+
declare const ENDPOINT_KEY = "sh_endpoint";
|
|
434
|
+
/**
|
|
435
|
+
* `storage.endpoint` in cloud mode may be just a domain: `go.sh2.uk`, `https://go.sh2.uk` and
|
|
436
|
+
* `https://go.sh2.uk/v1/events` are the same address. A URL with a path of its own is kept as written.
|
|
437
|
+
*/
|
|
438
|
+
declare function normalizeCloudEndpoint(value: string): string;
|
|
439
|
+
/** True for no endpoint at all (the default) and for any address the cloud has had. */
|
|
440
|
+
declare function isCloudEndpoint(endpoint: string | undefined): boolean;
|
|
441
|
+
/** The address remembered on this device, if the cloud announced one. */
|
|
442
|
+
declare function rememberedEndpoint(store: KeyValueStorage | null | undefined): string | null;
|
|
443
|
+
/** Keeps an announced or a working address for the next page or launch. */
|
|
444
|
+
declare function rememberEndpoint(store: KeyValueStorage | null | undefined, endpoint: string): void;
|
|
445
|
+
/**
|
|
446
|
+
* Cloud addresses in the order to try them: remembered, configured, default, backups.
|
|
447
|
+
* A past address (`go.splithub.io`) a config still names is skipped: it no longer answers.
|
|
448
|
+
*/
|
|
449
|
+
declare function cloudEndpoints(store: KeyValueStorage | null | undefined, configured?: string): string[];
|
|
450
|
+
/** The page's localStorage, when there is one. */
|
|
451
|
+
declare function browserLocalStorage(): KeyValueStorage | null;
|
|
452
|
+
/**
|
|
453
|
+
* Overrides for a public key. On the cloud it tries each address in turn and remembers the one
|
|
454
|
+
* that answered and the one the answer announces; a custom endpoint is asked once, as written.
|
|
455
|
+
*/
|
|
456
|
+
declare function fetchCloudOverrides(endpoint: string | undefined, key: string, options?: {
|
|
457
|
+
store?: KeyValueStorage | null;
|
|
458
|
+
all?: boolean;
|
|
459
|
+
fetchImpl?: typeof fetch;
|
|
460
|
+
}): Promise<RemoteOverrides | null>;
|
|
413
461
|
|
|
414
462
|
declare const SDK_VERSION = "0.1.0";
|
|
415
463
|
/**
|
|
@@ -417,7 +465,7 @@ declare const SDK_VERSION = "0.1.0";
|
|
|
417
465
|
* them. The fetch usually takes ~150 ms. Apps wait the same: later launches read the cache.
|
|
418
466
|
*/
|
|
419
467
|
declare const REMOTE_WAIT_MS = 400;
|
|
420
|
-
|
|
468
|
+
|
|
421
469
|
/** An app away this long starts a new session when it comes back. */
|
|
422
470
|
declare const SESSION_GAP_MS: number;
|
|
423
471
|
interface ClientOptions {
|
|
@@ -562,4 +610,4 @@ declare function debugLog(kind: DebugKind, message: string, data?: Record<string
|
|
|
562
610
|
/** Subscribe to debug entries (the devtools panel). Returns an unsubscribe function. */
|
|
563
611
|
declare function onDebug(listener: (e: DebugEntry) => void): () => void;
|
|
564
612
|
|
|
565
|
-
export { AppInfo, type AssignOptions, Assignment, CLOUD_ENDPOINT, type ClientOptions, ConfigError, type DebugEntry, type DebugKind, EMPTY_OVERRIDES, EVENT_NAME_PATTERN, EventBatch, EventQueue, type EventQueueOptions, Experiment, type ExperimentOverride, ExperimentStatus, Factor, Flow, type FlowOutcome, Goal, HOLDOUT_KEY, Holdout, KEYED_FIELDS, type KeyValueStorage, LAYER_BUCKETS, MVT_MAX_COMBINATIONS, MVT_MAX_FACTORS, MVT_MAX_LEVELS, PROPERTY_KEY_PATTERN, type PlatformAdapter, Property, PropertyInput, PropertyStatus, QUEUE_STORAGE_KEY, REMOTE_TTL_MS, REMOTE_WAIT_MS, type RedirectDecision, type RemoteOverrides, SDK_VERSION, SESSION_GAP_MS, type SplitHubClient, SplitHubConfig, SplitHubConfigInput, SplitHubEvent, TARGET_FIELDS, TARGET_OPS, TargetCondition, TargetField, TargetOp, TargetingContext, type Transport, type TransportOptions, Variant, applyRemoteOverrides, assign, browserContext, compareVersions, contextValue, controlVariant, countsForHoldout, createClient, createFetchTransport, debugLog, debugMode, decideRedirect, defineConfig, devNote, evaluateCondition, eventKey, explainAssignment, fetchRemoteOverrides, getExperiment, getOrCreateSessionId, getOrCreateVisitorId, goalKeyFor, hasVisitorId, hashToUnit, holdoutExperiment, holdoutGroup, inLayer, inSchedule, isActive, isBot, isBrowser, isCrawler, isDebug, isDevDraft, isDevEnvironment, isReactNative, isRemoteOverrides, isSplitHubConfig, layerBucket, matchConditions, matchPath, measuredGoals, memoryStorage, murmur3, mvtVariants, newId, newPropertyId, newSessionId, newVisitorId, normalizePath, normalizeProperty, onDebug, parseCookies, parseForceParam, parseUserAgent, pickProperty, pickVariant, readRemoteCache, redirectTarget, referrerOrigin, resetAnalyticsClaims, resetDevNotes, resolveOverridesUrl, runFlow, validateFlow, writeRemoteCache };
|
|
613
|
+
export { AppInfo, type AssignOptions, Assignment, CLOUD_ENDPOINT, CLOUD_FALLBACK_ENDPOINTS, type ClientOptions, ConfigError, type DebugEntry, type DebugKind, EMPTY_OVERRIDES, ENDPOINT_KEY, EVENT_NAME_PATTERN, EventBatch, EventQueue, type EventQueueOptions, Experiment, type ExperimentOverride, ExperimentStatus, Factor, Flow, type FlowOutcome, Goal, HOLDOUT_KEY, Holdout, KEYED_FIELDS, type KeyValueStorage, LAYER_BUCKETS, MVT_MAX_COMBINATIONS, MVT_MAX_FACTORS, MVT_MAX_LEVELS, PROPERTY_KEY_PATTERN, type PlatformAdapter, Property, PropertyInput, PropertyStatus, QUEUE_STORAGE_KEY, REMOTE_TTL_MS, REMOTE_WAIT_MS, type RedirectDecision, type RemoteOverrides, SDK_VERSION, SESSION_GAP_MS, type SplitHubClient, SplitHubConfig, SplitHubConfigInput, SplitHubEvent, TARGET_FIELDS, TARGET_OPS, TargetCondition, TargetField, TargetOp, TargetingContext, type Transport, type TransportOptions, Variant, applyRemoteOverrides, assign, browserContext, browserLocalStorage, cloudEndpoints, compareVersions, contextValue, controlVariant, countsForHoldout, createClient, createFetchTransport, debugLog, debugMode, decideRedirect, defineConfig, devNote, evaluateCondition, eventKey, explainAssignment, fetchCloudOverrides, fetchRemoteOverrides, fetchRemoteOverridesFrom, getExperiment, getOrCreateSessionId, getOrCreateVisitorId, goalKeyFor, hasVisitorId, hashToUnit, holdoutExperiment, holdoutGroup, inLayer, inSchedule, isActive, isBot, isBrowser, isCloudEndpoint, isCrawler, isDebug, isDevDraft, isDevEnvironment, isReactNative, isRemoteOverrides, isSplitHubConfig, layerBucket, matchConditions, matchPath, measuredGoals, memoryStorage, murmur3, mvtVariants, newId, newPropertyId, newSessionId, newVisitorId, normalizeCloudEndpoint, normalizePath, normalizeProperty, onDebug, parseCookies, parseForceParam, parseUserAgent, pickProperty, pickVariant, readRemoteCache, redirectTarget, referrerOrigin, rememberEndpoint, rememberedEndpoint, resetAnalyticsClaims, resetDevNotes, resolveOverridesUrl, runFlow, validateFlow, writeRemoteCache };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SplitHubConfigInput, a as SplitHubConfig, E as Experiment, V as Variant, F as Factor, P as PropertyInput, G as Goal, b as Property, T as TargetingContext, A as Assignment, c as AppInfo, d as Flow, e as TargetCondition, f as TargetField, g as TargetOp, h as EventBatch, i as SplitHubEvent, j as ExperimentStatus, k as PropertyStatus, H as Holdout } from './types-
|
|
2
|
-
export { o as AppPlatform, r as ComponentExperimentInput, C as ComponentVariantInput, K as EngageEvent, p as ExperimentBase, u as ExperimentInput, l as ExperimentKind, z as ExperimentMetrics, B as ExposureEvent, n as FlowNode, D as GoalEvent, w as GoalInput, v as GoalLabels, q as GuardrailInput, L as IdentifyEvent, M as MvtExperimentInput, I as PageEvent, y as PropertyKind, t as RedirectExperimentInput, R as RedirectVariantInput, x as StorageInput, J as TrackEvent, s as ValueExperimentInput, m as ValueVariantInput } from './types-
|
|
1
|
+
import { S as SplitHubConfigInput, a as SplitHubConfig, E as Experiment, V as Variant, F as Factor, P as PropertyInput, G as Goal, b as Property, T as TargetingContext, A as Assignment, c as AppInfo, d as Flow, e as TargetCondition, f as TargetField, g as TargetOp, h as EventBatch, i as SplitHubEvent, j as ExperimentStatus, k as PropertyStatus, H as Holdout } from './types-DEEyqr9C.js';
|
|
2
|
+
export { o as AppPlatform, r as ComponentExperimentInput, C as ComponentVariantInput, K as EngageEvent, p as ExperimentBase, u as ExperimentInput, l as ExperimentKind, z as ExperimentMetrics, B as ExposureEvent, n as FlowNode, D as GoalEvent, w as GoalInput, v as GoalLabels, q as GuardrailInput, L as IdentifyEvent, M as MvtExperimentInput, I as PageEvent, y as PropertyKind, t as RedirectExperimentInput, R as RedirectVariantInput, x as StorageInput, J as TrackEvent, s as ValueExperimentInput, m as ValueVariantInput } from './types-DEEyqr9C.js';
|
|
3
3
|
|
|
4
4
|
declare class ConfigError extends Error {
|
|
5
5
|
constructor(message: string);
|
|
@@ -286,6 +286,10 @@ interface TransportOptions {
|
|
|
286
286
|
keyInQuery?: boolean;
|
|
287
287
|
/** `fetch(..., { keepalive })`; default true. Apps pass false: there is no page to outlive. */
|
|
288
288
|
keepalive?: boolean;
|
|
289
|
+
/** Tried in order when `endpoint` cannot be reached (a network error, not an error status). */
|
|
290
|
+
fallbacks?: string[];
|
|
291
|
+
/** Called once a fallback answers; later batches go there first. */
|
|
292
|
+
onEndpoint?: (endpoint: string) => void;
|
|
289
293
|
}
|
|
290
294
|
/** Default transport: fetch with keepalive; sendBeacon on page hide when the endpoint allows it. */
|
|
291
295
|
declare function createFetchTransport(options: TransportOptions): Transport;
|
|
@@ -391,6 +395,8 @@ interface RemoteOverrides {
|
|
|
391
395
|
}>;
|
|
392
396
|
/** What the cloud knows about this request: country, region, city. Per visitor. */
|
|
393
397
|
ctx?: Pick<TargetingContext, 'country' | 'region' | 'city' | 'timezone'>;
|
|
398
|
+
/** The cloud's current events URL. Clients on the cloud remember it and send there from then on. */
|
|
399
|
+
endpoint?: string;
|
|
394
400
|
}
|
|
395
401
|
declare const EMPTY_OVERRIDES: RemoteOverrides;
|
|
396
402
|
/** Pure merge: returns a new config, never mutates the input. */
|
|
@@ -410,6 +416,48 @@ declare const REMOTE_TTL_MS = 60000;
|
|
|
410
416
|
declare function readRemoteCache(publicKey: string, store?: KeyValueStorage | null, all?: boolean): CacheEntry | null;
|
|
411
417
|
declare function writeRemoteCache(publicKey: string, overrides: RemoteOverrides, store?: KeyValueStorage | null, all?: boolean): void;
|
|
412
418
|
declare function fetchRemoteOverrides(url: string, fetchImpl?: typeof fetch): Promise<RemoteOverrides | null>;
|
|
419
|
+
/**
|
|
420
|
+
* Tries each URL until one answers; only a network failure moves on (a 404 means the address
|
|
421
|
+
* works and the key does not). `answered` is the index of the URL that answered, -1 if none did.
|
|
422
|
+
*/
|
|
423
|
+
declare function fetchRemoteOverridesFrom(urls: string[], fetchImpl?: typeof fetch): Promise<{
|
|
424
|
+
overrides: RemoteOverrides | null;
|
|
425
|
+
answered: number;
|
|
426
|
+
}>;
|
|
427
|
+
|
|
428
|
+
/** SplitHub Cloud's ingest. */
|
|
429
|
+
declare const CLOUD_ENDPOINT = "https://go.sh2.uk/v1/events";
|
|
430
|
+
/** Tried when the addresses before them cannot be reached. */
|
|
431
|
+
declare const CLOUD_FALLBACK_ENDPOINTS: readonly string[];
|
|
432
|
+
/** Where the announced address is kept (localStorage, or the app's storage). */
|
|
433
|
+
declare const ENDPOINT_KEY = "sh_endpoint";
|
|
434
|
+
/**
|
|
435
|
+
* `storage.endpoint` in cloud mode may be just a domain: `go.sh2.uk`, `https://go.sh2.uk` and
|
|
436
|
+
* `https://go.sh2.uk/v1/events` are the same address. A URL with a path of its own is kept as written.
|
|
437
|
+
*/
|
|
438
|
+
declare function normalizeCloudEndpoint(value: string): string;
|
|
439
|
+
/** True for no endpoint at all (the default) and for any address the cloud has had. */
|
|
440
|
+
declare function isCloudEndpoint(endpoint: string | undefined): boolean;
|
|
441
|
+
/** The address remembered on this device, if the cloud announced one. */
|
|
442
|
+
declare function rememberedEndpoint(store: KeyValueStorage | null | undefined): string | null;
|
|
443
|
+
/** Keeps an announced or a working address for the next page or launch. */
|
|
444
|
+
declare function rememberEndpoint(store: KeyValueStorage | null | undefined, endpoint: string): void;
|
|
445
|
+
/**
|
|
446
|
+
* Cloud addresses in the order to try them: remembered, configured, default, backups.
|
|
447
|
+
* A past address (`go.splithub.io`) a config still names is skipped: it no longer answers.
|
|
448
|
+
*/
|
|
449
|
+
declare function cloudEndpoints(store: KeyValueStorage | null | undefined, configured?: string): string[];
|
|
450
|
+
/** The page's localStorage, when there is one. */
|
|
451
|
+
declare function browserLocalStorage(): KeyValueStorage | null;
|
|
452
|
+
/**
|
|
453
|
+
* Overrides for a public key. On the cloud it tries each address in turn and remembers the one
|
|
454
|
+
* that answered and the one the answer announces; a custom endpoint is asked once, as written.
|
|
455
|
+
*/
|
|
456
|
+
declare function fetchCloudOverrides(endpoint: string | undefined, key: string, options?: {
|
|
457
|
+
store?: KeyValueStorage | null;
|
|
458
|
+
all?: boolean;
|
|
459
|
+
fetchImpl?: typeof fetch;
|
|
460
|
+
}): Promise<RemoteOverrides | null>;
|
|
413
461
|
|
|
414
462
|
declare const SDK_VERSION = "0.1.0";
|
|
415
463
|
/**
|
|
@@ -417,7 +465,7 @@ declare const SDK_VERSION = "0.1.0";
|
|
|
417
465
|
* them. The fetch usually takes ~150 ms. Apps wait the same: later launches read the cache.
|
|
418
466
|
*/
|
|
419
467
|
declare const REMOTE_WAIT_MS = 400;
|
|
420
|
-
|
|
468
|
+
|
|
421
469
|
/** An app away this long starts a new session when it comes back. */
|
|
422
470
|
declare const SESSION_GAP_MS: number;
|
|
423
471
|
interface ClientOptions {
|
|
@@ -562,4 +610,4 @@ declare function debugLog(kind: DebugKind, message: string, data?: Record<string
|
|
|
562
610
|
/** Subscribe to debug entries (the devtools panel). Returns an unsubscribe function. */
|
|
563
611
|
declare function onDebug(listener: (e: DebugEntry) => void): () => void;
|
|
564
612
|
|
|
565
|
-
export { AppInfo, type AssignOptions, Assignment, CLOUD_ENDPOINT, type ClientOptions, ConfigError, type DebugEntry, type DebugKind, EMPTY_OVERRIDES, EVENT_NAME_PATTERN, EventBatch, EventQueue, type EventQueueOptions, Experiment, type ExperimentOverride, ExperimentStatus, Factor, Flow, type FlowOutcome, Goal, HOLDOUT_KEY, Holdout, KEYED_FIELDS, type KeyValueStorage, LAYER_BUCKETS, MVT_MAX_COMBINATIONS, MVT_MAX_FACTORS, MVT_MAX_LEVELS, PROPERTY_KEY_PATTERN, type PlatformAdapter, Property, PropertyInput, PropertyStatus, QUEUE_STORAGE_KEY, REMOTE_TTL_MS, REMOTE_WAIT_MS, type RedirectDecision, type RemoteOverrides, SDK_VERSION, SESSION_GAP_MS, type SplitHubClient, SplitHubConfig, SplitHubConfigInput, SplitHubEvent, TARGET_FIELDS, TARGET_OPS, TargetCondition, TargetField, TargetOp, TargetingContext, type Transport, type TransportOptions, Variant, applyRemoteOverrides, assign, browserContext, compareVersions, contextValue, controlVariant, countsForHoldout, createClient, createFetchTransport, debugLog, debugMode, decideRedirect, defineConfig, devNote, evaluateCondition, eventKey, explainAssignment, fetchRemoteOverrides, getExperiment, getOrCreateSessionId, getOrCreateVisitorId, goalKeyFor, hasVisitorId, hashToUnit, holdoutExperiment, holdoutGroup, inLayer, inSchedule, isActive, isBot, isBrowser, isCrawler, isDebug, isDevDraft, isDevEnvironment, isReactNative, isRemoteOverrides, isSplitHubConfig, layerBucket, matchConditions, matchPath, measuredGoals, memoryStorage, murmur3, mvtVariants, newId, newPropertyId, newSessionId, newVisitorId, normalizePath, normalizeProperty, onDebug, parseCookies, parseForceParam, parseUserAgent, pickProperty, pickVariant, readRemoteCache, redirectTarget, referrerOrigin, resetAnalyticsClaims, resetDevNotes, resolveOverridesUrl, runFlow, validateFlow, writeRemoteCache };
|
|
613
|
+
export { AppInfo, type AssignOptions, Assignment, CLOUD_ENDPOINT, CLOUD_FALLBACK_ENDPOINTS, type ClientOptions, ConfigError, type DebugEntry, type DebugKind, EMPTY_OVERRIDES, ENDPOINT_KEY, EVENT_NAME_PATTERN, EventBatch, EventQueue, type EventQueueOptions, Experiment, type ExperimentOverride, ExperimentStatus, Factor, Flow, type FlowOutcome, Goal, HOLDOUT_KEY, Holdout, KEYED_FIELDS, type KeyValueStorage, LAYER_BUCKETS, MVT_MAX_COMBINATIONS, MVT_MAX_FACTORS, MVT_MAX_LEVELS, PROPERTY_KEY_PATTERN, type PlatformAdapter, Property, PropertyInput, PropertyStatus, QUEUE_STORAGE_KEY, REMOTE_TTL_MS, REMOTE_WAIT_MS, type RedirectDecision, type RemoteOverrides, SDK_VERSION, SESSION_GAP_MS, type SplitHubClient, SplitHubConfig, SplitHubConfigInput, SplitHubEvent, TARGET_FIELDS, TARGET_OPS, TargetCondition, TargetField, TargetOp, TargetingContext, type Transport, type TransportOptions, Variant, applyRemoteOverrides, assign, browserContext, browserLocalStorage, cloudEndpoints, compareVersions, contextValue, controlVariant, countsForHoldout, createClient, createFetchTransport, debugLog, debugMode, decideRedirect, defineConfig, devNote, evaluateCondition, eventKey, explainAssignment, fetchCloudOverrides, fetchRemoteOverrides, fetchRemoteOverridesFrom, getExperiment, getOrCreateSessionId, getOrCreateVisitorId, goalKeyFor, hasVisitorId, hashToUnit, holdoutExperiment, holdoutGroup, inLayer, inSchedule, isActive, isBot, isBrowser, isCloudEndpoint, isCrawler, isDebug, isDevDraft, isDevEnvironment, isReactNative, isRemoteOverrides, isSplitHubConfig, layerBucket, matchConditions, matchPath, measuredGoals, memoryStorage, murmur3, mvtVariants, newId, newPropertyId, newSessionId, newVisitorId, normalizeCloudEndpoint, normalizePath, normalizeProperty, onDebug, parseCookies, parseForceParam, parseUserAgent, pickProperty, pickVariant, readRemoteCache, redirectTarget, referrerOrigin, rememberEndpoint, rememberedEndpoint, resetAnalyticsClaims, resetDevNotes, resolveOverridesUrl, runFlow, validateFlow, writeRemoteCache };
|