olova 2.0.27 → 2.0.29
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/package.json +1 -9
- package/dist/routes.d.ts +0 -3
- package/dist/routes.js +0 -6
- package/dist/routes.js.map +0 -1
- package/dist/server.d.ts +0 -16
- package/dist/server.js +0 -20
- package/dist/server.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "olova",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.29",
|
|
4
4
|
"description": "framework built with Vite - file-system routing, SSG, and SEO",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,14 +17,6 @@
|
|
|
17
17
|
"./router": {
|
|
18
18
|
"import": "./dist/router.js",
|
|
19
19
|
"types": "./dist/router.d.ts"
|
|
20
|
-
},
|
|
21
|
-
"./routes": {
|
|
22
|
-
"import": "./dist/routes.js",
|
|
23
|
-
"types": "./dist/routes.d.ts"
|
|
24
|
-
},
|
|
25
|
-
"./server": {
|
|
26
|
-
"import": "./dist/server.js",
|
|
27
|
-
"types": "./dist/server.d.ts"
|
|
28
20
|
}
|
|
29
21
|
},
|
|
30
22
|
"files": [
|
package/dist/routes.d.ts
DELETED
package/dist/routes.js
DELETED
package/dist/routes.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/routes.ts"],"sourcesContent":["// Stub for the virtual routes module - actual routes are injected by the router plugin at build time\r\n// This is externalized so the import resolves to 'olova/routes' in user projects\r\nexport const routes: Record<string, () => Promise<any>> = {};\r\n"],"mappings":";AAEO,IAAM,SAA6C,CAAC;","names":[]}
|
package/dist/server.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Metadata } from './index.js';
|
|
2
|
-
import 'react/jsx-runtime';
|
|
3
|
-
import 'react';
|
|
4
|
-
|
|
5
|
-
declare function render(url: string): Promise<{
|
|
6
|
-
html: string;
|
|
7
|
-
hydrationData: {
|
|
8
|
-
params: Record<string, string>;
|
|
9
|
-
metadata?: Metadata;
|
|
10
|
-
};
|
|
11
|
-
}>;
|
|
12
|
-
declare function renderShell(): string;
|
|
13
|
-
declare function renderShellWithMetadata(metadata: Metadata): string;
|
|
14
|
-
declare function loadRoute(path: string): Promise<any>;
|
|
15
|
-
|
|
16
|
-
export { loadRoute, render, renderShell, renderShellWithMetadata };
|
package/dist/server.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// src/server.ts
|
|
2
|
-
async function render(url) {
|
|
3
|
-
throw new Error("olova/server should only be used via Vite SSR. The actual implementation is provided by the framework plugin at runtime.");
|
|
4
|
-
}
|
|
5
|
-
function renderShell() {
|
|
6
|
-
throw new Error("olova/server should only be used via Vite SSR. The actual implementation is provided by the framework plugin at runtime.");
|
|
7
|
-
}
|
|
8
|
-
function renderShellWithMetadata(metadata) {
|
|
9
|
-
throw new Error("olova/server should only be used via Vite SSR. The actual implementation is provided by the framework plugin at runtime.");
|
|
10
|
-
}
|
|
11
|
-
async function loadRoute(path) {
|
|
12
|
-
throw new Error("olova/server should only be used via Vite SSR. The actual implementation is provided by the framework plugin at runtime.");
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
loadRoute,
|
|
16
|
-
render,
|
|
17
|
-
renderShell,
|
|
18
|
-
renderShellWithMetadata
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=server.js.map
|
package/dist/server.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/server.ts"],"sourcesContent":["// Server-side rendering entry point\r\n// This is a stub - the actual server module is generated as a virtual module by the framework plugin\r\n// These exports are for TypeScript types only\r\n\r\nimport type { Metadata } from './client/router';\r\n\r\nexport async function render(url: string): Promise<{ html: string; hydrationData: { params: Record<string, string>; metadata?: Metadata } }> {\r\n throw new Error('olova/server should only be used via Vite SSR. The actual implementation is provided by the framework plugin at runtime.');\r\n}\r\n\r\nexport function renderShell(): string {\r\n throw new Error('olova/server should only be used via Vite SSR. The actual implementation is provided by the framework plugin at runtime.');\r\n}\r\n\r\nexport function renderShellWithMetadata(metadata: Metadata): string {\r\n throw new Error('olova/server should only be used via Vite SSR. The actual implementation is provided by the framework plugin at runtime.');\r\n}\r\n\r\nexport async function loadRoute(path: string): Promise<any> {\r\n throw new Error('olova/server should only be used via Vite SSR. The actual implementation is provided by the framework plugin at runtime.');\r\n}\r\n"],"mappings":";AAMA,eAAsB,OAAO,KAAgH;AAC3I,QAAM,IAAI,MAAM,0HAA0H;AAC5I;AAEO,SAAS,cAAsB;AACpC,QAAM,IAAI,MAAM,0HAA0H;AAC5I;AAEO,SAAS,wBAAwB,UAA4B;AAClE,QAAM,IAAI,MAAM,0HAA0H;AAC5I;AAEA,eAAsB,UAAU,MAA4B;AAC1D,QAAM,IAAI,MAAM,0HAA0H;AAC5I;","names":[]}
|