Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 00f8bc4

Browse files
committed
chore: fix comp errors
1 parent 6343832 commit 00f8bc4

File tree

40 files changed

+54
-60
lines changed

40 files changed

+54
-60
lines changed

clients/openapi/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.0",
33
"info": {
4-
"version": "2.0.3",
4+
"version": "2.0.4",
55
"title": "RivetKit API"
66
},
77
"components": {

examples/ai-agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-ai-agent",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/better-auth-external-db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-better-auth-external-db",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/better-auth-external-db/src/backend/registry.ts

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { actor, type OnAuthOptions, setup } from "rivetkit";
2-
import { Unauthorized } from "rivetkit/errors";
3-
import { auth } from "./auth";
1+
import { actor, setup } from "rivetkit";
42

53
interface State {
64
messages: Message[];
@@ -20,19 +18,20 @@ export const chatRoom = actor({
2018
} as State,
2119
actions: {
2220
sendMessage: (c, message: string) => {
23-
// Access Better Auth with c.conn.auth
24-
const newMessage = {
25-
id: crypto.randomUUID(),
26-
userId: c.conn.auth.user.id,
27-
username: c.conn.auth.user.name,
28-
message,
29-
timestamp: Date.now(),
30-
};
31-
32-
c.state.messages.push(newMessage);
33-
c.broadcast("newMessage", newMessage);
34-
35-
return newMessage;
21+
// TODO: Add back using onBeforeConnect
22+
// // Access Better Auth with c.conn.auth
23+
// const newMessage = {
24+
// id: crypto.randomUUID(),
25+
// userId: c.conn.auth.user.id,
26+
// username: c.conn.auth.user.name,
27+
// message,
28+
// timestamp: Date.now(),
29+
// };
30+
//
31+
// c.state.messages.push(newMessage);
32+
// c.broadcast("newMessage", newMessage);
33+
//
34+
// return newMessage;
3635
},
3736
getMessages: (c) => {
3837
return c.state.messages;

examples/chat-room/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chat-room",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/cloudflare-workers-hono/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-cloudflare-workers-hono",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/cloudflare-workers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-cloudflare-workers",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/counter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "counter",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/crdt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-crdt",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/database/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-database",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"private": true,
55
"type": "module",
66
"scripts": {

0 commit comments

Comments
 (0)