Skip to content

chore: upgrade Highcharts to 12.6.2 in the SVG generator - #10520

Draft
totally-not-ai[bot] wants to merge 3 commits into
mainfrom
feat/highcharts-12.6.2
Draft

totally-not-ai[bot] wants to merge 3 commits into
mainfrom
feat/highcharts-12.6.2

Conversation

@totally-not-ai

@totally-not-ai totally-not-ai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review risk: two-way door — Charts SVG generator (server-side SVG export) only

Description

Upgrades highcharts in vaadin-charts-flow-svg-generator from 12.2.0 to 12.6.2, matching @vaadin/charts (vaadin/web-components#13289). Highcharts backports fixes, including security fixes, only to its latest minor version.

Part of vaadin/web-components#12983

  • Highcharts 12.3 removed Chart#sanitizeSVG; jsdom-exporter.js now uses the static Highcharts.Exporting.sanitizeSVG(svg, chart.options). Without this the exporter fails with chart.sanitizeSVG is not a function.
  • Regenerated the expected SVGs in src/test/resources (Highcharts version string and minor rendering differences).
  • Separate commit: remove the patches in highcharts-patches.js that 12.6.1/12.6.2 now include (setNestedProperty, addCredits, AST.filterUserAttributes for xlink:href). Their tests stay, so they now check the fixes Highcharts ships. optionsToObject and _defaultSetter stay.

Behavior change: credits.href now only accepts links matching AST.allowedReferences (https://, http://, mailto:, /, ./, ../, #). A vertical heatmap color axis is no longer reversed (colorAxis.reversed: true restores it), and some Charts screenshots may shift by 1 px.

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/contributing/overview
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.
  • I have not completed some of the steps above and my pull request can be closed immediately.

Test summary

  • Mocha tests for the exporter and SVGGeneratorTest pass locally with Node 24.
  • Chart integration test screenshots were not run locally; left for CI.

🤖 Generated with Claude Code

totally-not-ai Bot and others added 2 commits October 27, 2026 14:32
Highcharts 12.3 removed Chart#sanitizeSVG, so use the static
Exporting.sanitizeSVG instead. Regenerate the expected SVGs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Highcharts 12.6.1 and 12.6.2 reject reserved point key segments and
filter credits and xlink:href links through the AST allow list. Remove
the duplicate patches and their tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@totally-not-ai totally-not-ai Bot changed the title feat: upgrade Highcharts to 12.6.2 in the SVG generator chore: upgrade Highcharts to 12.6.2 in the SVG generator Oct 27, 2026
Restore the point key, credits link and xlink:href tests, which assert
outcomes rather than the removed patches. Credits links outside the
Highcharts allow list, such as about.html or tel:, are now ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants