chore: 版本回退至 0.5.0 并重建产物(含 CJS 兼容修复)
This commit is contained in:
@@ -23,6 +23,7 @@ All notable changes to MetonaToast will be documented in this file.
|
||||
### Added
|
||||
- **Gitea Actions 发布自动化**:`publish.yml` — 推送 `v*` tag 时自动 测试+构建+发布到 Gitea npm registry(需配置 `PACKAGES_TOKEN` secret)
|
||||
- **CI 强化**:lint 改为必过(移除 continue-on-error);测试命令带覆盖率门禁
|
||||
- **CJS 产物兼容性修复**:包声明 `type: module` 下 `.js` 产物被 Node 按 ESM 解析导致 `require()` 失效,CJS 产物改 `.cjs` 扩展名并将 default 提升为 `module.exports`(`require()` 直接返回 MeToast,兼容 `.default`/`.MeToast`/`.Met`/`.Toast`/`.VERSION` 全部用法)
|
||||
|
||||
## [0.4.0] - 2026-08-08
|
||||
|
||||
|
||||
Reference in New Issue
Block a user