Skip to content

Commit

Permalink
fix: deprecate maskPhotoLibraryImages (#321)
Browse files Browse the repository at this point in the history
* fix: deprecate maskPhotoLibraryImages

* fix: update deprecation message

* fix: lint

* chore: revert lint

* chore: update changelog
  • Loading branch information
ioannisj authored Dec 3, 2024
1 parent 4452a31 commit c305409
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 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-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)
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
4 changes: 3 additions & 1 deletion posthog-react-native/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ export type PostHogSessionReplayConfig = {
* Enable masking of images that likely originated from user's photo library
* Experimental support (UIKit only)
* iOS only
* Default: true
* Default: false
*
* @deprecated This property has no effect and will be removed in the next major release. To learn how to manually mask user photos please see our Privacy controls documentation: https://posthog.com/docs/session-replay/privacy?tab=React+Native
*/
maskPhotoLibraryImages?: boolean
/**
Expand Down

0 comments on commit c305409

Please sign in to comment.