node-red 2.2.0 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,95 @@
1
+ #### 2.2.3: Maintenance Release
2
+
3
+ Editor
4
+
5
+ - Fix storing subflow credential type when input has multiple types (backport to v2.x) (#3828) @Steve-Mcl
6
+ - Fix markdown editor to mark up orderedlists correctly
7
+ - Ensure 'hidden flow' count doesn't include subflows (backport to v2.x) (#3823) @Steve-Mcl
8
+ - Fix credential type input item of subflow template (backport to v2.x) (#3822) @Steve-Mcl
9
+ - Fix to extend escaped subflow category characters (backport #3647 to v2.x) (#3665) @Steve-Mcl
10
+ - Reset mouse state when switching tabs (Backport #3643 to v2.x) (#3664) @Steve-Mcl
11
+ - Fix to sanitize tab name (Backport #3646 to v2.x) (#3663) @Steve-Mcl
12
+ - fix new folder menu of save to library dialog (backport #3633 to v2.x) (#3661) @Steve-Mcl
13
+ - Ensure ACE worker options are set (Backport 3611 to v2.x) (#3657) @Steve-Mcl
14
+ - Fix browser console error Uncaught TypeError when searching certain terms (Backport #3548 to v2.x) (#3656) @Steve-Mcl
15
+ - Remove duplicate history add of ungroup event (backport #3581to v2.x) (#3655) @Steve-Mcl
16
+ - Don't let themes change node config colors (#3564) @bonanitech
17
+ - Fix gap between typedInput containers borders (#3560) @bonanitech
18
+ - Fix recording removed links in edit history (#3547) @knolleary
19
+ - Remove unused SASS vars (#3536) @bonanitech
20
+ - Add custom style for jQuery widgets borders (#3537) @bonanitech
21
+ - fix out of scope reference of hasUnusedConfig variable (#3535) @HiroyasuNishiyama
22
+ - correct "non string" check parenthesis (#3524) @Steve-Mcl
23
+ - Ensure i18n of scoped package name (#3516) @Steve-Mcl
24
+ - Prevent shortcut deploy when deploy button shaded (#3517) @Steve-Mcl
25
+ - Fix: Sidebar "Configuration" filter button tooltip (#3500) @ralphwetzel
26
+ - Add the ability to customize diff colors even more (#3499) @bonanitech
27
+ - do JSON comparison of old value/new value (#3481) @Steve-Mcl
28
+ - fix nodes losing their wires when in an iframe (#3484) @zettca
29
+ - Improve scroll into view (#3468) @Steve-Mcl
30
+ - Dont show 1st tab if hidden when loading (#3464) @Steve-Mcl
31
+
32
+ Runtime
33
+
34
+ - Do not remove unknown credentials of Subflow Modules (backport to v2.x) (#3826) @Steve-Mcl
35
+ - Backports to v2.x (#3735) @kazuhitoyokoi
36
+ - Backports to v2.x (#3705) @kazuhitoyokoi
37
+ - fix buffer parse error message of evaluateNodeProperty (backports #3624 for v2.x) (#3659) @Steve-Mcl
38
+ - Don't start if user has no home directory (#3540) @hardillb
39
+ - Error on invalid encrypted credentials (#3498) @sammachin
40
+
41
+ Nodes
42
+
43
+ - Allow HTTP Headers not in spec (backport to v2.x) (#3829) @Steve-Mcl
44
+ - Fix change node, not handling from field properly when using context (backport to v2.x) (#3827) @Steve-Mcl
45
+ - undo regression to tcp-in node
46
+ - Fix CSV node to handle when outputting text fields (backport to v2.x) (#3825) @Steve-Mcl
47
+ - Fix delay rate limit last timing when empty (backport to v2.x) (#3824) @Steve-Mcl
48
+ - Join-reduce keep existing msg properties (backport to v2.x) (#3821) @Steve-Mcl
49
+ - Fix ESM module loading in Function node (Backport #3645 to v2.x) (#3662) @Steve-Mcl
50
+ - Fix JSONata evaluation of inject button (Backport 3632 to v2.x) (#3660) @Steve-Mcl
51
+ - Dont delete TCP socket twice (backport Backport: #3630 to v2.x) (#3658) @Steve-Mcl
52
+ - Mqtt fixes in v3 for v2.x (backports #3563 #3594 #3626 to v2.x) (#3654) @Steve-Mcl
53
+ - MQTT Node - save and restore v5 config user props (#3562) @Steve-Mcl
54
+ - Fix incorrect MQTT status (#3552) @Steve-Mcl
55
+ - fix reference error of msg.status in debug node (#3526) @HiroyasuNishiyama
56
+ - call done after ws disconnects (#3531) @Steve-Mcl
57
+ - Add unit tests for MQTT nodes (#3497) @Steve-Mcl
58
+ - fix typo of will properties (properies) (#3502) @Steve-Mcl
59
+ - fix: ensure mqtt v5 props can be set false (#3472) @Steve-Mcl
60
+
61
+ #### 2.2.2: Maintenance Release
62
+
63
+ Nodes
64
+
65
+ - Fix "close timed out" error when performing full deploy or modifying broker node. (#3451) @Steve-Mcl
66
+
67
+
68
+ #### 2.2.1: Maintenance Release
69
+
70
+ Editor
71
+
72
+ - Handle mixed-cased filter terms in keyboard shortcut dialog (#3444) @knolleary
73
+ - Prevent duplicate links being added between nodes (#3442) @knolleary
74
+ - Fix to hide tooltip after removing subflow tab (#3391) @HiroyasuNishiyama
75
+ - Fix node validation to be applied to config node (#3397) @HiroyasuNishiyama
76
+ - Fix: Dont add wires to undo buffer twice (#3437) @Steve-Mcl
77
+
78
+ Runtime
79
+
80
+ - Improve module location parsing (of stack info) when adding hook (#3447) @Steve-Mcl
81
+ - Fix substitution of NR_NODE_PATH (#3445) @HiroyasuNishiyama
82
+ - Remove console.log when ignoring disabled module (#3439) @knolleary
83
+ - Improve "Unexpected Node Error" logging (#3446) @Steve-Mcl
84
+
85
+ Nodes
86
+
87
+ - Debug: Fix no-prototype-builtins bug in debug node and utils (#3394) @Alkarex
88
+ - Delay: Fix Japanese message of delay node (#3434)
89
+ - Allow nbRateUnits to be undefined when validating (#3443) @knolleary
90
+ - Coding help for recently added node-red Predefined Environment Variables (#3440) @Steve-Mcl
91
+
92
+
1
93
  #### 2.2.0: Milestone Release
2
94
 
3
95
  Editor
package/lib/red.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red",
3
- "version": "2.2.0",
3
+ "version": "2.2.3",
4
4
  "description": "Low-code programming for event-driven applications",
5
5
  "homepage": "http://nodered.org",
6
6
  "license": "Apache-2.0",
@@ -31,15 +31,15 @@
31
31
  "flow"
32
32
  ],
33
33
  "dependencies": {
34
- "@node-red/editor-api": "2.2.0",
35
- "@node-red/runtime": "2.2.0",
36
- "@node-red/util": "2.2.0",
37
- "@node-red/nodes": "2.2.0",
34
+ "@node-red/editor-api": "2.2.3",
35
+ "@node-red/runtime": "2.2.3",
36
+ "@node-red/util": "2.2.3",
37
+ "@node-red/nodes": "2.2.3",
38
38
  "basic-auth": "2.0.1",
39
39
  "bcryptjs": "2.4.3",
40
40
  "express": "4.17.2",
41
41
  "fs-extra": "10.0.0",
42
- "node-red-admin": "^2.2.2",
42
+ "node-red-admin": "^2.2.3",
43
43
  "nopt": "5.0.0",
44
44
  "semver": "7.3.5"
45
45
  },
package/red.js CHANGED
@@ -112,6 +112,10 @@ if (parsedArgs.settings) {
112
112
  // Consider compatibility for older versions
113
113
  settingsFile = path.join(process.env.HOMEPATH,".node-red","settings.js");
114
114
  } else {
115
+ if (!parsedArgs.userDir && !(process.env.HOME || process.env.USERPROFILE || process.env.HOMEPATH)) {
116
+ console.log("Could not find user directory. Ensure $HOME is set for the current user, or use --userDir option")
117
+ process.exit(1)
118
+ }
115
119
  var userDir = parsedArgs.userDir || path.join(process.env.HOME || process.env.USERPROFILE || process.env.HOMEPATH,".node-red");
116
120
  var userSettingsFile = path.join(userDir,"settings.js");
117
121
  if (fs.existsSync(userSettingsFile)) {
package/settings.js CHANGED
@@ -230,80 +230,80 @@ module.exports = {
230
230
  * - externalModules
231
231
  ******************************************************************************/
232
232
 
233
- /** Uncomment the following to run node-red in your preferred language.
234
- * Available languages include: en-US (default), ja, de, zh-CN, zh-TW, ru, ko
235
- * Some languages are more complete than others.
236
- */
237
- // lang: "de",
238
-
239
- /** Configure the logging output */
240
- logging: {
241
- /** Only console logging is currently supported */
242
- console: {
243
- /** Level of logging to be recorded. Options are:
244
- * fatal - only those errors which make the application unusable should be recorded
245
- * error - record errors which are deemed fatal for a particular request + fatal errors
246
- * warn - record problems which are non fatal + errors + fatal errors
247
- * info - record information about the general running of the application + warn + error + fatal errors
248
- * debug - record information which is more verbose than info + info + warn + error + fatal errors
249
- * trace - record very detailed logging + debug + info + warn + error + fatal errors
250
- * off - turn off all logging (doesn't affect metrics or audit)
251
- */
252
- level: "info",
253
- /** Whether or not to include metric events in the log output */
254
- metrics: false,
255
- /** Whether or not to include audit events in the log output */
256
- audit: false
257
- }
258
- },
259
-
260
- /** Context Storage
261
- * The following property can be used to enable context storage. The configuration
262
- * provided here will enable file-based context that flushes to disk every 30 seconds.
263
- * Refer to the documentation for further options: https://nodered.org/docs/api/context/
264
- */
265
- //contextStorage: {
266
- // default: {
267
- // module:"localfilesystem"
268
- // },
269
- //},
270
-
271
- /** `global.keys()` returns a list of all properties set in global context.
272
- * This allows them to be displayed in the Context Sidebar within the editor.
273
- * In some circumstances it is not desirable to expose them to the editor. The
274
- * following property can be used to hide any property set in `functionGlobalContext`
275
- * from being list by `global.keys()`.
276
- * By default, the property is set to false to avoid accidental exposure of
277
- * their values. Setting this to true will cause the keys to be listed.
278
- */
279
- exportGlobalContextKeys: false,
280
-
281
- /** Configure how the runtime will handle external npm modules.
282
- * This covers:
283
- * - whether the editor will allow new node modules to be installed
284
- * - whether nodes, such as the Function node are allowed to have their
285
- * own dynamically configured dependencies.
286
- * The allow/denyList options can be used to limit what modules the runtime
287
- * will install/load. It can use '*' as a wildcard that matches anything.
288
- */
289
- externalModules: {
290
- // autoInstall: false, /** Whether the runtime will attempt to automatically install missing modules */
291
- // autoInstallRetry: 30, /** Interval, in seconds, between reinstall attempts */
292
- // palette: { /** Configuration for the Palette Manager */
293
- // allowInstall: true, /** Enable the Palette Manager in the editor */
294
- // allowUpdate: true, /** Allow modules to be updated in the Palette Manager */
295
- // allowUpload: true, /** Allow module tgz files to be uploaded and installed */
296
- // allowList: ['*'],
297
- // denyList: [],
298
- // allowUpdateList: ['*'],
299
- // denyUpdateList: []
300
- // },
301
- // modules: { /** Configuration for node-specified modules */
302
- // allowInstall: true,
303
- // allowList: [],
304
- // denyList: []
305
- // }
306
- },
233
+ /** Uncomment the following to run node-red in your preferred language.
234
+ * Available languages include: en-US (default), ja, de, zh-CN, zh-TW, ru, ko
235
+ * Some languages are more complete than others.
236
+ */
237
+ // lang: "de",
238
+
239
+ /** Configure the logging output */
240
+ logging: {
241
+ /** Only console logging is currently supported */
242
+ console: {
243
+ /** Level of logging to be recorded. Options are:
244
+ * fatal - only those errors which make the application unusable should be recorded
245
+ * error - record errors which are deemed fatal for a particular request + fatal errors
246
+ * warn - record problems which are non fatal + errors + fatal errors
247
+ * info - record information about the general running of the application + warn + error + fatal errors
248
+ * debug - record information which is more verbose than info + info + warn + error + fatal errors
249
+ * trace - record very detailed logging + debug + info + warn + error + fatal errors
250
+ * off - turn off all logging (doesn't affect metrics or audit)
251
+ */
252
+ level: "info",
253
+ /** Whether or not to include metric events in the log output */
254
+ metrics: false,
255
+ /** Whether or not to include audit events in the log output */
256
+ audit: false
257
+ }
258
+ },
259
+
260
+ /** Context Storage
261
+ * The following property can be used to enable context storage. The configuration
262
+ * provided here will enable file-based context that flushes to disk every 30 seconds.
263
+ * Refer to the documentation for further options: https://nodered.org/docs/api/context/
264
+ */
265
+ //contextStorage: {
266
+ // default: {
267
+ // module:"localfilesystem"
268
+ // },
269
+ //},
270
+
271
+ /** `global.keys()` returns a list of all properties set in global context.
272
+ * This allows them to be displayed in the Context Sidebar within the editor.
273
+ * In some circumstances it is not desirable to expose them to the editor. The
274
+ * following property can be used to hide any property set in `functionGlobalContext`
275
+ * from being list by `global.keys()`.
276
+ * By default, the property is set to false to avoid accidental exposure of
277
+ * their values. Setting this to true will cause the keys to be listed.
278
+ */
279
+ exportGlobalContextKeys: false,
280
+
281
+ /** Configure how the runtime will handle external npm modules.
282
+ * This covers:
283
+ * - whether the editor will allow new node modules to be installed
284
+ * - whether nodes, such as the Function node are allowed to have their
285
+ * own dynamically configured dependencies.
286
+ * The allow/denyList options can be used to limit what modules the runtime
287
+ * will install/load. It can use '*' as a wildcard that matches anything.
288
+ */
289
+ externalModules: {
290
+ // autoInstall: false, /** Whether the runtime will attempt to automatically install missing modules */
291
+ // autoInstallRetry: 30, /** Interval, in seconds, between reinstall attempts */
292
+ // palette: { /** Configuration for the Palette Manager */
293
+ // allowInstall: true, /** Enable the Palette Manager in the editor */
294
+ // allowUpdate: true, /** Allow modules to be updated in the Palette Manager */
295
+ // allowUpload: true, /** Allow module tgz files to be uploaded and installed */
296
+ // allowList: ['*'],
297
+ // denyList: [],
298
+ // allowUpdateList: ['*'],
299
+ // denyUpdateList: []
300
+ // },
301
+ // modules: { /** Configuration for node-specified modules */
302
+ // allowInstall: true,
303
+ // allowList: [],
304
+ // denyList: []
305
+ // }
306
+ },
307
307
 
308
308
 
309
309
  /*******************************************************************************