@statsig/statsig-node-core 0.6.2-rc.2507211317 → 0.6.2-rc.2507281318

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.6.2-rc.2507211317",
3
+ "version": "0.6.2-rc.2507281318",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "jest --colors"
@@ -23,9 +23,9 @@
23
23
  "compression": "^1.7.4",
24
24
  "express": "^4.21.2",
25
25
  "jest": "^29.7.0",
26
+ "tar-fs": "^2.1.3",
26
27
  "ts-jest": "^29.2.5",
27
- "typescript": "^5.7.3",
28
- "tar-fs": "^2.1.3"
28
+ "typescript": "^5.7.3"
29
29
  },
30
30
  "engines": {
31
31
  "node": ">= 6.14.2 < 7 || >= 8.11.2 < 9 || >= 9.11.0 < 10 || >= 10.0.0"
@@ -43,14 +43,27 @@
43
43
  "x86_64-unknown-linux-musl"
44
44
  ]
45
45
  },
46
+ "pnpm": {
47
+ "overrides": {
48
+ "@octokit/request-error@>=6.0.0 <6.1.7": ">=6.1.7",
49
+ "@octokit/endpoint@>=10.0.0 <10.1.3": ">=10.1.3",
50
+ "@octokit/request@>=9.0.0-beta.1 <9.2.1": ">=9.2.1",
51
+ "@octokit/plugin-paginate-rest@>=9.3.0-beta.1 <11.4.1": ">=11.4.1",
52
+ "@babel/helpers@<7.26.10": ">=7.26.10",
53
+ "brace-expansion@>=1.0.0 <=1.1.11": ">=1.1.12",
54
+ "brace-expansion@>=2.0.0 <=2.0.1": ">=2.0.2",
55
+ "on-headers@<1.1.0": ">=1.1.0",
56
+ "form-data@>=4.0.0 <4.0.4": ">=4.0.4"
57
+ }
58
+ },
46
59
  "optionalDependencies": {
47
- "@statsig/statsig-node-core-linux-x64-musl": "0.6.2-rc.2507211317",
48
- "@statsig/statsig-node-core-linux-x64-gnu": "0.6.2-rc.2507211317",
49
- "@statsig/statsig-node-core-win32-x64-msvc": "0.6.2-rc.2507211317",
50
- "@statsig/statsig-node-core-darwin-x64": "0.6.2-rc.2507211317",
51
- "@statsig/statsig-node-core-win32-ia32-msvc": "0.6.2-rc.2507211317",
52
- "@statsig/statsig-node-core-linux-arm64-musl": "0.6.2-rc.2507211317",
53
- "@statsig/statsig-node-core-linux-arm64-gnu": "0.6.2-rc.2507211317",
54
- "@statsig/statsig-node-core-darwin-arm64": "0.6.2-rc.2507211317"
60
+ "@statsig/statsig-node-core-linux-x64-musl": "0.6.2-rc.2507281318",
61
+ "@statsig/statsig-node-core-linux-x64-gnu": "0.6.2-rc.2507281318",
62
+ "@statsig/statsig-node-core-win32-x64-msvc": "0.6.2-rc.2507281318",
63
+ "@statsig/statsig-node-core-darwin-x64": "0.6.2-rc.2507281318",
64
+ "@statsig/statsig-node-core-win32-ia32-msvc": "0.6.2-rc.2507281318",
65
+ "@statsig/statsig-node-core-linux-arm64-musl": "0.6.2-rc.2507281318",
66
+ "@statsig/statsig-node-core-linux-arm64-gnu": "0.6.2-rc.2507281318",
67
+ "@statsig/statsig-node-core-darwin-arm64": "0.6.2-rc.2507281318"
55
68
  }
56
69
  }
@@ -46,6 +46,10 @@ export declare class ParameterStore {
46
46
  }
47
47
 
48
48
  export declare class StatsigNapiInternal {
49
+ subscribe(eventName: '*' | 'gate_evaluated' | 'dynamic_config_evaluated' | 'experiment_evaluated' | 'layer_evaluated', callback: (event: any) => void): string
50
+ unsubscribe(eventName: '*' | 'gate_evaluated' | 'dynamic_config_evaluated' | 'experiment_evaluated' | 'layer_evaluated'): void
51
+ unsubscribeById(subscriptionId: string): void
52
+ unsubscribeAll(): void
49
53
  constructor(networkFunc: unknown, sdkKey: string, options?: StatsigOptions | undefined | null)
50
54
  initialize(): Promise<StatsigResult>
51
55
  shutdown(timeoutMs?: number | undefined | null): Promise<StatsigResult>
@@ -269,8 +273,8 @@ export interface StatsigUserArgs {
269
273
  country?: string
270
274
  locale?: string
271
275
  appVersion?: string
272
- custom?: Record<string, string | number | boolean | Array<string | number | boolean> | null>
273
- privateAttributes?: Record<string, string | number | boolean | Array<string | number | boolean> | null>
276
+ custom?: Record<string, string | number | boolean | Array<string | number | boolean> | null | Record<string, unknown>>
277
+ privateAttributes?: Record<string, string | number | boolean | Array<string | number | boolean> | null | Record<string, unknown>>
274
278
  }
275
279
  // ---- Manually defined typing section -----
276
280