node-red 3.0.0-beta.1 → 3.0.0-beta.4

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +109 -0
  2. package/package.json +5 -5
  3. package/settings.js +88 -75
package/CHANGELOG.md CHANGED
@@ -1,3 +1,112 @@
1
+ #### 3.0.0-beta.4: Beta Release
2
+
3
+ Editor
4
+
5
+ - Fix clicking on node in workspace to hide context menu (#3696) @knolleary
6
+ - Fix credential type input item of subflow template (#3703) @HiroyasuNishiyama
7
+ - Add option flag `reimport` to `importNodes` (#3718) @Steve-Mcl
8
+ - Update german translation (#3691) @Dennis14e
9
+ - List welcome tours in help sidebar (#3717) @knolleary
10
+ - Ensure 'hidden flow' count doesn't include subflows (#3715) @knolleary
11
+ - Fix Chinese translate (#3706) @hotlong
12
+ - Fix use default button for node icon (#3714) @kazuhitoyokoi
13
+ - Fix select boxes vertical alignment (#3698) @bonanitech
14
+ - Ensure workspace clean after undoing dropped node (#3708) @Steve-Mcl
15
+ - Use solid colour as config node icon background to hide text overflow (#3710) @Steve-Mcl
16
+ - Increase quick-add height to reveal 2 most recent entries (#3711) @Steve-Mcl
17
+ - Set default editor to monaco in absence of user preference (#3702) @knolleary
18
+ - Add Japanese translations for v3.0-beta.3 (#3688) @kazuhitoyokoi
19
+ - Fix handling of spacebar inside JSON visual editor (#3687) @knolleary
20
+ - Fix menu padding to handle both icons and submenus (#3686) @knolleary
21
+ - Include scroll offset when positioning quick-add dialog (#3685) @knolleary
22
+
23
+ Runtime
24
+
25
+ - Import default export if node is a transpiled es module (#3669) @dschmidt
26
+ - Leave Monaco theme commented out by default (#3704) @bonanitech
27
+
28
+ Nodes
29
+
30
+ - CSV: Fix CSV node to handle when outputting text fields (#3716) @dceejay
31
+ - Delay: Fix delay rate limit last timing when empty (#3709) @dceejay
32
+ - Link: Ensure link-call cache is updated when link-in is modified (#3695) @Steve-Mcl
33
+ - Join: Join node in reduce mode doesn't keep existing msg properties (#3670) @dceejay
34
+ - Template: Add support for evalulating {{env.<var>}} within a template node (#3690) @cow0w
35
+
36
+ #### 3.0.0-beta.3: Beta Release
37
+
38
+ Editor
39
+
40
+ - Add Right-Click content menu (#3678) @knolleary
41
+ - Fix disable junction (#3671) @HiroyasuNishiyama
42
+ - Add Japanese translations for v2.2.3 (#3672) @kazuhitoyokoi
43
+ - Reset mouse state when switching tabs (#3643) @knolleary
44
+ - Fix uncorrect fix of junction to subflow conversion (#3666) @HiroyasuNishiyama
45
+ - Fix undoing junction to subflow (#3653) @HiroyasuNishiyama
46
+ - Fix conversion of junction to subflow (#3652) @HiroyasuNishiyama
47
+ - Fix to include junction to exported nodes (#3650) @HiroyasuNishiyama
48
+ - Fix z-index value for shade to cover nodes in palette (#3649) @kazuhitoyokoi
49
+ - Fix to extend escaped subflow category characters (#3647) @HiroyasuNishiyama
50
+ - Fix to sanitize tab name (#3646) @HiroyasuNishiyama
51
+ - Fix selector placement (#3644) @bonanitech
52
+ - Add Japanese translations for v3.0-beta.2 (#3622) @kazuhitoyokoi
53
+ - Fix new folder menu of save to library dialog (#3633) @HiroyasuNishiyama
54
+ - Fix layer of palette node (#3638) @HiroyasuNishiyama
55
+ - Fix to place a node dragged from palette within the workspace (#3637) @HiroyasuNishiyama
56
+ - Fix typo in CSS (#3628) @bonanitech
57
+ - Use the correct variable for the gutter text color (#3615) @bonanitech
58
+
59
+
60
+ Runtime
61
+
62
+ - Support loading node modules from `nodesdir` (#3676) @Steve-Mcl
63
+ - fix buffer parse error message of evaluateNodeProperty (#3624) @HiroyasuNishiyama
64
+
65
+ Nodes
66
+
67
+ - File: Further simplify file node filename entry UX (v3) (#3677) @Steve-Mcl
68
+ - Function: Fix initial cursor position of init/finalize tab of function node (#3674) @HiroyasuNishiyama
69
+ - Function: Fix ESM module loading in Function node (#3645) @knolleary
70
+ - Inject: Fix JSONata evaluation of inject button (#3632) @HiroyasuNishiyama
71
+ - TCP: Dont delete TCP socket twice (#3630) @Steve-Mcl
72
+ - MQTT Node: define noproxy variable (#3626) @Steve-Mcl
73
+ - Debug: i18n debug sidebar node label (#3623) @HiroyasuNishiyama
74
+
75
+ #### 3.0.0-beta.2: Beta Release
76
+
77
+ **Migration from 2.x**
78
+
79
+ - The 'slice wires' action has changed from Ctrl-RightMouseButton to Alt-LeftMouseButton
80
+
81
+ Editor
82
+
83
+ - Rework Junctions to be more node like in their event handling (#3607) @knolleary
84
+ - Change slicing / slice-junction operations over to mouse button 0 (Left Mouse Button) (#3609) @Steve-Mcl
85
+ - Do not slice-junction link node wires (#3608) @knolleary
86
+ - Handle many-to-one slicing of wires (#3604) @knolleary
87
+ - Ensure ACE worker options are set (#3611) @Steve-Mcl
88
+ - Remove duplicate history add of ungroup event (#3605) @knolleary
89
+ - use text width instead of number of characters for deciding select fi… (#3603) @HiroyasuNishiyama
90
+ - Update Japanese info of link call node reflecting update of English info (#3600) @HiroyasuNishiyama
91
+ - Fix typedInput label not visible on themes (#3580) @bonanitech
92
+ - Fix project switching when junctions are present (#3595) @Steve-Mcl
93
+ - Fix junction: when wiring from a regular nodes INPUT, backwards to a junction (#3591) @Steve-Mcl
94
+ - Fix error initialising flow tab editor (#3585) @Steve-Mcl
95
+ - Add Japanese translations for v3.0-beta.1 (#3576) @kazuhitoyokoi
96
+ - Fix image paths where `red/image/typedInput/XXXX.png` should be `red/image/typedInput/XXXX.svg` (#3592) @kazuhitoyokoi
97
+ - Fix browser console error Uncaught TypeError when searching certain terms (#3584) @Steve-Mcl
98
+
99
+ Runtime
100
+
101
+ - fix error on system-info action (#3589) @HiroyasuNishiyama
102
+
103
+ Nodes
104
+
105
+ - I18n switch rule selector (#3602) @HiroyasuNishiyama
106
+ - Handle removal of event handlers to allow mqtt client.end() to work (#3594) @PhilDay-CT
107
+ - update link-call node info according to current behavior (#3597) @HiroyasuNishiyama
108
+
109
+
1
110
  #### 3.0.0-beta.1: Beta Release
2
111
 
3
112
  **Migration from 2.x**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "Low-code programming for event-driven applications",
5
5
  "homepage": "http://nodered.org",
6
6
  "license": "Apache-2.0",
@@ -31,10 +31,10 @@
31
31
  "flow"
32
32
  ],
33
33
  "dependencies": {
34
- "@node-red/editor-api": "3.0.0-beta.1",
35
- "@node-red/runtime": "3.0.0-beta.1",
36
- "@node-red/util": "3.0.0-beta.1",
37
- "@node-red/nodes": "3.0.0-beta.1",
34
+ "@node-red/editor-api": "3.0.0-beta.4",
35
+ "@node-red/runtime": "3.0.0-beta.4",
36
+ "@node-red/util": "3.0.0-beta.4",
37
+ "@node-red/nodes": "3.0.0-beta.4",
38
38
  "basic-auth": "2.0.1",
39
39
  "bcryptjs": "2.4.3",
40
40
  "express": "4.18.1",
package/settings.js CHANGED
@@ -242,6 +242,7 @@ module.exports = {
242
242
  /*******************************************************************************
243
243
  * Runtime Settings
244
244
  * - lang
245
+ * - runtimeState
245
246
  * - diagnostics
246
247
  * - logging
247
248
  * - contextStorage
@@ -249,93 +250,105 @@ module.exports = {
249
250
  * - externalModules
250
251
  ******************************************************************************/
251
252
 
252
- /** Uncomment the following to run node-red in your preferred language.
253
- * Available languages include: en-US (default), ja, de, zh-CN, zh-TW, ru, ko
254
- * Some languages are more complete than others.
255
- */
256
- // lang: "de",
253
+ /** Uncomment the following to run node-red in your preferred language.
254
+ * Available languages include: en-US (default), ja, de, zh-CN, zh-TW, ru, ko
255
+ * Some languages are more complete than others.
256
+ */
257
+ // lang: "de",
257
258
 
258
259
  /** Configure diagnostics options
259
260
  * - enabled: When `enabled` is `true` (or unset), diagnostics data will
260
261
  * be available at http://localhost:1880/diagnostics
261
262
  * - ui: When `ui` is `true` (or unset), the action `show-system-info` will
262
263
  * be available to logged in users of node-red editor
263
- */
264
+ */
264
265
  diagnostics: {
265
266
  /** enable or disable diagnostics endpoint. Must be set to `false` to disable */
266
267
  enabled: true,
267
268
  /** enable or disable diagnostics display in the node-red editor. Must be set to `false` to disable */
268
269
  ui: true,
269
270
  },
271
+ /** Configure runtimeState options
272
+ * - enabled: When `enabled` is `true` flows runtime can be Started/Stoped
273
+ * by POSTing to available at http://localhost:1880/flows/state
274
+ * - ui: When `ui` is `true`, the action `core:start-flows` and
275
+ * `core:stop-flows` will be available to logged in users of node-red editor
276
+ * Also, the deploy menu (when set to default) will show a stop or start button
277
+ */
278
+ runtimeState: {
279
+ /** enable or disable flows/state endpoint. Must be set to `false` to disable */
280
+ enabled: false,
281
+ /** show or hide runtime stop/start options in the node-red editor. Must be set to `false` to hide */
282
+ ui: false,
283
+ },
284
+ /** Configure the logging output */
285
+ logging: {
286
+ /** Only console logging is currently supported */
287
+ console: {
288
+ /** Level of logging to be recorded. Options are:
289
+ * fatal - only those errors which make the application unusable should be recorded
290
+ * error - record errors which are deemed fatal for a particular request + fatal errors
291
+ * warn - record problems which are non fatal + errors + fatal errors
292
+ * info - record information about the general running of the application + warn + error + fatal errors
293
+ * debug - record information which is more verbose than info + info + warn + error + fatal errors
294
+ * trace - record very detailed logging + debug + info + warn + error + fatal errors
295
+ * off - turn off all logging (doesn't affect metrics or audit)
296
+ */
297
+ level: "info",
298
+ /** Whether or not to include metric events in the log output */
299
+ metrics: false,
300
+ /** Whether or not to include audit events in the log output */
301
+ audit: false
302
+ }
303
+ },
270
304
 
271
- /** Configure the logging output */
272
- logging: {
273
- /** Only console logging is currently supported */
274
- console: {
275
- /** Level of logging to be recorded. Options are:
276
- * fatal - only those errors which make the application unusable should be recorded
277
- * error - record errors which are deemed fatal for a particular request + fatal errors
278
- * warn - record problems which are non fatal + errors + fatal errors
279
- * info - record information about the general running of the application + warn + error + fatal errors
280
- * debug - record information which is more verbose than info + info + warn + error + fatal errors
281
- * trace - record very detailed logging + debug + info + warn + error + fatal errors
282
- * off - turn off all logging (doesn't affect metrics or audit)
283
- */
284
- level: "info",
285
- /** Whether or not to include metric events in the log output */
286
- metrics: false,
287
- /** Whether or not to include audit events in the log output */
288
- audit: false
289
- }
290
- },
291
-
292
- /** Context Storage
293
- * The following property can be used to enable context storage. The configuration
294
- * provided here will enable file-based context that flushes to disk every 30 seconds.
295
- * Refer to the documentation for further options: https://nodered.org/docs/api/context/
296
- */
297
- //contextStorage: {
298
- // default: {
299
- // module:"localfilesystem"
300
- // },
301
- //},
302
-
303
- /** `global.keys()` returns a list of all properties set in global context.
304
- * This allows them to be displayed in the Context Sidebar within the editor.
305
- * In some circumstances it is not desirable to expose them to the editor. The
306
- * following property can be used to hide any property set in `functionGlobalContext`
307
- * from being list by `global.keys()`.
308
- * By default, the property is set to false to avoid accidental exposure of
309
- * their values. Setting this to true will cause the keys to be listed.
310
- */
311
- exportGlobalContextKeys: false,
312
-
313
- /** Configure how the runtime will handle external npm modules.
314
- * This covers:
315
- * - whether the editor will allow new node modules to be installed
316
- * - whether nodes, such as the Function node are allowed to have their
317
- * own dynamically configured dependencies.
318
- * The allow/denyList options can be used to limit what modules the runtime
319
- * will install/load. It can use '*' as a wildcard that matches anything.
320
- */
321
- externalModules: {
322
- // autoInstall: false, /** Whether the runtime will attempt to automatically install missing modules */
323
- // autoInstallRetry: 30, /** Interval, in seconds, between reinstall attempts */
324
- // palette: { /** Configuration for the Palette Manager */
325
- // allowInstall: true, /** Enable the Palette Manager in the editor */
326
- // allowUpdate: true, /** Allow modules to be updated in the Palette Manager */
327
- // allowUpload: true, /** Allow module tgz files to be uploaded and installed */
328
- // allowList: ['*'],
329
- // denyList: [],
330
- // allowUpdateList: ['*'],
331
- // denyUpdateList: []
332
- // },
333
- // modules: { /** Configuration for node-specified modules */
334
- // allowInstall: true,
335
- // allowList: [],
336
- // denyList: []
337
- // }
338
- },
305
+ /** Context Storage
306
+ * The following property can be used to enable context storage. The configuration
307
+ * provided here will enable file-based context that flushes to disk every 30 seconds.
308
+ * Refer to the documentation for further options: https://nodered.org/docs/api/context/
309
+ */
310
+ //contextStorage: {
311
+ // default: {
312
+ // module:"localfilesystem"
313
+ // },
314
+ //},
315
+
316
+ /** `global.keys()` returns a list of all properties set in global context.
317
+ * This allows them to be displayed in the Context Sidebar within the editor.
318
+ * In some circumstances it is not desirable to expose them to the editor. The
319
+ * following property can be used to hide any property set in `functionGlobalContext`
320
+ * from being list by `global.keys()`.
321
+ * By default, the property is set to false to avoid accidental exposure of
322
+ * their values. Setting this to true will cause the keys to be listed.
323
+ */
324
+ exportGlobalContextKeys: false,
325
+
326
+ /** Configure how the runtime will handle external npm modules.
327
+ * This covers:
328
+ * - whether the editor will allow new node modules to be installed
329
+ * - whether nodes, such as the Function node are allowed to have their
330
+ * own dynamically configured dependencies.
331
+ * The allow/denyList options can be used to limit what modules the runtime
332
+ * will install/load. It can use '*' as a wildcard that matches anything.
333
+ */
334
+ externalModules: {
335
+ // autoInstall: false, /** Whether the runtime will attempt to automatically install missing modules */
336
+ // autoInstallRetry: 30, /** Interval, in seconds, between reinstall attempts */
337
+ // palette: { /** Configuration for the Palette Manager */
338
+ // allowInstall: true, /** Enable the Palette Manager in the editor */
339
+ // allowUpdate: true, /** Allow modules to be updated in the Palette Manager */
340
+ // allowUpload: true, /** Allow module tgz files to be uploaded and installed */
341
+ // allowList: ['*'],
342
+ // denyList: [],
343
+ // allowUpdateList: ['*'],
344
+ // denyUpdateList: []
345
+ // },
346
+ // modules: { /** Configuration for node-specified modules */
347
+ // allowInstall: true,
348
+ // allowList: [],
349
+ // denyList: []
350
+ // }
351
+ },
339
352
 
340
353
 
341
354
  /*******************************************************************************
@@ -401,7 +414,7 @@ module.exports = {
401
414
  * packages/node_modules/@node-red/editor-client/src/vendor/monaco/dist/theme
402
415
  * e.g. "tomorrow-night", "upstream-sunburst", "github", "my-theme"
403
416
  */
404
- theme: "vs",
417
+ // theme: "vs",
405
418
  /** other overrides can be set e.g. fontSize, fontFamily, fontLigatures etc.
406
419
  * for the full list, see https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IStandaloneEditorConstructionOptions.html
407
420
  */