From b99fdbb6c4a4753d55ba234bc9d0c3dfcb10a64f Mon Sep 17 00:00:00 2001 From: tore-statsig <74584483+tore-statsig@users.noreply.github.com> Date: Mon, 1 Apr 2024 14:37:53 -0700 Subject: [PATCH] [release] 1.38.0 - queue events prior to initialization on Statsig (#174) Due to the order of effects, the effect to initialize Statsig was not actually called until child components rendered. This means that if you did not waitForInitialization or waitForCache, it would be possible to call methods on the Statsig class before it was initialized. Our gate/config/experiment and even event logging hooks were okay, because they consume the StatsigContext and guard on initialization being called. This updates logevent to: 1) not throw 2) batch up to 20 events pre initialize (and then log them once the internal js sdk instance is ready to consume them) >Included In This Release >- 4d218820207505d933172dd313430f59b36e80c2 tore-statsig > - Merge pull request #21 from statsig-io/1-37-1-pub (#173) >- e33ba1e11c73441a0da0782534ec9718392fc1a1 tore-statsig > - bugfix: queue log events before initialization (#171) >- 8b7c1a071dbbb4f66a57051bfb08b4e7efd13e73 tore-statsig > - chore: bump depedency versions (#172) --------- Co-authored-by: statsig-kong[bot] --- package-lock.json | 4 ++-- package.json | 2 +- src/SDKVersion.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 22fba11..f71a812 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "statsig-react", - "version": "1.37.1", + "version": "1.38.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "statsig-react", - "version": "1.37.1", + "version": "1.38.0", "license": "ISC", "dependencies": { "statsig-js": "4.51.0" diff --git a/package.json b/package.json index f27f4e5..31f0b40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "statsig-react", - "version": "1.37.1", + "version": "1.38.0", "description": "An SDK for using Statsig Feature Management and Experimentation platform in React clients", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/SDKVersion.ts b/src/SDKVersion.ts index 99fe100..b32545b 100644 --- a/src/SDKVersion.ts +++ b/src/SDKVersion.ts @@ -1,2 +1,2 @@ // Generated by genversion. -export const version = '1.37.1' +export const version = '1.38.0'