@statsig/statsig-node-core 0.19.9-rc.2607010924 → 0.20.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/index.d.ts +1 -0
- package/index.js +4 -0
- package/package.json +10 -9
- package/statsig-generated.d.ts +3 -0
package/index.d.ts
CHANGED
|
@@ -16,5 +16,6 @@ export declare class Statsig extends StatsigNapiInternal {
|
|
|
16
16
|
getDynamicConfig(user: StatsigUser, configName: string, options?: DynamicConfigEvaluationOptions): DynamicConfig;
|
|
17
17
|
getExperiment(user: StatsigUser, experimentName: string, options?: ExperimentEvaluationOptions): Experiment;
|
|
18
18
|
getExperimentByGroupName(experimentName: string, groupName: string): Experiment;
|
|
19
|
+
getExperimentByGroupIdAdvanced(experimentName: string, groupId: string): Experiment;
|
|
19
20
|
getLayer(user: StatsigUser, layerName: string, options?: LayerEvaluationOptions): Layer;
|
|
20
21
|
}
|
package/index.js
CHANGED
|
@@ -123,6 +123,10 @@ class Statsig extends statsig_generated_1.StatsigNapiInternal {
|
|
|
123
123
|
const raw = this.__INTERNAL_getExperimentByGroupName(experimentName, groupName);
|
|
124
124
|
return new statsig_types_1.Experiment(experimentName, raw);
|
|
125
125
|
}
|
|
126
|
+
getExperimentByGroupIdAdvanced(experimentName, groupId) {
|
|
127
|
+
const raw = this.__INTERNAL_getExperimentByGroupIdAdvanced(experimentName, groupId);
|
|
128
|
+
return new statsig_types_1.Experiment(experimentName, raw);
|
|
129
|
+
}
|
|
126
130
|
getLayer(user, layerName, options) {
|
|
127
131
|
const raw = this.__INTERNAL_getLayer(user, layerName, options);
|
|
128
132
|
const exposure = raw.__exposure;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statsig/statsig-node-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --colors"
|
|
@@ -60,13 +60,14 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"optionalDependencies": {
|
|
63
|
-
"@statsig/statsig-node-core-linux-x64-musl": "0.
|
|
64
|
-
"@statsig/statsig-node-core-linux-x64-gnu": "0.
|
|
65
|
-
"@statsig/statsig-node-core-win32-x64-msvc": "0.
|
|
66
|
-
"@statsig/statsig-node-core-darwin-x64": "0.
|
|
67
|
-
"@statsig/statsig-node-core-win32-ia32-msvc": "0.
|
|
68
|
-
"@statsig/statsig-node-core-linux-arm64-musl": "0.
|
|
69
|
-
"@statsig/statsig-node-core-linux-arm64-gnu": "0.
|
|
70
|
-
"@statsig/statsig-node-core-
|
|
63
|
+
"@statsig/statsig-node-core-linux-x64-musl": "0.20.0",
|
|
64
|
+
"@statsig/statsig-node-core-linux-x64-gnu": "0.20.0",
|
|
65
|
+
"@statsig/statsig-node-core-win32-x64-msvc": "0.20.0",
|
|
66
|
+
"@statsig/statsig-node-core-darwin-x64": "0.20.0",
|
|
67
|
+
"@statsig/statsig-node-core-win32-ia32-msvc": "0.20.0",
|
|
68
|
+
"@statsig/statsig-node-core-linux-arm64-musl": "0.20.0",
|
|
69
|
+
"@statsig/statsig-node-core-linux-arm64-gnu": "0.20.0",
|
|
70
|
+
"@statsig/statsig-node-core-win32-arm64-msvc": "0.20.0",
|
|
71
|
+
"@statsig/statsig-node-core-darwin-arm64": "0.20.0"
|
|
71
72
|
}
|
|
72
73
|
}
|
package/statsig-generated.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare class StatsigNapiInternal {
|
|
|
29
29
|
getFieldsNeededForDynamicConfig(configName: string): Array<string>
|
|
30
30
|
__INTERNAL_getExperiment(user: StatsigUser, experimentName: string, options?: ExperimentEvaluationOptions | undefined | null): Record<string, unknown>
|
|
31
31
|
__INTERNAL_getExperimentByGroupName(experimentName: string, groupName: string): Record<string, unknown>
|
|
32
|
+
__INTERNAL_getExperimentByGroupIdAdvanced(experimentName: string, groupId: string): Record<string, unknown>
|
|
32
33
|
getFieldsNeededForExperiment(experimentName: string): Array<string>
|
|
33
34
|
__INTERNAL_getLayer(user: StatsigUser, layerName: string, options?: LayerEvaluationOptions | undefined | null): Record<string, unknown>
|
|
34
35
|
__INTERNAL_logLayerParamExposure(raw: LayerParamExposureData, paramName: string): void
|
|
@@ -55,6 +56,7 @@ export declare class StatsigNapiInternal {
|
|
|
55
56
|
getFeatureGateList(): Array<string>
|
|
56
57
|
getDynamicConfigList(): Array<string>
|
|
57
58
|
getExperimentList(): Array<string>
|
|
59
|
+
getAutotuneList(): Array<string>
|
|
58
60
|
getParameterStoreList(): Array<string>
|
|
59
61
|
getParsedUserAgentValueForUser(user: StatsigUser): Record<string, string | undefined | null> | null
|
|
60
62
|
}
|
|
@@ -248,6 +250,7 @@ export interface StatsigOptions {
|
|
|
248
250
|
fallbackToStatsigApi?: boolean
|
|
249
251
|
globalCustomFields?: Record<string, string | number | boolean | Array<string | number | boolean>>
|
|
250
252
|
idListsSyncIntervalMs?: number
|
|
253
|
+
idListsRequestTimeoutMs?: number
|
|
251
254
|
idListsUrl?: string
|
|
252
255
|
downloadIdListFileApi?: string
|
|
253
256
|
initTimeoutMs?: number
|