2.0.0 - February 25 2019
2.0.0: The Async/Await Update
This is a major new version of RiveScript. It adds async/await support and
makes the API asynchronous everywhere. It also decaffeinates the code,
migrating it from CoffeeScript back to native ES2015+ with modern syntax.
See the Upgrading-v2 document for information about what's
new and how to upgrade your code.
v2.0.0 last minute changes:
- Fix a bug where
<reply>
in+Trigger
wasn't being formatted properly
(lowercased, etc.) so matching was difficult. - Add a Redis driver for an example User Variable Session Manager that
stores variables directly to the cache, and aneg/redis
example bot
that demonstrates it. - Write documentation for final v2.0.0 launch.
2.0.0-beta.1 - Jan 16 2019
- Republish to npm after updating TypeScript definitions.
- Move release status to "beta"
Before 2.0.0 final release there should be at least one User Variable Session
Driver implemented (likely Redis) to verify the session interface is working
as intended.
2.0.0-alpha.6 - Jul 9 2018
- Make
loadFile()
andloadDirectory()
backwards compatible so "simple" bots
won't need to change anything to upgrade, but will get deprecation warnings
instead. ("Simple" bots usedloadFile()
orloadDirectory()
in conjunction
withreplyAsync()
, and didn't use any other functions that changed).
2.0.0-alpha.5 - Jul 7 2018
- Fix
<botstar>
not working at all. - Make
loadFile()
andloadDirectory()
promise-based. - Add the User Variable Session Manager Interface and break backwards
compatibility on all methods that use user variables (e.g.
getUservar()
,lastMatch()
, etc.)
2.0.0-alpha.3 - June 23 2018
- Fix a runtime error when
<input>
is used in a trigger. - Reformatted the unit tests to use ES2015 multi-line string literals.
2.0.0-alpha.2 - June 16 2018
- Decaffeinate the source code from CoffeeScript back into native JavaScript.
- Add async/await support into the reply process, which enables support for
a lot of new async features, including use of<call>
tags in
*Condition
checks and for replacing the user variable session manager
with one backed by a database. - Deprecated:
replyAsync()
.