refactor!: remove unused domUtils.importNodeImplementation by tbouffard · Pull Request #648 · maxGraph/maxGraph · GitHub
Skip to content

refactor!: remove unused domUtils.importNodeImplementation#648

Merged
tbouffard merged 2 commits into
mainfrom
refactor/remove_unused_domUtils_importNodeImplementation
Jan 28, 2025
Merged

refactor!: remove unused domUtils.importNodeImplementation#648
tbouffard merged 2 commits into
mainfrom
refactor/remove_unused_domUtils_importNodeImplementation

Conversation

@tbouffard

@tbouffard tbouffard commented Jan 27, 2025

Copy link
Copy Markdown
Member

In mxGraph, it was only used at a single place to "support older versions of IE".
https://github.com/jgraph/mxgraph/blob/ff141aab158417bd866e2dfebd06c61d40773cd2/javascript/src/js/util/mxSvgCanvas2D.js#L1270

BREAKING CHANGES: this function has been removed because it was unused.
It was only used internally in mxGraph and should not have been exposed.

Summary by CodeRabbit

  • Refactor
    • Removed unused importNodeImplementation function for clarity.
    • Replaced EdgeHandler properties with more descriptive global configurations.
    • Simplified node importing logic by using the native importNode method.

In mxGraph, it was only used at a single place to "support older versions of IE".
https://github.com/jgraph/mxgraph/blob/ff141aab158417bd866e2dfebd06c61d40773cd2/javascript/src/js/util/mxSvgCanvas2D.js#L1270

BREAKING CHANGES: this function has been removed because it was unused.
It was only used internally in `mxGraph` and should not have been exposed.
@tbouffard tbouffard added the refactor Code refactoring label Jan 27, 2025
@coderabbitai

coderabbitai Bot commented Jan 27, 2025

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
CHANGELOG.md (1)

19-19: Enhance the changelog entry with more details.

The breaking change entry should follow the same format as other entries and provide more context for users. Consider the following improvements:

-- `domUtils.importNodeImplementation` has been removed because it was unused. It was only used internally in `mxGraph` and should not have been exposed.
+- `domUtils.importNodeImplementation` has been removed:
+  - This function was only used internally in `mxGraph` to support older versions of IE
+  - It was not intended to be part of the public API
+  - No migration steps are needed as the function was unused
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c116f70 and d0e9352.

📒 Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • packages/core/src/util/domUtils.ts (0 hunks)
💤 Files with no reviewable changes (1)
  • packages/core/src/util/domUtils.ts
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build (windows-2022)

@sonarqubecloud

Copy link
Copy Markdown

@tbouffard tbouffard merged commit b0a40dd into main Jan 28, 2025
@tbouffard tbouffard deleted the refactor/remove_unused_domUtils_importNodeImplementation branch January 28, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant