void-fate 1.3.3 → 1.4.0
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 +1 -14
- package/lib/react.mjs +24 -23
- package/lib/server.d.mts +0 -1
- package/package.json +8 -8
package/lib/react.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/react.d.ts
|
|
4
3
|
type VoidFateClientProps = {
|
|
5
4
|
children: ReactNode;
|
|
@@ -14,18 +13,6 @@ type VoidFateClientProps = {
|
|
|
14
13
|
url?: string | URL;
|
|
15
14
|
userId?: null | string;
|
|
16
15
|
};
|
|
17
|
-
declare function VoidFateClient({
|
|
18
|
-
children,
|
|
19
|
-
fetch,
|
|
20
|
-
headers,
|
|
21
|
-
livePath,
|
|
22
|
-
liveRetryMs,
|
|
23
|
-
liveUrl,
|
|
24
|
-
onLiveError,
|
|
25
|
-
origin,
|
|
26
|
-
rpcPath,
|
|
27
|
-
url,
|
|
28
|
-
userId
|
|
29
|
-
}: VoidFateClientProps): import("react").JSX.Element;
|
|
16
|
+
declare function VoidFateClient({ children, fetch, headers, livePath, liveRetryMs, liveUrl, onLiveError, origin, rpcPath, url, userId }: VoidFateClientProps): import("react").JSX.Element;
|
|
30
17
|
//#endregion
|
|
31
18
|
export { VoidFateClient, VoidFateClientProps };
|
package/lib/react.mjs
CHANGED
|
@@ -5,30 +5,31 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
//#region src/react.tsx
|
|
6
6
|
const createVoidFateClient = createFateClient;
|
|
7
7
|
function VoidFateClient({ children, fetch, headers, livePath, liveRetryMs, liveUrl, onLiveError, origin, rpcPath, url, userId }) {
|
|
8
|
+
const fate = useMemo(() => createVoidFateClient({
|
|
9
|
+
fetch,
|
|
10
|
+
headers,
|
|
11
|
+
livePath,
|
|
12
|
+
liveRetryMs,
|
|
13
|
+
liveUrl,
|
|
14
|
+
onLiveError,
|
|
15
|
+
origin,
|
|
16
|
+
rpcPath,
|
|
17
|
+
url,
|
|
18
|
+
userId
|
|
19
|
+
}), [
|
|
20
|
+
fetch,
|
|
21
|
+
headers,
|
|
22
|
+
livePath,
|
|
23
|
+
liveRetryMs,
|
|
24
|
+
liveUrl,
|
|
25
|
+
onLiveError,
|
|
26
|
+
origin,
|
|
27
|
+
rpcPath,
|
|
28
|
+
url,
|
|
29
|
+
userId
|
|
30
|
+
]);
|
|
8
31
|
return /* @__PURE__ */ jsx(FateClient, {
|
|
9
|
-
client:
|
|
10
|
-
fetch,
|
|
11
|
-
headers,
|
|
12
|
-
livePath,
|
|
13
|
-
liveRetryMs,
|
|
14
|
-
liveUrl,
|
|
15
|
-
onLiveError,
|
|
16
|
-
origin,
|
|
17
|
-
rpcPath,
|
|
18
|
-
url,
|
|
19
|
-
userId
|
|
20
|
-
}), [
|
|
21
|
-
fetch,
|
|
22
|
-
headers,
|
|
23
|
-
livePath,
|
|
24
|
-
liveRetryMs,
|
|
25
|
-
liveUrl,
|
|
26
|
-
onLiveError,
|
|
27
|
-
origin,
|
|
28
|
-
rpcPath,
|
|
29
|
-
url,
|
|
30
|
-
userId
|
|
31
|
-
]),
|
|
32
|
+
client: fate,
|
|
32
33
|
children
|
|
33
34
|
}, userId ?? void 0);
|
|
34
35
|
}
|
package/lib/server.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "void-fate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Void adapter for fate.",
|
|
5
5
|
"homepage": "https://github.com/nkzw-tech/fate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@nkzw/fate": "^1.3.
|
|
41
|
-
"react-fate": "^1.3.
|
|
40
|
+
"@nkzw/fate": "^1.3.3",
|
|
41
|
+
"react-fate": "^1.3.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/react": "^19.2.
|
|
45
|
-
"react": "^19.2.
|
|
46
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.
|
|
47
|
-
"void": "^0.10.
|
|
44
|
+
"@types/react": "^19.2.18",
|
|
45
|
+
"react": "^19.2.8",
|
|
46
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
47
|
+
"void": "^0.10.13"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@nkzw/fate": "^1.0.0-rc.0",
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
"void": "^0.7.13"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
|
-
"build": "vp pack -d lib --target=node24 src/index.ts src/react.tsx src/server.ts"
|
|
56
|
+
"build": "vp pack --tsconfig tsconfig.json -d lib --target=node24 src/index.ts src/react.tsx src/server.ts"
|
|
57
57
|
}
|
|
58
58
|
}
|