|
Version 0.23.0 released on 2026-03-30.
โก This new version improves modularity, fixes important memory leaks, and adds utilities for better configuration management. โก
Breaking changes
Tooltip API moved to TooltipHandler
The tooltip-related methods have been moved from AbstractGraph to the TooltipHandler plugin.
This change improves modularity and tree-shaking, and clarifies responsibilities by removing tooltip logic from the core graph.
getTooltip
getTooltipForCell
are no longer available on AbstractGraph.
Note Moving these methods out of AbstractGraph means they are no longer included in the bundle unless TooltipHandler is used. This reduces the minified bundle size by about -0.7 kB.
Important If you were overriding these methods in a subclass of AbstractGraph, you must now extend TooltipHandler instead.
This change mainly impacts advanced usages where tooltips are customized.
Note See PR #640 for full details and migration examples.
xmlUtils.getViewXml moved
The function xmlUtils.getViewXml has been moved to xmlViewUtils.getViewXml.
This change helps clarify responsibilities around XML view utilities and prepares for better modularization.
Note The impact should be very limited, as this function was not widely used. It was mainly used internally in the Editor class.
If you were using this function, you only need to update the import path.
Highlights
Reset functions for global configurations
New helper functions are available to reset global configuration objects:
resetGlobalConfig()
resetStencilShapeConfig()
These functions restore default values, including internal instances like NoOpLogger and NoOpI18n.
They are especially useful for:
- testing scenarios
- Storybook environments
- applications that need to isolate configuration state between runs
Note See PR #979 for more details.
Fix memory leaks in destroy methods
This release includes an important fix for memory leaks during graph destruction.
Some resources were not properly released, especially in plugins like PanningManager, but the issue was more general.
This update:
- standardizes destruction flows across components
- ensures base class cleanup is always executed
- stops active timers and processes
- removes event listeners (panning, gestures, etc.)
Important If you use maxGraph in UI frameworks (React, Angular, etc.), make sure to call graph.destroy() when your component unmounts.
This fix makes teardown more reliable and prevents hidden memory issues in long-running applications.
Note Initially reported in #994 and fixed in PR #1023.
Resources
What's Changed
๐ New Features
๐ Bug Fixes
๐ Documentation
โ๏ธ Refactor
๐ Chore
New Contributors
Full Changelog: v0.22.0...v0.23.0
This discussion was created from the release 0.23.0.
|