@modern-js/plugin-ssg 2.0.0-beta.7 → 2.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @modern-js/plugin-ssg
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - dda38c9c3e: chore: v2
8
+
9
+ ### Patch Changes
10
+
11
+ - 8b8e1bb571: feat: support nested routes
12
+ feat: 支持嵌套路由
13
+ - Updated dependencies [edd1cfb1af]
14
+ - Updated dependencies [dda38c9c3e]
15
+ - Updated dependencies [ffb2ed4]
16
+ - Updated dependencies [bbe4c4ab64]
17
+ - @modern-js/utils@2.0.0
18
+
3
19
  ## 2.0.0-beta.7
4
20
 
5
21
  ### Major Changes
@@ -1,5 +1,5 @@
1
1
  import { IncomingMessage, ServerResponse } from 'http';
2
- export declare type Options = {
2
+ export type Options = {
3
3
  url: string;
4
4
  headers: {
5
5
  host: string;
@@ -1,24 +1,24 @@
1
1
  import type { ServerRoute as ModernRoute } from '@modern-js/types';
2
2
  import { SSGConfig, SSGRouteOptions, SSGMultiEntryOptions, SSGSingleEntryOptions } from '@modern-js/app-tools';
3
3
  export type { SSGConfig, SSGRouteOptions, SSGMultiEntryOptions, SSGSingleEntryOptions };
4
- export declare type AgreedRoute = {
4
+ export type AgreedRoute = {
5
5
  path?: string;
6
6
  component?: string;
7
7
  _component?: string;
8
8
  children?: AgreedRoute[];
9
9
  exact?: boolean;
10
10
  };
11
- export declare type EntryPoint = {
11
+ export type EntryPoint = {
12
12
  entryName: string;
13
13
  entry: string;
14
14
  };
15
- export declare type AgreedRouteMap = {
15
+ export type AgreedRouteMap = {
16
16
  [propNames: string]: AgreedRoute[];
17
17
  };
18
- export declare type SsgRoute = ModernRoute & {
18
+ export type SsgRoute = ModernRoute & {
19
19
  output: string;
20
20
  headers?: Record<string, string>;
21
21
  };
22
- export declare type ExtendOutputConfig = {
22
+ export type ExtendOutputConfig = {
23
23
  ssg: SSGConfig;
24
24
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.0.0-beta.7",
14
+ "version": "2.0.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -58,7 +58,7 @@
58
58
  "node-mocks-http": "^1.10.1",
59
59
  "normalize-path": "^3.0.0",
60
60
  "portfinder": "^1.0.28",
61
- "@modern-js/utils": "2.0.0-beta.7"
61
+ "@modern-js/utils": "2.0.0"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "react-router-dom": ">=5.1.2"
@@ -75,11 +75,11 @@
75
75
  "react": "^18",
76
76
  "react-router-dom": "^6.6.0",
77
77
  "typescript": "^4",
78
- "@modern-js/app-tools": "2.0.0-beta.7",
79
- "@modern-js/prod-server": "2.0.0-beta.7",
80
- "@modern-js/types": "2.0.0-beta.7",
81
- "@scripts/build": "2.0.0-beta.7",
82
- "@scripts/jest-config": "2.0.0-beta.7"
78
+ "@modern-js/app-tools": "2.0.0",
79
+ "@modern-js/prod-server": "2.0.0",
80
+ "@modern-js/types": "2.0.0",
81
+ "@scripts/build": "2.0.0",
82
+ "@scripts/jest-config": "2.0.0"
83
83
  },
84
84
  "sideEffects": false,
85
85
  "publishConfig": {