Packages

@graphql-tools/import

8.0.9 · 10 Nov 2026MIT13.6M / weekRepositoryHomepagenpmAtom feed

Upgrading @graphql-tools/import From 6.7.9 to 8.0.9

66 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 6.7.9Newest 6.x6.7.18
  1. 6.7.9yours
  2. 9 releases
  3. 7.0.0major
  4. 46 releases
  5. 8.0.0major
  6. 8 releases
  7. 8.0.9target
  8. 331 pre

Before you upgrade

Tick each one off as you go
  • Breaking7.0.0

Release by release

  1. 8.0.7 – 8.0.93 releases, nothing new or fixed in the notes

  2. 8.0.6

    22 Oct 20261 fix
    • Fixed

      processImport keeps the AST nodes collected from #import instead of printing every definition to SDL and parsing that string again.

  3. 7.2.1 – 8.0.510 releases, nothing new or fixed in the notes

  4. 7.2.0

    7 Sep 20261 new · 4 fixes
    • New

      # import paths may use a require: prefix, resolved with Node's require.resolve from 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 #import is processed even when it is not the first non-blank line of the file.

    • Fixed

      Keep leading GraphQL comments (for example # eslint-disable-next-line above a query) when #import merges documents. Previously processImport reprinted 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 existing import * tests.

    • Fixed

      Named # import of a type no longer drops interfaces implemented by union members.

  5. 7.1.19

    12 Aug 20262 new
    • New

      import: Remove redundant work in addDefinition's dependency traversal

    • New

      import: Memoize print per node when assembling imported definitions

  6. 7.1.4 – 7.1.1815 releases, nothing new or fixed in the notes

  7. 7.1.3

    30 Oct 20251 new
    • New

      Add import support for federation v2.10 features

  8. 7.1.2nothing new or fixed in the note

70 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.