graphile / crystal-pre-merge

Repository moved
https://github.com/graphile/crystal
39 stars 10 forks source link

Upgrade everything; explain plan converted to JSON #496

Closed benjie closed 10 months ago

benjie commented 10 months ago

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: