@fulgurjs/federation 6.9.3 → 6.10.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.en.md +2 -0
  3. package/README.md +2 -0
  4. package/dist/bridge-host-vue.cjs +1 -1
  5. package/dist/bridge-host-vue.js +1 -1
  6. package/dist/cli.js +2059 -314
  7. package/dist/index.cjs +149 -129
  8. package/dist/index.js +149 -129
  9. package/dist/react.js +3 -3
  10. package/dist/runtime.js +1 -1
  11. package/dist/vue-adapter.cjs +1 -1
  12. package/dist/vue-adapter.js +1 -1
  13. package/dist/vue.js +2 -2
  14. package/examples/templates/README.md +6 -0
  15. package/examples/templates/react-host-vue-remote/pnpm-lock.yaml +7 -7
  16. package/examples/templates/react-host-vue-remote/pnpm-workspace.yaml +1 -1
  17. package/examples/templates/react-host-vue-remote/react-host/package.json +1 -1
  18. package/examples/templates/react-host-vue-remote/vue-remote/package.json +1 -1
  19. package/examples/templates/react-react/host/package.json +1 -1
  20. package/examples/templates/react-react/pnpm-lock.yaml +7 -7
  21. package/examples/templates/react-react/pnpm-workspace.yaml +1 -1
  22. package/examples/templates/react-react/remote/package.json +1 -1
  23. package/examples/templates/showcase/pnpm-lock.yaml +11 -11
  24. package/examples/templates/showcase/pnpm-workspace.yaml +1 -1
  25. package/examples/templates/showcase/react-host/package.json +1 -1
  26. package/examples/templates/showcase/react-remote/package.json +1 -1
  27. package/examples/templates/showcase/vue-host/package.json +1 -1
  28. package/examples/templates/showcase/vue-remote/package.json +1 -1
  29. package/examples/templates/vue-host-react-remote/pnpm-lock.yaml +7 -7
  30. package/examples/templates/vue-host-react-remote/pnpm-workspace.yaml +1 -1
  31. package/examples/templates/vue-host-react-remote/react-remote/package.json +1 -1
  32. package/examples/templates/vue-host-react-remote/vue-host/package.json +1 -1
  33. package/examples/templates/vue-vue/host/package.json +1 -1
  34. package/examples/templates/vue-vue/pnpm-lock.yaml +7 -7
  35. package/examples/templates/vue-vue/pnpm-workspace.yaml +1 -1
  36. package/examples/templates/vue-vue/remote/package.json +1 -1
  37. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # 当前发布说明
2
2
 
3
+ ## 6.10.1
4
+
5
+ - 五个模板与公开示例统一精确依赖正式包 6.10.0,锁文件使用 registry 真实 integrity;包内模板与 GitHub 同源,冻结安装与生产构建通过。
6
+ - 插件功能与 6.10.0 一致,本补丁同步可独立使用的模板资产与版本元数据。
7
+
8
+ ## 6.10.0
9
+
10
+ - 声明生成失败保留公开入口的文件位置、错误码与相关详情,防止无关业务诊断的长续行挤掉真正原因;编译器输出格式固定为可解析的纯文本。
11
+ - 统一 Vue/React 入口为无副作用的工厂绑定和 Vue 错误占位组件保留 PURE 注解,让消费构建按实际使用裁剪组件、桥接与路由专属代码;不改变公开入口、运行时单例或错误处理合同。
12
+ - 新增实际发布形态的按需裁剪体积门禁,覆盖纯模块、纯组件与完整桥接正向组合,保留原有核心体积预算。
13
+ - `init --plan` 扫描已有工程并输出逐文件差异与待办;`--write` 显式应用受支持的 Vite/最小应用入口接线,保留原有代码,提供冲突保护与 `--rollback` 中断恢复。复杂业务装配明确交给应用确认,不猜路由、权限或会话。
14
+ - 离线 doctor 补充 Vite/部署 base 核查、未完成接入写入、缺失 HTML 入口、运行时声明导入及远程类型提示核查;同步中英文接入指南和 CLI 参数。
15
+
3
16
  ## 6.9.3
4
17
 
5
18
  - 五个模板与公开示例统一使用已发布的 6.9.2 正式包,锁文件记录真实 registry integrity,不改变其他依赖版本。
package/README.en.md CHANGED
@@ -9,6 +9,8 @@ For example: a main system loads an independently deployed approval page, a Vue
9
9
 
10
10
  To reduce duplicated standalone/bridge startup code, see [application assembly and preflight](https://github.com/chenmingye/fulgurjs-federation/blob/master/docs/en/guide/existing-apps.md).
11
11
 
12
+ For existing projects, `fulgurjs init --plan` previews wiring and `--write` explicitly applies it. Complex business assembly remains an explicit manual task. Unified `/vue` and `/react` imports support tree shaking without internal import paths.
13
+
12
14
  ## Quick start
13
15
 
14
16
  **New project** (recommended): scaffold a fully runnable federation workspace from a template:
package/README.md CHANGED
@@ -9,6 +9,8 @@
9
9
 
10
10
  已有应用希望减少独立启动/桥接重复代码,参阅[统一装配与接入预检](https://github.com/chenmingye/fulgurjs-federation/blob/master/docs/zh/guide/existing-apps.md)。
11
11
 
12
+ 已有工程可先用 `fulgurjs init --plan` 预览接线,审查后再用 `--write`;复杂业务装配会明确列出人工待办。统一 `/vue`、`/react` 入口支持按使用裁剪,不需要改用内部路径。
13
+
12
14
  ## 快速开始
13
15
 
14
16
  **新建工程**(推荐):用 CLI 从完整模板创建可独立运行的联邦工程:
@@ -595,7 +595,7 @@ var SECONDARY_BUTTON_STYLE = {
595
595
  fontSize: "13px",
596
596
  cursor: "pointer"
597
597
  };
598
- var BridgeErrorPlaceholder = (0, import_vue.defineComponent)({
598
+ var BridgeErrorPlaceholder = /* @__PURE__ */ (0, import_vue.defineComponent)({
599
599
  name: "FulgurjsBridgeError",
600
600
  props: {
601
601
  error: { type: Object, default: void 0 },
@@ -54,7 +54,7 @@ var SECONDARY_BUTTON_STYLE = {
54
54
  fontSize: "13px",
55
55
  cursor: "pointer"
56
56
  };
57
- var BridgeErrorPlaceholder = defineComponent({
57
+ var BridgeErrorPlaceholder = /* @__PURE__ */ defineComponent({
58
58
  name: "FulgurjsBridgeError",
59
59
  props: {
60
60
  error: { type: Object, default: void 0 },