Release type: patch
Fix GraphiQL IDE rendering issues introduced in v3.0.0:
- Fix Flask views using Jinja2's
render_template_stringwhich HTML-escaped JSON values (e.g.,"instead of"), breaking the GraphiQL JavaScript configuration. Both sync and async Flask views now useto_template_string()with the framework-agnosticsimple_renderer. - Fix
operationNamenot being passed to the GraphiQL template due to a variable naming mismatch (operationNamevsoperation_name) in the sync Flask view. - Restore the
locationQueryJavaScript function that was accidentally removed, which caused aReferenceErrorwhen editing queries, variables, or headers in the GraphiQL IDE. - Escape
<and>as\u003cand\u003eintojson()to prevent queries containing</script>from breaking the GraphiQL page by prematurely closing the script tag. - Add CodeMirror 5 fold gutter CSS to fix missing/broken fold markers in the GraphiQL editor.