node-red 3.1.0-beta.3 → 3.1.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.
- package/CHANGELOG.md +30 -0
- package/package.json +5 -5
- package/red.js +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
#### 3.1.0-beta.4: Beta Release
|
|
2
|
+
|
|
3
|
+
Editor
|
|
4
|
+
|
|
5
|
+
- Add Japanese translation for 3.1.0 (#4252) @kazuhitoyokoi
|
|
6
|
+
- Improve Catalogue visibility (#4248) @Steve-Mcl
|
|
7
|
+
- Add support for wiring and moving junctions on touch device (#4244) @Steve-Mcl
|
|
8
|
+
- Show errors and statuses of config nodes in the sidebar when no catch node is available (#4231) @bvmensvoort
|
|
9
|
+
- Improve wiring for horizontally aligned nodes (#4232) @knolleary
|
|
10
|
+
- French translation of Welcome Tours (#4200) @GogoVega
|
|
11
|
+
- French translation of v3.1.0-beta.3 changes (#4199) @GogoVega
|
|
12
|
+
- add Japanese message for 3.1.0 beta 3 (#4209) @HiroyasuNishiyama
|
|
13
|
+
- Dont clone the group nodes `node` array when saving edits (#4208) @Steve-Mcl
|
|
14
|
+
|
|
15
|
+
Runtime
|
|
16
|
+
|
|
17
|
+
- Add NR_SUBFLOW_NAME/ID/PATH env vars (#4250) @knolleary
|
|
18
|
+
- Evaluate all env vars as part of async flow start (#4230) @knolleary
|
|
19
|
+
- Add support for httpStatic middleware (#4229) @knolleary
|
|
20
|
+
|
|
21
|
+
Nodes
|
|
22
|
+
|
|
23
|
+
- Fix JSONata in file nodes (#4246) @kazuhitoyokoi
|
|
24
|
+
- Fix timeout icon in function and link call nodes (#4253) @kazuhitoyokoi
|
|
25
|
+
- Fix connection keep-alive in http request node (#4228) @knolleary
|
|
26
|
+
- adding timeout attribute to function node (#4177) @k1ln
|
|
27
|
+
- Fix manual mode join when multiple sequences being handled (#4143) @BitCaesar
|
|
28
|
+
- Fix delay node flush issue (#4203) @dceejay
|
|
29
|
+
- Update status and catch node labels in group mode (#4207) @Steve-Mcl
|
|
30
|
+
|
|
1
31
|
#### 3.1.0-beta.3: Beta Release
|
|
2
32
|
|
|
3
33
|
Editor
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red",
|
|
3
|
-
"version": "3.1.0-beta.
|
|
3
|
+
"version": "3.1.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.1.0-beta.
|
|
35
|
-
"@node-red/runtime": "3.1.0-beta.
|
|
36
|
-
"@node-red/util": "3.1.0-beta.
|
|
37
|
-
"@node-red/nodes": "3.1.0-beta.
|
|
34
|
+
"@node-red/editor-api": "3.1.0-beta.4",
|
|
35
|
+
"@node-red/runtime": "3.1.0-beta.4",
|
|
36
|
+
"@node-red/util": "3.1.0-beta.4",
|
|
37
|
+
"@node-red/nodes": "3.1.0-beta.4",
|
|
38
38
|
"basic-auth": "2.0.1",
|
|
39
39
|
"bcryptjs": "2.4.3",
|
|
40
40
|
"express": "4.18.2",
|
package/red.js
CHANGED
|
@@ -302,7 +302,7 @@ httpsPromise.then(function(startupHttps) {
|
|
|
302
302
|
settings.httpNodeAuth = settings.httpNodeAuth || settings.httpAuth;
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
if(settings.httpStatic) {
|
|
305
|
+
if (settings.httpStatic) {
|
|
306
306
|
settings.httpStaticRoot = formatRoot(settings.httpStaticRoot || "/");
|
|
307
307
|
const statics = Array.isArray(settings.httpStatic) ? settings.httpStatic : [settings.httpStatic];
|
|
308
308
|
const sanitised = [];
|
|
@@ -414,13 +414,7 @@ httpsPromise.then(function(startupHttps) {
|
|
|
414
414
|
if (settings.httpNodeRoot !== false) {
|
|
415
415
|
app.use(settings.httpNodeRoot,RED.httpNode);
|
|
416
416
|
}
|
|
417
|
-
|
|
418
|
-
// settings.httpStaticAuth = settings.httpStaticAuth || settings.httpAuth;
|
|
419
|
-
// if (settings.httpStaticAuth) {
|
|
420
|
-
// app.use("/",basicAuthMiddleware(settings.httpStaticAuth.user,settings.httpStaticAuth.pass));
|
|
421
|
-
// }
|
|
422
|
-
// app.use("/",express.static(settings.httpStatic));
|
|
423
|
-
// }
|
|
417
|
+
|
|
424
418
|
if (settings.httpStatic) {
|
|
425
419
|
let appUseMem = {};
|
|
426
420
|
for (let si = 0; si < settings.httpStatic.length; si++) {
|
|
@@ -428,6 +422,7 @@ httpsPromise.then(function(startupHttps) {
|
|
|
428
422
|
const filePath = sp.path;
|
|
429
423
|
const thisRoot = sp.root || "/";
|
|
430
424
|
const options = sp.options;
|
|
425
|
+
const middleware = sp.middleware;
|
|
431
426
|
if(appUseMem[filePath + "::" + thisRoot]) {
|
|
432
427
|
continue;// this path and root already registered!
|
|
433
428
|
}
|
|
@@ -435,6 +430,9 @@ httpsPromise.then(function(startupHttps) {
|
|
|
435
430
|
if (settings.httpStaticAuth) {
|
|
436
431
|
app.use(thisRoot, basicAuthMiddleware(settings.httpStaticAuth.user, settings.httpStaticAuth.pass));
|
|
437
432
|
}
|
|
433
|
+
if (middleware) {
|
|
434
|
+
app.use(thisRoot, middleware)
|
|
435
|
+
}
|
|
438
436
|
app.use(thisRoot, express.static(filePath, options));
|
|
439
437
|
}
|
|
440
438
|
}
|