Skip to content

Commit

Permalink
[release] 1.38.0 - queue events prior to initialization on Statsig (#…
Browse files Browse the repository at this point in the history
…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
>- 4d21882 tore-statsig
>   - Merge pull request #21 from statsig-io/1-37-1-pub (#173)
>- e33ba1e tore-statsig
>   - bugfix: queue log events before initialization (#171)
>- 8b7c1a0 tore-statsig
>   - chore: bump depedency versions (#172)

---------

Co-authored-by: statsig-kong[bot] <statsig-kong[bot]@users.noreply.github.com>
  • Loading branch information
tore-statsig and statsig-kong[bot] authored Apr 1, 2024
1 parent 4d21882 commit b99fdbb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/SDKVersion.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Generated by genversion.
export const version = '1.37.1'
export const version = '1.38.0'

0 comments on commit b99fdbb

Please sign in to comment.