chore(deps): update dependency apexcharts to v5.10.4#936
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.9.0→5.10.4Release Notes
apexcharts/apexcharts.js (apexcharts)
v5.10.4: 💎 Version 5.10.4Compare Source
What's New
'var(--my-color)'directly as a chart color. Swap your entire palette at runtime with a single CSS attribute change. (#5185) Thanks to @codecalmbg) and Romanian (ro) added. Serbian, Swedish, and Ukrainian locale files were also renamed to their correct ISO codes (sr,sv,uk). (#5186) Thanks to @gabriele-vBug Fixes
Performance
updateOptions()andupdateSeries()no longer rebuild internal modulesfrom scratch on every call, reducing re-render overhead on dashboards with frequent data
refreshes. Large datasets also benefit from automatic LTTB downsampling.
Type Safety (JSDoc refactor)
All ~97 JavaScript source files in
src/have been hardened with a JSDoc-first type safety strategy: TypeScript validates the source viacheckJs: truewithout requiring a migration to.tsfiles.npm run typechecknow passes with zero errors under fullstrict: true.What changed:
v5.10.3: 💎 Version 5.10.3Compare Source
Bug Fixes
SSR: Bar/column charts rendered duplicate elements in
renderToString()(1b4bcb1f)SSRElement.appendChildandinsertBeforewere unconditionally pushing thechild onto the children array without checking whether the child already had a
parent. Because
Bar.jscreateselDataLabelsWrap,elGoalsMarkers, andelBarShadowsonce per series but callselSeries.add()on every data-pointiteration, the SSR virtual DOM accumulated N×N bar paths and datalabel groups
instead of N. The fix mirrors standard browser DOM move semantics: if a node
already has a parent it is detached from that parent before being appended.
This affects both
appendChildandinsertBefore.v5.10.2: 💎 Version 5.10.2Compare Source
Bug Fixes
Tree-shaking: ESM entry points were incorrectly eliminated by bundlers
dist/*.esm.jsanddist/features/*.esm.jswere missing from thesideEffectsfield inpackage.json. Bundlers such as Webpack and Rolluptreat files not listed as having side effects as safe to drop when they are
not explicitly imported, which caused chart type and feature registrations to
be silently tree-shaken away in production builds. Adding both glob patterns
ensures the self-registering ESM bundles are always retained.
v5.10.1: 💎 Version 5.10.1Compare Source
Bug Fixes
Chart Registry Survives Duplicate Module Instances
Problem: When a bundler (Vite, webpack, etc.) accidentally creates two separate copies of the ApexCharts module - for example when mixing CJS and ESM imports, or when
optimizeDepsis not configured -ApexCharts.use()would write to one module's registry while the chart renderer read from another. The chart type was effectively never registered, causing a runtime error.Fix: The chart type registry is now stored on
globalThis.__apexcharts_registry__instead of a module-local variable. All module instances share a single registry on the global object, so registration is never silently lost regardless of how many module copies the bundler created.v5.10.0: 💎 Version 5.10.0Compare Source
New Features
Per-Type Modular Entry Points
Every public chart type now has its own dedicated entry point matching the
chart.typestring you already use in config. Previously, users needed to know the internal grouping (e.g.apexcharts/heatmapfor treemap charts); now you import by the exact type name.New entry points:
apexcharts/linelineapexcharts/areaareaapexcharts/scatterscatterapexcharts/bubblebubbleapexcharts/rangeArearangeAreaapexcharts/barbarapexcharts/columnbar(column mode)apexcharts/rangeBarrangeBarapexcharts/candlestickcandlestickapexcharts/boxPlotboxPlotapexcharts/piepieapexcharts/donutdonutapexcharts/polarAreapolarAreaapexcharts/radialBarradialBarapexcharts/radarradarapexcharts/heatmapheatmapapexcharts/treemaptreemap(new standalone entry)Example:
The old grouped entry points (
apexcharts/pie,apexcharts/heatmap,apexcharts/radial, etc.) continue to work and register all their previous types — no breaking changes.Improvements
Better Error Message for Unregistered Chart Types
When a chart type is not registered (common with tree-shaken builds), the error message now includes a specific hint about Vite's module deduplication as the most likely root cause, and how to fix it via
optimizeDeps.includeinvite.config.dist/ File Structure
Configuration
📅 Schedule: Branch creation - "before 9am on monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.