github ardatan/graphql-tools @graphql-tools/stitch@8.0.0

latest releases: release-1731509960802, graphql-tools@9.0.3, @graphql-tools/wrap@10.0.16...
3 years ago

Major Changes

  • 7d3e300: BREAKING CHANGE

  • dae6dc7: refactor: ExecutionParams type replaced by Request type

    rootValue property is now a part of the Request type.

    When delegating with delegateToSchema, rootValue can be set multiple ways:

    • when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies.
    • when using the default executor (execute/subscribe from graphql-js):
      -- rootValue can be passed to delegateToSchema via a named option
      -- rootValue can be included within a subschemaConfig
      -- otherwise, rootValue is inferred from the originating schema

    When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above.

  • 74581cf: fix(getDirectives): preserve order around repeatable directives

    BREAKING CHANGE: getDirectives now always return an array of individual DirectiveAnnotation objects consisting of name and args properties.

    New useful function getDirective returns an array of objects representing any args for each use of a single directive (returning the empty object {} when a directive is used without arguments).

    Note: The getDirective function returns an array even when the specified directive is non-repeatable. This is because one use of this function is to throw an error if more than one directive annotation is used for a non repeatable directive!

    When specifying directives in extensions, one can use either the old or new format.

  • c0ca319: BREAKING CHANGE

    • Remove Subscriber and use only Executor
      • Now Executor can receive AsyncIterable and subscriptions will also be handled by Executor. This is a future-proof change for defer, stream and live queries

Minor Changes

  • 1b0ce2a: @ardatanfeat(stitch): add helpers for Relay

Patch Changes

  • 91155ab: Fixed issue with stitchSchemas function returning info object with left.subschema and right.subschema referencing the same object
  • Updated dependencies [af9a78d]
  • Updated dependencies [7d3e300]
  • Updated dependencies [7d3e300]
  • Updated dependencies [9c26b84]
  • Updated dependencies [7d3e300]
  • Updated dependencies [d53e3be]
  • Updated dependencies [7d3e300]
  • Updated dependencies [dae6dc7]
  • Updated dependencies [6877b91]
  • Updated dependencies [7d3e300]
  • Updated dependencies [c42e811]
  • Updated dependencies [7d3e300]
  • Updated dependencies [8c8d4fc]
  • Updated dependencies [7d3e300]
  • Updated dependencies [c0ca319]
  • Updated dependencies [7d3e300]
  • Updated dependencies [aa43054]
  • Updated dependencies [7d3e300]
  • Updated dependencies [74581cf]
  • Updated dependencies [c0ca319]
  • Updated dependencies [7d3e300]
  • Updated dependencies [982c8f5]
  • Updated dependencies [7d3e300]
  • Updated dependencies [7d3e300]
  • Updated dependencies [a31f959]
  • Updated dependencies [7d3e300]
    • @graphql-tools/utils@8.0.0
    • @graphql-tools/delegate@8.0.0
    • @graphql-tools/wrap@8.0.0
    • @graphql-tools/schema@8.0.0
    • @graphql-tools/batch-delegate@8.0.0
    • @graphql-tools/merge@6.2.15

Don't miss a new graphql-tools release

NewReleases is sending notifications on new releases.