# 🎉 Node-RED 3.1.0-beta.2 released

**URL:** <https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192>\
**Category:** News\
**Created:** [6 March 2023 18:06 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192 "2023-03-06T18:06:24Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [12 March 2023 00:26 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/42 "2023-03-12T00:26:22Z")

</div>

Yes, I have all my flow edit panels zoomed out. Right click, insert junction

---

<div class="post-metadata">

**Author:** ![CanyonCasa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/canyoncasa/32/76453_2.png) [@CanyonCasa](https://discourse.nodered.org/u/CanyonCasa)\
**Post date:** [16 March 2023 21:21 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/43 "2023-03-16T21:21:15Z")

</div>

> With this release we have _deprecated_ calling `evaluateJSONataExpression` without a callback argument. By extension, `evaluateNodeProperty` will require a callback _if_ being used with JSONata.

Will these calls support async/await syntax as well? It would make migration easier.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [16 March 2023 21:54 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/44 "2023-03-16T21:54:24Z")

</div>

Making them async functions would be a major breaking change. We would have to provide async alternatives, although it is easy enough to promisify the functions in the node, keeping backward compatibility.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 March 2023 09:01 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/45 "2023-03-18T09:01:22Z")

</div>

I have found a problem with the Delay node in Beta 2.  
If a Delay node configured in Rate Limit mode, All Messages then I see the following problems

1. If a message containing `{flush: 1}` is sent in when the queue is empty then the flush message is passed on, which it should not (and does not in 3.0).
2. If some messages are in the queue and the flush message is sent in then the first message in the queue is passed on, but the flush message is added to the back of the queue, so that at the appropriate time in the future the flush message is released.

In fact, thinking about it these are probably both the same problem.

In the sample flow, after deploying click Flush and the flush message is passed on. Then click the timestamp inject a couple of times and then Flush to see symptom 2.

```auto
[{"id":"338de41d7f29e4fc","type":"delay","z":"bdd7be38.d3b55","name":"Queue","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"5","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":330,"y":2080,"wires":[["3903cee152a2a110"]]},{"id":"3903cee152a2a110","type":"debug","z":"bdd7be38.d3b55","name":"debug 86","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":500,"y":2080,"wires":[]},{"id":"e9e2846b840985fd","type":"inject","z":"bdd7be38.d3b55","name":"Flush","props":[{"p":"flush","v":"1","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":130,"y":2140,"wires":[["338de41d7f29e4fc"]]},{"id":"610ca62114e4d709","type":"inject","z":"bdd7be38.d3b55","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":100,"y":2080,"wires":[["338de41d7f29e4fc"]]}]

```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 March 2023 11:31 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/46 "2023-03-18T11:31:03Z")

</div>

In the Beta, if I have a group and mark it by dragging a rectangle over it, and hit Delete then it deletes the group contents but not the group itself.

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [18 March 2023 22:35 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/47 "2023-03-18T22:35:50Z")

</div>

I have also noticed the anomaly when deleting a group

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [19 March 2023 01:08 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/48 "2023-03-19T01:08:36Z")

</div>

Does anyone else see this behaviour? I have noticed it on a couple of flows on a Raspberry with 3.1.0-beta 2  
A simple flow with Inject - Function - Debug. I can inject but nothing emerges from the debug.

Edit - Resolved. Operator error.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 March 2023 02:09 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/49 "2023-03-19T02:09:52Z")

</div>

Seems to be working ok for me.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [19 March 2023 05:12 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/50 "2023-03-19T05:12:34Z")

</div>

I am not on beta, but what I have noticed lately very similarly: when i leave the editor open and unused for a longer period of time, everything remains functional later on (ie, i can change/deploy etc), but no more debug messages will appear until I refresh the browser. (similar like a behaviour where webpages lose their websocket connection). Not been able to determine the root cause yet.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 March 2023 08:59 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/51 "2023-03-19T08:59:46Z")

</div>

If you add another inject node and feed that direct to the debug node does it show it?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 March 2023 09:02 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/52 "2023-03-19T09:02:45Z")

</div>

@jbudd , Also export the function node and the debug node, then copy and paste those two nodes and export the copies. Compare the two exports to see what is the difference.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 March 2023 10:06 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/53 "2023-03-19T10:06:36Z")

</div>

> [@jbudd](#):
>
> I have not posted the code - I think the last three bullet points show that the function code is valid

Please post the flow (verify it is still problematic).

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [19 March 2023 10:18 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/54 "2023-03-19T10:18:29Z")

</div>

> [@Colin](#):
>
> If you add another inject node and feed that direct to the debug node does it show it?

Nothing from the debug node.

> [@Colin](#):
>
> Compare the two exports to see what is the differe

The only differences are in the id numbers, x,y values and the (default) name of the debug node. I don't see any clues there.

> [@Steve-Mcl](#):
>
> Please post the flow (verify it is still problematic).

I already said that the flow works if I copy & paste or export & import it so I doubt if it helps but here it is

```auto
[
    {
        "id": "0c622860a2ab6c7b",
        "type": "inject",
        "z": "12f7dc31296fd47a",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 180,
        "y": 120,
        "wires": [
            [
                "5b5597acbac99087"
            ]
        ]
    },
    {
        "id": "5b5597acbac99087",
        "type": "function",
        "z": "12f7dc31296fd47a",
        "name": "Multi-line",
        "func": "node.warn (\"In function\")\nreturn msg",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 360,
        "y": 120,
        "wires": [
            [
                "d2b45491d5cfd244"
            ]
        ]
    },
    {
        "id": "d2b45491d5cfd244",
        "type": "debug",
        "z": "12f7dc31296fd47a",
        "name": "debug 248",
        "active": true,
        "tosidebar": true,
        "console": true,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 530,
        "y": 120,
        "wires": []
    }
]

```

Additional info - I set the debug node to output to system console and node.status, both of these options work, it's just the debug panel it doesn't show up in.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [19 March 2023 10:20 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/55 "2023-03-19T10:20:42Z")

</div>

Have you got any filtering enabled in the debug sidebar?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [19 March 2023 10:22 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/56 "2023-03-19T10:22:22Z")

</div>

Oh my god! I feel so stupid!  
Thanks Nick.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 March 2023 11:59 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/57 "2023-03-19T11:59:47Z")

</div>

> [@Colin](#):
>
> if I have a group and mark it by dragging a rectangle over it, and hit Delete then it deletes the group contents but not the group itself.

Just confirming this one again. Same is true if you drag the bounds and ctrl-x - in that case, the bounded nodes are cut from the flow BUT they are not added to the clipboard so you can't paste them.

If you click on the group and ctrl-x, it works just fine.

When doing copy/paste with a bounding box around a group. If trying to paste, you get an error in the dev tools console:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/8/785629750c49123b80e47b1fdbda5124f28eb871.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 March 2023 14:25 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/58 "2023-03-22T14:25:32Z")

</div>

@knolleary, when a deep link URL is used, should the targeted node be "selected"?

I feel this is the natural expectation.

Currently, opening the editor with a deep link to a node causes it to flash, but not be selected.

![chrome_cTt0VCUgHU](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/e/9ec3816ee05331db985f49f0f322203745823e43.gif)

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [24 March 2023 16:08 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/59 "2023-03-24T16:08:16Z")

</div>

When you click on the Editor Menu and select either Manage palette, Settings or Keyboard shortcuts ..  
the editor asks you to Deploy your flow, even when no changes are made.

I didnt notice this in previous versions .. is anyone else seeing this ?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [24 March 2023 16:50 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/60 "2023-03-24T16:50:01Z")

</div>

Yes, here too.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [24 March 2023 22:18 UTC](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192/61 "2023-03-24T22:18:24Z")

</div>

No, not here on Windows 11/Edge.

[Previous page](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192.md?page=2)

[Next page](https://discourse.nodered.org/t/node-red-3-1-0-beta-2-released/76192.md?page=4)
