Skip to content

Update outdated deps and fix some broken scripts #285

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 4 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: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ restate-data
# Python
uv.lock
.python-version

**/bin
1 change: 0 additions & 1 deletion go/integrations/go-lambda-cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@types/node": "22.5.2",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"aws-cdk": "^2.155.0",
"esbuild": "^0.23.1",
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
Expand Down
1 change: 0 additions & 1 deletion java/integrations/java-gradle-lambda-cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@types/node": "22.5.2",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"aws-cdk": "^2.155.0",
"esbuild": "^0.23.1",
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
Expand Down
1 change: 0 additions & 1 deletion kotlin/integrations/kotlin-gradle-lambda-cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@types/node": "22.5.2",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"aws-cdk": "^2.155.0",
"esbuild": "^0.23.1",
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
Expand Down
2 changes: 1 addition & 1 deletion python/integrations/deployment-lambda-cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/node": "22.5.2",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"aws-cdk": "^2",
"esbuild": "^0.23.1",
"esbuild": "^0.25.4",
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"axios": "^1.6.7",
"axios-retry": "^4.0.0",
"jimp": "^0.22.10",
"puppeteer": "^21.9.0"
"puppeteer": "^24.9.0"
},
"devDependencies": {
"ts-node-dev": "^1.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ function addImgPathToSteps(wfSteps: WorkflowStep[], imgName: string) {

return wfSteps.map((step, index) => {
// 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
const imgInputPath = index === 0 ? step.imgInputPath : `${OUTPUT_DIR}/${imgName}-${index - 1}.png`;
const imgInputPath = index === 0 ? step.imgInputPath : `${OUTPUT_DIR}/${imgName}-${index - 1}.png` as const;
return {
...step,
imgInputPath: imgInputPath,
imgOutputPath: `${OUTPUT_DIR}/${imgName}-${index}.png`
}
} as const
})
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const puppeteerService = restate.service({
}
})

async function takeWebsiteScreenshot(imgOutputPath: string, params: PuppeteerParams) {
async function takeWebsiteScreenshot(imgOutputPath: `${string}.${puppeteer.ImageFormat}`, params: PuppeteerParams) {
const browser = await puppeteer.launch({ headless: true });
const page = await browser.newPage();
await page.setViewport({ width: params.viewport?.width ?? 1388, height: params.viewport?.height ?? 800 });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ImageFormat } from "puppeteer";

export type WorkflowStep = {
imgInputPath?: string;
imgOutputPath?: string;
imgInputPath?: `${string}.${ImageFormat}`;
imgOutputPath?: `${string}.${ImageFormat}`;
action: string;
parameters: any;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"name": "@restatedev/examples-e2e-food-ordering",
"version": "0.8.0",
"description": "A food ordering app, implented in Restate",
"description": "A food ordering app, implemented in Restate",
"main": "app.js",
"type": "commonjs",
"scripts": {
"build": "tsc --noEmitOnError",
"prebundle": "rm -rf dist",
"bundle": "esbuild src/delivery-app/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/index.js",
"postbundle": "cd dist && zip -r index.zip index.js*",
"bundle-order": "esbuild src/order-app/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/order-app/app.js",
"bundle-restaurant": "esbuild src/restaurant/server.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/restaurant/server.js",
"bundle": "npm run bundle-order && npm run bundle-restaurant",
"postbundle": "cd dist/order-app && zip -r app.zip app.js* && cd ../restaurant && zip -r server.zip server.js*",
"order-app": "node ./dist/order-app/app.js",
"delivery-app": "node ./dist/delivery-app/app.js",
"restaurant-app": "node ./dist/restaurant/server.js",
"app-dev": "RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --watch src --respawn --transpile-only src/order-app/app.ts"
},
Expand All @@ -25,7 +26,7 @@
},
"devDependencies": {
"@types/express": "^4.17.3",
"esbuild": "^0.18.12",
"esbuild": "^0.25.4",
"prettier": "^2.8.4",
"ts-node-dev": "^1.1.1",
"typescript": "^5.0.2"
Expand Down
2 changes: 1 addition & 1 deletion typescript/integrations/deployment-lambda-cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/node": "22.5.2",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"aws-cdk": "^2.155.0",
"esbuild": "^0.23.1",
"esbuild": "^0.25.4",
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
Expand Down
1 change: 0 additions & 1 deletion typescript/patterns-use-cases/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@types/express": "^5.0.0",
"@types/node": "^20.14.2",
"@types/sequelize": "^4.28.20",
"esbuild": "^0.21.5",
"tsx": "^4.19.2",
"typescript": "^5.4.5"
}
Expand Down
2 changes: 1 addition & 1 deletion typescript/templates/cloudflare-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@cloudflare/workers-types": "^4.20240605.0",
"prettier": "^3.3.2",
"typescript": "^5.4.5",
"wrangler": "^3.81.0"
"wrangler": "^4.16.1"
}
}
6 changes: 3 additions & 3 deletions typescript/templates/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"scripts": {
"build": "tsc --noEmitOnError",
"prebundle": "rm -rf dist",
"bundle": "esbuild src/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/index.js",
"postbundle": "cd dist && zip -r index.zip index.js*",
"bundle": "esbuild src/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/app.js",
"postbundle": "cd dist && zip -r index.zip app.js*",
"app": "node ./dist/app.js",
"app-dev": "tsx watch ./src/app.ts"
},
Expand All @@ -17,7 +17,7 @@
},
"devDependencies": {
"@types/node": "^20.14.2",
"esbuild": "^0.21.5",
"esbuild": "^0.25.4",
"tsx": "^4.19.2",
"typescript": "^5.4.5"
}
Expand Down
6 changes: 3 additions & 3 deletions typescript/templates/typescript-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"scripts": {
"build": "tsc --noEmitOnError",
"prebundle": "rm -rf dist",
"bundle": "esbuild src/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/index.js",
"postbundle": "cd dist && zip -r index.zip index.js*",
"bundle": "esbuild src/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/app.js",
"postbundle": "cd dist && zip -r app.zip app.js*",
"app": "node ./dist/app.js",
"app-dev": "tsx watch ./src/app.ts",
"test": "TESTCONTAINERS_RYUK_DISABLED=true DEBUG=testcontainers,testcontainers:exec,testcontainers:containers jest --maxWorkers=1 --detectOpenHandles"
Expand All @@ -21,7 +21,7 @@
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^20.14.2",
"esbuild": "^0.21.5",
"esbuild": "^0.25.4",
"ts-jest": "^29.3.1",
"tsx": "^4.19.2",
"typescript": "^5.4.5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"esbuild": "^0.19.0",
"eslint": "^8.46.0",
"prettier": "^3.0.1",
"tsx": "^4.19.2"
Expand Down
Loading