mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Add deprecation warnings to nodes
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
| @@ -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) { | ||||
|   | ||||
| @@ -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; | ||||
|  | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user