vite-plugin-kiru 0.32.0-preview.2 → 0.32.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/build.dev.ts +3 -4
- package/dist/index.d.ts +26 -82
- package/dist/index.js +2689 -2282
- package/package.json +3 -15
- package/dist/server.d.ts +0 -43
- package/dist/server.js +0 -7019
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-kiru",
|
|
3
|
-
"version": "0.32.0
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -8,18 +8,8 @@
|
|
|
8
8
|
"keywords": [],
|
|
9
9
|
"author": "",
|
|
10
10
|
"license": "ISC",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"types": "./dist/index.d.ts",
|
|
14
|
-
"default": "./dist/index.js"
|
|
15
|
-
},
|
|
16
|
-
"./server": {
|
|
17
|
-
"types": "./dist/server.d.ts",
|
|
18
|
-
"default": "./dist/server.js"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
11
|
"peerDependencies": {
|
|
22
|
-
"kiru": ">=0.54.0
|
|
12
|
+
"kiru": ">=0.54.0"
|
|
23
13
|
},
|
|
24
14
|
"devDependencies": {
|
|
25
15
|
"@types/node": "^22.17.0",
|
|
@@ -28,14 +18,12 @@
|
|
|
28
18
|
"tsx": "^4.20.3",
|
|
29
19
|
"typescript": "^5.9.2",
|
|
30
20
|
"kiru-devtools-host": "^1.0.0",
|
|
31
|
-
"kiru-devtools-client": "^0.0.0"
|
|
32
|
-
"kiru": "^0.54.0-preview.1"
|
|
21
|
+
"kiru-devtools-client": "^0.0.0"
|
|
33
22
|
},
|
|
34
23
|
"dependencies": {
|
|
35
24
|
"glob": "^12.0.0",
|
|
36
25
|
"magic-string": "^0.30.17",
|
|
37
26
|
"mime": "^4.1.0",
|
|
38
|
-
"minimatch": "10.1.1",
|
|
39
27
|
"vite": "^7.2.2"
|
|
40
28
|
},
|
|
41
29
|
"scripts": {
|
package/dist/server.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export interface SSRHttpResponse {
|
|
2
|
-
html: string
|
|
3
|
-
statusCode: number
|
|
4
|
-
headers: Array<[string, string]>
|
|
5
|
-
stream: ReadableStream | null
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface SSRRenderResult {
|
|
9
|
-
httpResponse: SSRHttpResponse | null
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface ServerRenderOptions {
|
|
13
|
-
url: string
|
|
14
|
-
context: Kiru.RequestContext
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface ServerActionsMap {
|
|
18
|
-
[key: string]: () => Promise<unknown>
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export declare function renderPage(
|
|
22
|
-
options: ServerRenderOptions
|
|
23
|
-
): Promise<SSRRenderResult>
|
|
24
|
-
|
|
25
|
-
export type ServerActionHttpResponse =
|
|
26
|
-
| {
|
|
27
|
-
body: string
|
|
28
|
-
statusCode: 200
|
|
29
|
-
}
|
|
30
|
-
| {
|
|
31
|
-
body: null
|
|
32
|
-
statusCode: 500
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface ServerActionResponse {
|
|
36
|
-
httpResponse: ServerActionHttpResponse | null
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export declare function getServerActionResponse(
|
|
40
|
-
request: Request
|
|
41
|
-
): Promise<ServerActionResponse>
|
|
42
|
-
|
|
43
|
-
export declare function getRequestContext(): Kiru.RequestContext
|