-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated middleware execution to provide new functionality #91
Conversation
🦋 Changeset detectedLatest commit: 122430d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 122430d:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should get a README update as well, but I don't see anything major!
74d4e61
to
ca3bbfc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
V3! 🚂
* Drop support for Node v14, start testing against Node v20 (#110) * Drop support for Node v14, start testing against Node v20 * Build release PRs on version-* branches * latest node@16 types * Updated middleware execution to provide new functionality (#91) * Updated middleware execution to provide new functionality * Add missing headers to the changeset * Remove context modification from result middleware * Update from review * Added new README sections and changelog message * Spelling * Prettier * Version Packages (#114) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Trevor Scheer <trevor.scheer@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Short circuit middleware execution
You can now opt to return a Lambda result object directly from the middleware. This will cancel the middleware chain, bypass GraphQL request processing, and immediately return the Lambda result.
Example
Closes #102
Closes #108
Closes #97
Closes #85
Closes #84