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(deps): Update posthog-js to 1.378.0 (#60998)

posthog-js-upgrader[bot]148c4c4fcde9
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 47a44e08e791..0a8521f02fe8 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -1277,7 +1277,7 @@ snapshots:
components-search--default--light:
hash: v1.k794b7964.aa78e91c7dc4d0fbe8ffee8a5db26c76399d443738ed1c5a68544382d0d41041.L3wA7NcXjTxTGZAS2i1QTRdxQBvWQ9dll4QwFT_nf44
components-search--product-recents-and-starred--dark:
- hash: v1.k794b7964.22df1e775fc314a45651a47d2c84364561c276221a78ff7312412276b59a5b96.-d6xSe9GW0oteb2F2s7obniM1HUZ-IxQWK3YcIrnxeY
+ hash: v1.k794b7964.af61e9a1e8bc4701f536ad9d753c347f5bbd7f42294197aed3eb7acd1be576d7.7hRFCYKucKmgNl6H0wIIFsTNr7fLlVAPZjv_fLGr5Q0
components-search--product-recents-and-starred--light:
hash: v1.k794b7964.093365121259b79e33584b3e0042ad3813b0e77f2af285369ab7b2bf98bd9c79.-imuS481bcvyD7kDEeyJ4mfKoQcmD451n4Lxv2IrE3g
components-search--searching--dark:
diff --git a/frontend/src/loadPostHogJS.tsx b/frontend/src/loadPostHogJS.tsx
index ca4f17a658a5..917ac0c67742 100644
--- a/frontend/src/loadPostHogJS.tsx
+++ b/frontend/src/loadPostHogJS.tsx
@@ -7,7 +7,7 @@ import { inStorybook, inStorybookTestRunner } from 'lib/utils'
import { startDetachedElementTracking } from './detachedElementTracker'
import { startFramerateTracking } from './framerateTracker'
-export const SDK_DEFAULTS_DATE = '2026-01-30'
+export const SDK_DEFAULTS_DATE = '2026-05-30'
const shouldDefer = (): boolean => {
const sessionId = posthog.get_session_id()
@@ -163,7 +163,6 @@ export function loadPostHogJS(options: LoadPostHogJSOptions = {}): void {
person_profiles: 'always',
__add_tracing_headers: ['eu.posthog.com', 'us.posthog.com'],
__preview_disable_xhr_credentials: true,
- external_scripts_inject_target: 'head',
capture_performance: {
//disabling to investigate if this is associated with memory leak in the posthog app
web_vitals_attribution: false,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 264052c9d066..e6d38a421de7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -82,8 +82,8 @@ catalogs:
specifier: ^0.35.0
version: 0.35.0
posthog-js:
- specifier: ^1.376.6
- version: 1.376.6
+ specifier: ^1.378.0
+ version: 1.378.0
ts-pattern:
specifier: '4.3'
version: 4.3.0
@@ -326,7 +326,7 @@ importers:
version: 3.1.0
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
devDependencies:
'@swc/core':
specifier: ^1.11.29
@@ -354,7 +354,7 @@ importers:
version: 1.5.15
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
devDependencies:
'@swc/core':
specifier: ^1.11.29
@@ -749,7 +749,7 @@ importers:
version: link:../packages/quill/packages/quill
'@posthog/react':
specifier: 'catalog:'
'@posthog/replay-shared':
specifier: workspace:*
version: link:../common/replay-shared
@@ -1076,7 +1076,7 @@ importers:
version: 2.11.0
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
query-selector-shadow-dom:
specifier: ^1.0.0
version: 1.0.0
@@ -2137,7 +2137,7 @@ importers:
version: 0.1.7
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -2174,7 +2174,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -2218,7 +2218,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -2317,7 +2317,7 @@ importers:
version: 3.3.0
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -2379,7 +2379,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -2471,7 +2471,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -2495,7 +2495,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -2650,7 +2650,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -2729,7 +2729,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -2831,7 +2831,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -2984,7 +2984,7 @@ importers:
version: 5.4.1
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -3106,7 +3106,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -3199,7 +3199,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -3459,7 +3459,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -3495,7 +3495,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -3510,7 +3510,7 @@ importers:
'@posthog/react':
specifier: '*'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3610,7 +3610,7 @@ importers:
posthog-js:
specifier: 'catalog:'
- version: 1.376.6
+ version: 1.378.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -9200,8 +9200,8 @@ packages:
'@posthog/[email protected]':
resolution: {integrity: sha512-SOy0aphKawZzp8jxfeOpTcXPwi6ii0I2V6tX8YXnM+WbxKKR/R+BXLK0jS6LV8kZtW3H5YxmPAfuIbUP1UnGTw==}
- '@posthog/[email protected]':
- resolution: {integrity: sha512-jHdTo/hcZsZu1QJMi3GSysPzhkCwVncKB6IKocheFLypmMbGZp39ZGep9ECKNb1v6zBNdtHhcPqhfV+r+iLZNw==}
+ '@posthog/[email protected]':
+ resolution: {integrity: sha512-8riw09hdoQRD63snWkrr/JmtvhVedh0O3FkakAhXFA28qnvC8hza8JrsXcpKEB+dP6oJib0vcQSRn89fRoQ0OQ==}
'@posthog/[email protected]':
resolution: {integrity: sha512-kjK0eFMIpKo9GXIbts8VtAknsoZ18oZorANdtuTj1CbgS28t4ZVq//HAWhnxEuXRTrtkd+SUJ6Ux3j2Af8NCuA==}
@@ -9259,8 +9259,8 @@ packages:
'@posthog/[email protected]':
resolution: {integrity: sha512-B7k9S+H9WUKHXxe1HOkQWbpWtMcrBvsodm5stZaLQ3pYxf9TowtwssdzTtX4hHjzSYqgrS1IpNnJX4vs1KgBzA==}
- '@posthog/[email protected]':
- resolution: {integrity: sha512-iBiS+C/3rGr/AMtfmeofRhBeCaB0I14mzlrzBmyWQe2h1kbTBAkChzy4wkF9rWmDSJqxQ+UNh0Xs/ZOP0S09tg==}
+ '@posthog/[email protected]':
+ resolution: {integrity: sha512-1JG2kMbRKaxC1t2Ws0Qod2zuOpJ4FdzkpWocnUB4XN3aDDcFc8EN1dOQMzW/E5HigOzM0y1SUkg5xKg1VHhCCA==}
'@protobufjs/[email protected]':
resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}
@@ -20241,8 +20241,8 @@ packages:
resolution: {integrity: sha512-fFCoGtMICWwoW0tsEdyFS7OFFgwe7bTTha/SKEtUdyJ56UyJ8wi6VghxyPkO2GVWpco5Za/edT1z1ovGYPCyLQ==}
- resolution: {integrity: sha512-T40qyq6YZbLEqTOYA8YyDSCx+bxj16p8ZT48rnFTsiNilZJU4GopnXzW6Cr7YM1XIBZtd2wis8U4AW8BO15Z4A==}
+ resolution: {integrity: sha512-GW+FbLGfEmBZ7U7DyeeVTVDWKKsA2BH+mq9tj/TQkP/HF8+yEjMMu2qlCU6PUOEcClqlvRVKMa1Hp8CpaHZdxg==}
resolution: {integrity: sha512-DFE5lZAoD6hk7RATuT8qVQ7KFgFP5YlFTJciMbU2qq6NX0A8eJxiJcmEsMnB3g30jJJ9suiwGIq4I8ESwf9bZg==}
@@ -23030,8 +23030,8 @@ packages:
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
engines: {node: '>= 10.0.0'}
- resolution: {integrity: sha512-g2Btv3iOmCRIW2VGXOjBAeXAEDk6IoftdXewS1+spkRp2OTCHJOJCp3dZoSSKPLyFBF5hwoekBJ7WSdvLNCn8Q==}
+ resolution: {integrity: sha512-G+yAoOO4d+OwRq/XEoDWwRAF/qniqPMhQNd8Obb3p4GTyPEwKLgzuEzDCab+mXJhmdREh57EoMfqm0aJko3oyw==}
resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}
@@ -31587,9 +31587,9 @@ snapshots:
dependencies:
'@posthog/types': 1.372.9
- '@posthog/[email protected]':
+ '@posthog/[email protected]':
dependencies:
- '@posthog/types': 1.376.6
+ '@posthog/types': 1.378.0
'@posthog/[email protected]':
dependencies:
@@ -31635,9 +31635,9 @@ snapshots:
transitivePeerDependencies:
- rxjs
dependencies:
- posthog-js: 1.376.6
+ posthog-js: 1.378.0
react: 18.3.1
optionalDependencies:
'@types/react': 18.3.27
@@ -31646,7 +31646,7 @@ snapshots:
'@posthog/[email protected]': {}
- '@posthog/[email protected]': {}
+ '@posthog/[email protected]': {}
'@protobufjs/[email protected]': {}
@@ -46080,15 +46080,15 @@ snapshots:
dependencies:
'@posthog/core': 1.7.1
dependencies:
'@opentelemetry/api': 1.9.0
'@opentelemetry/api-logs': 0.208.0
'@opentelemetry/exporter-logs-otlp-http': 0.208.0(@opentelemetry/[email protected])
'@opentelemetry/resources': 2.7.1(@opentelemetry/[email protected])
'@opentelemetry/sdk-logs': 0.208.0(@opentelemetry/[email protected])
- '@posthog/core': 1.29.15
- '@posthog/types': 1.376.6
+ '@posthog/core': 1.30.1
+ '@posthog/types': 1.378.0
core-js: 3.40.0
dompurify: 3.4.0
fflate: 0.4.8
@@ -46977,7 +46977,7 @@ snapshots:
dependencies:
react: 18.3.1
- unlayer-types: 1.415.0
+ unlayer-types: 1.417.0
dependencies:
@@ -49462,7 +49462,7 @@ snapshots:
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index fd40d44e5e52..779c96c64203 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -36,7 +36,7 @@ catalog:
kea-window-values: ^3.0.1
# PostHog packages
'@posthog/react': ^1.9.0
- posthog-js: ^1.376.6
+ posthog-js: ^1.378.0
# Build tools
'@parcel/packager-ts': 2.16.4
'@parcel/transformer-typescript-types': 2.16.4