Commit Graph
4 Commits
Author SHA1 Message Date
thzxx f7d74d152d chore: v0.1.2 — 全面修复、优化与增强
修复:
- core.js: _resume 计时器 BUG (startedAt 被 _startTimer 覆盖导致暂停恢复失效)
- plugins.js: register 在 install 前展开导致 handler 实例丢失
- locales.js: zh-CN/en-US 大量重复 key 覆盖正确翻译值
- core.js: configure 改为原地更新避免 _config 引用断裂

优化:
- core.js: update() 类型变更时同步更新 DOM 类名和进度条颜色
- animations.js: getActiveCount 返回已注册动画数量
- themes.js: 移除 presetThemes 死代码和重复注册循环
- constants.js: THEMES.auto 从字符串改为规范化对象
- index.js: destroy 添加防重复调用保护

增强:
- core.js: 新增 onError 全局错误回调,钩子异常和定时器错误可被外部捕获
- styles.js: _resume 校准时间基准补偿注释
- 139 tests 全部通过
2026-07-24 14:42:47 +08:00
thzxx eebd669b7f chore: 版本号重置为 v0.1.1, 更新 site/ 文档页面移除 v2.0 标记 2026-07-24 14:19:53 +08:00
thzxx b4ffaabedd chore: v2.0.1 - 精简dead code + 版本升级
- utils.js: 950行→180行,移除30+未使用函数
- styles.js: 1800行→650行,移除未使用组件样式和重复规则
- animations.js: 850行→120行,移除Web Animations API dead code
- 全项目版本号升级到 2.0.1
- 测试同步清理,134/134通过
2026-07-23 13:18:24 +08:00
tianhao ff9c7cd218 init: MetonaToast v2.0.0 基线 — 已完成改进(模板抽象/constants拆分/测试增强) 2026-06-16 12:39:36 +08:00