# What changed in @graphql-codegen/typed-document-node

> 3 changes in @graphql-codegen/typed-document-node 7 from its official release notes, upgrade guides and advisories: 1 new APIs and options. Each one cited. Sources checked 2026-10-21. HTML: https://unstale.sh/npm/@graphql-codegen/typed-document-node/

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

## @graphql-codegen/typed-document-node 7

### New APIs and options

- Adds plainString mode, generating documents as plain template strings with embedded fragments; documents are typed as string without a class, import, or type cast. (7.2.0) — [release notes](https://github.com/dotansimha/graphql-code-generator/blob/b7fbd368d603389bb15b1b8424a3a2b531753695/packages/plugins/typescript/typed-document-node/CHANGELOG.md#720)

### Fixes and other changes

- Does not add an empty import when documentNodeImport has no module. (7.1.1) — [release notes](https://github.com/dotansimha/graphql-code-generator/blob/b7fbd368d603389bb15b1b8424a3a2b531753695/packages/plugins/typescript/typed-document-node/CHANGELOG.md#711)
- When the plugin is called directly with a document lacking a document AST, it skips that document instead of throwing from concatAST. (7.1.1) — [release notes](https://github.com/dotansimha/graphql-code-generator/blob/b7fbd368d603389bb15b1b8424a3a2b531753695/packages/plugins/typescript/typed-document-node/CHANGELOG.md#711)
