Skip to content

Releases: upstash/workflow-js

v0.2.0

21 Nov 09:07
b108d18
Compare
Choose a tag to compare

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:

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

Full Changelog: v0.1.5...v0.2.0

0.1.5-cf-canary

21 Nov 11:44
Compare
Choose a tag to compare
0.1.5-cf-canary Pre-release
Pre-release

Canary for fixing loop detection issue in cloudflare

Full Changelog: v0.1.5...0.1.5-cf-canary

v0.1.5

18 Nov 12:14
Compare
Choose a tag to compare

What's Changed

  • generate random workflow id with math.random by @CahidArda in #25

Full Changelog: v0.1.4...v0.1.5

v0.1.4

13 Nov 16:08
Compare
Choose a tag to compare

Fix failure function headers which caused an issue when context.call was used.

Full Changelog: v0.1.3...v0.1.4

v0.1.3

12 Nov 15:14
d4248b2
Compare
Choose a tag to compare

What's Changed

Features:

Fixes:

  • Sort steps with .sort instead of .toSorted to allow Node18 by @CahidArda in #17
  • Add bootstrap script and fix examples by @CahidArda in #15

New Contributors

Full Changelog: v0.1.2...v0.1.3

v0.1.3-crpyto-canary-2

08 Nov 09:57
Compare
Choose a tag to compare
Pre-release

v0.1.3-crpyto-canary

08 Nov 09:56
c43230d
Compare
Choose a tag to compare
v0.1.3-crpyto-canary Pre-release
Pre-release

Canary for #20

Full Changelog: v0.1.2...v0.1.3-crpyto-canary

v0.1.2-omit-errors

15 Nov 14:17
Compare
Choose a tag to compare
v0.1.2-omit-errors Pre-release
Pre-release

Canary for #16.

Full Changelog: v0.1.2...v0.1.2-omit-errors

v0.1.2-canary-astro

01 Nov 13:53
Compare
Choose a tag to compare
v0.1.2-canary-astro Pre-release
Pre-release

Canary for #11

Full Changelog: v0.1.2...v0.1.2-canary-astro

v0.1.2

25 Oct 11:04
e986782
Compare
Choose a tag to compare

What's Changed

Fixed the base64 eventData issue. Now eventData is decoded by default.

Workflow will now stringify and parse all step results. We are planning to make it possible to write your own serializer/deserializer in the future.

  • Fix Protocol and Feature Headers in context.call by @CahidArda in #6

Addressed two issues in context.call:

  • calling another workflow endpoint would result in an error
  • feature set header was sent incorrectly. resulting in workflows which failed but stayed in RUN_STARTED state.

Full Changelog: v0.1.1...v0.1.2