Skip to content

Commit

Permalink
chore: change androidDebouncerDelayMs default from 500ms to 1000ms (1…
Browse files Browse the repository at this point in the history
…s) (#297)
  • Loading branch information
marandaneto authored Oct 25, 2024
1 parent 658225b commit 1ca64db
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
4 changes: 4 additions & 0 deletions posthog-react-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Next

# 3.3.8 - 2024-10-25

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

# 3.3.7 - 2024-10-25

1. fix: session replay respects the `disabled` flag
Expand Down
6 changes: 3 additions & 3 deletions posthog-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "posthog-react-native",
"version": "3.3.7",
"version": "3.3.8",
"main": "lib/posthog-react-native/index.js",
"files": [
"lib/"
Expand Down Expand Up @@ -33,7 +33,7 @@
"react-native": "^0.69.1",
"react-native-device-info": "^10.3.0",
"react-native-navigation": "^6.0.0",
"posthog-react-native-session-replay": "^0.1.5"
"posthog-react-native-session-replay": "^0.1.6"
},
"peerDependencies": {
"@react-native-async-storage/async-storage": ">=1.0.0",
Expand All @@ -44,7 +44,7 @@
"expo-localization": ">= 11.0.0",
"react-native-device-info": ">= 10.0.0",
"react-native-navigation": ">=6.0.0",
"posthog-react-native-session-replay": "^0.1.5"
"posthog-react-native-session-replay": "^0.1.6"
},
"peerDependenciesMeta": {
"@react-native-async-storage/async-storage": {
Expand Down
2 changes: 1 addition & 1 deletion posthog-react-native/src/posthog-rn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export class PostHog extends PostHogCore {
captureLog = true,
captureNetworkTelemetry = true,
iOSdebouncerDelayMs = 1000,
androidDebouncerDelayMs = 500,
androidDebouncerDelayMs = 1000,
} = options?.sessionReplayConfig ?? {}

const sdkReplayConfig = {
Expand Down
3 changes: 2 additions & 1 deletion posthog-react-native/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export type PostHogSessionReplayConfig = {
* Deboucer delay used to reduce the number of snapshots captured and reduce performance impact
* This is used for capturing the view as a screenshot
* The lower the number more snapshots will be captured but higher the performance impact
* Defaults to 0.5s
* Defaults to 1000ms (1s)
* Ps: it was 500ms (0.5s) by default until version 3.3.7
*/
androidDebouncerDelayMs?: number
/**
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8551,10 +8551,10 @@ possible-typed-array-names@^1.0.0:
resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f"
integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==

posthog-react-native-session-replay@^0.1.5:
version "0.1.5"
resolved "https://registry.yarnpkg.com/posthog-react-native-session-replay/-/posthog-react-native-session-replay-0.1.5.tgz#85af854b40b8f94edf0a847d4622afa5b3888891"
integrity sha512-roFi9JDrJ8Nd2yvp7FqEbleHQV3Jv+Gh0cKHXYs98HDHuPy3ELnXOgcBU5BG0GmRVPxF9GLOaxbSiak6kaVQbg==
posthog-react-native-session-replay@^0.1.6:
version "0.1.6"
resolved "https://registry.yarnpkg.com/posthog-react-native-session-replay/-/posthog-react-native-session-replay-0.1.6.tgz#23674ff31cedbf305c73bd725385cb938054617b"
integrity sha512-QheDjtUvUsrQoW2SUZSxpLKWiMLvz9NTPeFgdB2bXRi8RrJaqHyZjlF/hIw1NxomLVl0XddZDGaIKiTsTx95Og==

prelude-ls@^1.2.1:
version "1.2.1"
Expand Down

0 comments on commit 1ca64db

Please sign in to comment.