mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add deprecation warnings to nodes
This commit is contained in:
parent
8d54126127
commit
abd3d752f5
@ -41,6 +41,7 @@ if (emailkey) {
|
|||||||
|
|
||||||
function ImapNode(n) {
|
function ImapNode(n) {
|
||||||
RED.nodes.createNode(this,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.name = n.name;
|
||||||
this.repeat = n.repeat * 1000 || 300000;
|
this.repeat = n.repeat * 1000 || 300000;
|
||||||
var node = this;
|
var node = this;
|
||||||
|
@ -23,6 +23,7 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
function Xml2jsNode(n) {
|
function Xml2jsNode(n) {
|
||||||
RED.nodes.createNode(this,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;
|
this.useEyes = n.useEyes||false;
|
||||||
var node = this;
|
var node = this;
|
||||||
this.on("input", function(msg) {
|
this.on("input", function(msg) {
|
||||||
|
@ -20,6 +20,7 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
function Js2XmlNode(n) {
|
function Js2XmlNode(n) {
|
||||||
RED.nodes.createNode(this,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;
|
this.root = n.root;
|
||||||
var node = this;
|
var node = this;
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ var RED = require(process.env.NODE_RED_HOME+"/red/red");
|
|||||||
|
|
||||||
function HttpGet(n) {
|
function HttpGet(n) {
|
||||||
RED.nodes.createNode(this,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.baseurl = n.baseurl || "";
|
||||||
this.append = n.append || "";
|
this.append = n.append || "";
|
||||||
var node = this;
|
var node = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user