Skip to content

Commit

Permalink
docs: changelog of 1.0.0-alpha.2 (#132)
Browse files Browse the repository at this point in the history
* docs: changelog of 1.0.0-alpha.2

* chore: update roles for generate-component-changelog.

* chore: delete console.log.
  • Loading branch information
YumoImer authored Sep 27, 2024
1 parent 25d0490 commit e3fb9af
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 6 additions & 1 deletion scripts/generate-component-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(''),
);

Expand Down

0 comments on commit e3fb9af

Please sign in to comment.