From d33b38508abec6a9d3511888ea27b282ae159cd9 Mon Sep 17 00:00:00 2001 From: Haven Barnes Date: Thu, 5 Dec 2024 10:21:47 -0800 Subject: [PATCH] address comments --- posthog-react-native/CHANGELOG.md | 36 ++++++++++++++++--------------- posthog-web/CHANGELOG.md | 4 +++- posthog-web/package.json | 2 +- 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/posthog-react-native/CHANGELOG.md b/posthog-react-native/CHANGELOG.md index 41f068e8..1638e6ca 100644 --- a/posthog-react-native/CHANGELOG.md +++ b/posthog-react-native/CHANGELOG.md @@ -1,17 +1,13 @@ # Next -# 3.6.0 - 2024-12-04 +# 3.6.0 - 2024-12-05 1. Add new debugging property `$feature_flag_bootstrapped_response`, `$feature_flag_bootstrapped_payload` and `$used_bootstrap_value` to `$feature_flag_called` event -# 3.5.0 - 2024-12-03 - -1. fix: deprecate maskPhotoLibraryImages due to unintended masking issues - # 3.4.0 - 2024-11-26 1. feat: automatically mask out user photos and sandboxed views like photo picker (iOS Only) -1. To disable masking set `maskAllSandboxedViews` and `maskPhotoLibraryImages` to false + 1. To disable masking set `maskAllSandboxedViews` and `maskPhotoLibraryImages` to false ```js export const posthog = new PostHog( @@ -87,13 +83,16 @@ export const posthog = new PostHog( ## 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. + 1. To keep the session id across restarts, set the `enablePersistSessionIdAcrossRestart` option to `true` when initializing the PostHog client. ```js -export const posthog = new PostHog('apiKey...', { - // ... - enablePersistSessionIdAcrossRestart: true, -}) +export const posthog = new PostHog( + 'apiKey...', + { + // ... + enablePersistSessionIdAcrossRestart: true, + }, +); ``` # 3.2.1 - 2024-09-24 @@ -107,7 +106,7 @@ export const posthog = new PostHog('apiKey...', { ## 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. + 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: @@ -121,10 +120,13 @@ npm i -s posthog-react-native-session-replay Enable Session Replay for React-Native: ```js -export const posthog = new PostHog('apiKey...', { - // ... - enableSessionReplay: true, -}) +export const posthog = new PostHog( + 'apiKey...', + { + // ... + enableSessionReplay: true, + }, +); ``` Or using the `PostHogProvider` @@ -350,4 +352,4 @@ Support for bootstrapping feature flags and distinctIDs. This allows you to init # 2.1.0 - 2022-09-02 -PostHogProvider `autocapture` can be configured with `captureLifecycleEvents: false` and `captureScreens: false` if you want do disable these autocapture elements. Both of these default to `true` +PostHogProvider `autocapture` can be configured with `captureLifecycleEvents: false` and `captureScreens: false` if you want do disable these autocapture elements. Both of these default to `true` \ No newline at end of file diff --git a/posthog-web/CHANGELOG.md b/posthog-web/CHANGELOG.md index 218043a8..68b72129 100644 --- a/posthog-web/CHANGELOG.md +++ b/posthog-web/CHANGELOG.md @@ -1,6 +1,8 @@ # Next -# 3.1.1 - 2024-11-27 +# 3.2.0 - 2024-12-05 + +1. Add new debugging property `$feature_flag_bootstrapped_response`, `$feature_flag_bootstrapped_payload` and `$used_bootstrap_value` to `$feature_flag_called` event ## Changed diff --git a/posthog-web/package.json b/posthog-web/package.json index 9d5c3ff6..73a1765a 100644 --- a/posthog-web/package.json +++ b/posthog-web/package.json @@ -1,6 +1,6 @@ { "name": "posthog-js-lite", - "version": "3.1.1", + "version": "3.2.0", "main": "lib/index.cjs.js", "module": "lib/index.esm.js", "types": "lib/index.d.ts",