From 2909477e2f3b8afb392ee49cf7f33e15d6ea5579 Mon Sep 17 00:00:00 2001 From: slinkydeveloper Date: Thu, 25 Apr 2024 13:16:38 +0200 Subject: [PATCH] Fix broken links and update package versions --- code_snippets/java/build.gradle.kts | 5 +- code_snippets/kotlin/build.gradle.kts | 5 +- code_snippets/ts/package-lock.json | 91 ++++++++++++------- code_snippets/ts/package.json | 6 +- .../concepts/invocations/ingress/delayed.ts | 2 +- .../concepts/invocations/ingress/one_way.ts | 2 +- .../src/concepts/invocations/ingress/rpc.ts | 2 +- docs/get_started/tour.mdx | 56 ++++++------ 8 files changed, 92 insertions(+), 77 deletions(-) diff --git a/code_snippets/java/build.gradle.kts b/code_snippets/java/build.gradle.kts index 4ba81c72..171da643 100644 --- a/code_snippets/java/build.gradle.kts +++ b/code_snippets/java/build.gradle.kts @@ -6,13 +6,10 @@ plugins { } repositories { - maven { - url = URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/") - } mavenCentral() } -val restateVersion = "0.9.0-SNAPSHOT" +val restateVersion = "0.9.0" dependencies { // Restate SDK diff --git a/code_snippets/kotlin/build.gradle.kts b/code_snippets/kotlin/build.gradle.kts index 54c2da5e..dad40137 100644 --- a/code_snippets/kotlin/build.gradle.kts +++ b/code_snippets/kotlin/build.gradle.kts @@ -10,13 +10,10 @@ plugins { } repositories { - maven { - url = URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/") - } mavenCentral() } -val restateVersion = "0.9.0-SNAPSHOT" +val restateVersion = "0.9.0" dependencies { // Annotation processor diff --git a/code_snippets/ts/package-lock.json b/code_snippets/ts/package-lock.json index fa0b1749..4b0a61c1 100644 --- a/code_snippets/ts/package-lock.json +++ b/code_snippets/ts/package-lock.json @@ -8,9 +8,9 @@ "name": "restate-ts-template", "version": "0.0.1", "dependencies": { - "@restatedev/restate-cdk": "0.7.0", - "@restatedev/restate-sdk": "dev", - "@restatedev/restate-sdk-ingress": "dev" + "@restatedev/restate-cdk": "0.8.0", + "@restatedev/restate-sdk": "0.9.0", + "@restatedev/restate-sdk-clients": "^0.9.0" }, "devDependencies": { "esbuild": "^0.18.12", @@ -1012,47 +1012,32 @@ } }, "node_modules/@restatedev/restate-cdk": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/@restatedev/restate-cdk/-/restate-cdk-0.7.0.tgz", - "integrity": "sha512-iQtX9+dZmurPW0CD0tPjrDy69Jso5r+rqHhk42XmjydnWlN7cw4Qstyn3Qy9pNDmtvHxpsiH5ny1WfatpMm8kA==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@restatedev/restate-cdk/-/restate-cdk-0.8.0.tgz", + "integrity": "sha512-HkuJ32GlohfWXVWHZqK/RYaho+IbIVw+ifPk7kZW6moBPFlRQBBa0i4UDIStOO6RVj27uep813tu9rxMMvgUng==", "peerDependencies": { - "@aws-sdk/client-secrets-manager": "^3.462.0", - "aws-cdk-lib": "^2.121.0", + "@aws-sdk/client-secrets-manager": "^3.556.0", + "aws-cdk": "^2.138.0", + "aws-cdk-lib": "^2.138.0", "constructs": "^10.0.0", - "node-fetch": "^3.3.2", - "source-map-support": "^0.5.21" + "node-fetch": "^3.3.2" } }, "node_modules/@restatedev/restate-sdk": { - "version": "0.0.0-SNAPSHOT-20240422172416", - "resolved": "https://registry.npmjs.org/@restatedev/restate-sdk/-/restate-sdk-0.0.0-SNAPSHOT-20240422172416.tgz", - "integrity": "sha512-apZX7vnwmlXgKie0x7XDzz3G4u7usrpafRhmOvDT6jDvVSOBPR+K9X3ioTqZE8QmciMbsrcdH6ZBPb8mX3vP5g==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@restatedev/restate-sdk/-/restate-sdk-0.9.0.tgz", + "integrity": "sha512-/ZW8q/TNsKCp+GkTnhAsHUpyjlj0A0n6flf7lI1kS75osUYIXrtZc9o9AFrP57k1oX8+TQq7Doft/nyCnujY8Q==", "dependencies": { - "@bufbuild/protobuf": "^1.8.0", - "@restatedev/restate-sdk": "0.0.0-SNAPSHOT-20240422172416", - "@restatedev/restate-sdk-clients": "0.0.0-SNAPSHOT-20240422172416" + "@bufbuild/protobuf": "^1.8.0" }, "engines": { "node": ">= 18" } }, "node_modules/@restatedev/restate-sdk-clients": { - "version": "0.0.0-SNAPSHOT-20240422172416", - "resolved": "https://registry.npmjs.org/@restatedev/restate-sdk-clients/-/restate-sdk-clients-0.0.0-SNAPSHOT-20240422172416.tgz", - "integrity": "sha512-QIoaiwtgfIxpQLpwLVuBaWwNSXiSytgZByHGWkhJgG4Pb1WF+YdLnWXouxW3idxB1TA8RqTUmEHEyzB3BBaYSA==", - "dependencies": { - "@restatedev/restate-sdk": "0.0.0-SNAPSHOT-20240422172416", - "@restatedev/restate-sdk-clients": "0.0.0-SNAPSHOT-20240422172416" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@restatedev/restate-sdk-ingress": { - "version": "0.0.0-SNAPSHOT-20240418160240", - "resolved": "https://registry.npmjs.org/@restatedev/restate-sdk-ingress/-/restate-sdk-ingress-0.0.0-SNAPSHOT-20240418160240.tgz", - "integrity": "sha512-aUuWbGURB3V0JXQb7IdWfZx/o4/RvyCmy30JL+ie4sCoF4aAToEG9oi/Ug/JabNrIfuJ4nuiTN+mekBgeqHuPQ==", - "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@restatedev/restate-sdk-clients/-/restate-sdk-clients-0.9.0.tgz", + "integrity": "sha512-YilVig+na3ZwYmDX58DgBy+0y4XsdojKiWhXgpXCRUEgsE/ncGBxNna/vNXl/7Nxjd/MZM9dlI/kg8WK5dQ6ag==", "engines": { "node": ">= 18" } @@ -1638,6 +1623,21 @@ "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true }, + "node_modules/aws-cdk": { + "version": "2.139.0", + "resolved": "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.139.0.tgz", + "integrity": "sha512-MjMsySQbhR5yTWCphnuVQuS15UdGMV6v4XIM+C8SN7/eUOfv7BFr7QgYMUm5WXCG/f66RnY0zjJbOLRxvcjCrQ==", + "peer": true, + "bin": { + "cdk": "bin/cdk" + }, + "engines": { + "node": ">= 14.15.0" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, "node_modules/aws-cdk-lib": { "version": "2.138.0", "resolved": "https://registry.npmjs.org/aws-cdk-lib/-/aws-cdk-lib-2.138.0.tgz", @@ -2036,10 +2036,25 @@ "node": ">= 6" } }, + "node_modules/aws-cdk/node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true }, "node_modules/binary-extensions": { "version": "2.3.0", @@ -2063,6 +2078,7 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2083,7 +2099,8 @@ "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true }, "node_modules/chokidar": { "version": "3.6.0", @@ -2112,7 +2129,8 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true }, "node_modules/constructs": { "version": "10.3.0", @@ -2415,6 +2433,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -2570,6 +2589,7 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -2578,6 +2598,7 @@ "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" diff --git a/code_snippets/ts/package.json b/code_snippets/ts/package.json index dd112162..d47e164d 100644 --- a/code_snippets/ts/package.json +++ b/code_snippets/ts/package.json @@ -13,9 +13,9 @@ "app-dev": "ts-node-dev --watch src --respawn --transpile-only ./src/app.ts" }, "dependencies": { - "@restatedev/restate-sdk": "dev", - "@restatedev/restate-sdk-ingress": "dev", - "@restatedev/restate-cdk": "0.7.0" + "@restatedev/restate-sdk": "0.9.0", + "@restatedev/restate-sdk-clients": "^0.9.0", + "@restatedev/restate-cdk": "0.8.0" }, "devDependencies": { "ts-node-dev": "^1.1.1", diff --git a/code_snippets/ts/src/concepts/invocations/ingress/delayed.ts b/code_snippets/ts/src/concepts/invocations/ingress/delayed.ts index 9aed8810..ea338137 100644 --- a/code_snippets/ts/src/concepts/invocations/ingress/delayed.ts +++ b/code_snippets/ts/src/concepts/invocations/ingress/delayed.ts @@ -1,4 +1,4 @@ -import * as restate from "@restatedev/restate-sdk-ingress"; +import * as restate from "@restatedev/restate-sdk-clients"; import {greetCounterObject, greeterService} from "../utils"; // diff --git a/code_snippets/ts/src/concepts/invocations/ingress/one_way.ts b/code_snippets/ts/src/concepts/invocations/ingress/one_way.ts index 15215ebe..57617b63 100644 --- a/code_snippets/ts/src/concepts/invocations/ingress/one_way.ts +++ b/code_snippets/ts/src/concepts/invocations/ingress/one_way.ts @@ -1,4 +1,4 @@ -import * as restate from "@restatedev/restate-sdk-ingress"; +import * as restate from "@restatedev/restate-sdk-clients"; import {greetCounterObject, greeterService} from "../utils"; // diff --git a/code_snippets/ts/src/concepts/invocations/ingress/rpc.ts b/code_snippets/ts/src/concepts/invocations/ingress/rpc.ts index 22621b77..9d7f8ea4 100644 --- a/code_snippets/ts/src/concepts/invocations/ingress/rpc.ts +++ b/code_snippets/ts/src/concepts/invocations/ingress/rpc.ts @@ -1,4 +1,4 @@ -import * as restate from "@restatedev/restate-sdk-ingress"; +import * as restate from "@restatedev/restate-sdk-clients"; import {greetCounterObject, greeterService} from "../utils"; // diff --git a/docs/get_started/tour.mdx b/docs/get_started/tour.mdx index 8ea97558..826e7cf9 100644 --- a/docs/get_started/tour.mdx +++ b/docs/get_started/tour.mdx @@ -225,7 +225,7 @@ If you run Restate with Docker, replace `http://localhost:9080` by `http://host. In `src/app` you will find the skeletons of the various services to help you start implementing the app. For example: ```typescript checkout_service.ts - CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part1/checkout_service.ts#- + CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part1/checkout_service.ts#- ``` Restate handlers have the Restate Context supplied as the first argument. @@ -239,7 +239,7 @@ In `src/app` you will find the skeletons of the various services to help you sta In `src/main/java/dev/restate/tour/app` you will find the skeletons of the various services to help you start implementing the app. For example: ```java CheckoutService.java -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part1/CheckoutService.java#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part1/CheckoutService.java#- ``` Services are annotated by `@Service`. A service consists of a set of handlers, and each handler is annotated by `@Handler`. @@ -306,7 +306,7 @@ It does that by calling the `TicketObject/reserve` handler: ```typescript cart_object.ts - CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part1/cart_object.ts#- + CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part1/cart_object.ts#- ```
Service logs @@ -339,7 +339,7 @@ It does that by calling the `TicketObject/reserve` handler: ```java CartObject.java - CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part1/CartObject.java#- + CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part1/CartObject.java#- ```
@@ -390,7 +390,7 @@ Let the `expireTicket` handler call the `TicketObject/unreserve` handler. ```typescript cart_object.ts -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part1/cart_object.ts#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part1/cart_object.ts#- ``` Specify that you want to call the `TicketObject` by supplying `ticketObjectApi` to the `send` function. @@ -421,7 +421,7 @@ curl localhost:8080/CartObject/Mary/expireTicket-H 'content-type: application/js ```java CartObject.java -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part1/CartObject.java#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part1/CartObject.java#- ``` You now call `send()` on the generated client to send a message instead of doing a request-response call. You also don't need to await the response, as you don't expect one. @@ -498,7 +498,7 @@ You will fix this later on. Note that the `CheckoutService` is not a Virtual Obj ```typescript cart_object.ts - CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part1/cart_object.ts#- + CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part1/cart_object.ts#- ``` Call `CartObject/checkout` as you did [earlier](#request-response-calls-over-http) and have a look at the logs again to see what happened: @@ -519,7 +519,7 @@ You will fix this later on. Note that the `CheckoutService` is not a Virtual Obj ```java CartObject.java - CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part1/CartObject.java#- + CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part1/CartObject.java#- ``` Restart the service and call the `CartObject/checkout` handler as you did earlier and have a look at the logs again to see what happened. @@ -572,7 +572,7 @@ To see the recovery of partial progress in practice, let's make the `CartObject/ ```typescript cart_object.ts - CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part1/cart_object.ts#- + CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part1/cart_object.ts#- ``` @@ -615,7 +615,7 @@ To see the recovery of partial progress in practice, let's make the `CartObject/ ```java CartObject.java - CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part1/CartObject.java#- + CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part1/CartObject.java#- ``` @@ -800,14 +800,14 @@ Let the `CartObject/addTicket` handler call the `CartObject/expireTicket` handle ```typescript cart_object.ts -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part2/cart_object.ts#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part2/cart_object.ts#- ``` ```java CartObject.java -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part2/CartObject.java#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part2/CartObject.java#- ``` @@ -978,7 +978,7 @@ Have a look at the highlighted code: ```ts cart_object.ts -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part3/cart_object.ts#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part3/cart_object.ts#- ``` To retrieve the cart, you use `ctx.get`. @@ -988,7 +988,7 @@ This returns `null` if the value has never been set. ```java CartObject.java -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/CartObject.java#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/CartObject.java#- ``` To retrieve the cart, you use `ctx.get` with a state key that describes the name and the [(de)serializers](/develop/java/serialization) to be used. @@ -1056,14 +1056,14 @@ Also adapt the `CartObject/checkout` function, to use the tickets: ```typescript cart_object.ts - CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part3/cart_object.ts#- + CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part3/cart_object.ts#- ``` ```java CartObject.java - CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/CartObject.java#- + CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/CartObject.java#- ``` @@ -1127,14 +1127,14 @@ If this is the case, then you call `TicketObject/unreserve` and remove it from t ```ts cart_object.ts -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part3/cart_object.ts#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part3/cart_object.ts#- ``` ```java CartObject.java -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/CartObject.java#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/CartObject.java#- ``` @@ -1178,14 +1178,14 @@ return `true` (reservation successful). ```typescript ticket_object.ts -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part3/ticket_object.ts#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part3/ticket_object.ts#- ``` ```java TicketObject.java -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/TicketObject.java#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/TicketObject.java#- ``` @@ -1206,14 +1206,14 @@ Clear the `"status"`, if it's not equal to `TicketStatus.Sold`. ```ts ticket_object.ts -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part3/ticket_object.ts#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part3/ticket_object.ts#- ``` ```java TicketObject.java -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/TicketObject.java#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/TicketObject.java#- ``` @@ -1234,14 +1234,14 @@ Set the `"status"` to `TicketStatus.Sold` if it's reserved. ```ts ticket_object.ts -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part3/ticket_object.ts#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part3/ticket_object.ts#- ``` ```java TicketObject.java -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/TicketObject.java#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part3/TicketObject.java#- ``` @@ -1408,14 +1408,14 @@ After the `CheckoutService/handle` handler has handled the payment, you need to ```ts checkout_service.ts -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part4/checkout_service.ts#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part4/checkout_service.ts#- ``` ```java CheckoutService.java -CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part4/CheckoutService.java#- +CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part4/CheckoutService.java#- ``` @@ -1433,14 +1433,14 @@ Let the `CartObject/checkout` handler mark all tickets as sold by calling `Ticke ```typescript cart_object.ts - CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-typescript/src/part4/cart_object.ts#- + CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-typescript/src/part4/cart_object.ts#- ``` ```java CartObject.java - CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/dev_0.9/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part4/CartObject.java#- + CODE_LOAD::https://raw.githubusercontent.com/restatedev/examples/main/tutorials/tour-of-restate-java/src/main/java/dev/restate/tour/part4/CartObject.java#- ```