Skip to content

Latest commit

 

History

History
168 lines (106 loc) · 5.16 KB

CHANGES.md

File metadata and controls

168 lines (106 loc) · 5.16 KB

v6.6.0 - Multi-responses in Composer

  • Multi-responses in Composer: runComposerAudio(), .runComposer() (and raw .converse() + .event()) now emit response events for intermediate responses, and run intermediate actions as well.
  • Bumped API version to 20230215.

v6.5.1

  • Update uuid to version 9.0.0

v6.5.0 - Composer alpha integration

  • Composer integration: .runComposerAudio(), .runComposer() (and raw .converse() + .event()) + actions support
  • Bumped API version to 20220801.
  • interactive now uses Composer for text inputs, use !message for GET /message and !converse for Composer audio inputs
  • added pizza example

v6.4.0

  • Add POST /synthesize integration.
  • Add POST /dictation integration.
  • New example using synthesize() and dictation().

v6.3.0

  • speech() emits partialUnderstanding events to support live understanding.
  • apiVersion updated to 20220608 and its type is now a number.

Breaking changes

  • Bumped API version to 20220608.
  • Emits partialUnderstanding events (live understanding support).
  • Updated apiVersion type from string to number.

v6.2.2

  • Fixes parsing for large HTTP chunks.

v6.2.1

  • Emits partialTranscription and fullTranscription events.
  • Shows microphone input feedback for interactive.
  • Includes proxy support for speech().

v6.2.0

Requires Node.js >= 6.17.1 to support ES6 directly.

v6.1.1

  • Basic POST /speech integration.
  • !speech support for interactive.

v6.1.0

Bumped API version to 20210928. Moved API version from Accept header to v HTTP parameter. Kaizens.

v6.0.1

Removed unused request dependency Updated various dependencies.

v6.0.0

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

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

v4.3.0

  • converse and runActions are deprecated
  • interactive now calls message

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

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.

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

v3.3.2

  • allows for overriding API version, by setting WIT_API_VERSION

v3.3.1

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

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

v3.2.2

  • fixing context not updated in interactive mode
  • fixing array values in context
  • create readline interface only in interactive mode

v3.2.0

Unifying action parameters.

breaking

  • the say action now takes 4 parameters: sessionId, context, message, cb
  • the error action now takes 3 parameters: sessionId, context, error

v3.1.0

Updating action parameters.

breaking

  • the merge action now takes 5 parameters: sessionId, context, entities, message, cb
  • the error action now takes the context as second parameter
  • custom actions now take 3 parameters: sessionId, context, cb

v3.0.0

Bot Engine integration

breaking

  • the library now provides a Wit object
  • captureTextIntent has been moved to Wit.message with no token
  • audio not supported