@bleedingdev/modern-js-plugin-ssg 3.2.0-ultramodern.0 → 3.2.0-ultramodern.1

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 CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.2.0-ultramodern.0",
20
+ "version": "3.2.0-ultramodern.1",
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "main": "./dist/cjs/index.js",
23
23
  "typesVersions": {
@@ -49,8 +49,8 @@
49
49
  "@swc/helpers": "^0.5.21",
50
50
  "node-mocks-http": "^1.17.2",
51
51
  "normalize-path": "3.0.0",
52
- "@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.2.0-ultramodern.0",
53
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.0"
52
+ "@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.2.0-ultramodern.1",
53
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.1"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "react-router-dom": ">=7.12.0"
@@ -67,8 +67,8 @@
67
67
  "react": "^19.2.6",
68
68
  "react-dom": "^19.2.6",
69
69
  "react-router-dom": "^7.15.1",
70
- "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.0",
71
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.0",
70
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.1",
71
+ "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.1",
72
72
  "@scripts/rstest-config": "2.66.0"
73
73
  },
74
74
  "sideEffects": false,
@@ -1,3 +0,0 @@
1
- import type { AppTools, CliPlugin } from '@modern-js/app-tools';
2
- export declare const ssgPlugin: () => CliPlugin<AppTools>;
3
- export default ssgPlugin;
@@ -1,5 +0,0 @@
1
- import type { ServerRoute as ModernRoute } from '@modern-js/types';
2
- import type { compile } from '../server/prerender';
3
- import type { SSGRouteOptions, SsgRoute } from '../types';
4
- export declare function makeRender(ssgRoutes: SsgRoute[], render: ReturnType<typeof compile>, port: number): Promise<string>[];
5
- export declare function makeRoute(baseRoute: ModernRoute, route: string | SSGRouteOptions, headers?: Record<string, any>): SsgRoute;
@@ -1,2 +0,0 @@
1
- import type { SsgRoute } from '../types';
2
- export declare function writeHtmlFile(htmlAry: string[], ssgRoutes: SsgRoute[], baseDir: string): void;
@@ -1,4 +0,0 @@
1
- import type { ServerRoute as ModernRoute } from '@modern-js/types';
2
- import type { SsgRoute } from '../types';
3
- export declare function exist(route: ModernRoute, pageRoutes: ModernRoute[]): number;
4
- export declare function replaceRoute(ssgRoutes: SsgRoute[], pageRoutes: ModernRoute[]): ModernRoute[];
@@ -1,27 +0,0 @@
1
- import type { ServerUserConfig } from '@modern-js/app-tools';
2
- import type { ServerRoute as ModernRoute } from '@modern-js/types';
3
- import type { AgreedRoute, EntryPoint, SSGConfig, SSGMultiEntryOptions, SsgRoute } from '../types';
4
- export declare function formatOutput(filename: string): string;
5
- export declare function formatPath(str: string): string;
6
- export declare function isDynamicUrl(url: string): boolean;
7
- export declare function getUrlPrefix(route: SsgRoute, baseUrl: string | string[]): string;
8
- export declare function getOutput(route: SsgRoute, base: string, agreed?: boolean): string;
9
- export declare const readJSONSpec: (dir: string) => ModernRoute[];
10
- export declare const writeJSONSpec: (dir: string, routes: ModernRoute[]) => void;
11
- export declare const replaceWithAlias: (base: string, filePath: string, alias: string) => string;
12
- export declare const standardOptions: (ssgOptions: SSGConfig, entrypoints: EntryPoint[], routes: ModernRoute[], server: ServerUserConfig, ssgByEntries?: SSGMultiEntryOptions) => false | SSGMultiEntryOptions;
13
- export declare const openRouteSSR: (routes: ModernRoute[], entries?: string[]) => {
14
- isSSR: boolean;
15
- bundle: string;
16
- entryName?: string;
17
- urlPath: string;
18
- entryPath: string;
19
- isSPA?: boolean;
20
- isRSC?: boolean;
21
- isStream?: boolean;
22
- isApi?: boolean;
23
- worker?: string;
24
- responseHeaders?: Record<string, unknown>;
25
- }[];
26
- export declare const flattenRoutes: (routes: AgreedRoute[]) => AgreedRoute[];
27
- export declare function chunkArray<T>(arr: T[], size: number): T[][];
@@ -1 +0,0 @@
1
- export declare const CLOSE_SIGN = "modern_close_server";
@@ -1,4 +0,0 @@
1
- import type { AppNormalizedConfig, AppToolsContext } from '@modern-js/app-tools';
2
- import type { ServerRoute as ModernRoute } from '@modern-js/types';
3
- import type { SsgRoute } from '../types';
4
- export declare const createServer: (appContext: AppToolsContext, ssgRoutes: SsgRoute[], pageRoutes: ModernRoute[], apiRoutes: ModernRoute[], options: AppNormalizedConfig) => Promise<string[]>;
@@ -1,10 +0,0 @@
1
- import type { NodeRequest, NodeResponse } from '@modern-js/types';
2
- export type Options = {
3
- url: string;
4
- headers: {
5
- host: string;
6
- [key: string]: string;
7
- };
8
- [propName: string]: any;
9
- };
10
- export declare const compile: (requestHandler: (req: NodeRequest, res: NodeResponse) => void) => (options: Options, extend?: {}) => Promise<string>;
@@ -1,23 +0,0 @@
1
- import type { ServerRoute as ModernRoute, SSGConfig, SSGMultiEntryOptions, SSGRouteOptions, SSGSingleEntryOptions } from '@modern-js/types';
2
- export type { SSGConfig, SSGMultiEntryOptions, SSGRouteOptions, SSGSingleEntryOptions, };
3
- export type AgreedRoute = {
4
- path?: string;
5
- component?: string;
6
- _component?: string;
7
- children?: AgreedRoute[];
8
- exact?: boolean;
9
- };
10
- export type EntryPoint = {
11
- entryName: string;
12
- entry: string;
13
- };
14
- export type AgreedRouteMap = {
15
- [propNames: string]: AgreedRoute[];
16
- };
17
- export type SsgRoute = ModernRoute & {
18
- output: string;
19
- headers?: Record<string, string>;
20
- };
21
- export type ExtendOutputConfig = {
22
- ssg: SSGConfig;
23
- };