weifuwu 0.82.11 → 0.83.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/README.md +1 -0
- package/dist/ui-dom/index.d.ts +4 -0
- package/dist/ui-dom/index.js +12 -12
- package/dist/ui-dom/router.d.ts +7 -0
- package/dist/ui-dom/testing.js +1 -1
- package/dist/ui-dom/vdom2/audit.d.ts +4 -1
- package/dist/ui-dom/vdom2/dom-trace.d.ts +4 -0
- package/dist/ui-dom/vdom2/events.d.ts +5 -1
- package/dist/ui-dom/vdom2/lifecycle.d.ts +4 -0
- package/dist/ui-dom/vdom2/mount.d.ts +14 -1
- package/dist/ui-dom/vdom2/patch.d.ts +2 -0
- package/dist/ui-dom/vdom3/README.d.ts +29 -0
- package/dist/ui-dom/vdom3/audit.d.ts +16 -0
- package/dist/ui-dom/vdom3/build.d.ts +16 -0
- package/dist/ui-dom/vdom3/commands.d.ts +11 -0
- package/dist/ui-dom/vdom3/compat.d.ts +20 -0
- package/dist/ui-dom/vdom3/events.d.ts +11 -0
- package/dist/ui-dom/vdom3/index.d.ts +40 -0
- package/dist/ui-dom/vdom3/jsx.d.ts +10 -0
- package/dist/ui-dom/vdom3/record.d.ts +13 -0
- package/dist/ui-dom/vdom3/registry.d.ts +30 -0
- package/dist/ui-dom/vdom3/render.d.ts +26 -0
- package/dist/ui-dom/vdom3/replay.d.ts +25 -0
- package/dist/ui-dom/vdom3/root.d.ts +28 -0
- package/dist/ui-dom/vdom3/router.d.ts +31 -0
- package/dist/ui-dom/vdom3/scheduler.d.ts +23 -0
- package/dist/ui-dom/vdom3/ssr.d.ts +27 -0
- package/dist/ui-dom/vdom3/sync.d.ts +22 -0
- package/dist/ui-dom/vdom3/types.d.ts +115 -0
- package/dist/ui-dom/vdom3/ui.d.ts +43 -0
- package/dist/ui-dom/vdom3.js +39 -0
- package/docs/frontend.md +5 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -351,6 +351,7 @@ cd apps/agent-platform && npm run seed && npm run dev
|
|
|
351
351
|
| Router 方法 | **app.graphql()** | GraphQL 端点(支持 GraphiQL),Router 实例方法(无需单独 import) | Router |
|
|
352
352
|
| `weifuwu/ui-dom` | **UIRouter** | 纯路由 + ctx 注入链(`use` 中间件累积类型,对齐后端 `app.use`);handler=异步组件 | — |
|
|
353
353
|
| `weifuwu/ui-dom` | **uiServe** | 渲染运行时:监听 location → 执行路由 → VDOM diff/patch;`hydrate: true` 收养 SSR HTML | UIRouter |
|
|
354
|
+
| `weifuwu/ui-dom/vdom3` | **vdom3 引擎**(转正中) | 下一代渲染(vnode + stream——事件流可回放/可逆);`createRouter` + `createRoot` | vdom3 |
|
|
354
355
|
| `weifuwu/ui-dom` | **async 组件** | async 函数即组件(与同步同签名);数据走 ctx.data 三场景(三条纪律见[核心概念](#核心概念)) | — |
|
|
355
356
|
| `weifuwu/ui-dom` | **ctx.data** | 数据管道:SSR 预取 / hydration 命中 / SPA fetch(`ctx.data.get`) | uiServe |
|
|
356
357
|
| `weifuwu/ui-dom` | **api / auth / ws** | HTTP 客户端 / 认证 / WebSocket 中间件 | — |
|
package/dist/ui-dom/index.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* ⚠️ DEPRECATED(冻结中——2026-08):vdom2 引擎将由 vdom3(src/ui-dom/vdom3/)替代。
|
|
3
|
+
* 迁移路线图:design/vdom3-migration-plan.md——vdom2 保留(git 历史/回滚保险),
|
|
4
|
+
* 不再演进(bug 修复在 vdom3)。新引擎入口:weifuwu/ui-dom/vdom3。
|
|
5
|
+
*
|
|
2
6
|
* weifuwu/ui-dom — 前端路由 + 渲染运行时(v2 vdom 引擎,render-only)
|
|
3
7
|
*
|
|
4
8
|
* 渲染运行时 = vdom(第 2 代引擎,design 归档):
|