diff --git a/agents/anyplot/code/profiles/javascript/import-allowlist.json b/agents/anyplot/code/profiles/javascript/import-allowlist.json index f8467036c78..9036f50db86 100644 --- a/agents/anyplot/code/profiles/javascript/import-allowlist.json +++ b/agents/anyplot/code/profiles/javascript/import-allowlist.json @@ -2,7 +2,7 @@ "schema": 1, "packages": { "@mui/material": "9.5.0", - "@mui/x-charts": "9.16.0", + "@mui/x-charts": "9.17.0", "react": "19.3.1", "react-dom": "19.3.1" }, diff --git a/package-lock.json b/package-lock.json index d2f9d00bbee..21b813f9718 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@emotion/react": "11.14.0", "@emotion/styled": "11.14.1", "@mui/material": "9.5.0", - "@mui/x-charts": "9.16.0", + "@mui/x-charts": "9.17.0", "chart.js": "4.6.1", "d3": "7.9.0", "echarts": "6.1.0", @@ -1032,21 +1032,20 @@ } }, "node_modules/@mui/x-charts": { - "version": "9.16.0", - "resolved": "https://registry.npmjs.org/@mui/x-charts/-/x-charts-9.16.0.tgz", - "integrity": "sha512-X0ivReaBWmHRNVK6EYVzaTL3MECt+NsNiTKyanMBKe1Y36ldV91JWI/Z1NrYPP2wk2So295k0UxGKB8wa6ABWA==", + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/@mui/x-charts/-/x-charts-9.17.0.tgz", + "integrity": "sha512-80SW4GdV3jj2zO5+OSU25fBTkBvzg4bEFfukAA7wA0mMR7uPZHmtQ2ZAC6QpH3yFi/+JluMShcgwOhugcHy26Q==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.29.7 || ^8.0.0", "@base-ui/utils": "^0.5.0", "@mui/utils": "^9.5.0", "@mui/x-charts-vendor": "9.15.0", - "@mui/x-internal-gestures": "9.16.0", - "@mui/x-internals": "9.16.0", + "@mui/x-internal-gestures": "9.17.0", + "@mui/x-internals": "9.17.0", "bezier-easing": "^3.2.0", "clsx": "^2.1.1", "prop-types": "^15.8.1", - "reselect": "^5.3.0", "use-sync-external-store": "^1.7.0" }, "peerDependencies": { @@ -1100,9 +1099,9 @@ } }, "node_modules/@mui/x-internal-gestures": { - "version": "9.16.0", - "resolved": "https://registry.npmjs.org/@mui/x-internal-gestures/-/x-internal-gestures-9.16.0.tgz", - "integrity": "sha512-4WVMUp500qBdkwtOPTG1qDo/frOC31MihX8skbY189b8LAsNn9rOozkys4aUcs4SzfyMkhIbQd3HgnvB+RQMgQ==", + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/@mui/x-internal-gestures/-/x-internal-gestures-9.17.0.tgz", + "integrity": "sha512-P5SOwzeAeQ6RB0Sgfdz0tZoCCEFwnr8z1/G93E//nwDrSz6+z/uhyEAwn7hCUx8fPSZ1nRCyPfJCFQVzip9RoQ==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.29.7 || ^8.0.0", @@ -1114,15 +1113,14 @@ } }, "node_modules/@mui/x-internals": { - "version": "9.16.0", - "resolved": "https://registry.npmjs.org/@mui/x-internals/-/x-internals-9.16.0.tgz", - "integrity": "sha512-ImvD4yi8J/Tip60OnPntw55xG1JlsqxABVlO1XEe1lypg4rUUyR9o7S29FHzOshBPeMVigd9izBtNIdioh1Djw==", + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/@mui/x-internals/-/x-internals-9.17.0.tgz", + "integrity": "sha512-rk9yNkDR/ty/zpzdObwqLbax3V1lNqz5inat5IVC3KHWj64K9uEBoHLxMBZNtQd8WtPfHR7RS2KjuAI35rcusg==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.29.7 || ^8.0.0", "@base-ui/utils": "^0.5.0", - "@mui/utils": "^9.5.0", - "reselect": "^5.3.0" + "@mui/utils": "^9.5.0" }, "funding": { "type": "opencollective", diff --git a/package.json b/package.json index 580b73e35fa..0d019047913 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@emotion/react": "11.14.0", "@emotion/styled": "11.14.1", "@mui/material": "9.5.0", - "@mui/x-charts": "9.16.0", + "@mui/x-charts": "9.17.0", "chart.js": "4.6.1", "d3": "7.9.0", "echarts": "6.1.0", diff --git a/tests/unit/agents/code/test_profile_javascript_readiness.py b/tests/unit/agents/code/test_profile_javascript_readiness.py index 14b3ea4b7a6..ca3c7c07531 100644 --- a/tests/unit/agents/code/test_profile_javascript_readiness.py +++ b/tests/unit/agents/code/test_profile_javascript_readiness.py @@ -5,6 +5,7 @@ import pytest +from agents.anyplot.code.profiles.javascript.allowlist import mui_version from agents.anyplot.code.profiles.javascript.coupling import coupling, structure_reasons from agents.anyplot.code.profiles.javascript.normalise import normalise from agents.anyplot.code.profiles.javascript.readiness import scan @@ -161,7 +162,7 @@ def test_muix_7_imports_are_a_coupled_hint_never_a_block() -> None: assert "deprecated-api: 2 lines" in readiness.reasons hint = next(hint for hint in readiness.hints if hint.startswith("MUI X 7 imports")) assert hint == ( - 'MUI X 7 imports the image\'s MUI X 9.16.0 lacks at line 4 `"@mui/x-charts/ChartContainer"`; ' + f'MUI X 7 imports the image\'s MUI X {mui_version()} lacks at line 4 `"@mui/x-charts/ChartContainer"`; ' 'line 5 `ChartContainer from "@mui/x-charts"`: use MUI X 9\'s (ChartContainer is ChartsContainer from ' "@mui/x-charts/ChartsContainer)." )