Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 3, 2025

Bumps @maxgraph/core from 0.15.1 to 0.16.0.

Release notes

Sourced from @​maxgraph/core's releases.

0.16.0

⚡ This new version enhances internationalization (i18n), improves connector configurations, and prepares for future updates with tree shaking optimizations. ⚡

Resources


Breaking changes

[!NOTE] Some changes are introduced to prepare for tree shaking improvements as part of [issue #665](maxGraph/maxGraph#665).

  • Private utility functions:
    The functions utils.isNullish and utils.isNotNullish are now marked as private. They were mistakenly made public and have always been intended for internal use.

  • Removed utility functions:
    Several utility functions, originally designed for internal use to retrieve default values for CellStateStyle and CellStyle, have been removed:

    • utils.getValue
    • stringUtils.getColor
    • stringUtils.getNumber
    • stringUtils.getStringValue

    You should now use the nullish coalescing operator (??) and Optional chaining (?.) instead.

  • Removed Client.isBrowserSupported:
    The Client.isBrowserSupported method has been removed. It was not correctly validating all the prerequisites for determining whether the browser supports maxGraph. This method is now deprecated with no direct replacement.

  • Moved Client.VERSION to constants.VERSION:
    The VERSION constant, previously stored in Client, is now stored in the constants module to ensure its immutability, as it represents the actual version of maxGraph.

  • Relocated Translations configuration:
    Configuration elements for translations have been moved from Client to TranslationsConfig. The following properties have been migrated:

    • Client.defaultLanguageTranslationsConfig.getDefaultLanguage
    • Client.setDefaultLanguageTranslationsConfig.setDefaultLanguage
    • Client.languageTranslationsConfig.getLanguage
    • Client.setLanguageTranslationsConfig.setLanguage
    • Client.languagesTranslationsConfig.getLanguages
    • Client.setLanguagesTranslationsConfig.setLanguages
  • Connector Configuration changes:

... (truncated)

Changelog

Sourced from @​maxgraph/core's changelog.

0.16.0

Release date: 2025-03-02

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

This new version enhances internationalization (i18n), improves connector configurations, and prepares for future updates with tree shaking optimizations.

Breaking Changes:

  • The utils.isNullish and utils.isNotNullish functions are now marked as private. They had been made public by mistake, and had been considered internal since their introduction.
  • Some utility functions formerly used to retrieve default values for CellStateStyle and CellStyle properties, which were intended only for internal use, have been removed.
  • Client.isBrowserSupported has been removed. It didn't correctly validate all prerequisites required to know if the browser supports maxGraph. So, remove it without replacement.
  • Client.VERSION moved to constants.VERSION.
    • VERSION is supposed to be immutable as it represents the actual version of maxGraph.
    • When it was stored in Client, it was a static property that could be modified.
    • Moving it to the constants module ensures that it cannot be modified.
  • All elements that were in Client to manage the configuration of Translations have moved to TranslationsConfig:
    • Client.defaultLanguage to TranslationsConfig.getDefaultLanguage
    • Client.setDefaultLanguage to TranslationsConfig.setDefaultLanguage
    • Client.language to TranslationsConfig.getLanguage
    • Client.setLanguage to TranslationsConfig.setLanguage
    • Client.languages to TranslationsConfig.getLanguages
    • Client.setLanguages to TranslationsConfig.setLanguages
  • ManhattanConnector is now configured with the global ManhattanConnectorConfig object. The following properties that were previously on EdgeStyle have moved to ManhattanConnectorConfig:
    • MANHATTAN_END_DIRECTIONS to endDirections
    • MANHATTAN_MAX_ALLOWED_DIRECTION_CHANGE to maxAllowedDirectionChange
    • MANHATTAN_MAXIMUM_LOOPS to maxLoops
    • MANHATTAN_START_DIRECTIONS to startDirections
    • MANHATTAN_STEP to step
  • OrthConnector is now configured with the global OrthogonalConnectorConfig object. The following properties that were previously on EdgeStyle have moved to OrthogonalConnectorConfig:
    • orthBuffer to buffer
    • orthPointsFallback to pointsFallback
  • properties and utility methods previously exposed by EdgeStyle are now only internal.
    • The getRoutePattern method has been completely removed as it was not being used.
    • Nor was it used in the entire mxGraph and draw.io codebase.
Commits
  • 18755d6 chore(release): prepare version 0.16.0
  • 9af9df2 fix: Graph.isValidAncestor manages null Cell parameter (#699)
  • c0b8436 feat: allow to use custom shape for overlays (#696)
  • 890bff4 refactor: use external CSS file MenuStyle and ShowRegion stories (#698)
  • 82feca0 chore(deps-dev): bump vite from 6.0.7 to 6.2.0 (#697)
  • 0182e55 refactor: reset more global configurations in stories (#646)
  • d21b348 refactor: do not redeclare ImageShape properties already in Shape (#694)
  • 1f415db feat!: introduce TranslationsConfig (#691)
  • 5f10dd2 feat: provide i18n resources for French and Spanish (#690)
  • c599c38 chore(deps-dev): bump prettier from 3.5.1 to 3.5.2 (#692)
  • 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.15.1 to 0.16.0.
- [Release notes](https://github.com/maxGraph/maxGraph/releases)
- [Changelog](https://github.com/maxGraph/maxGraph/blob/main/CHANGELOG.md)
- [Commits](maxGraph/maxGraph@v0.15.1...v0.16.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies javascript Pull requests that update Javascript code labels Mar 3, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2025

@tbouffard
Copy link
Member

@dependabot squash and merge

@dependabot dependabot bot merged commit a519f85 into main Mar 3, 2025
18 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/maxgraph/core-0.16.0 branch March 3, 2025 06:12
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