diff --git a/lib/middleware/index.js b/lib/middleware/index.js index 8a80113..3dd92e4 100644 --- a/lib/middleware/index.js +++ b/lib/middleware/index.js @@ -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),