diff --git a/examples/example_rn/package.json b/examples/example_rn/package.json index b225e5a6..c77d7c76 100644 --- a/examples/example_rn/package.json +++ b/examples/example_rn/package.json @@ -24,7 +24,7 @@ "react-native": "0.73.2", "react-native-device-info": "^10.12.0", "react-native-navigation": "^7.37.2", - "posthog-react-native-session-replay": ">=0.0.1" + "posthog-react-native-session-replay": ">=0.1.0" }, "devDependencies": { "@babel/core": "^7.20.0", diff --git a/posthog-react-native/CHANGELOG.md b/posthog-react-native/CHANGELOG.md index 75ee0b23..9b12026a 100644 --- a/posthog-react-native/CHANGELOG.md +++ b/posthog-react-native/CHANGELOG.md @@ -1,9 +1,43 @@ # Next +# 3.2.0 - 2024-09-19 + ## 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: + +```bash +yarn add posthog-react-native-session-replay +# or npm +npm i -s posthog-react-native-session-replay +``` + +Enable Session Replay for React-Native: + +```js +export const posthog = new PostHog( + 'apiKey...', + { + // ... + enableSessionReplay: true, + }, +); +``` + +Or using the `PostHogProvider` + +```js + +``` # 3.1.2 - 2024-08-14 diff --git a/posthog-react-native/package.json b/posthog-react-native/package.json index 5ca01409..422b2fe3 100644 --- a/posthog-react-native/package.json +++ b/posthog-react-native/package.json @@ -1,6 +1,6 @@ { "name": "posthog-react-native", - "version": "3.1.2", + "version": "3.2.0", "main": "lib/posthog-react-native/index.js", "files": [ "lib/" @@ -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.0.1" + "posthog-react-native-session-replay": ">=0.1.0" }, "peerDependencies": { "@react-native-async-storage/async-storage": ">=1.0.0", @@ -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.0.1" + "posthog-react-native-session-replay": ">=0.1.0" }, "peerDependenciesMeta": { "@react-native-async-storage/async-storage": { diff --git a/yarn.lock b/yarn.lock index a9571d22..6087d239 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3703,9 +3703,9 @@ camelcase@^6.0.0, camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001646: - version "1.0.30001660" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz#31218de3463fabb44d0b7607b652e56edf2e2355" - integrity sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg== + version "1.0.30001662" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001662.tgz#3574b22dfec54a3f3b6787331da1040fe8e763ec" + integrity sha512-sgMUVwLmGseH8ZIrm1d51UbrhqMCH3jvS7gF/M6byuHOnKyLOBL7W8yz5V02OHwgLGA36o/AFhWzzh4uc5aqTA== capture-exit@^2.0.0: version "2.0.0" @@ -8597,10 +8597,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.0.1: - version "0.0.12" - resolved "https://registry.yarnpkg.com/posthog-react-native-session-replay/-/posthog-react-native-session-replay-0.0.12.tgz#84a26f5b0decf804c240f23830ad858292141090" - integrity sha512-qd2jIbafqV+tTFqxgng3NU4AEaPdm9smCKJPfN+pzdcBxAjqLqS1Ro4eyE/U1IvE+7c+ktkqLexyNZN+POvcHg== +posthog-react-native-session-replay@>=0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/posthog-react-native-session-replay/-/posthog-react-native-session-replay-0.1.0.tgz#968358655aa836827973b59e805d7ca257be47d8" + integrity sha512-uGdG+P7X7dbQvy9tenHk4lKna0SaURzcLXO5XrtdepzerEu2B4OZbysSZGQhtg2LYeXCnheblzDJVMdS/5Nfgw== prelude-ls@^1.2.1: version "1.2.1"