Add context argument to webhooks process function for Cloudflare workers
WHY are these changes introduced?
Implements: #877
WHAT is this pull request doing?
Implements a context argument to webhooks process function to support cloudworker contexts and env variables.
Type of change
- [ ] Patch: Bug (non-breaking change which fixes an issue)
- [x] Minor: New feature (non-breaking change which adds functionality)
- [ ] Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist
- [x] I have used
yarn changesetto create a draft changelog entry (do NOT update theCHANGELOG.mdfile manually) - [x] I have added/updated tests for this change
- [x] I have documented new APIs/updated the documentation for modified APIs (for public APIs)
Seems sync'ing in changes upstream auto-closed the pull request. my bad.
Seems like we're missing passing the context in the internal call to call the handlers. I think we can approve / merge once that's fixed!
@paulomarg fixed, good catch.
Did you push that change? I can't see it here :)
Note you'll also need to rebase since there seem to be some conflicts. Thank you!
@paulomarg pushed to an internal fork instead of the public one, all changes on main have been pull in as well.