Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update langium to v3 and apply the required changes #5345

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

Yokozuna59
Copy link
Member

📑 Summary

By the update langium to v3, 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 the mermaid-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.

replace the calls of createDefault[Shared]Module by createDefault[Shared]CoreModule, and adapt the imports accordingly. That's basically it wrt. to this PR.

📋 Tasks

Make sure you

@Yokozuna59 Yokozuna59 added the Breaking Change Breaking change label Feb 29, 2024
Copy link

netlify bot commented Feb 29, 2024

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit 171a201
🔍 Latest deploy log https://app.netlify.com/sites/mermaid-js/deploys/65e17b302f8773000859ad6a
😎 Deploy Preview https://deploy-preview-5345--mermaid-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.67%. Comparing base (70df6bb) to head (171a201).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             next    #5345   +/-   ##
=======================================
  Coverage   44.67%   44.67%           
=======================================
  Files          25       25           
  Lines        5339     5339           
  Branches       27       27           
=======================================
  Hits         2385     2385           
  Misses       2953     2953           
  Partials        1        1           
Flag Coverage Δ
unit 44.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

* next: (100 commits)
  Resolves E2E testing issues and issue mermaid-js#5343
  Fix spelling
  Fix community integrations
  Fix docs
  docs: Fix config
  Update all minor dependencies
  Amend docs to document gitgraph parallel commits
  Fix lint
  Use Yarn Add COREPACK_ENABLE_STRICT
  Added link to Blazorade Mermaid to the community integrations page.
  Bump node version
  Add lcov to cspell
  Correcting path to docker-entrypoint.sh
  Update recommended Vitest extension
  Replace mermaid-js.github.io links
  Replace links to docs with links to webhelp
  Link to contributing page on webhelp
  Changes to timeline.md 1. Added colons to all 'NOTES' for consistency.
  Changes to timeline.md 1. Updates the Wikipedia citation to include a link. 2. Removed periods from documentation sections to be consistent (some had periods, some didn't) 3. Added a space to a coding example for spacing consistency.
  Replace version number placeholder
  ...
@sidharthv96
Copy link
Member

next

-rw-r--r--@ 1 sidv  staff   5.8M Mar  1 12:24 dist/mermaid.js
-rw-r--r--@ 1 sidv  staff   2.5M Mar  1 12:24 dist/mermaid.min.js
image

v3

-rw-r--r--@ 1 sidv  staff   5.2M Mar  1 12:23 dist/mermaid.js
-rw-r--r--@ 1 sidv  staff   2.2M Mar  1 12:23 dist/mermaid.min.js
image

@sidharthv96 sidharthv96 merged commit 70d2362 into mermaid-js:next Mar 1, 2024
16 of 17 checks passed
@Yokozuna59 Yokozuna59 deleted the update-langium-to-v3 branch March 1, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Change Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants