Skip to content

Commit 83518bf

Browse files
Update TS SDK examples to 1.6.0 (#282)
* Update TS SDK examples to 1.6.0 * change to RestatePromise (#283) Signed-off-by: Nik Nasr <[email protected]> --------- Signed-off-by: Nik Nasr <[email protected]> Co-authored-by: Nik <[email protected]>
1 parent f5dcd40 commit 83518bf

File tree

15 files changed

+18
-18
lines changed

15 files changed

+18
-18
lines changed

typescript/basics/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"example-3": "ts-node-dev --transpile-only src/3_workflows.ts"
1515
},
1616
"dependencies": {
17-
"@restatedev/restate-sdk": "^1.5.4",
18-
"@restatedev/restate-sdk-clients": "^1.5.4"
17+
"@restatedev/restate-sdk": "^1.6.0",
18+
"@restatedev/restate-sdk-clients": "^1.6.0"
1919
},
2020
"devDependencies": {
2121
"@types/node": "^20.12.12",

typescript/end-to-end-applications/ai-image-workflows/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"stable-diffusion-service": "ts-node-dev --watch ./src --respawn --transpile-only src/stable_diffusion.ts"
1313
},
1414
"dependencies": {
15-
"@restatedev/restate-sdk": "^1.5.4",
15+
"@restatedev/restate-sdk": "^1.6.0",
1616
"axios": "^1.6.7",
1717
"axios-retry": "^4.0.0",
1818
"jimp": "^0.22.10",

typescript/end-to-end-applications/chat-bot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"flights-task": "RESTATE_LOGGING=INFO ts-node-dev --watch ./src --transpile-only ./src/tasks/flight_prices.ts"
1212
},
1313
"dependencies": {
14-
"@restatedev/restate-sdk": "^1.5.4",
14+
"@restatedev/restate-sdk": "^1.6.0",
1515
"@slack/bolt": "^3.19.0",
1616
"@slack/web-api": "^7.0.4"
1717
},

typescript/end-to-end-applications/chat-bot/src/tasks/reminder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const reminderSvc = restate.workflow({
2121

2222
const cancelled = ctx.promise<boolean>("cancelled");
2323

24-
await restate.CombineablePromise.race([sleep, cancelled.get()]);
24+
await restate.RestatePromise.race([sleep, cancelled.get()]);
2525
if (await cancelled.peek()) {
2626
return "The reminder has been cancelled";
2727
}

typescript/end-to-end-applications/food-ordering/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"app-dev": "RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --watch src --respawn --transpile-only src/order-app/app.ts"
1616
},
1717
"dependencies": {
18-
"@restatedev/restate-sdk": "^1.5.4",
18+
"@restatedev/restate-sdk": "^1.6.0",
1919
"@types/node": "^20.6.3",
2020
"@types/uuid": "^9.0.0",
2121
"axios": "^1.4.0",

typescript/end-to-end-applications/food-ordering/webui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"node": "14.17.3"
77
},
88
"dependencies": {
9-
"@restatedev/restate-sdk-clients": "^1.5.4",
9+
"@restatedev/restate-sdk-clients": "^1.6.0",
1010
"axios": "^0.26.0",
1111
"react": "^18.0.0",
1212
"react-dom": "^18.0.0",

typescript/integrations/deployment-lambda-cdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"typescript": "^5.5.4"
2424
},
2525
"dependencies": {
26-
"@restatedev/restate-sdk": "^1.5.4",
26+
"@restatedev/restate-sdk": "^1.6.0",
2727
"aws-cdk-lib": "^2.155.0",
2828
"constructs": "^10.3.0",
2929
"source-map-support": "^0.5.21"

typescript/patterns-use-cases/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsc --noEmitOnError"
99
},
1010
"dependencies": {
11-
"@restatedev/restate-sdk": "^1.5.4",
11+
"@restatedev/restate-sdk": "^1.6.0",
1212
"@restatedev/restate-sdk-clients": "^1.4.0",
1313
"express": "^5.0.0",
1414
"pg": "^8.10.0",

typescript/patterns-use-cases/src/parallelizework/fan_out_worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as restate from "@restatedev/restate-sdk";
2-
import {CombineablePromise, Context} from "@restatedev/restate-sdk";
2+
import {RestatePromise, Context} from "@restatedev/restate-sdk";
33
import {aggregate, executeSubtask, Result, split, SubTask, SubTaskResult, Task} from "./utils";
44

55
/*
@@ -42,7 +42,7 @@ const fanOutWorker = restate.service({
4242
}
4343

4444
// Fan in - Aggregate the results
45-
const results = await CombineablePromise.all(resultPromises);
45+
const results = await RestatePromise.all(resultPromises);
4646
return aggregate(ctx, results);
4747
},
4848

typescript/templates/bun/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"format": "prettier --write \"src/*.+(js|ts|json)\""
1010
},
1111
"dependencies": {
12-
"@restatedev/restate-sdk": "^1.5.4"
12+
"@restatedev/restate-sdk": "^1.6.0"
1313
},
1414
"devDependencies": {
1515
"@types/bun": "^1.1.5",

0 commit comments

Comments
 (0)