Skip to content

Commit 513922d

Browse files
authored
Update outdated deps and fix some broken scripts (#285)
--------- Signed-off-by: Nik Nasr <[email protected]>
1 parent 5e0a86a commit 513922d

File tree

16 files changed

+25
-25
lines changed

16 files changed

+25
-25
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ restate-data
2727
# Python
2828
uv.lock
2929
.python-version
30+
31+
**/bin

go/integrations/go-lambda-cdk/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"@types/node": "22.5.2",
2121
"@typescript-eslint/eslint-plugin": "^8.3.0",
2222
"aws-cdk": "^2.155.0",
23-
"esbuild": "^0.23.1",
2423
"prettier": "^3.3.3",
2524
"ts-node": "^10.9.2",
2625
"typescript": "^5.5.4"

java/integrations/java-gradle-lambda-cdk/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"@types/node": "22.5.2",
2121
"@typescript-eslint/eslint-plugin": "^8.3.0",
2222
"aws-cdk": "^2.155.0",
23-
"esbuild": "^0.23.1",
2423
"prettier": "^3.3.3",
2524
"ts-node": "^10.9.2",
2625
"typescript": "^5.5.4"

kotlin/integrations/kotlin-gradle-lambda-cdk/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"@types/node": "22.5.2",
2121
"@typescript-eslint/eslint-plugin": "^8.3.0",
2222
"aws-cdk": "^2.155.0",
23-
"esbuild": "^0.23.1",
2423
"prettier": "^3.3.3",
2524
"ts-node": "^10.9.2",
2625
"typescript": "^5.5.4"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@types/node": "22.5.2",
1818
"@typescript-eslint/eslint-plugin": "^8.3.0",
1919
"aws-cdk": "^2",
20-
"esbuild": "^0.23.1",
20+
"esbuild": "^0.25.4",
2121
"prettier": "^3.3.3",
2222
"ts-node": "^10.9.2",
2323
"typescript": "^5.5.4"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"axios": "^1.6.7",
1717
"axios-retry": "^4.0.0",
1818
"jimp": "^0.22.10",
19-
"puppeteer": "^21.9.0"
19+
"puppeteer": "^24.9.0"
2020
},
2121
"devDependencies": {
2222
"ts-node-dev": "^1.1.1",

typescript/end-to-end-applications/ai-image-workflows/src/image_processing_workflow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ function addImgPathToSteps(wfSteps: WorkflowStep[], imgName: string) {
9393

9494
return wfSteps.map((step, index) => {
9595
// If it's the first step, and it already contains an input path then just take the raw input, otherwise take the output path of the previous step as input path
96-
const imgInputPath = index === 0 ? step.imgInputPath : `${OUTPUT_DIR}/${imgName}-${index - 1}.png`;
96+
const imgInputPath = index === 0 ? step.imgInputPath : `${OUTPUT_DIR}/${imgName}-${index - 1}.png` as const;
9797
return {
9898
...step,
9999
imgInputPath: imgInputPath,
100100
imgOutputPath: `${OUTPUT_DIR}/${imgName}-${index}.png`
101-
}
101+
} as const
102102
})
103103
}

typescript/end-to-end-applications/ai-image-workflows/src/puppeteer_service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const puppeteerService = restate.service({
2020
}
2121
})
2222

23-
async function takeWebsiteScreenshot(imgOutputPath: string, params: PuppeteerParams) {
23+
async function takeWebsiteScreenshot(imgOutputPath: `${string}.${puppeteer.ImageFormat}`, params: PuppeteerParams) {
2424
const browser = await puppeteer.launch({ headless: true });
2525
const page = await browser.newPage();
2626
await page.setViewport({ width: params.viewport?.width ?? 1388, height: params.viewport?.height ?? 800 });

typescript/end-to-end-applications/ai-image-workflows/src/types/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import { ImageFormat } from "puppeteer";
2+
13
export type WorkflowStep = {
2-
imgInputPath?: string;
3-
imgOutputPath?: string;
4+
imgInputPath?: `${string}.${ImageFormat}`;
5+
imgOutputPath?: `${string}.${ImageFormat}`;
46
action: string;
57
parameters: any;
68
}

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"name": "@restatedev/examples-e2e-food-ordering",
33
"version": "0.8.0",
4-
"description": "A food ordering app, implented in Restate",
4+
"description": "A food ordering app, implemented in Restate",
55
"main": "app.js",
66
"type": "commonjs",
77
"scripts": {
88
"build": "tsc --noEmitOnError",
99
"prebundle": "rm -rf dist",
10-
"bundle": "esbuild src/delivery-app/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/index.js",
11-
"postbundle": "cd dist && zip -r index.zip index.js*",
10+
"bundle-order": "esbuild src/order-app/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/order-app/app.js",
11+
"bundle-restaurant": "esbuild src/restaurant/server.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/restaurant/server.js",
12+
"bundle": "npm run bundle-order && npm run bundle-restaurant",
13+
"postbundle": "cd dist/order-app && zip -r app.zip app.js* && cd ../restaurant && zip -r server.zip server.js*",
1214
"order-app": "node ./dist/order-app/app.js",
13-
"delivery-app": "node ./dist/delivery-app/app.js",
1415
"restaurant-app": "node ./dist/restaurant/server.js",
1516
"app-dev": "RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --watch src --respawn --transpile-only src/order-app/app.ts"
1617
},
@@ -25,7 +26,7 @@
2526
},
2627
"devDependencies": {
2728
"@types/express": "^4.17.3",
28-
"esbuild": "^0.18.12",
29+
"esbuild": "^0.25.4",
2930
"prettier": "^2.8.4",
3031
"ts-node-dev": "^1.1.1",
3132
"typescript": "^5.0.2"

0 commit comments

Comments
 (0)