npm / codemirror-graphql
codemirror-graphql
What changed in codemirror-graphql 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
5 breaking1 new APIs and options1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcodemirror-graphql 26 changes
Breaking changes 4
Published JavaScript now uses ES6 syntax; directly loading it in a strictly ES5-only environment without transpilation is no longer supported.
Argument hover information no longer includes the type and field;
MyType.myField(myArg: MyArgType)is displayed asmyArg: MyArgType.Field hover information no longer includes the type prefix;
MyType.myFieldis displayed asmyField.The info tooltip DOM structure changed, adding div wrappers around the first section and deprecation-reason markdown to enable more flexible styling.
New APIs and options 1
Enables opt-in GraphQL 17 fragment argument syntax support across parsing, validation, type information, autocomplete, hover, and editor integrations; defaults to false.
Fixes and other changes 1
Variable autocomplete now respects operation and fragment scope while including variables from operations that spread the current fragment.
codemirror-graphql 11 changes
Breaking changes 1
The project migrated to TypeScript; the notes mark this as a breaking change.