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

Upgrade everything; explain plan converted to JSON #496

Merged
merged 57 commits into from
Sep 1, 2023
Merged

Upgrade everything; explain plan converted to JSON #496

merged 57 commits into from
Sep 1, 2023

Conversation

benjie
Copy link
Member

@benjie benjie commented Sep 1, 2023

Previously the plan explain was sent as Mermaid; this is now instead sent as JSON and then converted to Mermaid on the client. (This allows us to provide alternative renderers in future.) planToMermaid(plan) from grafast/mermaid enables converting a plan JSON object into a mermaid diagram, this diagram is very close to what was previously generated.

Ruru now loads Mermaid from CDN because it's so big, over time we might migrate away to our own renderer, which would allow better interactivity.

Basically everything has been upgraded. A few things were held back because they require ESM or because they have undeclared breaking changes that I couldn't figure out how to fix.

Withheld:

  • @localrepo/pretter2-for-jest - it's prettier2... for Jest ;)
  • @mdx-js/react - Docusaurus wants v1 currently
  • @mermaid-js/mermaid-cli - v10 is ESM-only
  • chalk - v5 is ESM-only
  • codemirror - GraphiQL uses v5
  • graphql - still using old defer/stream rn
  • mermaid - sticking to v9 as v10 is ESM-only
  • pluralize - don't want to change pluralization, that would be a breaking change

@benjie benjie added this to the V5 RC milestone Sep 1, 2023
@benjie benjie merged commit 3f47a41 into main Sep 1, 2023
24 checks passed
@benjie benjie deleted the upgrades branch September 1, 2023 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant