Skip to content

Commit

Permalink
Merge pull request #23 from statelyai/changeset-release/main
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
davidkpiano committed Mar 16, 2024
2 parents 1424f03 + cf8a1b4 commit d851ad5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 deletions.
28 changes: 0 additions & 28 deletions .changeset/soft-readers-attend.md

This file was deleted.

29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# @statelyai/agent

## 0.0.8

### Patch Changes

- [#22](https://github.com/statelyai/agent/pull/22) [`8a2c34b`](https://github.com/statelyai/agent/commit/8a2c34b8a99161bf47c72df8eed3f5d3b6a19f5f) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The `createSchemas(…)` function has been removed. The `defineEvents(…)` function should be used instead, as it is a simpler way of defining events and event schemas using Zod:

```ts
import { defineEvents } from "@statelyai/agent";
import { z } from "zod";
import { setup } from "xstate";

const events = defineEvents({
inc: z.object({
by: z.number().describe("Increment amount"),
}),
});

const machine = setup({
types: {
events: events.types,
},
schema: {
events: events.schemas,
},
}).createMachine({
// ...
});
```

## 0.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@statelyai/agent",
"version": "0.0.7",
"version": "0.0.8",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down

0 comments on commit d851ad5

Please sign in to comment.