Bump growthbook

This commit is contained in:
Eric Bailey
2026-02-18 16:09:48 -06:00
parent 15e1daec59
commit d725a01caa
3 changed files with 14 additions and 61 deletions
+2 -1
View File
@@ -93,7 +93,8 @@
"@fortawesome/free-regular-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-native-fontawesome": "^0.3.2",
"@growthbook/growthbook-react": "^1.6.2",
"@growthbook/growthbook": "^1.6.5",
"@growthbook/growthbook-react": "^1.6.5",
"@haileyok/bluesky-video": "0.3.2",
"@ipld/dag-cbor": "^9.2.0",
"@lingui/react": "^4.14.1",
@@ -1,55 +0,0 @@
diff --git a/node_modules/@growthbook/growthbook/dist/GrowthBook.d.ts b/node_modules/@growthbook/growthbook/dist/GrowthBook.d.ts
index ec532b0..d96a5f1 100644
--- a/node_modules/@growthbook/growthbook/dist/GrowthBook.d.ts
+++ b/node_modules/@growthbook/growthbook/dist/GrowthBook.d.ts
@@ -1,4 +1,4 @@
-import type { ApiHost, Attributes, AutoExperiment, AutoExperimentVariation, ClientKey, Options, Experiment, FeatureApiResponse, FeatureDefinition, FeatureResult, LoadFeaturesOptions, RefreshFeaturesOptions, RenderFunction, Result, SubscriptionFunction, TrackingCallback, TrackingData, WidenPrimitives, InitOptions, InitResponse, InitSyncOptions, PrefetchOptions, StickyAssignmentsDocument, EventLogger, LogUnion, DestroyOptions } from "./types/growthbook";
+import type { ApiHost, Attributes, AutoExperiment, AutoExperimentVariation, ClientKey, Options, Experiment, FeatureApiResponse, FeatureDefinition, FeatureResult, FeatureUsageCallback, LoadFeaturesOptions, RefreshFeaturesOptions, RenderFunction, Result, SubscriptionFunction, TrackingCallback, TrackingData, WidenPrimitives, InitOptions, InitResponse, InitSyncOptions, PrefetchOptions, StickyAssignmentsDocument, EventLogger, LogUnion, DestroyOptions } from "./types/growthbook";
import { StickyBucketServiceSync } from "./sticky-bucket-service";
export declare class GrowthBook<AppFeatures extends Record<string, any> = Record<string, any>> {
private context;
@@ -106,6 +106,7 @@ export declare class GrowthBook<AppFeatures extends Record<string, any> = Record
setDeferredTrackingCalls(calls: TrackingData[]): void;
fireDeferredTrackingCalls(): Promise<void>;
setTrackingCallback(callback: TrackingCallback): void;
+ setFeatureUsageCallback(callback: FeatureUsageCallback): void;
setEventLogger(logger: EventLogger): void;
logEvent(eventName: string, properties?: Record<string, unknown>): Promise<void>;
private _saveDeferredTrack;
diff --git a/node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs b/node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs
index e0847f0..4bcc20f 100644
--- a/node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs
+++ b/node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs
@@ -682,6 +682,9 @@ export class GrowthBook {
this._options.trackingCallback = callback;
this.fireDeferredTrackingCalls();
}
+ setFeatureUsageCallback(callback) {
+ this._options.onFeatureUsage = callback;
+ }
setEventLogger(logger) {
this._options.eventLogger = logger;
}
diff --git a/node_modules/@growthbook/growthbook/src/GrowthBook.ts b/node_modules/@growthbook/growthbook/src/GrowthBook.ts
index 907fc97..e59201c 100644
--- a/node_modules/@growthbook/growthbook/src/GrowthBook.ts
+++ b/node_modules/@growthbook/growthbook/src/GrowthBook.ts
@@ -16,6 +16,7 @@ import type {
Result,
SubscriptionFunction,
TrackingCallback,
+ FeatureUsageCallback,
TrackingData,
WidenPrimitives,
EvalContext,
@@ -952,6 +953,10 @@ export class GrowthBook<
this.fireDeferredTrackingCalls();
}
+ public setFeatureUsageCallback(callback: FeatureUsageCallback) {
+ this._options.onFeatureUsage = callback;
+ }
+
public setEventLogger(logger: EventLogger) {
this._options.eventLogger = logger;
}
+12 -5
View File
@@ -4592,12 +4592,12 @@
dependencies:
nanoid "^3.3.1"
"@growthbook/growthbook-react@^1.6.2":
version "1.6.2"
resolved "https://registry.yarnpkg.com/@growthbook/growthbook-react/-/growthbook-react-1.6.2.tgz#847135be0c46b167f980dbe6015e5f4ed010475c"
integrity sha512-96Bo2Jwd4NBn/kBLN4ceF299PhTw8fQltRykD32hu2xMW8/LXhB8swxbPshGK+Xfa2gjgt24kpZ5oSvaVLLT7w==
"@growthbook/growthbook-react@^1.6.5":
version "1.6.5"
resolved "https://registry.yarnpkg.com/@growthbook/growthbook-react/-/growthbook-react-1.6.5.tgz#e849cff64a54e56d5c566512bdc839148ae613ed"
integrity sha512-afi/RUbwazVNKv2acn6wDQz4BJNRAEpwIuHfggQup2/aE5PLAxy3+95gjjRMgCcPR0Pf3sFmhYGvOmxLD0ZRbQ==
dependencies:
"@growthbook/growthbook" "^1.6.2"
"@growthbook/growthbook" "^1.6.5"
"@growthbook/growthbook@^1.6.2":
version "1.6.2"
@@ -4606,6 +4606,13 @@
dependencies:
dom-mutator "^0.6.0"
"@growthbook/growthbook@^1.6.5":
version "1.6.5"
resolved "https://registry.yarnpkg.com/@growthbook/growthbook/-/growthbook-1.6.5.tgz#c9e2119187ee3288525a77a7c64353276f5ba91b"
integrity sha512-mUaMsgeUTpRIUOTn33EUXHRK6j7pxBjwqH4WpQyq+pukjd1AIzWlEa6w7i6bInJUcweGgP2beXZmaP6b6UPn7A==
dependencies:
dom-mutator "^0.6.0"
"@grpc/grpc-js@^1.8.20":
version "1.13.3"
resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.13.3.tgz#6ad08d186c2a8651697085f790c5c68eaca45904"