From 512c200480986fb30c69b44fc798c3dc3cc289c9 Mon Sep 17 00:00:00 2001 From: tjtanjin Date: Mon, 21 Oct 2024 23:50:11 +0800 Subject: [PATCH] docs: Update changelog and version --- CHANGELOG.md | 14 ++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 098d8f1b..aa661192 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # CHANGELOG.md +## v2.0.0-beta.20 (21-10-2024) + +**Fixed:** +- Fixed an issue with the default chatbot footer icon +- Improved checks for desktop/mobile devices +- Reduced unnecessary re-renders (minor optimizations) +- Properly fixed chatbot svg icon on mobile + +**Added:** +- Added new `replaceSettings`, `replaceStyles`, `replaceMessages`, `replacePaths` and `replaceToasts` utility functions to their respective hooks (replaces their respective state setters) + +**Note:** +Hooks no longer directly expose state setters (not a great practice, and hinders optimizations that can be done within the library itself). The new functions serve as a drop-in replacement for the state setters. + ## v2.0.0-beta.19 (18-10-2024) **Fixed:** diff --git a/package-lock.json b/package-lock.json index 5cf7a55a..f4217ca4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-chatbotify", - "version": "2.0.0-beta.19", + "version": "2.0.0-beta.20", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "react-chatbotify", - "version": "2.0.0-beta.19", + "version": "2.0.0-beta.20", "license": "MIT", "devDependencies": { "@testing-library/jest-dom": "^6.5.0", diff --git a/package.json b/package.json index 78df543e..6e00c095 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "files": [ "./dist" ], - "version": "2.0.0-beta.19", + "version": "2.0.0-beta.20", "description": "A modern React library for creating flexible and extensible chatbots.", "type": "module", "main": "./dist/index.cjs",