GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” โœจ Announcing maxGraph 0.23.0 ๐ŸŽ‰ ยท maxGraph/maxGraph ยท Discussion #1034

โœจ Announcing maxGraph 0.23.0 ๐ŸŽ‰ #1034

tbouffard announced in Announces
โœจ Announcing maxGraph 0.23.0 ๐ŸŽ‰ #1034
@tbouffard tbouffard
Mar 30, 2026 ยท 0 comments
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

tbouffard
Mar 30, 2026
Maintainer

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

  • npm package: @maxgraph/core 0.23.0
  • Fixed issues: milestone 0.23.0
  • Documentation: maxgraph_0.23.0_website.zip
  • Examples: maxgraph_0.23.0_examples.zip
  • Changelog (only includes a summary and breaking changes): changelog

What's Changed

๐ŸŽ‰ New Features

  • feat(config): add reset functions for global configurations by @tbouffard in feat(config): add reset functions for global configurations #979

๐Ÿ› Bug Fixes

  • fix: fix memory leaks in destroy methods by @redfish4ktc in fix: fix memory leaks in destroy methods #1023

๐Ÿ“ Documentation

  • docs(HiearchicalLayout): fix copy pasted JSDoc for cache attributes by @le-codeur-rapide in docs(HiearchicalLayout): fix copy pasted JSDoc for cache attributes #975
  • docs: improve library presentation in README and website by @tbouffard in docs: improve library presentation in README and website #1006
  • docs: improve JSDoc of UndoManager by @tbouffard in docs: improve JSDoc of UndoManager #1007
  • docs: fix JSDoc refs pointing to CellRenderer instead of ShapeRegistry by @tbouffard in docs: fix JSDoc refs pointing to CellRenderer instead of ShapeRegistry #1010
  • docs: fix orthogonal projection description and add cross-links by @redfish4ktc in docs: fix orthogonal projection description and add cross-links #1030

โš™๏ธ Refactor

  • refactor!: move tooltip methods to TooltipHandler by @tbouffard in refactor!: move tooltip methods to TooltipHandler #640
  • refactor: introduce internal log() shortcut function by @tbouffard in refactor: introduce internal log() shortcut function #974
  • refactor(stories): migrate HelloWorld story to TypeScript by @tbouffard in refactor(stories): migrate HelloWorld story to TypeScript #984
  • refactor: use singular and kebab-case for source folder names by @tbouffard in refactor: use singular and kebab-case for source folder names #985
  • refactor: simplify the implementation of isNullish by @tbouffard in refactor: simplify the implementation of isNullish #989
  • refactor!: move getViewXml from xmlUtils to xmlViewUtils by @tbouffard in refactor!: move getViewXml from xmlUtils to xmlViewUtils #992
  • refactor: use parseXml instead of direct call to DOMParser by @tbouffard in refactor: use parseXml instead of direct call to DOMParser #991
  • refactor(typescript): fix SonarQube issues on extensible string types by @tbouffard in refactor(typescript): fix SonarQube issues on extensible string types #1009
  • refactor(typescript): introduce the Constructor utility type by @tbouffard in refactor(typescript): introduce the Constructor<T> utility type #1011
  • fix: parse HTML instead of XML in SvgCanvas2D.convertHtml by @tbouffard in fix: parse HTML instead of XML in SvgCanvas2D.convertHtml #1012
  • refactor: improve type guard for domUtils.isNode by @tbouffard in refactor: improve type guard for domUtils.isNode #1000

๐Ÿ›  Chore

  • chore(deps-dev): bump storybook from 9.1.1 to 10.1.0 by @tbouffard in chore(deps-dev): bump storybook from 9.1.1 to 10.1.0 #981
  • chore: add storybook patterns to dependabot configuration by @tbouffard in chore: add storybook patterns to dependabot configuration #987
  • ci: ensure that all workflows define permissions of the GITHUB_TOKEN by @tbouffard in ci: ensure that all workflows define permissions of the GITHUB_TOKEN #990
  • ci: attach examples and website assets to GitHub releases by @tbouffard in ci: attach examples and website assets to GitHub releases #996
  • chore: improve Claude Code configuration by @redfish4ktc in chore: improve Claude Code configuration #1029

New Contributors

  • @le-codeur-rapide made their first contribution in docs(HiearchicalLayout): fix copy pasted JSDoc for cache attributes #975
  • @redfish4ktc made their first contribution in fix: fix memory leaks in destroy methods #1023

Full Changelog: v0.22.0...v0.23.0


This discussion was created from the release 0.23.0.
You must be logged in to vote
All reactions

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
๐Ÿ“ฃ
Announces
Labels
None yet
1 participant
@tbouffard
You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.