Skip to content
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

Add deno, bun CF worker examples to update script #160

Merged
merged 5 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
kotlin-hello-world-gradle.zip
typescript-hello-world.zip
typescript-hello-world-lambda-cdk.zip
bun-hello-world.zip
cloudflare-worker-hello-world.zip
deno-hello-world.zip
kotlin-hello-world-lambda-cdk.zip
java-tour-of-restate.zip
typescript-tour-of-restate.zip
Expand All @@ -37,4 +40,4 @@ jobs:
java-food-ordering.zip
kotlin-food-ordering.zip
typescript-food-ordering.zip
typescript-ai-image-workflows.zip
typescript-ai-image-workflows.zip
5 changes: 4 additions & 1 deletion .tools/prepare_release_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ create_release_zip templates/java-gradle java-hello-world-gradle
create_release_zip templates/java-maven java-hello-world-maven
create_release_zip templates/kotlin-gradle kotlin-hello-world-gradle
create_release_zip templates/typescript typescript-hello-world
create_release_zip templates/bun bun-hello-world
create_release_zip templates/cloudflare-worker cloudflare-worker-hello-world
create_release_zip templates/deno deno-hello-world
create_release_zip templates/typescript-lambda-cdk typescript-hello-world-lambda-cdk
create_release_zip templates/kotlin-gradle-lambda-cdk kotlin-hello-world-lambda-cdk

Expand All @@ -32,4 +35,4 @@ create_release_zip patterns-use-cases/payment-state-machine/payment-state-machin
create_release_zip end-to-end-applications/java/food-ordering java-food-ordering
create_release_zip end-to-end-applications/kotlin/food-ordering kotlin-food-ordering
create_release_zip end-to-end-applications/typescript/food-ordering typescript-food-ordering
create_release_zip end-to-end-applications/typescript/ai-image-workflows typescript-ai-image-workflows
create_release_zip end-to-end-applications/typescript/ai-image-workflows typescript-ai-image-workflows
2 changes: 2 additions & 0 deletions .tools/run_node_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ npm_install_check $PROJECT_ROOT/basics/basics-typescript

npm_install_check $PROJECT_ROOT/templates/typescript
npm_install_check $PROJECT_ROOT/templates/typescript-lambda-cdk
npm_install_check $PROJECT_ROOT/templates/cloudflare-worker
npm_install_check $PROJECT_ROOT/templates/bun

npm_install_check $PROJECT_ROOT/tutorials/tour-of-restate-typescript

Expand Down
7 changes: 7 additions & 0 deletions .tools/update_node_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ bump_ts_sdk $PROJECT_ROOT/basics/basics-typescript

bump_ts_sdk $PROJECT_ROOT/templates/typescript
bump_ts_sdk $PROJECT_ROOT/templates/typescript-lambda-cdk
bump_ts_sdk $PROJECT_ROOT/templates/cloudflare-worker
bump_ts_sdk $PROJECT_ROOT/templates/bun

# -i works differently in gnu sed and mac (bsd) sed - best avoided
tmp=$(mktemp)
sed "s#\"npm:@restatedev/restate-sdk@^.*/fetch\"#\"npm:@restatedev/restate-sdk@^${NEW_VERSION}/fetch\"#g" $PROJECT_ROOT/templates/deno/main.ts > $tmp
mv $tmp $PROJECT_ROOT/templates/deno/main.ts

bump_ts_sdk $PROJECT_ROOT/tutorials/tour-of-restate-typescript

Expand Down
2 changes: 1 addition & 1 deletion basics/basics-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"example-4": "ts-node-dev --transpile-only src/4_virtual_objects.ts"
},
"dependencies": {
"@restatedev/restate-sdk": "^1.0.0",
"@restatedev/restate-sdk": "^1.0.1",
"@restatedev/restate-sdk-clients": "^1.0.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"workflow-service": "ts-node-dev --watch ./src --respawn --transpile-only src/workflow/workflow.ts"
},
"dependencies": {
"@restatedev/restate-sdk": "^1.0.0",
"@restatedev/restate-sdk": "^1.0.1",
"axios": "^1.6.7",
"axios-retry": "^4.0.0",
"express": "^4.18.2",
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"app-dev": "RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --watch src --respawn --transpile-only src/order-app/app.ts"
},
"dependencies": {
"@restatedev/restate-sdk": "^1.0.0",
"@restatedev/restate-sdk": "^1.0.1",
"@types/node": "^20.6.3",
"@types/uuid": "^9.0.0",
"axios": "^1.4.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"app-dev": "ts-node-dev --watch ./src --transpile-only ./src/payment_handler.ts"
},
"dependencies": {
"@restatedev/restate-sdk": "^1.0.0",
"@restatedev/restate-sdk": "^1.0.1",
"stripe": "^14.15.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"example3": "ts-node --transpile-only ./src/3_example_parallel_processes.ts"
},
"dependencies": {
"@restatedev/restate-sdk": "^1.0.0",
"@restatedev/restate-sdk-clients": "^1.0.0"
"@restatedev/restate-sdk": "^1.0.1",
"@restatedev/restate-sdk-clients": "^1.0.1"
},
"devDependencies": {
"@restatedev/restate": "^0.9.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"app-dev": "ts-node-dev --watch ./src --transpile-only ./src/payment_service.ts"
},
"dependencies": {
"@restatedev/restate-sdk": "^1.0.0"
"@restatedev/restate-sdk": "^1.0.1"
},
"devDependencies": {
"@restatedev/restate": "^0.9.2",
Expand Down
2 changes: 1 addition & 1 deletion patterns-use-cases/sagas/sagas-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "tsc --noEmitOnError"
},
"dependencies": {
"@restatedev/restate-sdk": "^1.0.0"
"@restatedev/restate-sdk": "^1.0.1"
},
"devDependencies": {
"@types/node": "^20.12.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"example-crash": "CRASH_PROCESS=true ./utils/restart-process.sh 'RESTATE_DEBUG_LOGGING=OFF ts-node-dev --transpile-only src/state_machine.ts'"
},
"dependencies": {
"@restatedev/restate-sdk": "^1.0.0"
"@restatedev/restate-sdk": "^1.0.1"
},
"devDependencies": {
"@restatedev/restate": "^0.9.2",
Expand Down
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": "^1.0.0"
"@restatedev/restate-sdk": "^1.0.1"
},
"devDependencies": {
"@restatedev/restate": "^0.9.2",
Expand Down
2 changes: 1 addition & 1 deletion templates/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"app-dev": "ts-node-dev --watch ./src --respawn --transpile-only ./src/app.ts"
},
"dependencies": {
"@restatedev/restate-sdk": "^1.0.0"
"@restatedev/restate-sdk": "^1.0.1"
},
"devDependencies": {
"@types/node": "^20.14.2",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tour-of-restate-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"author": "Restate Developers",
"email": "[email protected]",
"dependencies": {
"@restatedev/restate-sdk": "^1.0.0",
"@restatedev/restate-sdk": "^1.0.1",
"uuid": "^9.0.0"
},
"devDependencies": {
Expand Down
Loading