Releases: upstash/workflow-js
v0.2.20
What's Changed
- DX-2134: export error stack trace in error response by @CahidArda in #132
- DX-2133: add stringifyBody parameter to context.call and context.invoke by @CahidArda in #131
Full Changelog: v0.2.19...v0.2.20
v0.2.19
What's Changed
Features:
- DX-2115: add notBefore parameter to client.trigger by @CahidArda in #129
Fixes:
- Fix: initialize qstash client if it's not passed by @CahidArda in #130
Full Changelog: v0.2.18...v0.2.19
v0.2.18
What's Changed
- DX-2069: Add label option by @CahidArda in #125
- Bump version to 0.2.18 by @CahidArda in #128
Full Changelog: v0.2.17...v0.2.18
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
v0.2.16
What's Changed
- DX-1987: add try/catch to body parser of failureFunction by @CahidArda in #116
Full Changelog: v0.2.15...v0.2.16
v0.2.15
What's Changed
Features:
- DX-1912: Add dlq restart resume by @CahidArda in #113
- DX-1930: Add WorkflowNonRetryableError by @alitariksahin in #112 and #115
Fixes:
- Pass sdk version in client.trigger by @CahidArda in #114
Full Changelog: v0.2.14...v0.2.15
v0.2.14
What's Changed
Features:
- DX-1901: Add useFailureFunction and failureUrl by @CahidArda in #107
- DX-1816: trigger workflows in batches by @alitariksahin in #110
Fixes:
- DX-1902: Check for includes instead of exact match in isText by @CahidArda in #105
- DX-1904: Move
dlqId
to run log and add errors field by @CahidArda in #106 - Bump version to 0.2.14 by @CahidArda in #111
Examples:
- DX-1869: Add nestjs example and update readmes by @CahidArda in #104
- DX-1911: Add fastify example by @CahidArda in #108
New Contributors
- @alitariksahin made their first contribution in #110
Full Changelog: v0.2.13...v0.2.14
v0.2.13
What's Changed
Features:
- DX-1691: Add workflow parameter to context.call by @CahidArda in #75
- DX-1792: Allow passing context.call settings when defining agent by @CahidArda in #90
- DX-1870: Add telemetry for agents api by @CahidArda in #98
- DX-1873: add delay to client.trigger by @CahidArda in #100
- DX-1829: Add period and rate to flow control and deprecate ratePerSecond by @CahidArda in #101
Fixes:
- Refactor internal steps, headers and body creation by @CahidArda in #87
- Use process.env if context.env isn't defined in hono by @CahidArda in #92
- Fix: Add warning for non-string step names by @CahidArda in #96
- Bump version to 0.2.13 by @CahidArda in #99
Full Changelog: v0.2.12...v0.2.13
v0.2.12
What's Changed
Features:
- Add onError support to serve by @teovillanueva in #79
- DX-1599: Add way to use every fetch-compatible model in agents by @CahidArda in #77
Fixes:
- DX-1601: Update Agents Researcher README by @yunusemreozdemir in #81
- fix markdown by @ademilter in #83
- DX-1601: Improve Agents Researcher by @yunusemreozdemir in #84
- DX-1601: Further Improvements by @yunusemreozdemir in #85
New Contributors
- @ademilter made their first contribution in #83
- @teovillanueva made their first contribution in #79
Full Changelog: v0.2.11...v0.2.12
v0.2.11
What's Changed
Fixes:
- Send correct content-type in context-call by @CahidArda in #76
- Address unicode issue in context.call by @CahidArda in #71
- Add missing fields to workflow logs by @CahidArda in #78
Full Changelog: v0.2.10...v0.2.11