@statsig/on-device-eval-core 3.33.0 → 3.33.2

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/on-device-eval-core",
3
- "version": "3.33.0",
3
+ "version": "3.33.2",
4
4
  "license": "ISC",
5
5
  "homepage": "https://github.com/statsig-io/js-client-monorepo",
6
6
  "repository": {
@@ -9,8 +9,8 @@
9
9
  "directory": "packages/on-device-eval-core"
10
10
  },
11
11
  "dependencies": {
12
- "@statsig/client-core": "3.33.0",
13
- "@statsig/sha256": "3.33.0"
12
+ "@statsig/client-core": "3.33.2",
13
+ "@statsig/sha256": "3.33.2"
14
14
  },
15
15
  "type": "commonjs",
16
16
  "main": "./src/index.js",
@@ -1,4 +1,4 @@
1
- import { DataAdapterResult, DataSource, DownloadConfigSpecsResponse, ParamStoreConfig, Spec } from '@statsig/client-core';
1
+ import { DataAdapterResult, DataSource, type DeepReadonly, DownloadConfigSpecsResponse, ParamStoreConfig, Spec } from '@statsig/client-core';
2
2
  export type SpecAndSourceInfo = {
3
3
  spec: Spec | null;
4
4
  } & SourceInfo;
@@ -19,6 +19,7 @@ export declare class SpecStore {
19
19
  private _receivedAt;
20
20
  private _defaultEnvironment;
21
21
  getValues(): DownloadConfigSpecsResponse | null;
22
+ getValuesReadOnly(): DeepReadonly<DownloadConfigSpecsResponse> | null;
22
23
  getSource(): DataSource;
23
24
  getDefaultEnvironment(): string | null;
24
25
  setValuesFromDataAdapter(result: DataAdapterResult | null): void;
package/src/SpecStore.js CHANGED
@@ -17,6 +17,9 @@ class SpecStore {
17
17
  getValues() {
18
18
  return this._rawValues ? _parseResponse(this._rawValues) : null;
19
19
  }
20
+ getValuesReadOnly() {
21
+ return this._values;
22
+ }
20
23
  getSource() {
21
24
  return this._source;
22
25
  }