Releases: ExpediaGroup/graphql-component
Releases · ExpediaGroup/graphql-component
v2.0.3
- 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 theargs
object provided todelegateToComponent()
depending on the situation. Previously, there were some unintended argument leakage in certain edge cases.
v2.0.2
Fixed importing directives
v2.0.1
- Fixed error merging to iteratively consider the merge path to properly merge errors in complex situations such as lists
v1.3.6
- Fixed error merging in
execute()
to iteratively consider the merge path to properly merge errors in complex situations such as lists
v2.0.0
- [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 replaceexecute
- [FEATURE] args can be overridden/passed via
delegateToComponent
- [FEATURE] added
targetRootField
option todelegateToComponent
- [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
- Fixed handling of enum remapping resolvers introduced by changes in v1.3.4 around removal of proxy resolvers
v1.3.4
- 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
- [FEATURE] args can be overridden/passed via
delegateToComponent
- [FIXED] delegation for subscription operations
v1.3.3
- Fixed delegation for subscription operations
v1.3.2
- Fixed index.d.ts to properly support ES6 syntax
- Cleaned up import loop
- Fixed
execute()
to properly merge errors whengraphq.execute()
returns a completely null value - Fixed proxying an imported root type resolver when the return type is abstract