build(deps): update langium
to v3
and apply the required changes
#5345
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📑 Summary
By the update
langium
tov3
, it should decrease the parser package size by around 1/3rd of the bundle, see: eclipse-langium/langium#1258 (comment).This PR would be consider as a
BREAKING CHANGE
in themermaid-js/parser
package, because we export the modified interfaces and functions.📏 Design Decisions
Applied the changes description in eclipse-langium/langium#1258 (comment) and https://github.com/eclipse-langium/langium/blob/18a38cedb427d36bb955dd854548e9173955b2f8/packages/langium/CHANGELOG.md#smaller-bundles-with-exports.
📋 Tasks
Make sure you