File tree Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Next
2
2
3
+ # 3.4.0 - 2024-11-26
4
+
5
+ 1 . feat: automatically mask out user photos and sandboxed views like photo picker (iOS Only)
6
+ 1 . To disable masking set ` maskAllSandboxedViews ` and ` maskPhotoLibraryImages ` to false
7
+
8
+ ``` js
9
+ export const posthog = new PostHog (
10
+ ' apiKey...' ,
11
+ sessionReplayConfig: {
12
+ maskAllSandboxedViews: false ,
13
+ maskPhotoLibraryImages: false ,
14
+ );
15
+ ` ` `
16
+
3
17
# 3.3.14 - 2024-11-21
4
18
5
19
1. fix: identify method allows passing a $set_once object
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " posthog-react-native" ,
3
- "version" : " 3.3.14 " ,
3
+ "version" : " 3.4.0 " ,
4
4
"main" : " lib/posthog-react-native/index.js" ,
5
5
"files" : [
6
6
" lib/"
Original file line number Diff line number Diff line change @@ -300,6 +300,8 @@ export class PostHog extends PostHogCore {
300
300
const {
301
301
maskAllTextInputs = true ,
302
302
maskAllImages = true ,
303
+ maskAllSandboxedViews = true ,
304
+ maskPhotoLibraryImages = true ,
303
305
captureLog = true ,
304
306
captureNetworkTelemetry = true ,
305
307
iOSdebouncerDelayMs = 1000 ,
@@ -309,6 +311,8 @@ export class PostHog extends PostHogCore {
309
311
const sdkReplayConfig = {
310
312
maskAllTextInputs,
311
313
maskAllImages,
314
+ maskAllSandboxedViews,
315
+ maskPhotoLibraryImages,
312
316
captureLog,
313
317
captureNetworkTelemetry,
314
318
iOSdebouncerDelayMs,
Original file line number Diff line number Diff line change @@ -60,6 +60,21 @@ export type PostHogSessionReplayConfig = {
60
60
* Default: true
61
61
*/
62
62
maskAllImages ?: boolean
63
+ /**
64
+ * Enable masking of all sandboxed system views
65
+ * These may include UIImagePickerController, PHPickerViewController and CNContactPickerViewController
66
+ * iOS only
67
+ * Experimental support
68
+ * Default: true
69
+ */
70
+ maskAllSandboxedViews ?: boolean
71
+ /**
72
+ * Enable masking of images that likely originated from user's photo library
73
+ * Experimental support (UIKit only)
74
+ * iOS only
75
+ * Default: true
76
+ */
77
+ maskPhotoLibraryImages ?: boolean
63
78
/**
64
79
* Enable capturing of logcat as console events
65
80
* Android only
You can’t perform that action at this time.
0 commit comments