Skip to content

Commit

Permalink
Use statsig-node-lite
Browse files Browse the repository at this point in the history
  • Loading branch information
AAorris committed Jan 30, 2025
1 parent ade99e4 commit 85805d6
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 57 deletions.
3 changes: 1 addition & 2 deletions packages/adapter-statsig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"statsig-node": "~5.31.0"
"statsig-node-lite": "^0.4.0"
},
"devDependencies": {
"@types/node": "20.11.17",
Expand All @@ -56,7 +56,6 @@
"eslint-config-custom": "workspace:*",
"msw": "2.6.4",
"rimraf": "6.0.1",
"statsig-node": "5.31.0",
"statsig-node-vercel": "0.4.0",
"tsconfig": "workspace:*",
"tsup": "8.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-statsig/src/edge-runtime-hooks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Statsig, { type StatsigOptions } from 'statsig-node';
import Statsig from 'statsig-node-lite';

declare global {
var EdgeRuntime: string | undefined;
Expand Down
3 changes: 1 addition & 2 deletions packages/adapter-statsig/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import Statsig, {
type StatsigUser,
type StatsigOptions,
type DynamicConfig,
} from 'statsig-node';
} from 'statsig-node-lite';
import {
createEdgeConfigDataAdapter,
createEdgeRuntimeIntervalHandler,
} from './edge-runtime-hooks';

// Not exported in `statsig-node`
export type FeatureGate = ReturnType<
typeof Statsig.getFeatureGateWithExposureLoggingDisabledSync
>;
Expand Down
Loading

0 comments on commit 85805d6

Please sign in to comment.