Skip to content

Bump version to 0.2.13 #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const NO_CONCURRENCY = 1;
export const NOT_SET = "not-set";
export const DEFAULT_RETRIES = 3;

export const VERSION = "v0.2.7";
export const VERSION = "v0.2.13";
export const SDK_TELEMETRY = `@upstash/workflow@${VERSION}`;

export const TELEMETRY_HEADER_SDK = "Upstash-Telemetry-Sdk" as const;
Expand Down
10 changes: 5 additions & 5 deletions src/serve/serve-many.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("serveMany", () => {
test("should throw if workflowId contains '/'", () => {
const throws = () =>
serveMany({
"workflow/one": createWorkflow(async () => {}),
"workflow/one": createWorkflow(async () => { }),
});
expect(throws).toThrow(
"Invalid workflow name found: 'workflow/one'. Workflow name cannot contain '/'."
Expand All @@ -26,7 +26,7 @@ describe("serveMany", () => {

test("should throw if workflowId doesn't match", async () => {
const { POST: handler } = serveMany({
"workflow-one": createWorkflow(async () => {}),
"workflow-one": createWorkflow(async () => { }),
});

const request = new Request("http://localhost:3001/workflow-two", { method: "POST" });
Expand Down Expand Up @@ -160,7 +160,7 @@ describe("serveMany", () => {
"Upstash-Forward-Upstash-Workflow-Sdk-Version": ["1"],
"Upstash-Telemetry-Framework": ["nextjs"],
"Upstash-Telemetry-Runtime": ["node@v22.6.0"],
"Upstash-Telemetry-Sdk": ["@upstash/workflow@v0.2.7"],
"Upstash-Telemetry-Sdk": ["@upstash/workflow@v0.2.13"],
"Upstash-Workflow-Init": ["false"],
"Upstash-Workflow-RunId": ["wfr_id"],
"Upstash-Workflow-Runid": ["wfr_id"],
Expand Down Expand Up @@ -215,7 +215,7 @@ describe("serveMany", () => {
"Upstash-Forward-Upstash-Workflow-Sdk-Version": ["1"],
"Upstash-Telemetry-Framework": ["nextjs"],
"Upstash-Telemetry-Runtime": ["node@v22.6.0"],
"Upstash-Telemetry-Sdk": ["@upstash/workflow@v0.2.7"],
"Upstash-Telemetry-Sdk": ["@upstash/workflow@v0.2.13"],
"Upstash-Workflow-Init": ["false"],
"Upstash-Workflow-RunId": ["wfr_id"],
"Upstash-Workflow-Runid": ["wfr_id"],
Expand Down Expand Up @@ -289,7 +289,7 @@ describe("serveMany", () => {
"upstash-retries": "0",
"upstash-telemetry-framework": "nextjs",
"upstash-telemetry-runtime": "node@v22.6.0",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.7",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.13",
"upstash-workflow-calltype": "toCallback",
"upstash-workflow-init": "false",
"upstash-workflow-runid": "wfr_id",
Expand Down
20 changes: 10 additions & 10 deletions src/serve/serve.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ describe("serve", () => {
execute: async (initialPayload, steps, first) => {
const request = first
? new Request(WORKFLOW_ENDPOINT, {
body: JSON.stringify(initialPayload),
method: "POST",
})
body: JSON.stringify(initialPayload),
method: "POST",
})
: getRequest(WORKFLOW_ENDPOINT, workflowRunId, initialPayload, steps);

request.headers.set(WORKFLOW_INVOKE_COUNT_HEADER, "2");
Expand Down Expand Up @@ -409,7 +409,7 @@ describe("serve", () => {
"upstash-workflow-url": WORKFLOW_ENDPOINT,
"upstash-telemetry-framework": "unknown",
"upstash-telemetry-runtime": "unknown",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.7",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.13",
},
body: '{"stepId":3,"stepName":"step 3","stepType":"Run","out":"\\"combined results: result 1,result 2\\"","concurrent":1}',
},
Expand Down Expand Up @@ -458,7 +458,7 @@ describe("serve", () => {
"upstash-workflow-url": WORKFLOW_ENDPOINT,
"upstash-telemetry-framework": "unknown",
"upstash-telemetry-runtime": "unknown",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.7",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.13",
},
body: '{"stepId":1,"stepName":"sleep-step","stepType":"SleepFor","sleepFor":1,"concurrent":1}',
},
Expand Down Expand Up @@ -511,7 +511,7 @@ describe("serve", () => {
"upstash-failure-callback-workflow-url": "https://requestcatcher.com/api",
"upstash-telemetry-framework": "unknown",
"upstash-telemetry-runtime": "unknown",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.7",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.13",
},
body: '{"stepId":1,"stepName":"sleep-step","stepType":"SleepFor","sleepFor":1,"concurrent":1}',
},
Expand Down Expand Up @@ -566,7 +566,7 @@ describe("serve", () => {
"upstash-failure-callback-workflow-url": "https://requestcatcher.com/api",
"upstash-telemetry-framework": "unknown",
"upstash-telemetry-runtime": "unknown",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.7",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.13",
},
body: '{"stepId":1,"stepName":"sleep-step","stepType":"SleepFor","sleepFor":1,"concurrent":1}',
},
Expand Down Expand Up @@ -661,7 +661,7 @@ describe("serve", () => {
"upstash-retries": "4",
"upstash-telemetry-framework": "unknown",
"upstash-telemetry-runtime": "unknown",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.7",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.13",
"upstash-timeout": "10",
"upstash-workflow-calltype": "toCallback",
"upstash-workflow-init": "false",
Expand Down Expand Up @@ -875,7 +875,7 @@ describe("serve", () => {
"Upstash-Workflow-Url": [WORKFLOW_ENDPOINT],
"Upstash-Telemetry-Framework": ["unknown"],
"Upstash-Telemetry-Runtime": ["unknown"],
"Upstash-Telemetry-Sdk": ["@upstash/workflow@v0.2.7"],
"Upstash-Telemetry-Sdk": ["@upstash/workflow@v0.2.13"],
},
timeoutUrl: WORKFLOW_ENDPOINT,
url: WORKFLOW_ENDPOINT,
Expand Down Expand Up @@ -1158,7 +1158,7 @@ describe("serve", () => {
"upstash-forward-test-header": headerValue,
"upstash-telemetry-framework": "unknown",
"upstash-telemetry-runtime": "unknown",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.7",
"upstash-telemetry-sdk": "@upstash/workflow@v0.2.13",
},
body: '{"stepId":1,"stepName":"sleep-step","stepType":"SleepFor","sleepFor":1,"concurrent":1}',
},
Expand Down
Loading