Skip to content

v1.8.0

@coln2018 coln2018 tagged this 02 Oct 11:50
本次发布主体:把实战踩坑里「靠人肉纪律」的条目变成框架能力,外加一批静默缺陷修复。

新增 6 个 API:
- onMount / onDestroy / ClientOnly(客户端守卫三件套)
- Show / classList(固定渲染 + 响应式显隐的一行化写法)
- parseNumber(数字输入解析契约)

两条编译期诊断:VOBS_C104(组件顶层裸条件 return)/ VOBS_C105(模块顶层 JSX)。

运行时护栏检查:pnpm run check:runtime / check:runtime:interact
(起注入收集器的 dev server + 真实 Chrome 逐路由,交互模式还会点所有按钮)。

修复的静默缺陷里最重的是 createComponent 在组件返回 null / undefined / false 时抛
「Invalid value used as weak map key」—— App 挂载即崩、没有任何 JS 崩溃日志、
splash 兜底失效。这是 Labelune 2026-09-30 发版黑屏的根因。

其余修复覆盖:resource 响应式 key 自订阅 · runtime 的 ref 清理中断级联 /
removeEventListener 误摘 / select 隐藏订阅 · ssr 的 id/style/title 消失与
[object Xxx] 静默 · theme 的 scoped setBrand 自订阅与 ThemeBoundary 崩溃 ·
table 的 rowKey index 冻结 · http 的 Retry-After 与去重键 · i18n 边界不跟随 ·
ui focus trap · layout 移动抽屉可 Tab · queue 任务 id 不复用 · forms 密码框变明文 ·
vite-plugin Windows 路径 · cli 无效路径报通过 · payment 失败开放 · compiler 的
htmlFor 与 autoFocus。

详见 CHANGELOG.md 的 [1.8.0] 一节。
Assets 2
Loading