From e3fb9afdc68eb8b58d7c4bde2ea182eb9a0cb99f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8F=8E=EF=B8=8F=20Imer?= <98121322+YumoImer@users.noreply.github.com> Date: Fri, 27 Sep 2024 11:41:31 +0800 Subject: [PATCH] docs: changelog of 1.0.0-alpha.2 (#132) * docs: changelog of 1.0.0-alpha.2 * chore: update roles for generate-component-changelog. * chore: delete console.log. --- CHANGELOG.en-US.md | 11 +++++++++++ CHANGELOG.zh-CN.md | 11 +++++++++++ package.json | 2 +- scripts/generate-component-changelog.ts | 7 ++++++- 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index c8e1ddb2..575c2644 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -16,6 +16,17 @@ tag: vVERSION --- +## 1.0.0-alpha.2 + +`2024-09-27` + +- 🔥 New Componen `XProvider` for global configuration, by [@YumoImer](https://github.com/YumoImer) [#127](https://github.com/ant-design/x/pull/127) +- 🔥 New Runtime Hook `useXChat` for data management, by [@zombieJ](https://github.com/zombieJ) [#125](https://github.com/ant-design/x/pull/125) +- 🔥 New Runtime Hook `useXAgent` for model scheduling, by [@zombieJ](https://github.com/zombieJ) [#125](https://github.com/ant-design/x/pull/125) +- 🆕 `ThoughtChain` component now support the `size` property, by [@YumoImer](https://github.com/YumoImer) [#123](https://github.com/ant-design/x/pull/123) +- 🛠 Updated `.lintstagedrc.json`, by [@afc163](https://github.com/afc163) [#128](https://github.com/ant-design/x/pull/128) +- 🛠 Updated dependency `cheerio` to `v1.0.0`, by [@afc163](https://github.com/afc163) [#121](https://github.com/ant-design/x/pull/121) + ## 1.0.0-alpha.1 `2024-09-10` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 3fd915d6..0aa00c28 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -15,6 +15,17 @@ tag: vVERSION --- +## 1.0.0-alpha.2 + +`2024-09-27` + +- 🔥 新增 `XProvider` 全局化配置组件,由 [@YumoImer](https://github.com/YumoImer) 完成 [#127](https://github.com/ant-design/x/pull/127) +- 🔥 新增 运行时钩子 `useXChat` 数据管理,由 [@zombieJ](https://github.com/zombieJ) 完成 [#125](https://github.com/ant-design/x/pull/125) +- 🔥 新增 运行时钩子 `useXAgent` 模型调度,由 [@zombieJ](https://github.com/zombieJ) 完成 [#125](https://github.com/ant-design/x/pull/125) +- 🆕 `ThoughtChain` 思维链组件支持 `size` 属性,由 [@YumoImer](https://github.com/YumoImer) 完成 [#123](https://github.com/ant-design/x/pull/123) +- 🛠 更新 `.lintstagedrc.json`, 由 [@afc163](https://github.com/afc163) 完成 [#128](https://github.com/ant-design/x/pull/128) +- 🛠 更新依赖 `cheerio` 至 `v1.0.0`, 由 [@afc163](https://github.com/afc163) 完成 [#121](https://github.com/ant-design/x/pull/121) + ## 1.0.0-alpha.1 `2024-09-10` diff --git a/package.json b/package.json index dbb43f11..72a49635 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ant-design/x", - "version": "1.0.0-alpha.1", + "version": "1.0.0-alpha.2", "description": "Crafting AI-driven interfaces with React, seamlessly integrating smart chat components and API services at your fingertips.", "keywords": ["AI", "Copilot", "ant", "components", "framework", "react"], "homepage": "https://x.ant.design", diff --git a/scripts/generate-component-changelog.ts b/scripts/generate-component-changelog.ts index dc9eac04..fe94eede 100644 --- a/scripts/generate-component-changelog.ts +++ b/scripts/generate-component-changelog.ts @@ -19,7 +19,12 @@ const componentNames = globSync( const camelComponentNames = componentNames.map((componentName) => componentName .split('-') - .map((cell) => (cell.length <= 2 ? cell.toUpperCase() : cell[0].toUpperCase() + cell.slice(1))) + .map((cell) => { + // Runtime Hook + if (cell.startsWith('use')) return cell; + // Components + return cell.length <= 2 ? cell.toUpperCase() : cell[0].toUpperCase() + cell.slice(1); + }) .join(''), );