fix(deps): update dependency graphql-tools to v7#96
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
fix(deps): update dependency graphql-tools to v7#96renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
1a0d9b7 to
7d9b360
Compare
87be7d5 to
99957c4
Compare
99957c4 to
be1f9fd
Compare
107df14 to
6647db1
Compare
ad20978 to
a7c66b7
Compare
a7c66b7 to
bb90d58
Compare
bb90d58 to
a899dbb
Compare
a899dbb to
ff71106
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.0.0->7.0.1Release Notes
ardatan/graphql-tools
v7.0.1Compare Source
Patch Changes
v7.0.0Compare Source
Major Changes
a925449: - Resolver validation options should now be set toerror,warnorignorerather thantrueorfalse. In previous versions, some of the validators caused errors to be thrown, while some issued warnings. This changes brings consistency to validator behavior.The
allowResolversNotInSchemahas been renamed torequireResolversToMatchSchema, to harmonize the naming convention of all the validators. The default setting ofrequireResolversToMatchSchemaiserror, matching the previous behavior.The
delegateToSchemareturn value has matured and been formalized as anExternalObject, in which all errors are integrated into the GraphQL response, preserving their initial path. Those advanced users accessing the result directly will note the change in error handling. This also allows for the deprecation of unnecessary helper functions includingslicedError,getErrors,getErrorsByPathSegmentfunctions. Only external errors with missing or invalid paths must still be preserved by annotating the remote object with special properties. The newgetUnpathedErrorsfunction is therefore necessary for retrieving only these errors. Note also the newannotateExternalObjectandmergeExternalObjectsfunctions, as well as the renaming ofhandleResulttoresolveExternalValue.Transform types and the
applySchemaTransformsare now relocated to thedelegatepackage;applyRequestTransforms/applyResultTransformsfunctions have been deprecated, however, as this functionality has been replaced since v6 by theTransformerabstraction.The
transformRequest/transformResultmethods are now provided additionaldelegationContextandtransformationContextarguments -- these were introduced in v6, but previously optional.The
transformSchemamethod may wish to create additional delegating resolvers and so it is now provided thesubschemaConfigand final (non-executable)transformedSchemaparameters. As in v6, thetransformSchemais kicked off once to produce the non-executable version, and then, if a wrapping schema is being generated, proxying resolvers are created with access to the (non-executabel) initial result. In v7, the individualtransformSchemamethods also get access to the result of the first run, if necessary, they can create additional wrapping schema proxying resolvers.applySchemaTransformsparameters have been updated to match and support thetransformSchemaparameters above.wrapSchemaandgenerateProxyingResolversnow only take a single options argument with named properties of typeSubschemaConfig. The previously possible shorthand version with first argument consisting of aGraphQLSchemaand second argument representing the transforms should be reworked as aSubschemaConfigobject.Similarly, the
ICreateProxyingResolverOptionsinterface that provides the options for thecreateProxyingResolverproperty ofSubschemaConfigoptions has been adjusted. Theschemaproperty previously could be set to aGraphQLSchemaor aSubschemaConfigobject. This property has been removed in favor of asubschemaConfigproperty that will always be aSubschemaConfigobject. Thetransformsproperty has been removed; transforms should be included within theSubschemaConfigobject.`The format of the wrapping schema has solidified. All non-root fields are expected to use identical resolvers, either
defaultMergedResolveror a custom equivalent, with root fields doing the hard work of proxying. Support for custom merged resolvers throughtcreateMergedResolverhas been deprecated, as custom merging resolvers conflicts when using stitching's type merging, where resolvers are expected to be identical across subschemas.The
WrapFieldstransform'swrappingResolveroption has been removed, as this complicates multiple wrapping layers, as well as planned functionality to wrap subscription root fields in potentially multiple layers, as the wrapping resolvers may be different in different layers. Modifying resolvers can still be performed by use of an additional transform such asTransformRootFieldsorTransformObjectFields.The
ExtendSchematransform has been removed, as it is conceptually simpler just to usestitchSchemaswith one subschema.The
ReplaceFieldsWithFragment,AddFragmentsByField,AddSelectionSetsByField, andAddMergedTypeSelectionSetstransforms has been removed, as they are superseded by theAddSelectionSetsandVisitSelectionSetstransforms. TheAddSelectionSetspurposely takes parsed SDL rather than strings, to nudge end users to parse these strings at build time (when possible), rather than at runtime. Parsing of selection set strings can be performed using theparseSelectionSetfunction from@graphql-tools/utils.stitchSchemas'smergeTypesoption is now true by default! This causes theonTypeConflictoption to be ignored by default. To useonTypeConflictto select a specific type instead of simply merging, simply setmergeTypesto false.schemasargument has been deprecated, usesubschemas,typeDefs, ortypes, depending on what you are stitching.When using batch delegation in type merging, the
argsFromKeysfunction is now set only via theargsFromKeysproperty. Previously, ifargsFromKeyswas absent, it could be read fromargs.Support for fragment hints has been removed in favor of selection set hints.
stitchSchemasnow processes allGraphQLSchemaandSubschemaConfigsubschema input into newSubschemaobjects, handling schema config directives such aso@computedas well as generating the final transformed schema, stored as thetransformedSchemaproperty, if transforms are used. Signatures of theonTypeConflict,fieldConfigMerger, andinputFieldConfigMergerhave been updated to include metadata related to the original and transformed subschemas. Note the property name change foronTypeConflictfromschematosubschema.Mocks returning objects with fields set as functions are now operating according to upstream graphql-js convention, i.e. these functions take three arguments,
args,context, andinfowithparentavailable asthisrather than as the first argument.filterSchema'sfieldFilterwill now filter all fields across Object, Interface, and Input types. For the previous Object-only behavior, switch to theobjectFieldFilteroption.Unused
fieldNodesutility functions have been removed.Unused
typeContainsSelectionSetfunction has been removed, andtypesContainSelectionSethas been moved to thestitchpackage.Unnecessary
Operationtype has been removed in favor ofOperationTypeNodefrom upstream graphql-js.As above,
applySchemaTransforms/applyRequestTransforms/applyResultTransformshave been removed from theutilspackage, as they are implemented elsewhere or no longer necessary.Patch Changes
v6.2.6Compare Source
Patch Changes
96a7555: Fix releaseLast PATCH release actually transitively updated graphql-tools and @graphql-tools/delegate to use latest MAJOR version of dependencies.
Updated dependencies [96a7555d]
v6.2.5Compare Source
Patch Changes
v6.2.4Compare Source
Patch Changes
32c3c4f: Fix duplication of scalar directives in merge533d6d5: Bump all packages to allow adjustmentsv6.2.3Compare Source
🚀 Features
v6.2.2Compare Source
🐛 Bug Fixes
v6.2.1Compare Source
🐛 Bug Fixes
v6.2.0Compare Source
🐛 Bug Fixes
v6.1.0Compare Source
🐛 Bug Fixes
v6.0.18Compare Source
parseto support converting comments into descriptions @dotansimha (#1900)v6.0.17Compare Source
🐛 Bug Fixes
instanceof Promiseto useis-promiselibrary @cajames (#1837)v6.0.16Compare Source
🧰 Enhancements
🐛 Bug Fixes
v6.0.15Compare Source
graphql-tag/loader(more customizable, much smaller output, bundle size improvements) @kamilkisiela (#1815)🧰 Enhancements
🐛 Bug Fixes
v6.0.14Compare Source
🧰 Enhancements
🐛 Bug Fixes
v6.0.13Compare Source
🧰 Enhancements
🐛 Bug Fixes
v6.0.12Compare Source
v6.0.11Compare Source
🐛 Bug Fixes
mergeDirectives@rufman (#1671)v6.0.10Compare Source
🐛 Bug Fixes
v6.0.9Compare Source
v6.0.8Compare Source
UrlLoader.v6.0.7Compare Source
skipGraphQLImport's behaviorv6.0.6Compare Source
generateProxyingResolversto public API for v6.0.0 (#1570) - Thanks @marcammann !v6.0.5Compare Source
v6.0.4Compare Source
v6.0.3Compare Source
@graphql-tools/url-loaderto fetch queries using HTTP GET Urigo/graphql-mesh#478v6.0.2Compare Source
@graphql-tools/url-loaderandintrospectSchemadotansimha/graphql-code-generator#4098loadFilespath resolving issue in@graphql-tools/load-files(#1542)@graphql-tools/url-loaderv6.0.1Compare Source
graphql-toolsnpm package (#1524)v6.0.0Compare Source
You can learn more about changes by checking out our:
New Monorepo Structure
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.