@modern-js/types 2.0.0-beta.2 → 2.0.0-beta.3

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,37 @@
1
1
  # @modern-js/types
2
2
 
3
+ ## 2.0.0-beta.3
4
+
5
+ ### Major Changes
6
+
7
+ - dda38c9c3e: chore: v2
8
+
9
+ ### Patch Changes
10
+
11
+ - 2e60319: fix: some optimizations for router and loader
12
+ fix: 一些 router 和 loader 的优化
13
+ q
14
+ - cc971eabfc: refactor: move server plugin load logic in `@modern-js/core`
15
+ refactor:移除在 `@modern-js/core` 中的 server 插件加载逻辑
16
+ - 6bda14ed71: feat: refactor router with react-router@6.4
17
+
18
+ feat: 使用 react-router@6.4 重构路由模块
19
+
20
+ - 40ed5874c6: feat: inject css chunk into html for streaming ssr
21
+ feat: streaming ssr 返回的 html 注入 css chunk
22
+ - 87c1ff86b9: feat(app-tools): attach builder instance to appContext
23
+
24
+ feat(app-tools): 将 builder 实例挂载到 appContext 上
25
+
26
+ - 102d32e4ba: feat(server): add `req` and `res` to SSR context
27
+
28
+ feat(server): 添加 `req` 和 `res` 到 SSR context 中
29
+
30
+ - 8b8e1bb571: feat: support nested routes
31
+ feat: 支持嵌套路由
32
+ - 3bbea92b2a: feat: support Hook、Middleware new API
33
+ feat: 支持 Hook、Middleware 的新 API
34
+
3
35
  ## 2.0.0-beta.2
4
36
 
5
37
  ### Major Changes
package/cli/index.d.ts CHANGED
@@ -59,6 +59,7 @@ export type NestedRoute = Merge<
59
59
  component?: string;
60
60
  loading?: string;
61
61
  error?: string;
62
+ isRoot?: boolean;
62
63
  }
63
64
  >;
64
65
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.0.0-beta.2",
14
+ "version": "2.0.0-beta.3",
15
15
  "types": "./index.d.ts",
16
16
  "exports": {
17
17
  ".": "./index.d.ts",
@@ -38,8 +38,8 @@
38
38
  "http-proxy-middleware": "^2.0.4",
39
39
  "jest": "^27",
40
40
  "type-fest": "2.15.0",
41
- "@scripts/build": "2.0.0-beta.2",
42
- "@scripts/jest-config": "2.0.0-beta.2"
41
+ "@scripts/build": "2.0.0-beta.3",
42
+ "@scripts/jest-config": "2.0.0-beta.3"
43
43
  },
44
44
  "sideEffects": false,
45
45
  "publishConfig": {