@statsig/statsig-node-core 0.16.5 → 0.16.6-beta.2603181807

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.16.5",
3
+ "version": "0.16.6-beta.2603181807",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "jest --colors"
@@ -60,14 +60,13 @@
60
60
  }
61
61
  },
62
62
  "optionalDependencies": {
63
- "@statsig/statsig-node-core-linux-x64-musl": "0.16.5",
64
- "@statsig/statsig-node-core-linux-x64-gnu": "0.16.5",
65
- "@statsig/statsig-node-core-win32-x64-msvc": "0.16.5",
66
- "@statsig/statsig-node-core-darwin-x64": "0.16.5",
67
- "@statsig/statsig-node-core-win32-ia32-msvc": "0.16.5",
68
- "@statsig/statsig-node-core-linux-arm64-musl": "0.16.5",
69
- "@statsig/statsig-node-core-linux-arm64-gnu": "0.16.5",
70
- "@statsig/statsig-node-core-win32-arm64-msvc": "0.16.5",
71
- "@statsig/statsig-node-core-darwin-arm64": "0.16.5"
63
+ "@statsig/statsig-node-core-linux-x64-musl": "0.16.6-beta.2603181807",
64
+ "@statsig/statsig-node-core-linux-x64-gnu": "0.16.6-beta.2603181807",
65
+ "@statsig/statsig-node-core-win32-x64-msvc": "0.16.6-beta.2603181807",
66
+ "@statsig/statsig-node-core-darwin-x64": "0.16.6-beta.2603181807",
67
+ "@statsig/statsig-node-core-win32-ia32-msvc": "0.16.6-beta.2603181807",
68
+ "@statsig/statsig-node-core-linux-arm64-musl": "0.16.6-beta.2603181807",
69
+ "@statsig/statsig-node-core-linux-arm64-gnu": "0.16.6-beta.2603181807",
70
+ "@statsig/statsig-node-core-darwin-arm64": "0.16.6-beta.2603181807"
72
71
  }
73
72
  }
@@ -120,10 +120,18 @@ export interface DataStore {
120
120
  initialize?: () => Promise<void>
121
121
  shutdown?: () => Promise<void>
122
122
  get?: (key: string) => Promise<DataStoreResponse>
123
+ getBytes?: (key: string) => Promise<{ result?: Uint8Array; time?: number }>
124
+ supportsBytes?: boolean
123
125
  set?: (key: string, value: string, time?: number) => Promise<void>
126
+ setBytes?: (key: string, value: ArrayBuffer | Uint8Array, time?: number) => Promise<void>
124
127
  supportPollingUpdatesFor?: (key: string) => Promise<boolean>
125
128
  }
126
129
 
130
+ export interface DataStoreBytesResponse {
131
+ result?: Uint8Array
132
+ time?: number
133
+ }
134
+
127
135
  export interface DataStoreResponse {
128
136
  result?: string
129
137
  time?: number