Socket
Socket
Sign inDemoInstall

node-wit

Package Overview
Dependencies
73
Maintainers
5
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous13Next

6.0.1

Diff

Changelog

Source

v6.0.1

Removed unused request dependency Updated various dependencies.

patapizza
published 6.0.0 •

Changelog

Source

v6.0.0

Updated API version to latest: 20200513. Browse the latest HTTP API documentation here.

aforaleka
published 5.0.0 •

Changelog

Source

v5.0.0

The most important change is the removal of .converse() and .runActions(). Follow the migration tutorial here, or read more here.

Breaking changes

  • converse and runActions are removed
  • updated and added new examples that leverage the /message API
  • updated wit-ai-basic-app-for-tests.zip for testing
blandinw
published 4.3.0 •

Changelog

Source

v4.3.0

  • converse and runActions are deprecated
  • interactive now calls message
stopachka
published 4.2.0 •

Changelog

Source

v4.2.0

  • support actions that do not return promises
  • support the case where an action does not return a Promise
  • update uuid to version 3.0.0
  • Support older versions of node
  • 'Use strict' on interactive.js
  • Check for bot's message in messenger example
patapizza
published 4.1.0 •

Changelog

Source

v4.1.0

  • Support for different JS environments
  • converse now takes reset as an optional parameter

Breaking changes

  • interactive 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.
martinraison
published 4.0.0 •

Changelog

Source

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.

Breaking changes

  • say renamed to send to reflect that it deals with more than just text
  • Removed built-in actions merge and error
  • Actions signature simplified with request and response arguments
  • Actions need to return promises and do not receive the cb parameter anymore
  • INFO level replaces LOG level
  • configuration is now done when instantiating the Wit object, instead of using env vars
patapizza
published 3.3.2 •

Changelog

Source

v3.3.2

  • allows for overriding API version, by setting WIT_API_VERSION
blandinw
published 3.3.1 •

Changelog

Source

v3.3.1

  • adding API versioning (defaults to 20160516)
  • warns instead of throwing when validating actions
  • fixing null values when cloning context
patapizza
published 3.3.0 •

Changelog

Source

v3.3.0

  • callbacks are not called asynchronously by default, choice is left to the developer (use process.nextTick in your callback to emulate the previous behavior)
  • using node-fetch instead of requests
  • the message() API takes now an optional context as second parameter
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc