# What changed in codemirror-graphql

> 7 changes in codemirror-graphql 1 to 2 from its official release notes, upgrade guides and advisories: 5 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/codemirror-graphql/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## codemirror-graphql 2

### Breaking changes

- Published JavaScript now uses ES6 syntax; directly loading it in a strictly ES5-only environment without transpilation is no longer supported. (2.2.6) — [release notes](https://github.com/graphql/graphiql/releases/tag/codemirror-graphql%402.2.6)
- Argument hover information no longer includes the type and field; `MyType.myField(myArg: MyArgType)` is displayed as `myArg: MyArgType`. (2.0.0) — [release notes](https://github.com/graphql/graphiql/releases/tag/codemirror-graphql%402.0.0)
- Field hover information no longer includes the type prefix; `MyType.myField` is displayed as `myField`. (2.0.0) — [release notes](https://github.com/graphql/graphiql/releases/tag/codemirror-graphql%402.0.0)
- The info tooltip DOM structure changed, adding div wrappers around the first section and deprecation-reason markdown to enable more flexible styling. (2.0.0) — [release notes](https://github.com/graphql/graphiql/releases/tag/codemirror-graphql%402.0.0)

### New APIs and options

- Enables opt-in GraphQL 17 fragment argument syntax support across parsing, validation, type information, autocomplete, hover, and editor integrations; defaults to false. (2.2.9) — [release notes](https://github.com/graphql/graphiql/releases/tag/codemirror-graphql%402.2.9)

### Fixes and other changes

- Variable autocomplete now respects operation and fragment scope while including variables from operations that spread the current fragment. (2.2.9) — [release notes](https://github.com/graphql/graphiql/releases/tag/codemirror-graphql%402.2.9)

## codemirror-graphql 1

### Breaking changes

- The project migrated to TypeScript; the notes mark this as a breaking change. (1.0.0) — [release notes](https://github.com/graphql/graphiql/releases/tag/codemirror-graphql%401.0.0)
