@oai-statsig/statsig-node-core 0.25.0-beta.20260611.1850 → 0.25.0-rc.1
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 -1
- package/index.js +1 -1
- package/package.json +9 -9
- package/statsig-generated.d.ts +20 -0
- package/statsig-generated.js +2 -0
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DynamicConfigEvaluationOptions, ExperimentEvaluationOptions, FeatureGat
|
|
|
2
2
|
import { DynamicConfig, Experiment, FeatureGate, Layer } from './statsig_types';
|
|
3
3
|
export * from './statsig-generated';
|
|
4
4
|
export * from './statsig_types';
|
|
5
|
-
export declare const SDK_VERSION = "0.25.0-
|
|
5
|
+
export declare const SDK_VERSION = "0.25.0-rc.1";
|
|
6
6
|
export declare class Statsig extends StatsigNapiInternal {
|
|
7
7
|
private static _sharedInstance;
|
|
8
8
|
static shared(): Statsig;
|
package/index.js
CHANGED
|
@@ -31,7 +31,7 @@ const statsig_generated_1 = require("./statsig-generated");
|
|
|
31
31
|
const statsig_types_1 = require("./statsig_types");
|
|
32
32
|
__exportStar(require("./statsig-generated"), exports);
|
|
33
33
|
__exportStar(require("./statsig_types"), exports);
|
|
34
|
-
exports.SDK_VERSION = '0.25.0-
|
|
34
|
+
exports.SDK_VERSION = '0.25.0-rc.1';
|
|
35
35
|
const inspectSym = Symbol.for('nodejs.util.inspect.custom');
|
|
36
36
|
// @ts-expect-error - prototype assignment
|
|
37
37
|
statsig_generated_1.StatsigUser.prototype[inspectSym] = function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oai-statsig/statsig-node-core",
|
|
3
|
-
"version": "0.25.0-
|
|
3
|
+
"version": "0.25.0-rc.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --colors"
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"optionalDependencies": {
|
|
63
|
-
"@oai-statsig/statsig-node-core-darwin-arm64": "0.25.0-
|
|
64
|
-
"@oai-statsig/statsig-node-core-darwin-x64": "0.25.0-
|
|
65
|
-
"@oai-statsig/statsig-node-core-linux-arm64-gnu": "0.25.0-
|
|
66
|
-
"@oai-statsig/statsig-node-core-linux-arm64-musl": "0.25.0-
|
|
67
|
-
"@oai-statsig/statsig-node-core-linux-x64-gnu": "0.25.0-
|
|
68
|
-
"@oai-statsig/statsig-node-core-linux-x64-musl": "0.25.0-
|
|
69
|
-
"@oai-statsig/statsig-node-core-win32-ia32-msvc": "0.25.0-
|
|
70
|
-
"@oai-statsig/statsig-node-core-win32-x64-msvc": "0.25.0-
|
|
63
|
+
"@oai-statsig/statsig-node-core-darwin-arm64": "0.25.0-rc.1",
|
|
64
|
+
"@oai-statsig/statsig-node-core-darwin-x64": "0.25.0-rc.1",
|
|
65
|
+
"@oai-statsig/statsig-node-core-linux-arm64-gnu": "0.25.0-rc.1",
|
|
66
|
+
"@oai-statsig/statsig-node-core-linux-arm64-musl": "0.25.0-rc.1",
|
|
67
|
+
"@oai-statsig/statsig-node-core-linux-x64-gnu": "0.25.0-rc.1",
|
|
68
|
+
"@oai-statsig/statsig-node-core-linux-x64-musl": "0.25.0-rc.1",
|
|
69
|
+
"@oai-statsig/statsig-node-core-win32-ia32-msvc": "0.25.0-rc.1",
|
|
70
|
+
"@oai-statsig/statsig-node-core-win32-x64-msvc": "0.25.0-rc.1"
|
|
71
71
|
}
|
|
72
72
|
}
|
package/statsig-generated.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export declare class InternedStore {
|
|
4
|
+
static preload(data: Uint8Array): void
|
|
5
|
+
static preloadMulti(data: Array<Uint8Array>): void
|
|
6
|
+
static fetchAndWriteMmap(sdkKey: string, specsUrl?: string | undefined | null): Promise<FetchAndWriteMmapResultDetails>
|
|
7
|
+
static preloadMmap(sdkKey: string): void
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
export declare class LayerParamExposureData {
|
|
4
11
|
|
|
5
12
|
}
|
|
@@ -169,6 +176,17 @@ export interface FeatureGateEvaluationOptions {
|
|
|
169
176
|
disableExposureLogging?: boolean
|
|
170
177
|
}
|
|
171
178
|
|
|
179
|
+
export declare const enum FetchAndWriteMmapResult {
|
|
180
|
+
Success = 0,
|
|
181
|
+
Error = 1
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface FetchAndWriteMmapResultDetails {
|
|
185
|
+
status: FetchAndWriteMmapResult
|
|
186
|
+
errorName?: string
|
|
187
|
+
errorMessage?: string
|
|
188
|
+
}
|
|
189
|
+
|
|
172
190
|
export declare const enum GCIRResponseFormat {
|
|
173
191
|
Initialize = 0,
|
|
174
192
|
InitializeWithSecondaryExposureMapping = 1,
|
|
@@ -267,6 +285,8 @@ export interface StatsigOptions {
|
|
|
267
285
|
configCompressionMode?: 'gzip' | 'dictionary'
|
|
268
286
|
overrideAdapterConfig?: Array<OverrideAdapterConfig>
|
|
269
287
|
serviceName?: string
|
|
288
|
+
sdkInstanceId?: string
|
|
289
|
+
sdkRuntimeThreadCount?: number
|
|
270
290
|
persistentStorage?: PersistentStorage
|
|
271
291
|
specAdaptersConfig?: Array<SpecAdapterConfig>
|
|
272
292
|
specsSyncIntervalMs?: number
|
package/statsig-generated.js
CHANGED
|
@@ -364,6 +364,7 @@ if (!nativeBinding) {
|
|
|
364
364
|
throw new Error(`Failed to load native binding`)
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
+
module.exports.InternedStore = nativeBinding.InternedStore
|
|
367
368
|
module.exports.LayerParamExposureData = nativeBinding.LayerParamExposureData
|
|
368
369
|
module.exports.ParameterStore = nativeBinding.ParameterStore
|
|
369
370
|
module.exports.StatsigNapiInternal = nativeBinding.StatsigNapiInternal
|
|
@@ -372,6 +373,7 @@ module.exports.__internal__testDataStore = nativeBinding.__internal__testDataSto
|
|
|
372
373
|
module.exports.__internal__testObservabilityClient = nativeBinding.__internal__testObservabilityClient
|
|
373
374
|
module.exports.__internal__testOutputLogger = nativeBinding.__internal__testOutputLogger
|
|
374
375
|
module.exports.__internal__testPersistentStorage = nativeBinding.__internal__testPersistentStorage
|
|
376
|
+
module.exports.FetchAndWriteMmapResult = nativeBinding.FetchAndWriteMmapResult
|
|
375
377
|
module.exports.GCIRResponseFormat = nativeBinding.GCIRResponseFormat
|
|
376
378
|
module.exports.OverrideAdapterType = nativeBinding.OverrideAdapterType
|
|
377
379
|
module.exports.statsigCaptureLogLine = nativeBinding.statsigCaptureLogLine
|