From 8a4a10f2830cbf6bb796f4eb4c2151d15edf8f67 Mon Sep 17 00:00:00 2001 From: AI Engineer Date: Thu, 11 Jun 2026 13:58:22 +0800 Subject: [PATCH] chore: release v1.0.14 with component-based refactor and updated docs By: AICoder --- CHANGELOG.md | 10 ++++++++++ README.md | 12 ++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75d4317..2357ebb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.0.18] - 2026-06-11 +### Changed +- **Component-Based Refactor**: Reorganized source code into independent, PascalCase named modules (e.g., `AutoForm.js`, `TagsInput.js`, `List.js`) to improve maintainability. +- **De-ESM Architecture**: Eliminated internal ESM `import`/`export` dependencies between modules. Logic is now shared via `globalThis` and registration patterns, ensuring 100% UMD compatibility. +- **Improved Encapsulation**: Each component is now a self-contained unit responsible for its own registration and internal logic. +- **Global API Consistency**: Ensured all public APIs (`HTTP`, `UI`, `AutoForm`, etc.) are consistently mounted to `globalThis`. + +### Fixed +- **Scope Initialization**: Fixed a critical `TypeError` in `DatePicker` and `TagsInput` by refining parent scope inheritance and preventing recursive self-parenting in the underlying `state` engine. + ## [1.0.13] - 2026-06-08 ### Fixed - **State Integration**: Bumped `@apigo.cc/state` to `1.0.18` to restore the globally injected `$`/`$$` helpers from the original UMD era, fixing `TagsInput` element targeting. diff --git a/README.md b/README.md index f7b329f..e85ad9a 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ ### 同步 UMD 集成 (推荐:消灭异步时序风险,实现“秒开”渲染) 将脚本放置在 `` 中,确保地基在 DOM 解析前就绪: + +**本地引入示例:** ```html @@ -15,7 +17,17 @@ +``` +**CDN 引入示例:** +```html + + + + + + +```