@graphql-tools/import@7.2.0
Minor Changes
- #8383
04e8159Thanks @ardatan! -# 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".
Patch Changes
-
#8383
04e8159Thanks @ardatan! -# 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. -
#8383
04e8159Thanks @ardatan! - 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. -
#8383
04e8159Thanks @ardatan! -# import *keeps unreferenced types that carry a federation@key(subgraph entities). Other unused types are still tree-shaken, matching existingimport *tests. -
#8383
04e8159Thanks @ardatan! - Named# importof a type no longer drops interfaces implemented by union members.Before this, a file like:
# import Foo from "./types.graphql" type Query { foo: Foo }
with
types.graphqlcontainingtype Foo { pet: Pet },union Pet = Cat | Dog, andtype Cat implements Animalbuilt an invalid schema (Unknown type "Animal").CatandDogwere pulled in through the union, butAnimalwas not.Forward dependencies (fields,
implements, union members) are now closed transitively. Reverse implementers are still attached only when the interface itself is the import, so# import Query.postsdoes not pull every otherQueryfield. -
Updated dependencies [
60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/utils@12.0.1
@graphql-tools/documents@1.0.2
Patch Changes
- #8364
7315425Thanks @copilot-swe-agent! - Droplodash.sortbyfrom@graphql-tools/documentsby replacing internal sorting usage with nativeArray.prototype.sort.
@graphql-tools/executor@2.0.1
Patch Changes
@graphql-tools/executor-apollo-link@2.0.14
Patch Changes
@graphql-tools/executor-envelop@4.0.14
Patch Changes
@graphql-tools/executor-legacy-ws@1.1.34
Patch Changes
@graphql-tools/executor-urql-exchange@1.0.36
Patch Changes
@graphql-tools/executor-yoga@3.0.44
Patch Changes
- Updated dependencies [
60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/utils@12.0.1
- @graphql-tools/executor-envelop@4.0.14
@graphql-tools/graphql-tag-pluck@8.3.37
Patch Changes
-
#8370
1c1c5a0Thanks @ardatan! - dependencies updates:- Removed dependency
@babel/plugin-syntax-import-assertions@^7.26.0↗︎ (fromdependencies)
- Removed dependency
-
#8370
1c1c5a0Thanks @ardatan! - Parse with BabelimportAttributes(anddeprecatedAssertSyntaxso existingassert { … }files still work), and drop the unused@babel/plugin-syntax-import-assertionsdependency. Fixes #5454. -
Updated dependencies [
60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/utils@12.0.1
graphql-tools@9.0.35
Patch Changes
- Updated dependencies []:
- @graphql-tools/schema@10.1.1
@graphql-tools/jest-transform@2.0.2
Patch Changes
- Updated dependencies [
04e8159]:- @graphql-tools/webpack-loader@7.0.1
@graphql-tools/links@10.0.14
Patch Changes
@graphql-tools/load@8.1.17
Patch Changes
-
#6660
12df2f5Thanks @eirikur-nc! - Load custom schema/document loaders withimport()aftercreateRequire, so ESM loader files and packages work with asyncload(including graphql-codegen). Closes #6656. -
#8370
1c1c5a0Thanks @ardatan! - Always include "Failed to find any GraphQL type definitions" context when loaders error, even if there is only one error. Fixes #7406. -
Updated dependencies [
60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/utils@12.0.1
- @graphql-tools/schema@10.1.1
@graphql-tools/apollo-engine-loader@8.0.36
Patch Changes
@graphql-tools/code-file-loader@8.1.38
Patch Changes
- Updated dependencies [
1c1c5a0,1c1c5a0,60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/graphql-tag-pluck@8.3.37
- @graphql-tools/utils@12.0.1
@graphql-tools/git-loader@8.0.42
Patch Changes
- #8370
1c1c5a0Thanks @ardatan! - Parsegit ls-treeoutput with LF-safe line splitting and normalize paths soresolveGlobsmatches correctly on Windows. Fixes #5243. - Updated dependencies [
1c1c5a0,1c1c5a0,60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/graphql-tag-pluck@8.3.37
- @graphql-tools/utils@12.0.1
@graphql-tools/github-loader@9.1.8
Patch Changes
- Updated dependencies [
1c1c5a0,1c1c5a0,60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/graphql-tag-pluck@8.3.37
- @graphql-tools/utils@12.0.1
@graphql-tools/graphql-file-loader@8.1.20
Patch Changes
- #8383
04e8159Thanks @ardatan! -# 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. - Updated dependencies [
04e8159,04e8159,04e8159,04e8159,04e8159,60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/import@7.2.0
- @graphql-tools/utils@12.0.1
@graphql-tools/json-file-loader@8.0.34
Patch Changes
@graphql-tools/module-loader@8.0.34
Patch Changes
@graphql-tools/url-loader@9.1.8
Patch Changes
- Updated dependencies [
60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/utils@12.0.1
- @graphql-tools/executor-legacy-ws@1.1.34
@graphql-tools/merge@9.2.4
Patch Changes
-
#8367
2262087Thanks @ardatan! - Preserve multiple applications of the same directive when extending a type even if the repeatable directive definition is not present in the merge inputs. -
#8394
5523c4bThanks @bengry! - Write the synthesized default operation types back onto the schema definition node, so merging aschemaextension that has no operation block (federation SDL, for example) still produces a query root ongraphql@17. -
Updated dependencies [
60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/utils@12.0.1
@graphql-tools/mock@9.1.14
Patch Changes
- #8366
57e316dThanks @ardatan! - PassresolverValidationOptionsthrough fromaddMocksToSchematoaddResolversToSchema. - Updated dependencies [
60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/utils@12.0.1
- @graphql-tools/schema@10.1.1
@graphql-tools/node-require@7.0.46
Patch Changes
- Updated dependencies [
04e8159,12df2f5,1c1c5a0,60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/graphql-file-loader@8.1.20
- @graphql-tools/load@8.1.17
- @graphql-tools/utils@12.0.1
@graphql-tools/optimize@2.0.1
Patch Changes
- #8366
57e316dThanks @ardatan! - Remove descriptions from operation, variable, fragment, schema definition, and schema extension nodes inremoveDescriptions.
@graphql-tools/relay-operation-optimizer@7.1.10
Patch Changes
@graphql-tools/resolvers-composition@7.0.37
Patch Changes
@graphql-tools/schema@10.1.1
Patch Changes
- Updated dependencies [
2262087,5523c4b,60db079,57e316d,1c1c5a0,1c1c5a0,0b9529f]:- @graphql-tools/merge@9.2.4
- @graphql-tools/utils@12.0.1
@graphql-tools/utils@12.0.1
Patch Changes
-
#8368
60db079Thanks @ardatan! - Omit mutation/subscription fromprintSchemaWithDirectiveswhen those root types are no longer present on the schema (e.g. afterpruneSchema). -
#8366
57e316dThanks @ardatan! - Allow%in paths checked byisValidPath(e.g. directories from URL-encoded repo names). -
#8370
1c1c5a0Thanks @ardatan! - Clean upobservableToAsyncIterablequeues and unsubscribe when the observable completes, so iterators do not retain references afterdone. Fixes leak detection flakes related to #8057. -
#8370
1c1c5a0Thanks @ardatan! - Prefer runtimedescriptionvalues over staleastNodedescriptions inprintSchemaWithDirectives/getDescriptionNode. Fixes #5508. -
#8423
0b9529fThanks @enisdenjo! - Fix prototype pollution inmergeDeepSource keys named
__proto__,constructororprototypeare now skipped at every recursion level, and the check for an existing key useshasOwnPropertyinstead ofin, so inherited properties are never used as merge targets.Previously, merging untrusted data such as
JSON.parse('{"constructor":{"__proto__":{"call":"x"}}}')could reach and overwrite properties onObject.prototypeorFunction.prototype.
@graphql-tools/webpack-loader@7.0.1
Patch Changes
- #8383
04e8159Thanks @ardatan! - WithesModule: true,#importof another.graphqlfile now usesrequire(...).default, matching the loader'sexport default.unique()also treats a missingdefinitionsarray as empty so unused imports do not throw. - Updated dependencies [
57e316d,04e8159]:- @graphql-tools/optimize@2.0.1
- @graphql-tools/webpack-loader-runtime@7.0.1