@statsig/client-core 3.0.0-beta.2 → 3.0.0-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statsig/client-core",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.3",
4
4
  "dependencies": {},
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -9,7 +9,6 @@ import { StatsigEvent } from './StatsigEvent';
9
9
  import { AnyStatsigOptions, StatsigRuntimeMutableOptions } from './StatsigOptionsCommon';
10
10
  import { DynamicConfig, Experiment, FeatureGate, Layer, ParameterStore } from './StatsigTypes';
11
11
  import { StatsigUser } from './StatsigUser';
12
- import { StorageProvider } from './StorageProvider';
13
12
  import { Flatten } from './TypingUtils';
14
13
  export interface StatsigClientCommonInterface extends StatsigClientEventEmitterInterface {
15
14
  initializeSync(): void;
@@ -24,7 +23,6 @@ export type CommonContext = {
24
23
  errorBoundary: ErrorBoundary;
25
24
  session: StatsigSession;
26
25
  stableID: string;
27
- storageProvider: StorageProvider;
28
26
  };
29
27
  export type OnDeviceEvaluationsContext = CommonContext & {
30
28
  values: DownloadConfigSpecsResponse | null;
@@ -8,6 +8,7 @@ import { AnyStatsigClientEvent, StatsigClientEventCallback, StatsigClientEventEm
8
8
  import { DataAdapterResult, EvaluationsDataAdapter, SpecsDataAdapter } from './StatsigDataAdapter';
9
9
  import { StatsigEventInternal } from './StatsigEvent';
10
10
  import { AnyStatsigOptions, StatsigRuntimeMutableOptions } from './StatsigOptionsCommon';
11
+ import { StorageProvider } from './StorageProvider';
11
12
  export type StatsigClientEmitEventFunc = (event: AnyStatsigClientEvent) => void;
12
13
  export type StatsigContext = {
13
14
  sdkKey: string;
@@ -19,6 +20,7 @@ export declare abstract class StatsigClientBase<TAdapter extends EvaluationsData
19
20
  loadingStatus: StatsigLoadingStatus;
20
21
  readonly dataAdapter: TAdapter;
21
22
  readonly overrideAdapter: OverrideAdapter | null;
23
+ readonly storageProvider: StorageProvider;
22
24
  protected readonly _sdkKey: string;
23
25
  protected readonly _options: AnyStatsigOptions;
24
26
  protected readonly _errorBoundary: ErrorBoundary;
@@ -52,6 +52,7 @@ class StatsigClientBase {
52
52
  }
53
53
  this.dataAdapter = adapter;
54
54
  this.dataAdapter.attach(sdkKey, options);
55
+ this.storageProvider = StorageProvider_1.Storage;
55
56
  this._primeReadyRipcord();
56
57
  }
57
58
  /**
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "3.0.0-beta.2";
1
+ export declare const SDK_VERSION = "3.0.0-beta.3";
2
2
  export type StatsigMetadata = {
3
3
  readonly [key: string]: string | undefined;
4
4
  readonly appVersion?: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StatsigMetadataProvider = exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '3.0.0-beta.2';
4
+ exports.SDK_VERSION = '3.0.0-beta.3';
5
5
  let metadata = {
6
6
  sdkVersion: exports.SDK_VERSION,
7
7
  sdkType: 'js-mono', // js-mono is overwritten by Precomp and OnDevice clients