🎉 Node-RED 3.1.0 released

Good news everyone!

Node-RED 3.1.0 is now generally available. No more betas - everyone gets to play!

You can find out all the details in the release blog post. No release video to go with this one I'm afraid.

If you have been following the beta releases, there are no major new features in this final release, just a handful of fixes and tweaks based on your feedback.

This is the last release we'll do that supports Node 16. We'll have a Node-RED 4.x in the very near future which will formally drop 16 support and be the baseline for ongoing development.

You can upgrade your local Node-RED as you would any other release. The docker images are still cooking as I write, but they are starting to appear on Dockerhub.

24 Likes

Sorry, I have just found a (non-critical) bug with Mermaid in node descriptions. I suspect that it was present in the Beta but I had not noticed it.

Import the Function node included below and Deploy. Select the Debug tab, then select the Function node and the Information tab, and instead of the diagram it shows

image

If you then click away from the node and then select it again it shows correctly

image

Shall I submit a bug?

[Edit] Oops, forgot the flow

[{"id":"55d54d1c275c150f","type":"function","z":"bdd7be38.d3b55","name":"Test mermaid markdown","func":"\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":810,"y":60,"wires":[[]],"info":"```mermaid\nstateDiagram-v2\nState_1 --> State_2: Transition 1\nState_2 --> State_3: Another transition\nState_3 --> State_1: Back to \\nthe start\n```"}]

At this point, any 'odd' behaviours, please go straight to raising an issue. We can triage as needed there.

Done. Mermaid diagram in node information sometimes shows syntax error · Issue #4323 · node-red/node-red · GitHub

Should the recommended version now be 18 as 16 is about to go out of support? Supported Node versions : Node-RED

We'll be making various changes to our recommended versions with Node-RED 4.0, including the default docker builds etc.

Thanks Professor :wink:

1 Like

I've switched my main Pi instance to 3.1.0 and I'm getting a couple of warnings over link calls (which I wasn't getting before

The link call works when I click on the test inject

Here is one that is giving the warning on deployment (and the red triangle)
image

[
    {
        "id": "2e335f7608003b5b",
        "type": "http request",
        "z": "4040409aae3a5015",
        "g": "86de240ae6b78a83",
        "name": "",
        "method": "GET",
        "ret": "obj",
        "paytoqs": "ignore",
        "url": "http://api.thingspeak.com/channels/1417/feed.json",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 380,
        "y": 1920,
        "wires": [
            [
                "4bcf1ee4b7f8dc68",
                "a4886facf6322e14",
                "1e7417933db39dc4"
            ]
        ]
    },
    {
        "id": "c536971ab0085f23",
        "type": "inject",
        "z": "4040409aae3a5015",
        "g": "86de240ae6b78a83",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 120,
        "y": 1880,
        "wires": [
            [
                "a25e92f3e5509a7e"
            ]
        ]
    },
    {
        "id": "4bcf1ee4b7f8dc68",
        "type": "debug",
        "z": "4040409aae3a5015",
        "g": "86de240ae6b78a83",
        "name": "all feeds",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload.feeds",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 540,
        "y": 1880,
        "wires": []
    },
    {
        "id": "a4886facf6322e14",
        "type": "debug",
        "z": "4040409aae3a5015",
        "g": "86de240ae6b78a83",
        "name": "last feed",
        "active": true,
        "tosidebar": false,
        "console": false,
        "tostatus": true,
        "complete": "payload.feeds[99].field1",
        "targetType": "msg",
        "statusVal": "payload.feeds[99]",
        "statusType": "auto",
        "x": 530,
        "y": 1950,
        "wires": []
    },
    {
        "id": "8b161c87e535fbf7",
        "type": "link in",
        "z": "4040409aae3a5015",
        "g": "86de240ae6b78a83",
        "name": "Trigger ThingsSpeak API call",
        "links": [
            "33ae020ad072519d"
        ],
        "x": 170,
        "y": 1920,
        "wires": [
            [
                "2e335f7608003b5b"
            ]
        ],
        "l": true
    },
    {
        "id": "1e7417933db39dc4",
        "type": "link out",
        "z": "4040409aae3a5015",
        "g": "86de240ae6b78a83",
        "name": "",
        "mode": "return",
        "links": [],
        "x": 525,
        "y": 1920,
        "wires": []
    },
    {
        "id": "a25e92f3e5509a7e",
        "type": "link call",
        "z": "4040409aae3a5015",
        "g": "86de240ae6b78a83",
        "name": "",
        "links": [
            "8b161c87e535fbf7"
        ],
        "timeout": "30",
        "x": 215,
        "y": 1880,
        "wires": [
            [
                "9ced74a0332508f8"
            ]
        ],
        "l": false
    },
    {
        "id": "9ced74a0332508f8",
        "type": "debug",
        "z": "4040409aae3a5015",
        "g": "86de240ae6b78a83",
        "name": "debug 84",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 340,
        "y": 1880,
        "wires": []
    }
]

Simon, clicking on the link node gets rid of the red triangle.

1 Like

"Copy item url" button is useful!

1 Like

That didn't work for me but double-clicking, then selecting Done and redeploy made it all good :slight_smile:

Still getting the problem of the sitebar always going to the info bar on reload - but only on my dev PC so must be some local thing. No idea what though.

I usually use the keyboard shortcut CTRL-ENTER to save the node then CTRL-D to deploy the modifications.
Since v3.1.0, CTRL-ENTER in a FUNCTION node does a newline instead of "Confirm Edit Tray" and closes the node. Is there a setting for this or is it a bug?

2 Likes

Team,

I’d like to thank you all for your hard work. And „you“ refers to all of you supporting this piece of software as well as this community. I can hardly refer you to any other community with folks being as patient, as keen to support, as open, as capable (and willing to contribute), etc. ... as here.

I have been using node-red for some years now for home automation. And while it was getting less attention due to its stable character throughout the last 1-2 years, I was just recently leaning back to it. And I like the improvements for the user interface a lot.

With the help of ChatGPT I was just recently able to reduce cpu utilization of my docker stack on my raspberry 4 from an average of 45% down to 15%. I mainly got rid of reading from influxdb at all (except with grafana) and changed over to global context.

With my new buddy – CeeGeePeeTee - javascript (array handling in particular) loses some of its mistery for me and I am able to solve some of the puzzles I'd always liked to approach. Finally :blush:

Keep on the great work and of course your spirit. It is highly appreciated on my end!

/N

3 Likes

5 posts were split to a new topic: Context variables encrypted at rest?

Congratulations. Love it. With the individual middleware for http, could I code my own auth for the dashboard? What endpoints would I target?

I certainly have no objection :slight_smile:

Moved. Thanks @parasaurolophus

Thank you everyone for your ongoing efforts, a good set of refinements and additions to NR. Very pleased with the group refinement as my brain just never quite reconciled the previous implementation.

3 Likes

I am able to "modify" a locked flow (minor cosmetic bug)

To reproduce

  • Group some nodes
  • deploy
  • lock flow
  • deploy
  • move the group using the border

It registers as a modification and deploy becomes available.
Upon deploy, the group gets corrected automagically.