@rivetkit/react 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/mod.d.mts +1 -1
- package/dist/mod.d.ts +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# RivetKit React
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
_Library to build and scale stateful workloads_
|
|
4
4
|
|
|
5
|
-
[Learn More →](https://github.com/rivet-
|
|
5
|
+
[Learn More →](https://github.com/rivet-dev/rivetkit)
|
|
6
6
|
|
|
7
|
-
[Discord](https://rivet.
|
|
7
|
+
[Discord](https://rivet.dev/discord) — [Documentation](https://rivetkit.org) — [Issues](https://github.com/rivet-dev/rivetkit/issues)
|
|
8
8
|
|
|
9
9
|
## License
|
|
10
10
|
|
package/dist/mod.d.mts
CHANGED
|
@@ -6,11 +6,11 @@ import { AnyActorRegistry, CreateRivetKitOptions, ActorOptions } from '@rivetkit
|
|
|
6
6
|
declare function createRivetKit<Registry extends AnyActorRegistry>(client: Client<Registry>, opts?: CreateRivetKitOptions<Registry>): {
|
|
7
7
|
useActor: <ActorName extends keyof ExtractActorsFromRegistry<Registry>>(opts: ActorOptions<Registry, ActorName>) => {
|
|
8
8
|
useEvent: (eventName: string, handler: (...args: any[]) => void) => void;
|
|
9
|
+
error: Error | null;
|
|
9
10
|
hash: string;
|
|
10
11
|
isConnected?: boolean | undefined;
|
|
11
12
|
isConnecting?: boolean | undefined;
|
|
12
13
|
isError?: boolean | undefined;
|
|
13
|
-
error: Error | null;
|
|
14
14
|
opts: {
|
|
15
15
|
name: keyof ExtractActorsFromRegistry<Registry>;
|
|
16
16
|
key: string | string[];
|
package/dist/mod.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ import { AnyActorRegistry, CreateRivetKitOptions, ActorOptions } from '@rivetkit
|
|
|
6
6
|
declare function createRivetKit<Registry extends AnyActorRegistry>(client: Client<Registry>, opts?: CreateRivetKitOptions<Registry>): {
|
|
7
7
|
useActor: <ActorName extends keyof ExtractActorsFromRegistry<Registry>>(opts: ActorOptions<Registry, ActorName>) => {
|
|
8
8
|
useEvent: (eventName: string, handler: (...args: any[]) => void) => void;
|
|
9
|
+
error: Error | null;
|
|
9
10
|
hash: string;
|
|
10
11
|
isConnected?: boolean | undefined;
|
|
11
12
|
isConnecting?: boolean | undefined;
|
|
12
13
|
isError?: boolean | undefined;
|
|
13
|
-
error: Error | null;
|
|
14
14
|
opts: {
|
|
15
15
|
name: keyof ExtractActorsFromRegistry<Registry>;
|
|
16
16
|
key: string | string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
|
+
"description": "React hooks and components for RivetKit client applications",
|
|
4
5
|
"license": "Apache-2.0",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"rivetkit",
|
|
@@ -29,8 +30,8 @@
|
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
32
|
"@tanstack/react-store": "^0.7.1",
|
|
32
|
-
"@rivetkit/framework-base": "2.0.
|
|
33
|
-
"rivetkit": "^2.0.
|
|
33
|
+
"@rivetkit/framework-base": "2.0.4",
|
|
34
|
+
"rivetkit": "^2.0.4"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
36
37
|
"react": "^18 || ^19",
|