Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 24, 2025

Bumps @maxgraph/core from 0.20.0 to 0.21.0.

Release notes

Sourced from @​maxgraph/core's releases.

0.21.0

Version 0.21.0 released on 2025-07-23.

⚡ This release improves Webpack and Node.js compatibility, removes legacy code, and slightly reduces bundle size. ⚡

Resources

Breaking changes

[!IMPORTANT] These changes might require updates in your codebase if you relied on internal behaviors or legacy APIs.
See the issues and pull requests referenced below for migration help.

fit method moved to FitPlugin

The AbstractGraph.fit method and the minFitScale and maxFitScale properties have been moved to the FitPlugin.
This helps reduce the size of the base graph when the plugin is not used.

[!TIP] The fit method now accepts a single options parameter to reduce boilerplate. See #734.

Removal of Dictionary class

The Dictionary class has been removed. You can now use the native JavaScript Map object, which is available in all environments supported by maxGraph.
This class was originally introduced in mxGraph to support old browsers lacking Map.

If your code used Dictionary, replace it with Map.

[!NOTE] This change slightly reduces the bundle size. See #857.

Rounded shapes: consistent arcSize rendering

The way arcSize is computed for rounded shapes is now consistent across all shape types and matches the behavior of mxGraph.

[!IMPORTANT] If you were relying on the previous behavior (especially for edges), you may need to multiply your arcSize value by 2 to keep the same rendering.

TypeScript-specific changes

  • AbstractGraph.getPlugin() now explicitly returns undefined if the plugin is not found.
    You must handle the undefined case in your code.

... (truncated)

Changelog

Sourced from @​maxgraph/core's changelog.

0.21.0

Release date: 2025-07-22

For more details, see the 0.21.0 Changelog on the GitHub release page.

This release improves Webpack and Node.js compatibility, removes legacy code, and slightly reduces bundle size.

Breaking Changes:

  • The AbstractGraph.fit method moved to FitPlugin, as well as the minFitScale and maxFitScale properties. The method now accepts a single parameter, mainly to minimize the need to pass many default values.
  • The Dictionary class has been removed. The maxGraph API use the Map class instead, which is a standard JavaScript feature. If your code depends on the Dictionary class, you can use the Map class instead.
  • The arcSize of rounded shapes was not always correctly computed in the past. The computation is now consistent everywhere in the code and matches the mxGraph behavior. To have the same rendering as before for edges, you must multiply the arcSize by 2 in your styles.
  • The AbstractGraph.getPlugin method now explicitly returns undefined when a plugin is not found.
    TypeScript users must update their code to handle the undefined case when calling this method.
  • The return types of some methods of EditorToolbar are now more precise.
    • addPrototype(): HTMLImageElement instead of HTMLImageElement | HTMLButtonElement
    • addCombo(): HTMLSelectElement instead of HTMLElement
Commits
  • e16e84b chore(release): prepare version 0.21.0
  • e3d3dfc fix: consistently compute the arcSize for edges and vertices (#884)
  • 32e749a ci: display the date of the release in the release notes (#885)
  • dd72497 refactor: migrate the Stylesheet story to TypeScript (#878)
  • 67320e8 refactor: migrate the Thread story to TypeScript (#877)
  • 7126ad2 chore(deps): bump @​easyops-cn/docusaurus-search-local from 0.51.1 to 0.52.1 (...
  • 5b8dbe1 chore(deps-dev): bump the test group with 2 updates (#883)
  • 1289b7b chore(deps-dev): bump the lint group with 3 updates (#880)
  • 7d25b15 chore(deps-dev): bump @​swc/core from 1.12.14 to 1.13.1 (#881)
  • af6c3be refactor: remove reference to legacy insert cells methods (#876)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@maxgraph/core](https://github.com/maxGraph/maxGraph) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/maxGraph/maxGraph/releases)
- [Changelog](https://github.com/maxGraph/maxGraph/blob/main/CHANGELOG.md)
- [Commits](maxGraph/maxGraph@v0.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: "@maxgraph/core"
  dependency-version: 0.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies javascript Pull requests that update Javascript code labels Jul 24, 2025
@sonarqubecloud
Copy link

Copy link
Member

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️ Tested locally with the artifact built by GH Actions
✔️ All checks pass
✔️ Changelog and release-notes reviewed. Nothing impactful for us.

@dependabot squash and merge

@dependabot dependabot bot merged commit bcd915a into main Jul 24, 2025
18 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/maxgraph/core-0.21.0 branch July 24, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant