Changelog
v5.0.0
The most important change is the removal of .converse()
and .runActions()
. Follow the migration tutorial here, or read more here.
converse
and runActions
are removedChangelog
v4.2.0
Changelog
v4.1.0
converse
now takes reset
as an optional parameterinteractive
is no longer a function on the Wit
client. Instead, you require it from the library: require('node-wit').interactive
runActions
now resets the last turn on new messages and errors.Changelog
v4.0.0
After a lot of internal dogfooding and bot building, we decided to change the API in a backwards-incompatible way. The changes are described below and aim to simplify user code and accommodate upcoming features.
We moved to a Promise-based API, instead of callbacks. This makes the code simpler and the error-handling more straight-forward. It's also inline with where JS is going with standards like fetch()
and async/await
that are based on Promises.
See ./examples
to see how to use the new API.
say
renamed to send
to reflect that it deals with more than just textmerge
and error
request
and response
argumentscb
parameter anymoreWit
object, instead of using env varsChangelog
v3.3.1
20160516
)Changelog
v3.3.0
node-fetch
instead of requests
message()
API takes now an optional context as second parameter