@bleedingdev/modern-js-main-doc 3.4.0-ultramodern.0 → 3.4.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.
|
@@ -78,6 +78,13 @@ only for local monorepo testing against unreleased packages. Release proof and
|
|
|
78
78
|
CI should pin the exact cohort with `--ultramodern-package-version` when a
|
|
79
79
|
repo must prove a specific published framework version.
|
|
80
80
|
|
|
81
|
+
Older repos with Effect BFF entries and `verbatimModuleSyntax` should update to
|
|
82
|
+
the latest BleedingDev cohort instead of adding app-level `"type": "module"`
|
|
83
|
+
metadata, Module Federation shims, or custom server wrappers. The framework BFF
|
|
84
|
+
compiler normalizes CommonJS server output while generated app packages keep
|
|
85
|
+
stable `typescript` for Module Federation DTS generation and use the pinned
|
|
86
|
+
`@typescript/native-preview` toolchain for TS-Go checks.
|
|
87
|
+
|
|
81
88
|
After installing the new cohort, run the generated
|
|
82
89
|
`scripts/validate-ultramodern-workspace.mjs` contract check before accepting
|
|
83
90
|
manual edits. Fix topology, ownership, package-source, local overlay, generated
|
|
@@ -202,9 +209,10 @@ Overlays are explicit CodeSmith generators that run after base workspace or
|
|
|
202
209
|
MicroVertical generation. They extend generated output; they do not replace,
|
|
203
210
|
inherit, or shadow the base templates. The generator and CodeSmith adapter are
|
|
204
211
|
plain Node generator surfaces. The package build emits declaration files through
|
|
205
|
-
the TS-Go toolchain. Generated app packages
|
|
206
|
-
|
|
207
|
-
native-preview
|
|
212
|
+
the TS-Go toolchain. Generated app packages keep stable `typescript` for classic
|
|
213
|
+
compiler consumers such as Module Federation DTS generation, while TS-Go uses
|
|
214
|
+
the pinned `@typescript/native-preview` toolchain; runtime code does not depend
|
|
215
|
+
on native-preview compiler internals.
|
|
208
216
|
|
|
209
217
|
### Runtime Contracts
|
|
210
218
|
|
|
@@ -76,6 +76,12 @@ mise exec -- pnpm build
|
|
|
76
76
|
联调未发布包。发布证明和 CI 如果需要证明某个已发布框架版本,应使用
|
|
77
77
|
`--ultramodern-package-version` 固定精确 cohort。
|
|
78
78
|
|
|
79
|
+
带有 Effect BFF 入口和 `verbatimModuleSyntax` 的旧仓库,应升级到最新的
|
|
80
|
+
BleedingDev cohort,而不是给 app package 增加 `"type": "module"`、Module
|
|
81
|
+
Federation shim 或自定义 server wrapper。框架 BFF compiler 会把服务端输出规范化为
|
|
82
|
+
CommonJS,同时生成的 app package 继续为 Module Federation DTS 保留稳定的
|
|
83
|
+
`typescript`,并使用固定的 `@typescript/native-preview` 工具链执行 TS-Go 检查。
|
|
84
|
+
|
|
79
85
|
安装新 cohort 后,先运行生成的
|
|
80
86
|
`scripts/validate-ultramodern-workspace.mjs` 契约校验,再接受人工改动。topology、
|
|
81
87
|
ownership、package-source、本地 overlay、生成契约、Tailwind prefix 或 Module
|
|
@@ -189,8 +195,9 @@ JSON 契约缺失或不是对象、Tailwind 前缀冲突,都会报告归属契
|
|
|
189
195
|
Overlays 是显式配置的 CodeSmith 生成器,会在基础 workspace 或 MicroVertical
|
|
190
196
|
生成之后运行。它们只扩展生成结果,不替换、不继承、也不遮蔽基础模板。公开生成器与
|
|
191
197
|
CodeSmith adapter 都是普通 Node 生成器入口。包构建通过 TS-Go 工具链产出声明文件;
|
|
192
|
-
生成出来的 app package
|
|
193
|
-
TS-Go
|
|
198
|
+
生成出来的 app package 为 Module Federation DTS 等传统 compiler consumer 保留稳定的
|
|
199
|
+
`typescript`,TS-Go 则使用固定的 `@typescript/native-preview` 工具链;运行时代码不依赖
|
|
200
|
+
native-preview compiler 内部实现。
|
|
194
201
|
|
|
195
202
|
### 运行时契约
|
|
196
203
|
|
package/package.json
CHANGED
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"modern.js",
|
|
20
20
|
"ultramodern.js"
|
|
21
21
|
],
|
|
22
|
-
"version": "3.4.0-ultramodern.
|
|
22
|
+
"version": "3.4.0-ultramodern.1",
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"registry": "https://registry.npmjs.org/",
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"mermaid": "^11.15.0",
|
|
29
|
-
"@modern-js/sandpack-react": "npm:@bleedingdev/modern-js-sandpack-react@3.4.0-ultramodern.
|
|
29
|
+
"@modern-js/sandpack-react": "npm:@bleedingdev/modern-js-sandpack-react@3.4.0-ultramodern.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@rsbuild/plugin-sass": "2.0.0",
|