Skip to content

Releases: ExpediaGroup/graphql-component

v2.0.3

12 Oct 23:45
Compare
Choose a tag to compare
  • Fixed individual field exclusions during import - individual field exclusions will no longer modify the original resolver map that is being imported.
  • Fixed/tightened up argument forwarding when using delegateToComponent() - only arguments the target field is expecting will be extracted from the calling resolver or from the args object provided to delegateToComponent() depending on the situation. Previously, there were some unintended argument leakage in certain edge cases.

v2.0.2

06 Oct 01:09
Compare
Choose a tag to compare

Fixed importing directives

v2.0.1

30 Sep 19:02
Compare
Choose a tag to compare
  • Fixed error merging to iteratively consider the merge path to properly merge errors in complex situations such as lists

v1.3.6

30 Sep 19:18
Compare
Choose a tag to compare
  • Fixed error merging in execute() to iteratively consider the merge path to properly merge errors in complex situations such as lists

v2.0.0

17 Sep 16:59
Compare
Choose a tag to compare
  • [BREAKING] removed fragment helpers
  • [BREAKING] schemaDirectives (which returned merged directives) removed from component api
  • [BREAKING] removed proxyImportedResolvers feature flag
  • [BREAKING] removed execute
  • [FEATURE] added delegateToComponent to replace execute
  • [FEATURE] args can be overridden/passed via delegateToComponent
  • [FEATURE] added targetRootField option to delegateToComponent
  • [FIXED] delegation for subscription operations
  • [FIXED] Memoizing resolvers didn't take into account aliased requests
  • [FIXED] delegating an operation that contains an abstract type
  • [DOCS] added documentation for delegateToComponent
  • [CLEANUP] use fieldNodes to build sub-operation document in delegateToComponent such that the original operation document isn't unintentionally modified
  • [CLEANUP] removal of proxy resolvers creation when importing resolvers
  • [CLEANUP] Refactor how imports are merged together to be optimized and only run when a schema is requested
  • [CLEANUP] Moved tests alongside source code

v1.3.5

15 Sep 19:54
Compare
Choose a tag to compare
  • Fixed handling of enum remapping resolvers introduced by changes in v1.3.4 around removal of proxy resolvers

v1.3.4

14 Sep 22:48
Compare
Choose a tag to compare
  • Fixed merging errors in non-null situations such that the correct source of error is propagated regardless of the order in which fields are requested.
  • Fixed execute() with abstract types by removing proxy resolvers (removes proxyImportedResolvers flag), wrapping non-root type resolvers and requiring __typename in abstract type selection sets

v2.0.0-rc4

03 Sep 15:42
Compare
Choose a tag to compare
v2.0.0-rc4 Pre-release
Pre-release
  • [FEATURE] args can be overridden/passed via delegateToComponent
  • [FIXED] delegation for subscription operations

v1.3.3

03 Sep 15:24
Compare
Choose a tag to compare
  • Fixed delegation for subscription operations

v1.3.2

07 Aug 17:03
Compare
Choose a tag to compare
  • Fixed index.d.ts to properly support ES6 syntax
  • Cleaned up import loop
  • Fixed execute() to properly merge errors when graphq.execute() returns a completely null value
  • Fixed proxying an imported root type resolver when the return type is abstract