Skip to content

Commit

Permalink
fix: deprecate maskPhotoLibraryImages
Browse files Browse the repository at this point in the history
  • Loading branch information
ioannisj committed Dec 2, 2024
1 parent 4452a31 commit a75c35b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 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.5.0 - 2024-12-02

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)
Expand Down
2 changes: 1 addition & 1 deletion 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.4.0",
"version": "3.5.0",
"main": "lib/posthog-react-native/index.js",
"files": [
"lib/"
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 @@ -301,7 +301,7 @@ export class PostHog extends PostHogCore {
maskAllTextInputs = true,
maskAllImages = true,
maskAllSandboxedViews = true,
maskPhotoLibraryImages = true,
maskPhotoLibraryImages = false,
captureLog = true,
captureNetworkTelemetry = true,
iOSdebouncerDelayMs = 1000,
Expand Down
2 changes: 2 additions & 0 deletions posthog-react-native/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export type PostHogSessionReplayConfig = {
* Experimental support (UIKit only)
* iOS only
* Default: true
*
* @deprecated This property has no effect and will be removed in the next major release. To manually mask user photos, use `ph-no-capture` accessibility label in your app.
*/
maskPhotoLibraryImages?: boolean
/**
Expand Down

0 comments on commit a75c35b

Please sign in to comment.