@modern-js/plugin-ssg 3.9.0 → 3.9.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.
@@ -1,5 +1,5 @@
1
1
  import type { ServerRoute as ModernRoute } from '@modern-js/types';
2
- import type { compile } from '../server/prerender';
3
- import type { SSGRouteOptions, SsgRoute } from '../types';
2
+ import type { compile } from '../server/prerender.js';
3
+ import type { SSGRouteOptions, SsgRoute } from '../types.js';
4
4
  export declare function makeRender(ssgRoutes: SsgRoute[], render: ReturnType<typeof compile>, port: number): Promise<string>[];
5
5
  export declare function makeRoute(baseRoute: ModernRoute, route: string | SSGRouteOptions, headers?: Record<string, any>): SsgRoute;
@@ -1,2 +1,2 @@
1
- import type { SsgRoute } from '../types';
1
+ import type { SsgRoute } from '../types.js';
2
2
  export declare function writeHtmlFile(htmlAry: string[], ssgRoutes: SsgRoute[], baseDir: string): void;
@@ -1,4 +1,4 @@
1
1
  import type { ServerRoute as ModernRoute } from '@modern-js/types';
2
- import type { SsgRoute } from '../types';
2
+ import type { SsgRoute } from '../types.js';
3
3
  export declare function exist(route: ModernRoute, pageRoutes: ModernRoute[]): number;
4
4
  export declare function replaceRoute(ssgRoutes: SsgRoute[], pageRoutes: ModernRoute[]): ModernRoute[];
@@ -1,6 +1,6 @@
1
1
  import type { ServerUserConfig } from '@modern-js/app-tools';
2
2
  import type { ServerRoute as ModernRoute } from '@modern-js/types';
3
- import type { AgreedRoute, EntryPoint, SSGConfig, SSGMultiEntryOptions, SsgRoute } from '../types';
3
+ import type { AgreedRoute, EntryPoint, SSGConfig, SSGMultiEntryOptions, SsgRoute } from '../types.js';
4
4
  export declare function formatOutput(filename: string): string;
5
5
  export declare function formatPath(str: string): string;
6
6
  export declare function isDynamicUrl(url: string): boolean;
@@ -1,4 +1,4 @@
1
1
  import type { AppNormalizedConfig, AppToolsContext } from '@modern-js/app-tools';
2
2
  import type { ServerRoute as ModernRoute } from '@modern-js/types';
3
- import type { SsgRoute } from '../types';
3
+ import type { SsgRoute } from '../types.js';
4
4
  export declare const createServer: (appContext: AppToolsContext, ssgRoutes: SsgRoute[], pageRoutes: ModernRoute[], apiRoutes: ModernRoute[], options: AppNormalizedConfig) => Promise<string[]>;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.9.0",
18
+ "version": "3.9.1",
19
19
  "types": "./dist/types/index.d.ts",
20
20
  "main": "./dist/cjs/index.js",
21
21
  "typesVersions": {
@@ -47,8 +47,8 @@
47
47
  "@swc/helpers": "^0.5.17",
48
48
  "node-mocks-http": "^1.17.2",
49
49
  "normalize-path": "3.0.0",
50
- "@modern-js/prod-server": "3.9.0",
51
- "@modern-js/utils": "3.9.0"
50
+ "@modern-js/prod-server": "3.9.1",
51
+ "@modern-js/utils": "3.9.1"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react-router-dom": ">=7.13.1"
@@ -59,15 +59,15 @@
59
59
  }
60
60
  },
61
61
  "devDependencies": {
62
- "@rslib/core": "0.23.2",
62
+ "@rslib/core": "1.0.0",
63
63
  "@types/node": "^20",
64
64
  "react": "^19.2.8",
65
65
  "react-dom": "^19.2.8",
66
66
  "react-router-dom": "^7.13.1",
67
67
  "typescript": "^5",
68
+ "@modern-js/app-tools": "3.9.1",
68
69
  "@modern-js/rslib": "2.68.10",
69
- "@modern-js/app-tools": "3.9.0",
70
- "@modern-js/types": "3.9.0",
70
+ "@modern-js/types": "3.9.1",
71
71
  "@scripts/rstest-config": "2.66.0"
72
72
  },
73
73
  "sideEffects": false,