Skip to content

Releases: cozimacode/react-bot

v2.1.0

23 Dec 16:54
Compare
Choose a tag to compare

Fixing dependency vulnerabilities

v2.0.1

15 Mar 17:46
Compare
Choose a tag to compare

Minor bug fixes

v2.0.0

15 Mar 12:32
Compare
Choose a tag to compare

This version contains breaking changes. Please be advised...

Highlights:

  • ReactBot is now completely rewritten in typescript. Enjoy better type checking and catch errors before they happen. All the dependency vulnerabilities are addressed.
  • Support for multiple bots now enabled.
  • The bot now accepts a new className prop for better control over styling.
  • The methods displayTypingEffect and hideTypingEffect are now passed as arguments to handleUserInput method and can be called as and when needed.
import React from "react";
import { ReactBot, addBotMessage } from "@cozimacode/react-bot";
import "@cozimacode/react-bot/dist/styles.css";

function Demo() {
    const handleUserInput = (input, displayTypingEffect, hideTypingEffect) => {
    displayTypingEffect();
    addBotMessage('response from backend server')
    hideTypingEffect();
}

  return <ReactBot handleUserInput={handleUserInput} />;
}

export default Demo;

What's next?

  • I am working on making the library more light in weight by code splitting and other necessary optimizations. You can expect lesser bundle sizes in the next release.
  • I welcome all suggestions for improvements and feature requests. Please do let me know if you need something which this library doesn't have and I'll try my best to get it done.

v1.3.0

08 May 17:35
Compare
Choose a tag to compare

fixing dependency vulnerabilities

v1.2.2

31 Jan 14:10
Compare
Choose a tag to compare
  • Minor npm audit fixes

v1.2.1

30 Oct 13:54
Compare
Choose a tag to compare

Highlights:

  • ReactBot now also works on projects setup manually without using CRA
  • Bundle size further reduced
  • Existing users updating to this version need to import the stylesheet besides ReactBot.

import "@cozimacode/react-bot/dist/styles.css";

v1.0.1

13 Sep 07:32
Compare
Choose a tag to compare

ReactBot initial production ready release v1.0.1