From d0e2dd69e5b0240fd518269771ced362dc5e145a Mon Sep 17 00:00:00 2001 From: Bram Wiepjes <bramw@protonmail.com> Date: Mon, 3 Jun 2024 08:58:58 +0000 Subject: [PATCH] Updated Posthog JavaScript library to the latest version --- .../refactor/update_posthog_to_1-136-2.json | 7 +++++++ web-frontend/modules/core/plugins/posthog.js | 1 - web-frontend/package.json | 6 +++--- web-frontend/yarn.lock | 14 +++++++------- 4 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 changelog/entries/unreleased/refactor/update_posthog_to_1-136-2.json diff --git a/changelog/entries/unreleased/refactor/update_posthog_to_1-136-2.json b/changelog/entries/unreleased/refactor/update_posthog_to_1-136-2.json new file mode 100644 index 000000000..476e62ba0 --- /dev/null +++ b/changelog/entries/unreleased/refactor/update_posthog_to_1-136-2.json @@ -0,0 +1,7 @@ +{ + "type": "refactor", + "message": "Update posthog-js library to 1.136.2.", + "issue_number": null, + "bullet_points": [], + "created_at": "2024-05-31" +} diff --git a/web-frontend/modules/core/plugins/posthog.js b/web-frontend/modules/core/plugins/posthog.js index fe02386e1..082d4696e 100644 --- a/web-frontend/modules/core/plugins/posthog.js +++ b/web-frontend/modules/core/plugins/posthog.js @@ -16,7 +16,6 @@ export default function ({ app: { router, $config, store } }, inject) { autocapture: { css_selector_allowlist: ['[ph-autocapture]'], }, - disable_session_recording: true, }) inject('posthog', posthog) diff --git a/web-frontend/package.json b/web-frontend/package.json index 665758e89..9072336a9 100644 --- a/web-frontend/package.json +++ b/web-frontend/package.json @@ -89,7 +89,7 @@ "nuxt": "2.17.2", "papaparse": "5.4.1", "path-to-regexp": "^1.8.0", - "posthog-js": "^1.105.8", + "posthog-js": "^1.136.2", "resize-observer-polyfill": "^1.5.1", "sass-loader": "10.4.1", "thenby": "^1.3.4", @@ -139,7 +139,7 @@ "storybook-addon-designs": "^6.3.1", "storybook-addon-pseudo-states": "1.15.5", "stylelint": "^16.3.1", - "stylelint-selector-bem-pattern": "^4.0.0", - "stylelint-config-standard-scss": "^13.1.0" + "stylelint-config-standard-scss": "^13.1.0", + "stylelint-selector-bem-pattern": "^4.0.0" } } diff --git a/web-frontend/yarn.lock b/web-frontend/yarn.lock index 6ecc2eb0a..804ac729d 100644 --- a/web-frontend/yarn.lock +++ b/web-frontend/yarn.lock @@ -15392,18 +15392,18 @@ postcss@^8.4.24, postcss@^8.4.38: picocolors "^1.0.0" source-map-js "^1.2.0" -posthog-js@^1.105.8: - version "1.105.8" - resolved "https://registry.yarnpkg.com/posthog-js/-/posthog-js-1.105.8.tgz#934602f0c7a5e522a25828062b5841ad8780756f" - integrity sha512-zKZKNVLLQQgkJyY3DnzHHTasu6x4xM4MOvH7UbMz6BmrgUPboS6/3akgz+WKD+JV6qFj68bm80iJw0Jtj+pt8Q== +posthog-js@^1.136.2: + version "1.136.2" + resolved "https://registry.yarnpkg.com/posthog-js/-/posthog-js-1.136.2.tgz#a90bc908665f7bbc9b366e16a0a38e40aacef7dc" + integrity sha512-9oTUB/JDayzV+hB4f7u+ZNUbfnkGHLxyZw+FOE59pCgmbWHcJxhpGbu2Xlyv027/iHIjQbn1mtm2wJmBI2BuqA== dependencies: fflate "^0.4.8" preact "^10.19.3" preact@^10.19.3: - version "10.19.4" - resolved "https://registry.yarnpkg.com/preact/-/preact-10.19.4.tgz#735d331d5b1bd2182cc36f2ba481fd6f0da3fe3b" - integrity sha512-dwaX5jAh0Ga8uENBX1hSOujmKWgx9RtL80KaKUFLc6jb4vCEAc3EeZ0rnQO/FO4VgjfPMfoLFWnNG8bHuZ9VLw== + version "10.22.0" + resolved "https://registry.yarnpkg.com/preact/-/preact-10.22.0.tgz#a50f38006ae438d255e2631cbdaf7488e6dd4e16" + integrity sha512-RRurnSjJPj4rp5K6XoP45Ui33ncb7e4H7WiOHVpjbkvqvA3U+N8Z6Qbo0AE6leGYBV66n8EhEaFixvIu3SkxFw== prelude-ls@^1.2.1: version "1.2.1"