@graphql-tools/import
8.0.9 · 10 Nov 2026MIT13.6M / weekRepositoryHomepagenpmAtom feed
Upgrading @graphql-tools/import From 7.0.11 to 8.0.9
45 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
8.0.7 – 8.0.93 releases, nothing new or fixed in the notes
- Fixed
processImportkeeps the AST nodes collected from#importinstead of printing every definition to SDL and parsing that string again.
- Fixed
7.2.1 – 8.0.510 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
48 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.