v0.2.17
What's Changed
When upgrading to this version, if you have wrapped the serve
method in any way, make sure that you include the headers in your response. Example:
const { handler } = serveBase(...);
export const POST = (request, response) => {
const serveResponse: Response = await handler(request);
// set headers in response
for (const [key, value] of serveResponse.headers.entries()) {
response.setHeader(key, value);
}
response.status(serveResponse.status).json(await serveResponse.json());
}
As of this version, the backend will validate that the endpoint called is a workflow endpoint by checking some specific headers (see #120). So the headers should be included in the response.
Features:
- DX-1997: add retryFailureFunction to DLQ by @CahidArda in #122
- DX-1995: allow returning string response in failureFunction by @CahidArda in #118
- DX-2021: Add retryDelay option by @alitariksahin in #123
- DX-1811: workflow endpoint feature set by @CahidArda in #120
Fixes:
- Allow generic typing of eventData for WaitStepResponse by @gcmarcello in #117
- Add docstring for context.waitForEvent by @ytkimirti in #121
- DX-1996: print warning if error in custom auth by @CahidArda in #119
New Contributors
- @gcmarcello made their first contribution in #117
Full Changelog: v0.2.16...v0.2.17