@statsig/statsig-node-core 0.10.2 → 0.10.3-beta.2510230235

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/statsig-node-core",
3
- "version": "0.10.2",
3
+ "version": "0.10.3-beta.2510230235",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "jest --colors"
@@ -53,13 +53,13 @@
53
53
  ]
54
54
  },
55
55
  "optionalDependencies": {
56
- "@statsig/statsig-node-core-linux-x64-musl": "0.10.2",
57
- "@statsig/statsig-node-core-linux-x64-gnu": "0.10.2",
58
- "@statsig/statsig-node-core-win32-x64-msvc": "0.10.2",
59
- "@statsig/statsig-node-core-darwin-x64": "0.10.2",
60
- "@statsig/statsig-node-core-win32-ia32-msvc": "0.10.2",
61
- "@statsig/statsig-node-core-linux-arm64-musl": "0.10.2",
62
- "@statsig/statsig-node-core-linux-arm64-gnu": "0.10.2",
63
- "@statsig/statsig-node-core-darwin-arm64": "0.10.2"
56
+ "@statsig/statsig-node-core-linux-x64-musl": "0.10.3-beta.2510230235",
57
+ "@statsig/statsig-node-core-linux-x64-gnu": "0.10.3-beta.2510230235",
58
+ "@statsig/statsig-node-core-win32-x64-msvc": "0.10.3-beta.2510230235",
59
+ "@statsig/statsig-node-core-darwin-x64": "0.10.3-beta.2510230235",
60
+ "@statsig/statsig-node-core-win32-ia32-msvc": "0.10.3-beta.2510230235",
61
+ "@statsig/statsig-node-core-linux-arm64-musl": "0.10.3-beta.2510230235",
62
+ "@statsig/statsig-node-core-linux-arm64-gnu": "0.10.3-beta.2510230235",
63
+ "@statsig/statsig-node-core-darwin-arm64": "0.10.3-beta.2510230235"
64
64
  }
65
65
  }
@@ -6,7 +6,8 @@ export declare class DynamicConfig {
6
6
  ruleID: string
7
7
  idType: string
8
8
  details: EvaluationDetails
9
- getValue(param_name: string, fallback: boolean | number | string | object | Array<any> | null): any
9
+ getValue(paramName: string, fallback: boolean | number | string | object | Array<any> | null): any
10
+ get<T>(paramName: string, fallback: T): T
10
11
  getRuleId(): string
11
12
  getIdType(): string
12
13
  getEvaluationDetails(): EvaluationDetails
@@ -21,7 +22,8 @@ export declare class Experiment {
21
22
  idType: string
22
23
  groupName?: string
23
24
  details: EvaluationDetails
24
- getValue(param_name: string, fallback: boolean | number | string | object | Array<any> | null): any
25
+ getValue(paramName: string, fallback: boolean | number | string | object | Array<any> | null): any
26
+ get<T>(paramName: string, fallback: T): T
25
27
  getRuleId(): string
26
28
  getIdType(): string
27
29
  getGroupName(): string | null
@@ -37,7 +39,8 @@ export declare class Layer {
37
39
  allocatedExperimentName?: string
38
40
  value: Record<string, any>
39
41
  details: EvaluationDetails
40
- getValue(param_name: string, fallback: boolean | number | string | object | Array<any> | null): any
42
+ getValue(paramName: string, fallback: boolean | number | string | object | Array<any> | null): any
43
+ get<T>(paramName: string, fallback: T): T
41
44
  getRuleId(): string
42
45
  getGroupName(): string | null
43
46
  getEvaluationDetails(): EvaluationDetails
@@ -52,8 +55,8 @@ export declare class ParameterStore {
52
55
  }
53
56
 
54
57
  export declare class StatsigNapiInternal {
55
- subscribe(eventName: '*' | 'gate_evaluated' | 'dynamic_config_evaluated' | 'experiment_evaluated' | 'layer_evaluated', callback: (event: any) => void): string
56
- unsubscribe(eventName: '*' | 'gate_evaluated' | 'dynamic_config_evaluated' | 'experiment_evaluated' | 'layer_evaluated'): void
58
+ subscribe(eventName: '*' | 'gate_evaluated' | 'dynamic_config_evaluated' | 'experiment_evaluated' | 'layer_evaluated' | 'specs_updated', callback: (event: any) => void): string
59
+ unsubscribe(eventName: '*' | 'gate_evaluated' | 'dynamic_config_evaluated' | 'experiment_evaluated' | 'layer_evaluated' | 'specs_updated'): void
57
60
  unsubscribeById(subscriptionId: string): void
58
61
  unsubscribeAll(): void
59
62
  constructor(networkFunc: unknown, sdkKey: string, options?: StatsigOptions | undefined | null)
@@ -71,7 +74,6 @@ export declare class StatsigNapiInternal {
71
74
  getExperimentByGroupName(experimentName: string, groupName: string): Experiment
72
75
  getFieldsNeededForExperiment(experimentName: string): Array<string>
73
76
  getLayer(user: StatsigUser, layerName: string, options?: LayerEvaluationOptions | undefined | null): Layer
74
- getPrompt(user: StatsigUser, promptName: string, options?: LayerEvaluationOptions | undefined | null): Layer
75
77
  getFieldsNeededForLayer(layerName: string): Array<string>
76
78
  identify(user: StatsigUser): void
77
79
  getParameterStore(user: StatsigUser, parameterStoreName: string, options?: ParameterStoreEvaluationOptions | undefined | null): ParameterStore
@@ -166,6 +168,7 @@ export interface EvaluationDetails {
166
168
  reason: string
167
169
  lcut?: number
168
170
  receivedAt?: number
171
+ version?: number
169
172
  }
170
173
 
171
174
  export interface ExperimentEvaluationOptions {