Skip to content

Commit b4a9b4b

Browse files
authored
Release 0.3.1 (#32)
--------- Signed-off-by: Nik Nasr <[email protected]>
1 parent 49c22f2 commit b4a9b4b

File tree

9 files changed

+76
-45
lines changed

9 files changed

+76
-45
lines changed

packages/examples/src/auth/app.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,7 @@ const authClientMachine = createMachine({
7878
},
7979
});
8080

81-
await restate.endpoint().bind(xstate("auth", authClientMachine)).listen(9080);
81+
await restate.serve({
82+
services: [xstate("auth", authClientMachine)],
83+
port: 9080,
84+
});

packages/examples/src/payment/app.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,7 @@ export const machine = setup({
122122
},
123123
});
124124

125-
await restate.endpoint().bind(xstate("payment", machine)).listen(9081);
125+
await restate.serve({
126+
services: [xstate("payment", machine)],
127+
port: 9081,
128+
});

packages/examples/src/versioning/app.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ const counterv2 = createMachine({
5454
},
5555
});
5656

57-
await restate
58-
.endpoint()
59-
.bind(
57+
await restate.serve({
58+
services: [
6059
xstate("counter", counterv2, {
6160
versions: [counterv1],
6261
}),
63-
)
64-
.listen(9082);
62+
],
63+
port: 9082,
64+
});

packages/restate-xstate-test/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# @restatedev/xstate-test
22

3+
## 0.3.1
4+
5+
### Patch Changes
6+
7+
- f96eba7: Update TS SDK, and add final state TTL option
8+
9+
```ts
10+
// Clear the state after 100ms of machine reaching its final state
11+
xstate("myMachine", machine, { finalStateTTL: 100 });
12+
```
13+
14+
- Updated dependencies [f96eba7]
15+
- @restatedev/xstate@0.3.1
16+
317
## 0.3.0
418

519
### Minor Changes

packages/restate-xstate-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@restatedev/xstate-test",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Utility for testing xstate with Restate",
55
"license": "MIT",
66
"author": "Restate developers",

packages/restate-xstate/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @restatedev/xstate
22

3+
## 0.3.1
4+
5+
### Patch Changes
6+
7+
- f96eba7: Update TS SDK, and add final state TTL option
8+
9+
```ts
10+
// Clear the state after 100ms of machine reaching its final state
11+
xstate("myMachine", machine, { finalStateTTL: 100 });
12+
```
13+
314
## 0.3.0
415

516
### Minor Changes

packages/restate-xstate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@restatedev/xstate",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Run XState state machines on Restate",
55
"license": "MIT",
66
"author": "Restate developers",

pnpm-lock.yaml

Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ packages:
22
- packages/*
33

44
catalog:
5-
"@restatedev/restate-sdk": ^1.7.0
6-
"@restatedev/restate-sdk-clients": ^1.7.0
7-
"@restatedev/restate-sdk-testcontainers": ^1.7.0
5+
"@restatedev/restate-sdk": ^1.8.0
6+
"@restatedev/restate-sdk-clients": ^1.8.0
7+
"@restatedev/restate-sdk-testcontainers": ^1.8.0
88
xstate: ^5.20.1
99

1010
onlyBuiltDependencies:

0 commit comments

Comments
 (0)