Update dependency posthog-react-native to v3 #1152
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.10.1
->^3.0.0
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
v3.3.9
Compare Source
v3.3.8
Compare Source
v3.3.7
Compare Source
disabled
flagv3.3.6
Compare Source
v3.3.5
Compare Source
v3.3.4
Compare Source
v3.3.3
Compare Source
v3.3.2
Compare Source
Changed
v3.3.1
Compare Source
Changed
v3.3.0
Compare Source
Changed
enablePersistSessionIdAcrossRestart
option totrue
when initializing the PostHog client.v3.2.1
Compare Source
Changed
v3.2.0
Compare Source
Changed
captureMode
changed tojson
.form
mode, just set thecaptureMode
option toform
when initializing the PostHog client.Install Session Replay for React-Native:
v3.1.2
Compare Source
Changed
v3.1.1
Compare Source
v3.1.0
Compare Source
Changed
captureNativeAppLifecycleEvents
is enabled, the eventApplication Opened
with the propertyfrom_background: true
is moved to its own event calledApplication Became Active
. This event is triggered when the app is opened from the background. TheApplication Opened
event is now only triggered when the app is opened from a cold start, aligning with the other integrations such as thePostHogProvider
with thecaptureLifecycleEvents
option andinitReactNativeNavigation
with thecaptureLifecycleEvents
option.v3.0.0
Compare Source
Added
disabled
option and the ability to change it later viaposthog.disabled = true
. Useful for disabling PostHog tracking for example in a testing environment without having complex conditional checkingshutdown
takes ashutdownTimeoutMs
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.featureFlagsRequestTimeoutMs
timeout parameter for feature flags which defaults to 10 seconds.maxBatchSize
(default 100) in one goUser-Agent
headers with SDK name and version for RNmaxQueueSize
(default 1000) and the oldest events are dropped when the limit is reachedRemoved
flushAsync
andshutdownAsync
are removed withflush
andshutdown
now being the async methods.enable
option. You can now specifydefaultOptIn: false
to start the SDK opted out of trackingPostHog.initAsync
is no more! You can now initialize PostHog as you would any other classconst posthog = new PostHog(...)
Changed
apiKey
orclient
property andusePostHog
now always returns aPostHog
instance instead ofPostHog | undefined
. Thedisabled
option can be used when initializing thePostHogProvider
if desired and all subsequent calls toposthog
will work but without actually doing anything.flush
andshutdown
now being async methods.customAsyncStorage
withcustomStorage
to allow for custom synchronous or asynchronous storage implementations.Fixed
capture
andidentify
no longer return thethis
object instead returning nothingshutdown
would potentially exit early if a flush was already in progressConfiguration
📅 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.
This PR was generated by Mend Renovate. View the repository job log.