Tags: upstash/workflow-js
Tags
DX-2274: wait for callback (#153) * feat: add wait for callback step * fix: add createWebhook to context * fix: add wait for callback step * fix: update webhook URL format in LazyCreateWebhookStep * fix: return Request in waitForWebhook * feat: add webhook to ci * fix: tests * fix: add tests * fix: update webhook response state to CALLBACK_SUCCESS * fix: update expected call count to 9 in webhook test * Update src/utils.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: rm utils.ts and fix typos * fix: remove waitForSeconds from TestConfig and update related constants * fix: move webhookUrl and eventId to out * fix: fmt --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
fix: remove waitForSeconds from TestConfig and update related constants
DX-2133: add stringifyBody parameter to context.call and context.invo… …ke (#131) * feat: add stringifyBody parameter to context.call and context.invoke in both methods, stringifyBody is true by default. I also added tests to both method to check for different behaviors. * fix: require body field * fix: stringifyBody in context.call with workflow
DX-1811: workflow endpoint feature set (#120) * feat: add feature set for checking if endpoint is workflow * fix: fmt * fix: add body field in errors * fix: tests * fix: return headers in all serve handlers * fix: add protocol header to error responses too * fix: add header to serveMany error responses * fix: set headers before sending response and fix express issues in #118, we bumped express to express 5 which is a breaking change. One thing we missed was how the catch all routes were defined. Because of this, we were getting 'TypeError: Missing parameter name at 1: https://git.new/pathToRegexpError' errors in express example. Fixed it by updating the catch all routes in express handler. See the related issue for more details: expressjs/express#5936 * fix: change expected call count for invoke route * fix: add non workflow trigger to ci
PreviousNext