From 9047797c9f6f087d1d13e9e396f6872068fbe6ef Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Tue, 25 Nov 2014 14:43:57 -0800 Subject: [PATCH] Deprecate 'connection' and 'device' Robot opts --- lib/robot.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/robot.js b/lib/robot.js index 76d8658..6349973 100644 --- a/lib/robot.js +++ b/lib/robot.js @@ -183,6 +183,7 @@ Robot.prototype.initConnections = function(opts) { } if (opts.connection) { + Logger.warn("Specifying a single connection with the 'connection' key is deprecated, and will be removed in 1.0.0."); this.connection(opts.connection); return this.connections; } @@ -254,6 +255,7 @@ Robot.prototype.initDevices = function(opts) { } if (opts.device) { + Logger.warn("Specifying a single device with the 'device' key is deprecated, and will be removed in 1.0.0."); this.device(opts.device); return this.devices; }