-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance(@graphql-hive/yoga): improvements with Yoga's features
- Loading branch information
Showing
5 changed files
with
266 additions
and
96 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@graphql-hive/yoga': patch | ||
--- | ||
|
||
Align with the latest yoga; | ||
|
||
- Remove \`tiny-lru\` dependency, and use `createLruCache` from `graphql-yoga` | ||
- Use Explicit Resource Management of GraphQL Yoga plugins for disposal which already respect Node.js process termination | ||
- Use \`context.waitUntil\` which is handled by the environment automatically, if not `@whatwg-node/server` already takes care of it with above. | ||
- Respect the given `fetchAPI` by GraphQL Yoga(might be Hive Gateway) for the `fetch` function | ||
- Avoid using `async/await` for performance reasons, because in case of cache-hit, it returns synchronously | ||
- Respect Yoga's \`logger\` for logging |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.