Add deprecation warnings to nodes

This commit is contained in:
Nick O'Leary 2014-09-22 15:57:16 +01:00
parent 8d54126127
commit abd3d752f5
4 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@ if (emailkey) {
function ImapNode(n) {
RED.nodes.createNode(this,n);
this.warn("This node has been deprecated and will be deleted in a future release. Please update your flow to use the 'e-mail in' node.");
this.name = n.name;
this.repeat = n.repeat * 1000 || 300000;
var node = this;

View File

@ -23,6 +23,7 @@ module.exports = function(RED) {
function Xml2jsNode(n) {
RED.nodes.createNode(this,n);
this.warn("This node has been deprecated and will be deleted in a future release. Please update your flow to use the 'xml' node.");
this.useEyes = n.useEyes||false;
var node = this;
this.on("input", function(msg) {

View File

@ -20,6 +20,7 @@ module.exports = function(RED) {
function Js2XmlNode(n) {
RED.nodes.createNode(this,n);
this.warn("This node has been deprecated and will be deleted in a future release. Please update your flow to use the 'xml' node.");
this.root = n.root;
var node = this;

View File

@ -18,6 +18,7 @@ var RED = require(process.env.NODE_RED_HOME+"/red/red");
function HttpGet(n) {
RED.nodes.createNode(this,n);
this.warn("This node has been deprecated and will be deleted in a future release. Please update your flow to use the 'http request' node.");
this.baseurl = n.baseurl || "";
this.append = n.append || "";
var node = this;