Skip to content

v0.2.17

Compare
Choose a tag to compare
@CahidArda CahidArda released this 05 Aug 11:42
· 6 commits to main since this release
82c1991

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:

Fixes:

New Contributors

Full Changelog: v0.2.16...v0.2.17