@oai-statsig/statsig-node-core 0.23.0-rc.1 → 0.23.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 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.23.0-rc.1";
5
+ export declare const SDK_VERSION = "0.23.0";
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.23.0-rc.1';
34
+ exports.SDK_VERSION = '0.23.0';
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.23.0-rc.1",
3
+ "version": "0.23.0",
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.23.0-rc.1",
64
- "@oai-statsig/statsig-node-core-darwin-x64": "0.23.0-rc.1",
65
- "@oai-statsig/statsig-node-core-linux-arm64-gnu": "0.23.0-rc.1",
66
- "@oai-statsig/statsig-node-core-linux-arm64-musl": "0.23.0-rc.1",
67
- "@oai-statsig/statsig-node-core-linux-x64-gnu": "0.23.0-rc.1",
68
- "@oai-statsig/statsig-node-core-linux-x64-musl": "0.23.0-rc.1",
69
- "@oai-statsig/statsig-node-core-win32-ia32-msvc": "0.23.0-rc.1",
70
- "@oai-statsig/statsig-node-core-win32-x64-msvc": "0.23.0-rc.1"
63
+ "@oai-statsig/statsig-node-core-darwin-arm64": "0.23.0",
64
+ "@oai-statsig/statsig-node-core-darwin-x64": "0.23.0",
65
+ "@oai-statsig/statsig-node-core-linux-arm64-gnu": "0.23.0",
66
+ "@oai-statsig/statsig-node-core-linux-arm64-musl": "0.23.0",
67
+ "@oai-statsig/statsig-node-core-linux-x64-gnu": "0.23.0",
68
+ "@oai-statsig/statsig-node-core-linux-x64-musl": "0.23.0",
69
+ "@oai-statsig/statsig-node-core-win32-ia32-msvc": "0.23.0",
70
+ "@oai-statsig/statsig-node-core-win32-x64-msvc": "0.23.0"
71
71
  }
72
72
  }
@@ -124,29 +124,20 @@ export interface DataStore {
124
124
  initialize?: () => Promise<void>
125
125
  shutdown?: () => Promise<void>
126
126
  get?: (key: string) => Promise<DataStoreResponse>
127
- getBytes?: (key: string, request?: DataStoreGetBytesRequest) => Promise<DataStoreBytesResponse>
127
+ getBytes?: (key: string) => Promise<{ result?: Uint8Array; time?: number }>
128
128
  set?: (key: string, value: string, time?: number) => Promise<void>
129
- setBytes?: (key: string, value: ArrayBuffer | Uint8Array, time?: number, checksum?: string) => Promise<void>
129
+ setBytes?: (key: string, value: ArrayBuffer | Uint8Array, time?: number) => Promise<void>
130
130
  supportPollingUpdatesFor?: (key: string) => Promise<boolean>
131
131
  }
132
132
 
133
133
  export interface DataStoreBytesResponse {
134
134
  result?: Uint8Array
135
135
  time?: number
136
- checksum?: string
137
- hasUpdates?: boolean
138
- }
139
-
140
- export interface DataStoreGetBytesRequest {
141
- sinceTime?: number
142
- checksum?: string
143
136
  }
144
137
 
145
138
  export interface DataStoreResponse {
146
139
  result?: string
147
140
  time?: number
148
- checksum?: string
149
- hasUpdates?: boolean
150
141
  }
151
142
 
152
143
  export interface DynamicConfigEvaluationOptions {