@statsig/statsig-node-core 0.7.4 → 0.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statsig/statsig-node-core",
3
- "version": "0.7.4",
3
+ "version": "0.8.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "jest --colors"
@@ -52,13 +52,13 @@
52
52
  ]
53
53
  },
54
54
  "optionalDependencies": {
55
- "@statsig/statsig-node-core-linux-x64-musl": "0.7.4",
56
- "@statsig/statsig-node-core-linux-x64-gnu": "0.7.4",
57
- "@statsig/statsig-node-core-win32-x64-msvc": "0.7.4",
58
- "@statsig/statsig-node-core-darwin-x64": "0.7.4",
59
- "@statsig/statsig-node-core-win32-ia32-msvc": "0.7.4",
60
- "@statsig/statsig-node-core-linux-arm64-musl": "0.7.4",
61
- "@statsig/statsig-node-core-linux-arm64-gnu": "0.7.4",
62
- "@statsig/statsig-node-core-darwin-arm64": "0.7.4"
55
+ "@statsig/statsig-node-core-linux-x64-musl": "0.8.0",
56
+ "@statsig/statsig-node-core-linux-x64-gnu": "0.8.0",
57
+ "@statsig/statsig-node-core-win32-x64-msvc": "0.8.0",
58
+ "@statsig/statsig-node-core-darwin-x64": "0.8.0",
59
+ "@statsig/statsig-node-core-win32-ia32-msvc": "0.8.0",
60
+ "@statsig/statsig-node-core-linux-arm64-musl": "0.8.0",
61
+ "@statsig/statsig-node-core-linux-arm64-gnu": "0.8.0",
62
+ "@statsig/statsig-node-core-darwin-arm64": "0.8.0"
63
63
  }
64
64
  }
@@ -64,6 +64,7 @@ export declare class StatsigNapiInternal {
64
64
  getExperimentByGroupName(experimentName: string, groupName: string): Experiment
65
65
  getFieldsNeededForExperiment(experimentName: string): Array<string>
66
66
  getLayer(user: StatsigUser, layerName: string, options?: LayerEvaluationOptions | undefined | null): Layer
67
+ getPrompt(user: StatsigUser, promptName: string, options?: LayerEvaluationOptions | undefined | null): Layer
67
68
  getFieldsNeededForLayer(layerName: string): Array<string>
68
69
  identify(user: StatsigUser): void
69
70
  getParameterStore(user: StatsigUser, parameterStoreName: string, options?: ParameterStoreEvaluationOptions | undefined | null): ParameterStore
@@ -156,6 +157,7 @@ export interface EvaluationDetails {
156
157
 
157
158
  export interface ExperimentEvaluationOptions {
158
159
  disableExposureLogging?: boolean
160
+ userPersistedValues?: Record<string, any>
159
161
  }
160
162
 
161
163
  export interface FeatureGate {
@@ -171,6 +173,7 @@ export interface FeatureGateEvaluationOptions {
171
173
 
172
174
  export interface LayerEvaluationOptions {
173
175
  disableExposureLogging?: boolean
176
+ userPersistedValues?: Record<string, any>
174
177
  }
175
178
 
176
179
  export interface NapiNetworkFuncResult {