From 434f73a9e7b86415299af91e2df2fb09188cc36e Mon Sep 17 00:00:00 2001 From: PostHog Bot <69588470+posthog-bot@users.noreply.github.com> Date: Wed, 28 Aug 2024 11:47:00 -0400 Subject: [PATCH] chore(deps): Update posthog-js to 1.158.3 (#24630) Co-authored-by: posthog-bot Co-authored-by: Phani Raj --- frontend/src/loadPostHogJS.tsx | 1 + package.json | 2 +- pnpm-lock.yaml | 14 +++++++------- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/frontend/src/loadPostHogJS.tsx b/frontend/src/loadPostHogJS.tsx index e0307ab977635..2c5a3285ef509 100644 --- a/frontend/src/loadPostHogJS.tsx +++ b/frontend/src/loadPostHogJS.tsx @@ -21,6 +21,7 @@ export function loadPostHogJS(): void { posthog.init( window.JS_POSTHOG_API_KEY, configWithSentry({ + opt_out_useragent_filter: window.location.hostname === 'localhost', // we ARE a bot when running in localhost, so we need to enable this opt-out api_host: window.JS_POSTHOG_HOST, ui_host: window.JS_POSTHOG_UI_HOST, rageclick: true, diff --git a/package.json b/package.json index 0619355e0d131..3fa7723502e95 100644 --- a/package.json +++ b/package.json @@ -148,7 +148,7 @@ "pmtiles": "^2.11.0", "postcss": "^8.4.31", "postcss-preset-env": "^9.3.0", - "posthog-js": "1.157.1", + "posthog-js": "1.158.3", "posthog-js-lite": "3.0.0", "prettier": "^2.8.8", "prop-types": "^15.7.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 91662790d6810..e03de5ff03200 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -266,8 +266,8 @@ dependencies: specifier: ^9.3.0 version: 9.3.0(postcss@8.4.31) posthog-js: - specifier: 1.157.1 - version: 1.157.1 + specifier: 1.158.3 + version: 1.158.3 posthog-js-lite: specifier: 3.0.0 version: 3.0.0 @@ -15393,7 +15393,7 @@ packages: image-size: 0.5.5 make-dir: 2.1.0 mime: 1.6.0 - native-request: 1.1.0 + native-request: 1.1.2 source-map: 0.6.1 dev: true @@ -16124,8 +16124,8 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - /native-request@1.1.0: - resolution: {integrity: sha512-uZ5rQaeRn15XmpgE0xoPL8YWqcX90VtCFglYwAgkvKM5e8fog+vePLAhHxuuv/gRkrQxIeh5U3q9sMNUrENqWw==} + /native-request@1.1.2: + resolution: {integrity: sha512-/etjwrK0J4Ebbcnt35VMWnfiUX/B04uwGJxyJInagxDqf2z5drSt/lsOvEMWGYunz1kaLZAFrV4NDAbOoDKvAQ==} requiresBuild: true dev: true optional: true @@ -17668,8 +17668,8 @@ packages: resolution: {integrity: sha512-dyajjnfzZD1tht4N7p7iwf7nBnR1MjVaVu+MKr+7gBgA39bn28wizCIJZztZPtHy4PY0YwtSGgwfBCuG/hnHgA==} dev: false - /posthog-js@1.157.1: - resolution: {integrity: sha512-K9TWFrz9PI2e1AMhgfwp1/0eMHdP2DwcHhOsTawlSsj03keUvtybWWiOW36xmrhJzE1HcvlYpfYvpTnbr6MQqA==} + /posthog-js@1.158.3: + resolution: {integrity: sha512-5JMrvwL5wjeuwfT8+2CC/lDXWs4aIJuRo/ImQsMQo5CtLfTZyqQbK+Jp5PvrXxh/h92nXiNvlpTShFRcLRv+pg==} dependencies: fflate: 0.4.8 preact: 10.23.2