: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(deps): swap mathjax-full for @mathjax/src (#56733)
Paul D'Ambraca68733984bf
diff --git a/frontend/package.json b/frontend/package.jsonindex 95ed490147b2..2a4cd028f092 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -57,6 +57,7 @@"@dnd-kit/utilities": "^3.2.1","@floating-ui/react": "^0.27.19","@marsidev/react-turnstile": "^1.4.2",+ "@mathjax/src": "^4.1.1","@medv/finder": "^4.0.2","@memlab/lens": "2.0.0","@microlink/react-json-view": "^1.31.18",@@ -213,7 +214,6 @@"lowlight": "^3.3.0","maplibre-gl": "^3.5.1","marked": "^17.0.4",- "mathjax-full": "3.2.2","md5": "^2.3.0","mdast-util-find-and-replace": "^3.0.2","monaco-editor": "^0.55.1",diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodeLatex.tsx b/frontend/src/scenes/notebooks/Nodes/NotebookNodeLatex.tsxindex bd07af8a5e2e..6d8833ab831d 100644--- a/frontend/src/scenes/notebooks/Nodes/NotebookNodeLatex.tsx+++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodeLatex.tsx@@ -1,8 +1,8 @@-import { browserAdaptor } from 'mathjax-full/js/adaptors/browserAdaptor.js'-import { RegisterHTMLHandler } from 'mathjax-full/js/handlers/html.js'-import { TeX } from 'mathjax-full/js/input/tex.js'-import { mathjax } from 'mathjax-full/js/mathjax.js'-import { SVG } from 'mathjax-full/js/output/svg.js'+import { browserAdaptor } from '@mathjax/src/mjs/adaptors/browserAdaptor.js'+import { RegisterHTMLHandler } from '@mathjax/src/mjs/handlers/html.js'+import { TeX } from '@mathjax/src/mjs/input/tex.js'+import { mathjax } from '@mathjax/src/mjs/mathjax.js'+import { SVG } from '@mathjax/src/mjs/output/svg.js'import { useEffect, useRef, useState } from 'react'import { LemonTextArea } from '@posthog/lemon-ui'diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 1966ee1aa72d..f7ac8ef2d2c7 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -575,6 +575,9 @@ importers:'@marsidev/react-turnstile':specifier: ^1.4.2+ '@mathjax/src':+ specifier: ^4.1.1+ version: 4.1.1'@medv/finder':specifier: ^4.0.2version: 4.0.2@@ -1043,9 +1046,6 @@ importers:marked:specifier: ^17.0.4version: 17.0.4- mathjax-full:- specifier: 3.2.2- version: 3.2.2md5:specifier: ^2.3.0version: 2.3.0@@ -7245,6 +7245,12 @@ packages:react: 18.3.1react-dom: 18.3.1+ '@mathjax/[email protected]':+ resolution: {integrity: sha512-LeV5AWzoR7k/k2tg5mW0Ad3Jr9oK9guW/zBUIP8aoiIZcZIhvAV9dlbtUSqSe1wgEBUP1KOcJXcrE/NxOqkxlQ==}++ '@mathjax/[email protected]':+ resolution: {integrity: sha512-YW01BuT+un9l4ZADYZ3K+VCVImEuwI82376gfua3Ycjsp7r0TvXeU61Z5M8rRlGY2jrTjBMskcw98LHV6zIC6A==}+'@maxmind/[email protected]':resolution: {integrity: sha512-WG2TNxMwDWDOrljLwyZf5bwiEYubaHuICvQRlgz74lE9OZA/z4o+ZT6OisjDBAZh/yRJVNK6mfHqmP5lLlAwsA==}@@ -15033,9 +15039,6 @@ packages:resolution: {integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==}- resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==}-resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==}@@ -15303,10 +15306,6 @@ packages:deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.hasBin: true- resolution: {integrity: sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==}- engines: {node: '>=6'}-resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -16005,6 +16004,10 @@ packages:resolution: {integrity: sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==}engines: {node: 20 || >=22}+ resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==}+ engines: {node: 18 || 20 || >=22}+resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==}deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]@@ -18314,10 +18317,6 @@ packages:resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-+LfG9Fik+OuI8SLwsiR02IVdjcnRCy5MufYLi0C3TdMT56L/pjB0alMVGgoWJF8pN9Rc7FESycZB9BMNWIid5w==}- deprecated: Version 4 replaces this package with the scoped package @mathjax/src-resolution: {integrity: sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==}@@ -18673,6 +18672,10 @@ packages:resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}engines: {node: '>=16 || 14 >=14.17'}+ resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}+ engines: {node: '>=16 || 14 >=14.17'}+resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==}engines: {node: '>= 8'}@@ -18684,8 +18687,8 @@ packages:resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==}- resolution: {integrity: sha512-7NO5s6n10TIV96d4g2uDpG7ZDpIhMh0QNfGdJw/W47JswFcosz457wqz/b5sAKvl12sxINGFCn80NZHKwxQEXA==}+ resolution: {integrity: sha512-OSgBFQRCVhrZwRa9lhqnKcJU92dd/YXgBjup0uyeuj9bOaVsf4myOyrjU4PfhYkdDk6AqVUTov7v5uFMvIbduA==}resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==}@@ -19372,6 +19375,10 @@ packages:resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==}engines: {node: 20 || >=22}+ resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==}+ engines: {node: 18 || 20 || >=22}+resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==}@@ -21093,6 +21100,11 @@ packages:deprecated: Rimraf versions prior to v4 are no longer supportedhasBin: true+ resolution: {integrity: sha512-LKg+Cr2ZF61fkcaK1UdkH2yEBBKnYjTyWzTJT6KNPcSPaiT7HSdhtMXQuN5wkTX0Xu72KQ1l8S42rlmexS2hSA==}+ engines: {node: 20 || >=22}+ hasBin: true+resolution: {integrity: sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==}@@ -21594,8 +21606,8 @@ packages:resolution: {integrity: sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==}- resolution: {integrity: sha512-S6ji+flMEga+1QU79NDbwZ8Ivf0S/MpupQQiIC0rTpU/ZTKgcajijJJb1OcByBQDjrXCN1/DJtGz4ZJeBMPGJw==}+ resolution: {integrity: sha512-ohK2DizQ9s/JeiHhIraATNBwYpg2jSlSIF4Sq8pgHgSqMq2tkLRZLUq1BT2DjnmCWzkKeGSOaz6t/KzDGRGhPg==}hasBin: true@@ -29829,6 +29841,15 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ '@mathjax/[email protected]': {}++ '@mathjax/[email protected]':+ dependencies:+ '@mathjax/mathjax-newcm-font': 4.1.1+ mhchemparser: 4.2.1+ mj-context-menu: 1.0.0+ speech-rule-engine: 5.0.0-beta.6+'@maxmind/[email protected]':dependencies:camelcase-keys: 7.0.2@@ -39345,7 +39366,7 @@ snapshots:dependencies:- end-of-stream: 1.4.4+ end-of-stream: 1.4.5inherits: 2.0.4readable-stream: 3.6.2stream-shift: 1.0.1@@ -39417,10 +39438,6 @@ snapshots:iconv-lite: 0.6.3optional: true- dependencies:- once: 1.4.0-dependencies:once: 1.4.0@@ -39979,8 +39996,6 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]: {}-dependencies:acorn: 8.16.0@@ -40808,6 +40823,12 @@ snapshots:minipass: 7.1.2path-scurry: 2.0.0+ dependencies:+ minimatch: 10.2.3+ minipass: 7.1.3+ path-scurry: 2.0.2+dependencies:fs.realpath: 1.0.0@@ -43972,13 +43993,6 @@ snapshots:- dependencies:- esm: 3.2.25- mhchemparser: 4.2.1- mj-context-menu: 0.6.1- speech-rule-engine: 4.1.2-@@ -44580,6 +44594,8 @@ snapshots:+ [email protected]: {}+dependencies:minipass: 3.3.6@@ -44591,7 +44607,9 @@ snapshots:- [email protected]: {}+ dependencies:+ rimraf: 6.1.3@@ -45440,6 +45458,11 @@ snapshots:lru-cache: 11.2.4minipass: 7.1.2+ dependencies:+ lru-cache: 11.2.4+ minipass: 7.1.3+@@ -46626,7 +46649,7 @@ snapshots:dependencies:- end-of-stream: 1.4.4+ end-of-stream: 1.4.5once: 1.4.0@@ -47729,6 +47752,11 @@ snapshots:dependencies:glob: 7.2.3+ dependencies:+ glob: 13.0.6+ package-json-from-dist: 1.0.1+dependencies:hash-base: 3.1.0@@ -48333,10 +48361,10 @@ snapshots:dependencies:'@xmldom/xmldom': 0.9.8- commander: 13.1.0+ commander: 14.0.2wicked-good-xpath: 1.3.0