Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(desktop): upgrade react native PostHog SDKs (#82594)

Manoel Aranda Neto166a0bdab674
diff --git a/products/desktop/apps/mobile/package.json b/products/desktop/apps/mobile/package.json
index 7e1fe582b654..11ace9b622b9 100644
--- a/products/desktop/apps/mobile/package.json
+++ b/products/desktop/apps/mobile/package.json
@@ -29,13 +29,6 @@
"react-native-worklets"
]
},
- "doctor": {
- "reactNativeDirectoryCheck": {
- "exclude": [
- "posthog-react-native-session-replay"
- ]
- }
- },
"install": {
"exclude": [
"react",
@@ -51,6 +44,7 @@
"@modelcontextprotocol/sdk": "^1.29.0",
"@posthog/api-client": "workspace:*",
"@posthog/core": "workspace:*",
+ "@posthog/react-native-plugin": "^2.3.1",
"@posthog/shared": "workspace:*",
"@react-native-async-storage/async-storage": "^2.2.0",
"@react-native-community/netinfo": "^12.0.1",
@@ -86,8 +80,7 @@
"highlight.js": "^11.11.1",
"nativewind": "^4.2.1",
"phosphor-react-native": "^3.0.2",
- "posthog-react-native": "^4.18.0",
- "posthog-react-native-session-replay": "^1.6.0",
+ "posthog-react-native": "^4.63.0",
"react": "catalog:",
"react-dom": "catalog:",
"react-native": "0.86.0",
diff --git a/products/desktop/pnpm-lock.yaml b/products/desktop/pnpm-lock.yaml
index 0de2d8313b61..f29bd569afbe 100644
--- a/products/desktop/pnpm-lock.yaml
+++ b/products/desktop/pnpm-lock.yaml
@@ -508,6 +508,9 @@ importers:
'@posthog/core':
specifier: workspace:*
version: link:../../packages/core
+ '@posthog/react-native-plugin':
+ specifier: ^2.3.1
'@posthog/shared':
specifier: workspace:*
version: link:../../packages/shared
@@ -614,11 +617,8 @@ importers:
specifier: ^3.0.2
posthog-react-native:
- specifier: ^4.18.0
- version: 4.30.0(5117c466121f96e01da03aba1f0c9104)
- posthog-react-native-session-replay:
- specifier: ^1.6.0
+ specifier: ^4.63.0
+ version: 4.63.0(f79532a8795580641a2ecf135991c2be)
react:
specifier: 19.2.6
version: 19.2.6
@@ -6273,15 +6273,15 @@ packages:
engines: {node: '>=14.14', npm: '>=6'}
hasBin: true
- '@posthog/[email protected]':
- resolution: {integrity: sha512-e/F20we0t6bPMuDOVOe53f908s23vuKEpFKNXmZcx4bSYsPkjRN49akIIHU621HBJdcsFx537vhJYKZxu8uS9w==}
-
'@posthog/[email protected]':
resolution: {integrity: sha512-vwOEMfZvGv5XxNWV7p9I52NSmvFNMhyW2IHpIoUHW5jLkgUrknzJW1H/qxVGSIrNNVQkfsoaDFzDhJdg10pgrA==}
'@posthog/[email protected]':
resolution: {integrity: sha512-Vmr6LZms7QEP1ljfTRRBVtLkeEHMrTmLECt0FXPLwUIgPwxOgvBdAYwRMWyP13WuN/XQweo1tJ9J1DxHNAF3qg==}
+ '@posthog/[email protected]':
+ resolution: {integrity: sha512-d38C5DulL3gCox4g0VGyb/Lhn548fBvj9f35LZGVasPspOs3jyApxROJyDXoWwIRivOjCOIShZQAdYkZVn9J3w==}
+
'@posthog/[email protected]':
resolution: {integrity: sha512-Qyd9DckDg1Z/vT3mpKyuMemJHWpYD0k0Gob7hWCNMCDSYm/NcpDS1uX8PRoh3Z7HF2kBkZ7j6HCSUIG7Ha/j4Q==}
engines: {node: '>=18'}
@@ -6307,6 +6307,12 @@ packages:
react-dom: 19.2.6
tailwindcss: ^4.0.0
+ '@posthog/[email protected]':
+ resolution: {integrity: sha512-mPWdqPzkkTytGtUO6Vjtni1h92n8fPQeJ6jOBIEZRbe+fakNZ04z4fghpFEbxERE/EKVmwHKJ2A+LH5xKt48Ow==}
+ peerDependencies:
+ react: 19.2.6
+ react-native: '*'
+
'@posthog/[email protected]':
resolution: {integrity: sha512-EFSm6yEXrJ8B0GXkvjk+6oUZkZ/3VwZy264OypPklx63EwYS3n6e9SPcQOH4sj1yDK76i0cLpKy+6v8BE7lKlQ==}
peerDependencies:
@@ -6318,6 +6324,9 @@ packages:
'@posthog/[email protected]':
resolution: {integrity: sha512-UgE9+5+wkZg7yc2MpW5G32/6zYW8fAbXJkG8WGnrb4X8OKWzNa9cWeNCd82vKok+TSoRpM4qiYQFtBSpJS1dsw==}
+ '@posthog/[email protected]':
+ resolution: {integrity: sha512-QbkO0epmdq38xhxwP214YRi0vgpZiXqhamaTjKT6kVGJYTtsE5qZ1GTgLp12IYehg/rd+whYYErH3/DeX8pj3Q==}
+
'@preact/[email protected]':
resolution: {integrity: sha512-slT6XeTCAbdql61GVLlGU4x7XHI7kCZV5Um5uhE4zLX4ApgiiXc0UYFvVOKq06xcovzp7p+61l68oPi563ARKg==}
@@ -13989,28 +13998,26 @@ packages:
rxjs:
optional: true
- resolution: {integrity: sha512-OCaei77mtgg7JT+TgHSCgpWeKq2XXENUOPNxGbjhXZa/aJpptOW5VsBqjtH4BPzM2c1veS1DK4/Fb/uV4Rb3cg==}
- peerDependencies:
- react: 19.2.6
- react-native: '*'
-
- resolution: {integrity: sha512-cZ5f9myFmcjhJCRm/duwj0li2Mta6XqvkfzqIdMEKJcL17lKpwM/wFnMx4Zf8i1q37JiiU0xrdyeLwfBRQcaUw==}
+ resolution: {integrity: sha512-lh8mm23PxBGBPyJp1/xZy9Ae1fiKvxcAvnpxfnAS8ibtKyHWtcJcun8GtLBg7mTFefynH8WIjq/v3qfiOmdHKg==}
+ hasBin: true
peerDependencies:
+ '@posthog/react-native-plugin': '>= 2.3.0'
'@react-native-async-storage/async-storage': '>=1.0.0'
'@react-navigation/native': '>= 5.0.0'
expo-application: '>= 4.0.0'
expo-device: '>= 4.0.0'
expo-file-system: '>= 13.0.0'
expo-localization: '>= 11.0.0'
- posthog-react-native-session-replay: '>= 1.2.0'
+ posthog-react-native-session-replay: '>= 1.6.0'
react-native-device-info: '>= 10.0.0'
react-native-localize: '>= 3.0.0'
react-native-navigation: '>= 6.0.0'
react-native-safe-area-context: '>= 4.0.0'
react-native-svg: '>= 15.0.0'
peerDependenciesMeta:
+ '@posthog/react-native-plugin':
+ optional: true
'@react-native-async-storage/async-storage':
optional: true
'@react-navigation/native':
@@ -14033,6 +14040,8 @@ packages:
optional: true
react-native-safe-area-context:
optional: true
+ react-native-svg:
+ optional: true
resolution: {integrity: sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==}
@@ -21198,10 +21207,6 @@ snapshots:
dependencies:
detect-libc: 2.1.2
- '@posthog/[email protected]':
- dependencies:
- cross-spawn: 7.0.6
-
'@posthog/[email protected]':
dependencies:
'@posthog/types': 1.386.3
@@ -21210,6 +21215,10 @@ snapshots:
dependencies:
'@posthog/types': 1.386.4
+ '@posthog/[email protected]':
+ dependencies:
+ '@posthog/types': 1.403.0
+
dependencies:
gsap: 3.14.2
@@ -21263,6 +21272,11 @@ snapshots:
tailwind-merge: 2.6.1
tailwindcss: 4.3.1
+ dependencies:
+ react: 19.2.6
+ react-native: 0.86.0(@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected])
+
dependencies:
'@posthog/cli': 0.7.22
@@ -21273,6 +21287,8 @@ snapshots:
'@posthog/[email protected]': {}
+ '@posthog/[email protected]': {}
+
'@preact/[email protected]': {}
'@preact/[email protected]': {}
@@ -30251,24 +30267,20 @@ snapshots:
optionalDependencies:
rxjs: 7.8.2
- dependencies:
- react: 19.2.6
- react-native: 0.86.0(@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected])
-
- [email protected](5117c466121f96e01da03aba1f0c9104):
+ [email protected](f79532a8795580641a2ecf135991c2be):
dependencies:
- '@posthog/core': 1.20.0
+ '@posthog/core': 1.47.1
+ '@posthog/types': 1.403.0
optionalDependencies:
+ '@posthog/react-native-plugin': 2.3.1([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))([email protected])
'@react-native-async-storage/async-storage': 2.2.0([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))
'@react-navigation/native': 7.1.28([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))([email protected])
expo-application: 57.0.2([email protected])
expo-device: 57.0.1([email protected])
expo-localization: 57.0.1([email protected])([email protected])
- posthog-react-native-session-replay: 1.6.0([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))([email protected])
react-native-safe-area-context: 5.7.0([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))([email protected])
dependencies: