@upstash/workflow 0.2.23-rc → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/astro.js +7 -10
- package/astro.mjs +1 -1
- package/{chunk-KAGTWBLF.mjs → chunk-GZRDB6Z5.mjs} +7 -10
- package/cloudflare.js +7 -10
- package/cloudflare.mjs +1 -1
- package/express.js +7 -10
- package/express.mjs +1 -1
- package/h3.js +7 -10
- package/h3.mjs +1 -1
- package/hono.js +7 -10
- package/hono.mjs +1 -1
- package/index.js +7 -10
- package/index.mjs +1 -1
- package/nextjs.js +7 -10
- package/nextjs.mjs +1 -1
- package/package.json +1 -1
- package/solidjs.js +7 -10
- package/solidjs.mjs +1 -1
- package/svelte.js +7 -10
- package/svelte.mjs +1 -1
- package/tanstack.js +7 -10
- package/tanstack.mjs +1 -1
package/astro.js
CHANGED
|
@@ -1641,20 +1641,17 @@ var LazyCreateWebhookStep = class extends BaseLazyStep {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
getBody({ step, context }) {
|
|
1643
1643
|
const userId = getUserIdFromToken(context.qstashClient);
|
|
1644
|
-
const
|
|
1644
|
+
const workflowRunId = context.workflowRunId;
|
|
1645
|
+
const eventId = getEventId();
|
|
1646
|
+
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1645
1647
|
return JSON.stringify({
|
|
1646
1648
|
...step,
|
|
1647
|
-
out
|
|
1649
|
+
out: JSON.stringify({
|
|
1650
|
+
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1651
|
+
eventId
|
|
1652
|
+
})
|
|
1648
1653
|
});
|
|
1649
1654
|
}
|
|
1650
|
-
safeParseOut(out) {
|
|
1651
|
-
const [userId, workflowRunId, eventId] = out.split("/");
|
|
1652
|
-
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1653
|
-
return {
|
|
1654
|
-
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1655
|
-
eventId
|
|
1656
|
-
};
|
|
1657
|
-
}
|
|
1658
1655
|
};
|
|
1659
1656
|
var LazyWaitForWebhookStep = class extends LazyWaitEventStep {
|
|
1660
1657
|
stepType = "WaitForWebhook";
|
package/astro.mjs
CHANGED
|
@@ -1824,20 +1824,17 @@ var LazyCreateWebhookStep = class extends BaseLazyStep {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
getBody({ step, context }) {
|
|
1826
1826
|
const userId = getUserIdFromToken(context.qstashClient);
|
|
1827
|
-
const
|
|
1827
|
+
const workflowRunId = context.workflowRunId;
|
|
1828
|
+
const eventId = getEventId();
|
|
1829
|
+
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1828
1830
|
return JSON.stringify({
|
|
1829
1831
|
...step,
|
|
1830
|
-
out
|
|
1832
|
+
out: JSON.stringify({
|
|
1833
|
+
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1834
|
+
eventId
|
|
1835
|
+
})
|
|
1831
1836
|
});
|
|
1832
1837
|
}
|
|
1833
|
-
safeParseOut(out) {
|
|
1834
|
-
const [userId, workflowRunId, eventId] = out.split("/");
|
|
1835
|
-
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1836
|
-
return {
|
|
1837
|
-
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1838
|
-
eventId
|
|
1839
|
-
};
|
|
1840
|
-
}
|
|
1841
1838
|
};
|
|
1842
1839
|
var LazyWaitForWebhookStep = class extends LazyWaitEventStep {
|
|
1843
1840
|
stepType = "WaitForWebhook";
|
package/cloudflare.js
CHANGED
|
@@ -1641,20 +1641,17 @@ var LazyCreateWebhookStep = class extends BaseLazyStep {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
getBody({ step, context }) {
|
|
1643
1643
|
const userId = getUserIdFromToken(context.qstashClient);
|
|
1644
|
-
const
|
|
1644
|
+
const workflowRunId = context.workflowRunId;
|
|
1645
|
+
const eventId = getEventId();
|
|
1646
|
+
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1645
1647
|
return JSON.stringify({
|
|
1646
1648
|
...step,
|
|
1647
|
-
out
|
|
1649
|
+
out: JSON.stringify({
|
|
1650
|
+
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1651
|
+
eventId
|
|
1652
|
+
})
|
|
1648
1653
|
});
|
|
1649
1654
|
}
|
|
1650
|
-
safeParseOut(out) {
|
|
1651
|
-
const [userId, workflowRunId, eventId] = out.split("/");
|
|
1652
|
-
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1653
|
-
return {
|
|
1654
|
-
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1655
|
-
eventId
|
|
1656
|
-
};
|
|
1657
|
-
}
|
|
1658
1655
|
};
|
|
1659
1656
|
var LazyWaitForWebhookStep = class extends LazyWaitEventStep {
|
|
1660
1657
|
stepType = "WaitForWebhook";
|
package/cloudflare.mjs
CHANGED
package/express.js
CHANGED
|
@@ -1641,20 +1641,17 @@ var LazyCreateWebhookStep = class extends BaseLazyStep {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
getBody({ step, context }) {
|
|
1643
1643
|
const userId = getUserIdFromToken(context.qstashClient);
|
|
1644
|
-
const
|
|
1644
|
+
const workflowRunId = context.workflowRunId;
|
|
1645
|
+
const eventId = getEventId();
|
|
1646
|
+
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1645
1647
|
return JSON.stringify({
|
|
1646
1648
|
...step,
|
|
1647
|
-
out
|
|
1649
|
+
out: JSON.stringify({
|
|
1650
|
+
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1651
|
+
eventId
|
|
1652
|
+
})
|
|
1648
1653
|
});
|
|
1649
1654
|
}
|
|
1650
|
-
safeParseOut(out) {
|
|
1651
|
-
const [userId, workflowRunId, eventId] = out.split("/");
|
|
1652
|
-
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1653
|
-
return {
|
|
1654
|
-
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1655
|
-
eventId
|
|
1656
|
-
};
|
|
1657
|
-
}
|
|
1658
1655
|
};
|
|
1659
1656
|
var LazyWaitForWebhookStep = class extends LazyWaitEventStep {
|
|
1660
1657
|
stepType = "WaitForWebhook";
|
package/express.mjs
CHANGED
package/h3.js
CHANGED
|
@@ -1953,20 +1953,17 @@ var LazyCreateWebhookStep = class extends BaseLazyStep {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
getBody({ step, context }) {
|
|
1955
1955
|
const userId = getUserIdFromToken(context.qstashClient);
|
|
1956
|
-
const
|
|
1956
|
+
const workflowRunId = context.workflowRunId;
|
|
1957
|
+
const eventId = getEventId();
|
|
1958
|
+
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1957
1959
|
return JSON.stringify({
|
|
1958
1960
|
...step,
|
|
1959
|
-
out
|
|
1961
|
+
out: JSON.stringify({
|
|
1962
|
+
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1963
|
+
eventId
|
|
1964
|
+
})
|
|
1960
1965
|
});
|
|
1961
1966
|
}
|
|
1962
|
-
safeParseOut(out) {
|
|
1963
|
-
const [userId, workflowRunId, eventId] = out.split("/");
|
|
1964
|
-
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1965
|
-
return {
|
|
1966
|
-
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1967
|
-
eventId
|
|
1968
|
-
};
|
|
1969
|
-
}
|
|
1970
1967
|
};
|
|
1971
1968
|
var LazyWaitForWebhookStep = class extends LazyWaitEventStep {
|
|
1972
1969
|
stepType = "WaitForWebhook";
|
package/h3.mjs
CHANGED
package/hono.js
CHANGED
|
@@ -1641,20 +1641,17 @@ var LazyCreateWebhookStep = class extends BaseLazyStep {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
getBody({ step, context }) {
|
|
1643
1643
|
const userId = getUserIdFromToken(context.qstashClient);
|
|
1644
|
-
const
|
|
1644
|
+
const workflowRunId = context.workflowRunId;
|
|
1645
|
+
const eventId = getEventId();
|
|
1646
|
+
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1645
1647
|
return JSON.stringify({
|
|
1646
1648
|
...step,
|
|
1647
|
-
out
|
|
1649
|
+
out: JSON.stringify({
|
|
1650
|
+
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1651
|
+
eventId
|
|
1652
|
+
})
|
|
1648
1653
|
});
|
|
1649
1654
|
}
|
|
1650
|
-
safeParseOut(out) {
|
|
1651
|
-
const [userId, workflowRunId, eventId] = out.split("/");
|
|
1652
|
-
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1653
|
-
return {
|
|
1654
|
-
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1655
|
-
eventId
|
|
1656
|
-
};
|
|
1657
|
-
}
|
|
1658
1655
|
};
|
|
1659
1656
|
var LazyWaitForWebhookStep = class extends LazyWaitEventStep {
|
|
1660
1657
|
stepType = "WaitForWebhook";
|
package/hono.mjs
CHANGED
package/index.js
CHANGED
|
@@ -1655,20 +1655,17 @@ var LazyCreateWebhookStep = class extends BaseLazyStep {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
getBody({ step, context }) {
|
|
1657
1657
|
const userId = getUserIdFromToken(context.qstashClient);
|
|
1658
|
-
const
|
|
1658
|
+
const workflowRunId = context.workflowRunId;
|
|
1659
|
+
const eventId = getEventId();
|
|
1660
|
+
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1659
1661
|
return JSON.stringify({
|
|
1660
1662
|
...step,
|
|
1661
|
-
out
|
|
1663
|
+
out: JSON.stringify({
|
|
1664
|
+
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1665
|
+
eventId
|
|
1666
|
+
})
|
|
1662
1667
|
});
|
|
1663
1668
|
}
|
|
1664
|
-
safeParseOut(out) {
|
|
1665
|
-
const [userId, workflowRunId, eventId] = out.split("/");
|
|
1666
|
-
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1667
|
-
return {
|
|
1668
|
-
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1669
|
-
eventId
|
|
1670
|
-
};
|
|
1671
|
-
}
|
|
1672
1669
|
};
|
|
1673
1670
|
var LazyWaitForWebhookStep = class extends LazyWaitEventStep {
|
|
1674
1671
|
stepType = "WaitForWebhook";
|
package/index.mjs
CHANGED
package/nextjs.js
CHANGED
|
@@ -1644,20 +1644,17 @@ var LazyCreateWebhookStep = class extends BaseLazyStep {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
getBody({ step, context }) {
|
|
1646
1646
|
const userId = getUserIdFromToken(context.qstashClient);
|
|
1647
|
-
const
|
|
1647
|
+
const workflowRunId = context.workflowRunId;
|
|
1648
|
+
const eventId = getEventId();
|
|
1649
|
+
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1648
1650
|
return JSON.stringify({
|
|
1649
1651
|
...step,
|
|
1650
|
-
out
|
|
1652
|
+
out: JSON.stringify({
|
|
1653
|
+
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1654
|
+
eventId
|
|
1655
|
+
})
|
|
1651
1656
|
});
|
|
1652
1657
|
}
|
|
1653
|
-
safeParseOut(out) {
|
|
1654
|
-
const [userId, workflowRunId, eventId] = out.split("/");
|
|
1655
|
-
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1656
|
-
return {
|
|
1657
|
-
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1658
|
-
eventId
|
|
1659
|
-
};
|
|
1660
|
-
}
|
|
1661
1658
|
};
|
|
1662
1659
|
var LazyWaitForWebhookStep = class extends LazyWaitEventStep {
|
|
1663
1660
|
stepType = "WaitForWebhook";
|
package/nextjs.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@upstash/workflow","version":"v0.2.23
|
|
1
|
+
{"name":"@upstash/workflow","version":"v0.2.23","description":"Durable, Reliable and Performant Serverless Functions","main":"./index.js","module":"./index.mjs","types":"./index.d.ts","files":["./*"],"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./dist/nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./h3":{"import":"./h3.mjs","require":"./h3.js"},"./svelte":{"import":"./svelte.mjs","require":"./svelte.js"},"./solidjs":{"import":"./solidjs.mjs","require":"./solidjs.js"},"./workflow":{"import":"./workflow.mjs","require":"./workflow.js"},"./hono":{"import":"./hono.mjs","require":"./hono.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./astro":{"import":"./astro.mjs","require":"./astro.js"},"./express":{"import":"./express.mjs","require":"./express.js"},"./tanstack":{"import":"./tanstack.mjs","require":"./tanstack.js"}},"scripts":{"build":"tsup && cp README.md ./dist/ && cp package.json ./dist/ && cp LICENSE ./dist/","test":"bun test src","fmt":"prettier --write .","lint":"tsc && eslint \"{src,platforms}/**/*.{js,ts,tsx}\" --quiet --fix","check-exports":"bun run build && cd dist && attw -P"},"repository":{"type":"git","url":"git+https://github.com/upstash/workflow-ts.git"},"keywords":["upstash","qstash","workflow","serverless"],"author":"Cahid Arda Oz","license":"MIT","bugs":{"url":"https://github.com/upstash/workflow-ts/issues"},"homepage":"https://github.com/upstash/workflow-ts#readme","devDependencies":{"@ai-sdk/anthropic":"^1.1.15","@commitlint/cli":"^19.5.0","@commitlint/config-conventional":"^19.5.0","@eslint/js":"^9.11.1","@solidjs/start":"^1.0.8","@sveltejs/kit":"^2.6.1","@tanstack/react-start":"^1.132.48","@types/bun":"^1.1.10","@types/express":"^5.0.3","astro":"^4.16.7","eslint":"^9.11.1","eslint-plugin-unicorn":"^55.0.0","express":"^5.1.0","globals":"^15.10.0","h3":"^1.12.0","hono":"^4.6.20","husky":"^9.1.6","next":"^14.2.14","prettier":"3.3.3","tsup":"^8.3.0","typescript":"^5.7.2","typescript-eslint":"^8.18.0"},"dependencies":{"@ai-sdk/openai":"^1.2.1","@upstash/qstash":"^2.8.2","ai":"^4.1.54","zod":"^3.24.1"},"directories":{"example":"examples"}}
|
package/solidjs.js
CHANGED
|
@@ -1639,20 +1639,17 @@ var LazyCreateWebhookStep = class extends BaseLazyStep {
|
|
|
1639
1639
|
}
|
|
1640
1640
|
getBody({ step, context }) {
|
|
1641
1641
|
const userId = getUserIdFromToken(context.qstashClient);
|
|
1642
|
-
const
|
|
1642
|
+
const workflowRunId = context.workflowRunId;
|
|
1643
|
+
const eventId = getEventId();
|
|
1644
|
+
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1643
1645
|
return JSON.stringify({
|
|
1644
1646
|
...step,
|
|
1645
|
-
out
|
|
1647
|
+
out: JSON.stringify({
|
|
1648
|
+
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1649
|
+
eventId
|
|
1650
|
+
})
|
|
1646
1651
|
});
|
|
1647
1652
|
}
|
|
1648
|
-
safeParseOut(out) {
|
|
1649
|
-
const [userId, workflowRunId, eventId] = out.split("/");
|
|
1650
|
-
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1651
|
-
return {
|
|
1652
|
-
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1653
|
-
eventId
|
|
1654
|
-
};
|
|
1655
|
-
}
|
|
1656
1653
|
};
|
|
1657
1654
|
var LazyWaitForWebhookStep = class extends LazyWaitEventStep {
|
|
1658
1655
|
stepType = "WaitForWebhook";
|
package/solidjs.mjs
CHANGED
package/svelte.js
CHANGED
|
@@ -1641,20 +1641,17 @@ var LazyCreateWebhookStep = class extends BaseLazyStep {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
getBody({ step, context }) {
|
|
1643
1643
|
const userId = getUserIdFromToken(context.qstashClient);
|
|
1644
|
-
const
|
|
1644
|
+
const workflowRunId = context.workflowRunId;
|
|
1645
|
+
const eventId = getEventId();
|
|
1646
|
+
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1645
1647
|
return JSON.stringify({
|
|
1646
1648
|
...step,
|
|
1647
|
-
out
|
|
1649
|
+
out: JSON.stringify({
|
|
1650
|
+
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1651
|
+
eventId
|
|
1652
|
+
})
|
|
1648
1653
|
});
|
|
1649
1654
|
}
|
|
1650
|
-
safeParseOut(out) {
|
|
1651
|
-
const [userId, workflowRunId, eventId] = out.split("/");
|
|
1652
|
-
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1653
|
-
return {
|
|
1654
|
-
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1655
|
-
eventId
|
|
1656
|
-
};
|
|
1657
|
-
}
|
|
1658
1655
|
};
|
|
1659
1656
|
var LazyWaitForWebhookStep = class extends LazyWaitEventStep {
|
|
1660
1657
|
stepType = "WaitForWebhook";
|
package/svelte.mjs
CHANGED
package/tanstack.js
CHANGED
|
@@ -1641,20 +1641,17 @@ var LazyCreateWebhookStep = class extends BaseLazyStep {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
getBody({ step, context }) {
|
|
1643
1643
|
const userId = getUserIdFromToken(context.qstashClient);
|
|
1644
|
-
const
|
|
1644
|
+
const workflowRunId = context.workflowRunId;
|
|
1645
|
+
const eventId = getEventId();
|
|
1646
|
+
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1645
1647
|
return JSON.stringify({
|
|
1646
1648
|
...step,
|
|
1647
|
-
out
|
|
1649
|
+
out: JSON.stringify({
|
|
1650
|
+
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1651
|
+
eventId
|
|
1652
|
+
})
|
|
1648
1653
|
});
|
|
1649
1654
|
}
|
|
1650
|
-
safeParseOut(out) {
|
|
1651
|
-
const [userId, workflowRunId, eventId] = out.split("/");
|
|
1652
|
-
const qstashUrl = getQStashUrl(this.context.qstashClient);
|
|
1653
|
-
return {
|
|
1654
|
-
webhookUrl: `${qstashUrl}/v2/workflows/hooks/${userId}/${workflowRunId}/${eventId}`,
|
|
1655
|
-
eventId
|
|
1656
|
-
};
|
|
1657
|
-
}
|
|
1658
1655
|
};
|
|
1659
1656
|
var LazyWaitForWebhookStep = class extends LazyWaitEventStep {
|
|
1660
1657
|
stepType = "WaitForWebhook";
|