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

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.3.10

Compare Source

  1. fix: capture customLabelProp if set

v3.3.9

Compare Source

  1. fix: rollback module to ESNext

v3.3.8

Compare Source

  1. chore: change androidDebouncerDelayMs default from 500ms to 1000ms (1s)

v3.3.7

Compare Source

  1. fix: session replay respects the disabled flag

v3.3.6

Compare Source

  1. fix: all sdkReplayConfig should have a default value

v3.3.5

Compare Source

  1. fix: only tries to read device context from react-native-device-info if expo libs are not available

v3.3.4

Compare Source

  1. fix: only log messages if debug is enabled

v3.3.3

Compare Source

  1. fix: bootstrap flags do not overwrite the current values

v3.3.2

Compare Source

Changed

  1. fix: clear flagCallReported if there are new flags

v3.3.1

Compare Source

Changed

  1. fix: set the right sdk name and version for recordings

v3.3.0

Compare Source

Changed

  1. chore: session id will be rotate on app restart.
    1. To keep the session id across restarts, set the enablePersistSessionIdAcrossRestart option to true when initializing the PostHog client.
export const posthog = new PostHog(
  'apiKey...',
  {
    // ...
    enablePersistSessionIdAcrossRestart: true,
  },
);

v3.2.1

Compare Source

Changed

  1. recording: session replay plugin isn't properly identifying users already identified

v3.2.0

Compare Source

Changed

  1. chore: default captureMode changed to json.
    1. To keep using the form mode, just set the captureMode option to form when initializing the PostHog client.
  2. chore: Session Replay for React-Native - Experimental support

Install Session Replay for React-Native:

yarn add posthog-react-native-session-replay

v3.1.2

Compare Source

Changed

  1. chore: change host to new address.

v3.1.1

Compare Source

  1. Prevent double JSON parsing of feature flag payloads, which would convert the payload [1] into 1.

v3.1.0

Compare Source

Changed

  1. If captureNativeAppLifecycleEvents is enabled, the event Application Opened with the property from_background: true is moved to its own event called Application Became Active. This event is triggered when the app is opened from the background. The Application Opened event is now only triggered when the app is opened from a cold start, aligning with the other integrations such as the PostHogProvider with the captureLifecycleEvents option and initReactNativeNavigation with the captureLifecycleEvents option.

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 was generated by Mend Renovate. View the repository job log.

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.

0 participants