-
-
Notifications
You must be signed in to change notification settings - Fork 818
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle glob in loaders and return Source[] instead of Source (#3157)
* Handle glob in loaders and return Source[] instead of Source * Fix TS * include rawSDL in Source of plucked files (#3161) Co-authored-by: Laurin Quast <laurinquast@googlemail.com>
- Loading branch information
Showing
31 changed files
with
414 additions
and
576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
'@graphql-tools/load': major | ||
'@graphql-tools/apollo-engine-loader': major | ||
'@graphql-tools/code-file-loader': major | ||
'@graphql-tools/git-loader': major | ||
'@graphql-tools/github-loader': major | ||
'@graphql-tools/graphql-file-loader': major | ||
'@graphql-tools/json-file-loader': major | ||
'@graphql-tools/module-loader': major | ||
'@graphql-tools/url-loader': major | ||
'@graphql-tools/utils': major | ||
--- | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@graphql-tools/code-file-loader': minor | ||
--- | ||
|
||
include rawSDL in Source of plucked files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.