refactor!: remove `Dictionary` and use `Map` instead by tbouffard · Pull Request #857 · maxGraph/maxGraph

@tbouffard

The `Dictionary` class had been introduced by mxGraph for browser without `Map` object support.
The `Map` class is available in the ECMAScript version supported by maxGraph, so we can remove it.

In the examples in this repository, the package size decreases by 0.7kB.

BREAKING CHANGES: The `Dictionary` class has been removed. Use the `Map` class instead, which is a standard JavaScript feature.

coderabbitai[bot]

coderabbitai bot added a commit that referenced this pull request

Jun 26, 2025
Docstrings generation was requested by @tbouffard.

* #857 (comment)

The following files were modified:

* `packages/core/src/util/treeTraversal.ts`

@tbouffard tbouffard changed the title refactor!: remove Dictionary and use ECMAScript Map instead refactor!: remove Dictionary and use Map instead

Jun 26, 2025

@tbouffard tbouffard deleted the refactor/remove_dictionary branch

June 27, 2025 07:22