diff --git a/.changes/pre.json b/.changes/pre.json index 47b271a..9c4d8e1 100644 --- a/.changes/pre.json +++ b/.changes/pre.json @@ -13,10 +13,13 @@ ".changes/fix-utils-build.md", ".changes/memo-bubble-list.md", ".changes/optimize-callback.md", + ".changes/optimize-markdown.md", ".changes/optimize-sender-button.md", ".changes/optimize-sender-input.md", + ".changes/optimize-use-chat.md", ".changes/optimize-usechat.md", ".changes/refactor-bubble-list.md", + ".changes/refactor-bubble.md", ".changes/sender-enforce.md" ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index 90a3649..12bbdc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## \[0.1.0-rc.0] + +### New Features + +- [`421dc74`](https://github.com/DevCloudFE/matechat-react/commit/421dc74f39f24c00801d336dce5fbbdf6830d7f5) Optimize markdown component in `Bubble`, customize link, heading and code. Support copy button for code blocks. +- [`3869f95`](https://github.com/DevCloudFE/matechat-react/commit/3869f9554a87df0925f61350753ead20876f93ec) Optimize behavior of `useChat`: + + - Add `throwOnEmptyBackend` option to `useChat` function. + - Throw an error when `backend` is nullish and `throwOnEmptyBackend` is `true`. + - Rename `isPending`to`pending` in `useChat` return value. + - Allow empty `backend` in `useChat` function. + +### Refactors + +- [`162bad9`](https://github.com/DevCloudFE/matechat-react/commit/162bad95fc1277a259b7490a5d59e1baa93891fe) Extract all markdown components and resolve code lints. + ## \[0.1.0-beta.3] ### Performance Improvements diff --git a/package.json b/package.json index 62968bb..115586a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@matechat/react", - "version": "0.1.0-beta.3", + "version": "0.1.0-rc.0", "packageManager": "pnpm@10.13.1", "description": "Front-end AI scenario solution UI library based on Huawei DevUI Design.", "type": "module",