Skip to content

Commit

Permalink
Fixes for 0.7.0 release
Browse files Browse the repository at this point in the history
This commit fixes a problem in the payment_service.ts which tried
to specify a terminal error cause which is no longer supported.

Moreover, this commit adds the node-fetch dependency to the patterns
because fetch seems no longer be exported by our own restate-sdk.
  • Loading branch information
tillrohrmann committed Jan 12, 2024
1 parent 55e1316 commit 70e18ba
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 43 deletions.
2 changes: 1 addition & 1 deletion typescript/ecommerce-store/services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dist"
],
"dependencies": {
"@restatedev/restate-sdk": "^0.6.0",
"@restatedev/restate-sdk": "^0.7.0",
"long": "^5.2.1",
"pg": "^8.10.0",
"pg-hstore": "^2.3.4",
Expand Down
2 changes: 1 addition & 1 deletion typescript/food-ordering/services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"postbundle": "cd ../dist && zip -r index.zip index.js*"
},
"dependencies": {
"@restatedev/restate-sdk": "^0.6.0",
"@restatedev/restate-sdk": "^0.7.0",
"axios": "^1.4.0"
},
"devDependencies": {
Expand Down
125 changes: 105 additions & 20 deletions typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions typescript/patterns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"build": "tsc --noEmitOnError"
},
"dependencies": {
"@restatedev/restate-sdk": "^0.6.0"
"@restatedev/restate-sdk": "^0.7.0",
"node-fetch": "3.3.2"
},
"devDependencies": {
"typescript": "^5.0.2"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as restate from "@restatedev/restate-sdk";
import { randomUUID } from "crypto";
import fetch from "node-fetch";

// ----------------- -----------------
// Idempotency Tokens / Unique Tokens
Expand Down
16 changes: 0 additions & 16 deletions typescript/payment-api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion typescript/payment-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"app-dev": "ts-node-dev --watch ./src --respawn --transpile-only ./src/payment_service.ts"
},
"dependencies": {
"@restatedev/restate-sdk": "^0.6.0"
"@restatedev/restate-sdk": "^0.7.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.4.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/payment-api/src/payment_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function checkTypes(payment: Payment): Payment {
`Type for amount (${typeof payment.amount}) cannot convert amount to number: ${
payment.amount
}`,
{ cause: e }
{ errorCode: restate.ErrorCodes.INVALID_ARGUMENT }
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion typescript/ticket-reservation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dev": "ts-node-dev --respawn --transpile-only ./src/app.ts"
},
"dependencies": {
"@restatedev/restate-sdk": "^0.6.0",
"@restatedev/restate-sdk": "^0.7.0",
"uuid": "^9.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 70e18ba

Please sign in to comment.