Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency statsig-react to v2 #765

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 28, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
statsig-react ^1.34.0 -> ^2.0.0 age adoption passing confidence

Release Notes

statsig-io/react-sdk (statsig-react)

v2.1.0: - Update to use v5.1.0 of js client

Compare Source

  • update to v5.1.0 of js client

Included In This Release

Full Changelog: statsig-io/react-sdk@2.0.0...2.1.0

v2.0.0: - Update to v5 of js client sdk

Compare Source

Updates the react sdk to use version 5.0 of js sdk

Included In This Release

Full Changelog: statsig-io/react-sdk@1.38.1...2.0.0

v1.38.1: - Bugfix - memoization in SynchronousProvider

Compare Source

We introduced a fix in 1.37.1 to memoize configs for the same update time. We cannot memoize on the config update time, because it is both 1) not set on server sdks when generating the initialize values, and 2) not an exhaustive memoization key. Instead, we stringify the initializeValues as the memoization key.

This update renames initValuesTime in the StatsigContext to force anyone relying on this field to update their implementation due to these problems.

Included In This Release

  • ed06b9e tore-statsig
    • bugfix: memoization in SynchronousProvider (#​175)

Full Changelog: statsig-io/react-sdk@1.38.0...1.38.1

v1.38.0: [release] 1.38.0 - queue events prior to initialization on Statsig

Compare Source

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). Note that it currently drops any additional events after 20 queued events.

Included In This Release

v1.37.1: - bugfix: gate/config/experiment/layer result memoization

Compare Source

Memoization logic on hooks was broken due to object parameters changing references on rerenders.

This was masking another issue in the StatsigSynchronousProvider where we did not memoize on a new version of config specs passed in to the StatsigSynchronousProvider. Because we weren't memoizing, the results were correct, but the performance was degraded in this case as well.

Performance of hooks via both providers should be improved as a result

Updated statsig-js to 4.51.0

Included In This Release

  • d4b655a tore-statsig
    • bugfix: memoize checks without creating new object references (#​165)
  • e200034 tore-statsig
    • test: (tdd) add test to verify hooks memoize results (#​167)
  • 528d6e4 tore-statsig
    • bugfix: memoize on config update time (#​166)

Full Changelog: statsig-io/react-sdk@1.37.0...1.37.1

v1.37.0: - Add Support for Evaluation Callback Option

Compare Source

Adds a field to options which allows a function to be specified that will be called whenever a config is checked

Updated statsig-js to 4.50.1

Included In This Release

Full Changelog: statsig-io/react-sdk@1.36.0...1.37.0

v1.36.0: - Adds useFeatureGate hook

Compare Source

Also bumps internal js sdk dependency

Included In This Release

Full Changelog: statsig-io/react-sdk@1.35.0...1.36.0

v1.35.0: - Support multi instance

Compare Source

Using https://github.com/statsig-io/js-client/releases/tag/4.45.1

  • Supports multiple instances of the StatsigClient by caching including the sdk key
  • internal diagnostics updates

Included In This Release

Full Changelog: statsig-io/react-sdk@v1.34.0...1.35.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

netlify bot commented Jun 28, 2024

Deploy Preview for aptos-explorer ready!

Name Link
🔨 Latest commit 16e4f11
🔍 Latest deploy log https://app.netlify.com/sites/aptos-explorer/deploys/66fb1dcf81f42f0008f06256
😎 Deploy Preview https://deploy-preview-765--aptos-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@renovate renovate bot force-pushed the renovate/statsig-react-2.x branch 3 times, most recently from 86243bc to 59c096b Compare July 9, 2024 20:09
@renovate renovate bot force-pushed the renovate/statsig-react-2.x branch from 59c096b to dac8526 Compare July 11, 2024 02:37
@renovate renovate bot force-pushed the renovate/statsig-react-2.x branch from dac8526 to 16e4f11 Compare September 30, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants