Skip to content

Commit

Permalink
chore: deprecate version_date
Browse files Browse the repository at this point in the history
  • Loading branch information
germanattanasio committed Nov 18, 2018
1 parent 7bfab7e commit 8502c1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/middleware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ module.exports = function (config) {
throw new Error('Watson Assistant config parameters absent.');
}

if (config.version_date) {
console.warn('"version_date" is deprecated and will be removed in the next major release. Use "version"');
config.version = config.version_date;
delete config.version_date;
}

var middleware = {

minimum_confidence: (config.minimum_confidence || 0.75),
Expand Down

0 comments on commit 8502c1a

Please sign in to comment.