@graphql-tools/import
8.0.9 · 10 Nov 2026MIT13.6M / weekRepositoryHomepagenpmAtom feed
Upgrading @graphql-tools/import From 7.0.17 to 7.2.4
29 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
7.2.1 – 7.2.44 releases, nothing new or fixed in the notes
- New
# importpaths may use arequire:prefix, resolved with Node'srequire.resolvefrom the importing file. Example:# import Post from "require:blog-graphql-types/schema.graphql"or# import A from "require:./a.graphql". - Fixed
# import "./file.graphql"(space after#) is a valid default import, and#importis processed even when it is not the first non-blank line of the file. - Fixed
Keep leading GraphQL comments (for example
# eslint-disable-next-lineabove a query) when#importmerges documents. PreviouslyprocessImportreprinted definitions and dropped those comments from the merged source. - Fixed
# import *keeps unreferenced types that carry a federation@key(subgraph entities). Other unused types are still tree-shaken, matching existingimport *tests. - Fixed
Named
# importof a type no longer drops interfaces implemented by union members.
- New
- New
import: Remove redundant work in
addDefinition's dependency traversal - New
import: Memoize
printper node when assembling imported definitions
- New
7.1.4 – 7.1.1815 releases, nothing new or fixed in the notes
- New
Add import support for federation v2.10 features
- New
7.1.2nothing new or fixed in the note
- Fixed
Fix support for absolute path aliases in GraphQL imports
- Fixed
Enhance GraphQL schema import error debugging with source locations
- Fixed
- New
GraphQL schemas in large projects, especially monorepos, suffer from fragile and verbose relative import paths that become difficult to maintain as projects grow. This change brings TypeScript's popular
tsconfig.json#pathsaliasing syntax to GraphQL imports, enabling clean, maintainable import statements across your GraphQL schema files.
- New
33 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.