void-fate 1.5.0 → 1.5.2

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/lib/react.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from "react";
2
2
  //#region src/react.d.ts
3
- type VoidFateClientProps = {
3
+ export type VoidFateClientProps = {
4
4
  children: ReactNode;
5
5
  fetch?: typeof fetch;
6
6
  headers?: HeadersInit | (() => HeadersInit | Promise<HeadersInit>);
@@ -13,6 +13,5 @@ type VoidFateClientProps = {
13
13
  url?: string | URL;
14
14
  userId?: null | string;
15
15
  };
16
- declare function VoidFateClient({ children, fetch, headers, livePath, liveRetryMs, liveUrl, onLiveError, origin, rpcPath, url, userId }: VoidFateClientProps): import("react").JSX.Element;
17
- //#endregion
18
- export { VoidFateClient, VoidFateClientProps };
16
+ export declare function VoidFateClient({ children, fetch, headers, livePath, liveRetryMs, liveUrl, onLiveError, origin, rpcPath, url, userId }: VoidFateClientProps): import("react").JSX.Element;
17
+ //#endregion
package/lib/server.d.mts CHANGED
@@ -5,7 +5,7 @@ type VoidFatePublishOptions = {
5
5
  eventId?: string;
6
6
  type?: string;
7
7
  };
8
- type VoidFateLiveStream = {
8
+ export type VoidFateLiveStream = {
9
9
  connect(context: unknown, options?: unknown): Promise<Response>;
10
10
  control(context: unknown, options?: unknown): Promise<Response>;
11
11
  withEnv(env: unknown): {
@@ -17,24 +17,23 @@ type FateLiveContext = {
17
17
  pending: Array<Promise<void>>;
18
18
  stream: VoidFateLiveStream;
19
19
  };
20
- type VoidFateLiveOptions = Record<never, never>;
21
- type VoidFateRouteOptions = {
20
+ export type VoidFateLiveOptions = Record<never, never>;
21
+ export type VoidFateRouteOptions = {
22
22
  stream: VoidFateLiveStream;
23
23
  };
24
- type VoidFateLive = Readonly<{
24
+ export type VoidFateLive = Readonly<{
25
25
  live: LiveEventBus;
26
26
  withContext: <T>(context: Omit<FateLiveContext, 'pending'>, callback: () => T) => T;
27
27
  }>;
28
- declare const defaultVoidFateRpcPath = "/fate";
29
- declare const defaultVoidFateLivePath = "/fate-live";
30
- declare function createVoidFateLive(_options?: VoidFateLiveOptions): VoidFateLive;
31
- declare function defineVoidFateRoute<AdapterContext>(server: FateServer<unknown, AdapterContext>, live: VoidFateLive, options: VoidFateRouteOptions): {
28
+ export declare const defaultVoidFateRpcPath = "/fate";
29
+ export declare const defaultVoidFateLivePath = "/fate-live";
30
+ export declare function createVoidFateLive(_options?: VoidFateLiveOptions): VoidFateLive;
31
+ export declare function defineVoidFateRoute<AdapterContext>(server: FateServer<unknown, AdapterContext>, live: VoidFateLive, options: VoidFateRouteOptions): {
32
32
  GET: import("void").TypedHandler<{}, never>;
33
33
  POST: import("void").TypedHandler<{}, never>;
34
34
  };
35
- declare function defineVoidFateLiveRoute(stream: VoidFateLiveStream): {
35
+ export declare function defineVoidFateLiveRoute(stream: VoidFateLiveStream): {
36
36
  GET: import("void").TypedHandler<{}, never>;
37
37
  POST: import("void").TypedHandler<{}, never>;
38
38
  };
39
- //#endregion
40
- export { VoidFateLive, VoidFateLiveOptions, VoidFateLiveStream, VoidFateRouteOptions, createVoidFateLive, defaultVoidFateLivePath, defaultVoidFateRpcPath, defineVoidFateLiveRoute, defineVoidFateRoute };
39
+ //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "void-fate",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Void adapter for fate.",
5
5
  "homepage": "https://github.com/nkzw-tech/fate",
6
6
  "license": "MIT",
@@ -37,13 +37,13 @@
37
37
  }
38
38
  },
39
39
  "dependencies": {
40
- "@nkzw/fate": "^1.3.3",
41
- "react-fate": "^1.3.3"
40
+ "@nkzw/fate": "^1.5.1",
41
+ "react-fate": "^1.5.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@types/react": "^19.2.18",
45
- "react": "^19.2.8",
46
- "vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
44
+ "@types/react": "^19.3.0",
45
+ "react": "^19.3.0",
46
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.3.2",
47
47
  "void": "^0.10.13"
48
48
  },
49
49
  "peerDependencies": {