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

Update dependency posthog-react-native to v3 #1152

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 18, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
posthog-react-native (source) ^2.10.1 -> ^3.0.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

PostHog/posthog-js-lite (posthog-react-native)

v3.0.0

Compare Source

Added

  1. Adds a disabled option and the ability to change it later via posthog.disabled = true. Useful for disabling PostHog tracking for example in a testing environment without having complex conditional checking
  2. shutdown takes a shutdownTimeoutMs param with a default of 30000 (30s). This is the time to wait for flushing events before shutting down the client. If the timeout is reached, the client will be shut down regardless of pending events.
  3. Adds a new featureFlagsRequestTimeoutMs timeout parameter for feature flags which defaults to 10 seconds.
  4. Flushes will now try to flush up to maxBatchSize (default 100) in one go
  5. Sets User-Agent headers with SDK name and version for RN
  6. Queued events are limited up to maxQueueSize (default 1000) and the oldest events are dropped when the limit is reached

Removed

  1. flushAsync and shutdownAsync are removed with flush and shutdown now being the async methods.
  2. Removes the enable option. You can now specify defaultOptIn: false to start the SDK opted out of tracking
  3. PostHog.initAsync is no more! You can now initialize PostHog as you would any other class const posthog = new PostHog(...)

Changed

  1. PostHogProvider now requires either an apiKey or client property and usePostHog now always returns a PostHog instance instead of PostHog | undefined. The disabled option can be used when initializing the PostHogProvider if desired and all subsequent calls to posthog will work but without actually doing anything.
  2. flush and shutdown now being async methods.
  3. Replaces the option customAsyncStorage with customStorage to allow for custom synchronous or asynchronous storage implementations.

Fixed

  1. Many methods such as capture and identify no longer return the this object instead returning nothing
  2. Fixed an issue where shutdown would potentially exit early if a flush was already in progress
  3. Fixes some typos in types

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 has been generated by Mend Renovate. View repository job log here.

Copy link

vercel bot commented Mar 18, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated (UTC)
element βœ… Ready (Inspect) Visit Preview May 15, 2024 1:30pm

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.

None yet

0 participants