Releases: upstash/workflow-js
v0.2.5-agents-2
Release candidate for #51 at bd21dae
Full Changelog: v0.2.5-agents...v0.2.5-agents-2
v0.2.5-agent-0
Full Changelog: v0.2.4...v0.2.5-agents
v0.2.4
What's Changed
Features:
- Add Telemetry by @CahidArda in #49
- Workflow - Vercel AI SDK example by @fahreddinozcan in #45
Fixes:
- Ignore wf canceled error in partial parallel execution by @CahidArda in #50
Full Changelog: v0.2.3...v0.2.4
v0.2.3
What's Changed
- Remove tsc dependency and fix path route by @CahidArda in #47
- Add context.callApi by @CahidArda in #37
- Update Image Gen example with mock photoes by @CahidArda in #48
Full Changelog: v0.2.2...v0.2.3
v0.2.2
What's Changed
Features:
- Add Next.js Webhook Example by @fahreddinozcan in #36
Fixes:
- Add typing support for hono variables in the handler by @ytkimirti in #34
- Add useJSONContent option for express and sveltekit by @CahidArda in #41
- Throw when workflow url doesn't start with http:// or https:// by @CahidArda in #43
- Ignore failed to pull steps case by @CahidArda in #42
New Contributors
- @ytkimirti made their first contribution in #34
Full Changelog: v0.2.1...v0.2.2
v0.2.1
What's Changed
Features:
- Add timeout parameter to context.call by @CahidArda in #31
Fixes:
- Handle undefined body correctly in failureFunction by @CahidArda in #30
- Return 400 on auth failure by @CahidArda in #35
- Fixes flaky integration tests by increasing timeouts and retries by @CahidArda in #32
- Fix Loop Detection issues in Cloudflare and Render by @CahidArda in #33
Full Changelog: v0.2.0...v0.2.1
v0.2.0-cf-canary
Canary for https://github.com/upstash/workflow-js/pull/33/files
Full Changelog: v0.2.0...v0.2.0-cf-canary
v0.2.0
What's Changed
Features:
- Update
client.cancel
to allow canceling with url and cancelling all by @CahidArda in #26 context.cancel
to cancel the current workflow by @CahidArda in #8
Fixes:
- Update
failureFunction
args by @fahreddinozcan in #27 - Update timeout parameter in
waitForEvent
by @joschan21 in #23 - Rename errors by @CahidArda in #8
- Lazy fetch feature to allow longer and larger workflows by @CahidArda in #8
- Handle network caused errors by @CahidArda in #16
- Check custom auth in
failureFunction
by @CahidArda in #28
Migration from 0.1.x to 0.2.0
If you were using the workflow client to cancel workflows by id, you should update it like:
import { Client } from "@upstash/workflow";
const client = new Client(...)
client.cancel({
- workflowRunId: "runId"
+ ids: "runId"
})
context.waitForEvent
should be updated like:
await context.waitForEvent(
"wait step",
"eventId"
- "10s"
+ { timeout: "10s" }
)
failureFunction parameters should be updated as an object:
failureFunction: async (
- context, failStatus, failResponse, failHeaders
+ { context, failStatus, failResponse, failHeaders }
) => { ... }
If you were importing and using the errors QStashWorkflowError
or QStashWorkflowAbort
, they are now renamed as WorkflowError
and WorkflowAbort
.
New Contributors
- @joschan21 made their first contribution in #23
Full Changelog: v0.1.5...v0.2.0
0.1.5-cf-canary
Canary for fixing loop detection issue in cloudflare
Full Changelog: v0.1.5...0.1.5-cf-canary
v0.1.5
What's Changed
- generate random workflow id with math.random by @CahidArda in #25
Full Changelog: v0.1.4...v0.1.5