Skip to content

Commit f4c4b32

Browse files
authored
Merge branch 'master' into monaco-editor-construction-options
2 parents 1979332 + 5d6b35d commit f4c4b32

File tree

9 files changed

+77
-39
lines changed

9 files changed

+77
-39
lines changed

about/releases/index.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,24 @@ title: Release Plan
44
slug: releases
55
---
66

7-
_Updated: 2022-08-04_
7+
_Updated: 2024-01-03_
88

99
This plan is a guide for how the project plans to schedule upcoming releases, taking
1010
into account the release schedule of the underlying Node.js runtime.
1111

1212
![](release-plan.png)
1313

14+
The project aims to make a new major release around April each year. This aligns
15+
with when versions of Node.js reach their end-of-life and enables us to drop support
16+
for them.
1417

15-
The active Node-RED stream (3.x) will get a new minor version release (for example, 3.1 -> 3.2)
16-
every three months. Maintenance releases (for example 3.1.0 -> 3.1.1) will continue
17-
to happen as and when they are needed.
18+
The active Node-RED stream will get regular minor releases (for example 4.0 -> 4.1)
19+
containing new features as well as maintenance releases (for example 4.0.1 -> 4.0.2)
20+
as and when they are needed.
1821

19-
At the end of April 2023, when Node 14.x reaches its end-of-life, we will publish
20-
Node-RED 4.x that will *drop* support for Node 14.
21-
22-
The 3.x stream will then enter maintenance mode. It will only receive bug fixes
23-
and security updates. New features could get back-ported from 4.x if there was
24-
a very good reason to do so as well as people available to do the work.
25-
26-
The 4.x stream will continue in active development with a minor release every
27-
three months or so for a year, when the next major release is made.
22+
When a new major version is released, the previous version enters maintenance mode
23+
for an extended period of time. During this time it will only receive bug fixes
24+
and security updates.
2825

2926
This proposal means:
3027

@@ -36,12 +33,12 @@ This proposal means:
3633

3734
Release | Initial | Maintenance Start | End-of-life
3835
--------|-----------------|----------------------|-----------------
39-
1.x | 2019-09-30 | 2021-04-30 | 2022-06-30
36+
4.x | *2024-04-30* * | *2025-04-30* * | 2026-06-30
37+
3.x | 2022-07-14 | *2024-04-30* * | 2025-06-30
4038
2.x | 2021-07-22 | 2022-07-14 | 2023-06-30
41-
3.x | 2022-07-14 | *2023-04-30* * | 2024-06-30
42-
4.x | *2023-04-30* * | *2024-04-30* * | 2025-06-30
39+
1.x | 2019-09-30 | 2021-04-30 | 2022-06-30
4340

44-
_* Dates are subject to change_
41+
_Dates are subject to change_
4542

4643
References:
4744
- [Blog post: Going beyond Node-RED 1.x](https://nodered.org/blog/2020/07/01/release-plans)

about/releases/release-plan.png

-6.05 KB
Loading

docs/api/ui/themes/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ property in the settings file.
1515
- [Creating theme CSS](#creating-theme-css)
1616
- [Packaging as a Theme Plugin](#packaging-as-a-theme-plugin)
1717
- [Theming the Monaco editor](#theming-the-monaco-editor)
18+
- [Theming the Mermaid diagrams](#theming-the-mermaid-diagrams)
1819

1920
### Creating theme CSS
2021

@@ -241,3 +242,21 @@ RED.plugins.registerPlugin("my-custom-theme", {
241242
```
242243
243244
The specific details of how to create a Monaco theme is beyond the scope of our documentation.
245+
246+
### Theming the Mermaid diagrams
247+
248+
A theme plugin can also set the theme for the Mermaid diagramming and charting tool.
249+
250+
Mermaid comes with a number of built-in themes available. The full list is [here](https://mermaid.js.org/config/theming.html#available-themes).
251+
252+
The name of the theme can be provided in the plugin settings:
253+
254+
```javascript
255+
RED.plugins.registerPlugin("my-custom-theme", {
256+
type: "node-red-theme",
257+
css: "style.css",
258+
mermaid: {
259+
theme: "dark" //Mermaid theme name
260+
}
261+
})
262+
```

docs/faq/node-versions.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@ title: Supported Node versions
55
slug: node versions
66
---
77

8-
Node-RED currently recommends **Node 18.x or Node 20.x**.
8+
_Updated: 2024-01-03_
99

10-
Version | Support Level | Notes
11-
-----------|-----------------|------
12-
< 10.x | *Unsupported* | Node-RED 1.x or earlier only
13-
**12.x** | *Supported* | Node-RED 2.x or earlier only
14-
**14.x** | *Supported* |
15-
**16.x** | Supported |
16-
**18.x** | **Recommended** |
17-
**20.x** | **Recommended** |
10+
Node-RED currently recommends **Node 20.x**.
1811

1912
We try to stay up to date with Node.js releases. Our goal is to support
2013
the [Maintenance and Active LTS releases](https://nodejs.org/en/about/releases/).
2114

22-
We do not generally recommend using the odd numbered Node.js versions - we do not
15+
We do not recommend using the odd numbered Node.js versions - we do not
2316
routinely test against them.
2417

18+
Node-RED Version | Minimum Node.js Version
19+
---|---
20+
4.x | 18
21+
3.x | 14
22+
2.x | 12
23+
2524
With such a large community of 3rd party nodes available to install, we cannot
2625
provide any guarantees on what they support. We rely on the community to keep
2726
up to date.

docs/getting-started/android.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ redirect_from:
77
- /docs/platforms/android
88
---
99

10-
Using the [Termux](https://termux.com) app in the app store makes it easy to run
11-
Node-RED on Android devices. You can get it from the [Play Store](https://play.google.com/store/apps/details?id=com.termux&amp;hl=en_GB).
10+
Using the [Termux](https://termux.com) app makes it easy to run
11+
Node-RED on Android devices. Get it directly from thier [github](https://github.com/termux/termux-app#github) or via [F-Droid](https://f-droid.org/) here [Termux on F-Droid](https://f-droid.org/en/packages/com.termux/).
12+
13+
Note that the Play Store version is not maintained.
1214

1315
<div class="doc-callout"><em>Note</em> : the Node-RED team have no connection
14-
with the Termux application nor its development. We cannot provide support for
16+
with the Termux application nor its development, nor F-Droid. We cannot provide support for
1517
it in any way, other than to say that at this point in time it works.</div>
1618

1719
### Installing
@@ -26,21 +28,33 @@ Install it, and run it. Then at the prompt type
2628

2729
Then you can point a browser to `http://localhost:1880`
2830

31+
Note that installing openssh may make interacting with termux a little easier. [see this thread](https://discourse.nodered.org/t/android-termux-playstore-no-longer-a-recommended-install-source/85034/4) for a description of one such install.
32+
2933
### Notes
3034

3135
- You can also npm install other node-red nodes such as `node-red-dashboard` in the standard way :
3236

3337
cd ~/.node-red
3438
npm i node-red-dashboard
39+
40+
or via the Pallete Manager.
3541

3642
- The `volume-down` key is the ctrl key - so `vol-down-c` can be used to "break" a running app.
3743
- The instructions above also install the `nano` editor, which is useful for editing files.
3844

3945
### Autostarting
4046

41-
The recommended way of starting applications running in Termux is using the [Termux:Boot application](https://github.com/termux/termux-boot) (available from [F-droid](https://f-droid.org/en/packages/com.termux.boot/) or [Play Store](https://play.google.com/store/apps/details?id=com.termux.boot)).
47+
The recommended way of starting applications running in Termux is using the [Termux:Boot application](https://github.com/termux/termux-boot) (available from [F-droid](https://f-droid.org/en/packages/com.termux.boot/) - note that the Play Store version may not be maintained, and it's recommended to use the same source that you installed termux from).
48+
49+
We have found this other app useful for autostarting Termux on boot - <a href="https://play.google.com/store/apps/details?id=com.autostart&amp;hl=en_GB">Autostart - No Root</a> (Note: with termux:boot, use of other autoboot apps does not seem to be required).
4250

43-
We have found this other app useful for autostarting Termux on boot - <a href="https://play.google.com/store/apps/details?id=com.autostart&amp;hl=en_GB">Autostart - No Root</a>
51+
Note that the shebang in the node-red script is incompatible with termux:boot scripts. The workaround is to start node-red using a termux:boot startup script like:
52+
53+
```
54+
#!/data/data/com.termux/files/usr/bin/sh
55+
termux-wake-lock
56+
node /data/data/com.termux/files/usr/bin/node-red
57+
```
4458

4559
### Device Access
4660

@@ -50,7 +64,7 @@ node.
5064

5165
**Note**: you need to install both the add-on app, and also the add-on api in Termux.
5266

53-
Install add-on app - <a href="https://play.google.com/store/apps/details?id=com.termux.api&amp;hl=en">Termux:API</a> from Play store.
67+
Install add-on app - Termux:API from the same source you got termux.
5468

5569
Install add-on access into Termux
5670

@@ -59,3 +73,7 @@ Install add-on access into Termux
5973
### Useful links
6074

6175
- [How to use Termux API](https://wiki.termux.com/wiki/Termux:API)
76+
- [node-red-contrib-termux-api](https://flows.nodered.org/node/node-red-contrib-termux-api)
77+
- [Another Node-Red on termux install guide](https://che-adrian.medium.com/install-node-red-on-an-android-device-using-the-termux-app-1e1679ae876)
78+
79+

docs/getting-started/docker.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ This has the advantage that you don't need to know/specify which architecture yo
105105
docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered nodered/node-red:1.2.0-10-arm32v6
106106
```
107107

108+
As of Node-RED v3.1.0 we also provide a Debian based image for those nodes with native components that do not work well on Alpine.
109+
108110
### Managing User Data
109111

110112
Once you have Node-RED running with Docker, we need to
@@ -234,8 +236,10 @@ FROM nodered/node-red
234236
235237
# Copy package.json to the WORKDIR so npm builds all
236238
# of your added nodes modules for Node-RED
237-
COPY package.json .
239+
WORKDIR /data
240+
COPY package.json /data
238241
RUN npm install --unsafe-perm --no-update-notifier --no-fund --only=production
242+
WORKDIR /usr/src/node-red
239243
240244
# Copy _your_ Node-RED project files into place
241245
# NOTE: This will only work if you DO NOT later mount /data as an external volume.
@@ -244,10 +248,6 @@ RUN npm install --unsafe-perm --no-update-notifier --no-fund --only=production
244248
COPY settings.js /data/settings.js
245249
COPY flows_cred.json /data/flows_cred.json
246250
COPY flows.json /data/flows.json
247-
248-
# You should add extra nodes via your package.json file but you can also add them here:
249-
#WORKDIR /usr/src/node-red
250-
#RUN npm install node-red-node-smooth
251251
```
252252

253253
**Note**: the `package.json` file must contain a start option within the script section. For example the default container is like this:

docs/user-guide/editor/workspace/subflows.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ flows nodes, there can be at most one input and as many outputs as needed.
8888

8989
The toolbar provides an option to add a 'status' output to a subflow. This can
9090
be used to update the Status of subflow instance nodes.
91+
The node uses the input of `msg.payload` which can either be a simple string or a
92+
<a href="/docs/creating-nodes/status#status-object">Status Object</a>
9193

9294

9395
#### Editing subflow properties

docs/user-guide/runtime/configuration.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ The theme of the editor can be changed by using the following settings object. A
237237
// The following only apply if the editor is set to "monaco"
238238
theme: "vs", // Select a color theme for the text editor component. Must match the file name of a theme in packages/node_modules/@node-red/editor-client/src/vendor/monaco/dist/theme
239239
}
240+
},
241+
mermaid: {
242+
theme: "default" // Select a color theme for the Mermaid diagramming and charting tool. Must match the name of a theme in https://mermaid.js.org/config/theming.html#available-themes
240243
}
241244
},
242245

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="content">
88
<h1>Node-RED</h1>
99
<h2>Low-code programming for event-driven applications</h2>
10-
<p>Latest version: <a href="https://www.npmjs.com/package/node-red"><span class="node-red-latest-version">v3.1.3</span> (npm)</a></p>
10+
<p>Latest version: <a href="https://www.npmjs.com/package/node-red"><span class="node-red-latest-version">v3.1.8</span> (npm)</a></p>
1111
<!-- <img src="images/node-red-title-flow.png" /> -->
1212
</div>
1313
</div>

0 commit comments

Comments
 (0)