Packages

@graphql-tools/code-file-loader

9.1.2 · 10 Nov 2026MIT13.2M / weekRepositoryHomepagenpmAtom feed

Your version

7.0.0

major28 Jul 2021Where it was published

7.3.23 is the newest release of 7.x.

In short

2 breaking2 new1 fixed1 internal

  • Breaking

    BREAKING CHANGE

  • Breaking

    Loader.canLoad and Loader.canLoadSync can only handle file paths not glob patterns

Release note

Major Changes

  • Breaking

    BREAKING CHANGE

    • Now each loader handles glob patterns internally and returns an array of Source object instead of single Source

    • GraphQL Tag Pluck now respects code locations and returns graphql-js Source objects for each found code block

    • Thanks to the one above, CodeFileLoader now returns different Source objects for each found SDL code block.

  • Breaking

    Loader.canLoad and Loader.canLoadSync can only handle file paths not glob patterns

Minor Changes

  • Include rawSDL in Source of plucked files

  • Allow supplying config via constructor

Patch Changes

  • enhance(code-file-loader): remove extra work on loader level

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.