shopify-api-js icon indicating copy to clipboard operation
shopify-api-js copied to clipboard

Add context argument to webhooks process function for Cloudflare workers

Open chr33s opened this issue 3 years ago • 2 comments

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 changeset to create a draft changelog entry (do NOT update the CHANGELOG.md file 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)

chr33s avatar May 18 '23 08:05 chr33s

Seems sync'ing in changes upstream auto-closed the pull request. my bad.

chr33s avatar Dec 06 '23 07:12 chr33s

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 avatar Feb 07 '24 14:02 paulomarg

@paulomarg fixed, good catch.

chr33s avatar Mar 14 '24 06:03 chr33s

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 avatar Mar 14 '24 13:03 paulomarg

@paulomarg pushed to an internal fork instead of the public one, all changes on main have been pull in as well.

chr33s avatar Mar 18 '24 03:03 chr33s