# 🎉 Node-RED 2.1.0-beta.2 released

**URL:** <https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212>\
**Category:** News\
**Created:** [14 October 2021 12:37 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212 "2021-10-14T12:37:57Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [14 October 2021 12:37 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/1 "2021-10-14T12:37:57Z")

</div>

🎉 The second **beta** release of Node-RED 2.1.0 is now available.

The [Change Log](https://github.com/node-red/node-red/blob/6cb06c146d093ab9fbd90928e2c0b1a851a23abc/CHANGELOG.md) has the full list of changes in this release, but here are the highlights.

**Note** : if any issues are reported against the beta, we'll update this post to list them here. If you hit a problem, please do check back here before adding a comment.

## Known Issues

- Switch: Copy previous rule type when adding rule to switch node - not working. [link](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/4) **fixed**
- Switch/Inject/Change - not remembering boolean-false options - **fixed**
- Link Out node losing links - **fixed**
- Switch 'is of type" rule broken - **fixed**
- Safari rendering of 'deep copy' in Change node - **fixed**

### Updates

If you haven't already, read through the [2.1.0-beta.1 release notes](https://discourse.nodered.org/t/node-red-2-1-0-beta-1-released/51963/) as that covers the major new features in this release.

### Dynamic MQTT nodes

The MQTT In node now includes a 'Dynamic subscription' option. When selected, the node gets an input so you can pass it messages. Those messages can be used to:

- connect/disconnect the broker
- subscribe to topics
- unsubscribe from topics

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/1221f62290d652df506bd48f57d5e5dd8cae19f4.png)

The MQTT Out node also supports the connect/disconnect messages as well.

The MQTT Broker configuration node has a new 'connect automatically' option - which is enabled by default. If you disable that, it won't connect until one of the flow nodes receives a connect message.

Full details of the formats of those messages are in the node help and summarised in the [pull-request here](https://github.com/node-red/node-red/pull/3189).

Big thanks to @Steve-Mcl

### Debug sidebar options

The Debug sidebar options have been reworked.

The filter options are now a drop-down menu of options, rather than the sliding panel.

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

The 'clear messages' button now also has a drop-down that lets you change it to 'clear filtered messages' instead. That option is useful if you have the 'current flow' filter enabled, and you want to clear the message for the current flow without clearing messages from other flows.

In other good news, both of these options are now stored in the editor settings - so they are remembered between editor reloads.

[More details](https://github.com/node-red/node-red/pull/3183)

### Other changes

- Shift-clicking on the workspace tab bar scroll arrows will now jump immediately to the start/end of the tab list. Useful if you have lots of tabs.
- All of the issues reported against beta.1 have been fixed

* * *

Be sure to read through the [Change Log](https://github.com/node-red/node-red/blob/6cb06c146d093ab9fbd90928e2c0b1a851a23abc/CHANGELOG.md) to see what else is in there.

## Installing the beta

If you want to try out the beta, you will need specify node-red@next when you use npm to update. Without the `@next` you'll still get 2.0.x

So on a Pi you'd do:

```auto
sudo npm install -g --unsafe-perm node-red@next

```

## Reporting problems

If you hit any problems, please report them either as a reply on this topic, or in the #core-dev slack channel. Please do not post new topics to the forum regarding the beta as that could confuse users who are not using the beta.

## Outstanding work

There are no further new features planned for the 2.1.0 release. At this point, it will only be fixes or very minor enhancements.

The plan is to release 2.1.0 before the end of the month.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [14 October 2021 12:46 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/2 "2021-10-14T12:46:22Z")

</div>

Dynamic MQTT is huge - Brilliant!

---

<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:** [14 October 2021 14:10 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/3 "2021-10-14T14:10:42Z")

</div>

Indeed, some very nice feature updates.

---

<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:** [14 October 2021 20:37 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/4 "2021-10-14T20:37:12Z")

</div>

Regarding this feature:

> - Switch: Copy previous rule type when adding rule to switch node (#3170) @knolleary

Is it working for everyone?

Seems to have stopped working in latest beta (for me)

![jfWwyvHw66](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/3/d3b58890068c0c8b8fad7bab998443b0e1127b93.gif)

---

<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:** [14 October 2021 20:49 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/5 "2021-10-14T20:49:29Z")

</div>

> [@Steve-Mcl](#):
>
> Is it working for everyone?
> 
> Seems to have stopped working in latest beta (for me)

Now fixed in git.

When I backed out the part of the change that also copied the value, I inadvertently broke it. Apols.

---

<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:** [14 October 2021 20:53 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/6 "2021-10-14T20:53:56Z")

</div>

Cheers Nick.

To be sure it wasnt just on my dev env, I updated an RPi.

Upon refresh, the tour was presented. So I ran through the tour to ensure it was good from another instance.

As the LH pallete was closed, step 10 didn't render correctly...

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b2bc0f3bb1489d84348f2a32ae889bd68ad0b81f.png)

Think the step may need to open the pallete before stepping?

---

<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:** [15 October 2021 21:02 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/7 "2021-10-15T21:02:02Z")

</div>

Not sure this counts as a problem; maybe a warning.

I ran this on a Raspberry Pi Zero W

```auto
cd .node-red
sudo npm install -g --unsafe-perm node-red@next

```

It completed successfully but at the end it popped up

```bash
╭────────────────────────────────────────────────────────────────╮
│ │
│ New major version of npm available! 6.14.13 -> 7.19.1 │
│ Changelog: https://github.com/npm/cli/releases/tag/v7.19.1 │
│ Run npm install -g npm to update! │
│ │
╰────────────────────────────────────────────────────────────────╯

```

So just for fun I ran **npm install -g npm** (not **sudo npm install -g npm** )  
Which fell over at some point leaving Node-Red broken. I think the error was "npm not installed"

The NR installation script did not fix it except using both --nodered-version and --node12 options.

Sorry I can't give more detail of the error messages, I reinstalled the OS and started again

---

<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:** [15 October 2021 21:31 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/8 "2021-10-15T21:31:20Z")

</div>

Errm, I am sure that I will feel an idiot when it is explained but I am not getting the resize arrows for widgets in Dashboard layout. (Can't move the widgets about either)

---

<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:** [15 October 2021 21:37 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/9 "2021-10-15T21:37:31Z")

</div>

Are you clicking this?  
 ![Untitled 1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/6/86d6db7b5f692e87b555b3a5f47de914e95f5ae8.jpeg)

It should open this

 ![Untitled 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/b/cb0a1fe6a0abb7e30dccf436f219f7f3023f55ad.jpeg)

---

<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:** [15 October 2021 22:15 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/10 "2021-10-15T22:15:30Z")

</div>

Yep, but I do not have the double headed arrows and the 'move' cursor doesn't select the widget.

Works in all my non beta Node-RED instances (2.0.6)

---

<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:** [15 October 2021 22:41 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/11 "2021-10-15T22:41:51Z")

</div>

It works for me (on Linux), no idea why yours doesn't, sorry

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [16 October 2021 09:29 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/12 "2021-10-16T09:29:03Z")

</div>

Are the 'padlocks' locked or unlocked?

![padlock](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b6ccd996d8c498a5608f03c7975b5864222d0d91.gif)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 October 2021 16:43 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/13 "2021-10-16T16:43:59Z")

</div>

macOS (v11.6) Safari (v15.10) - `change`node 'Deep copy' option.

The text is jamed against the check box:  
 ![Screen Shot 2021-10-16 at 12.39.56 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/9/e995baf6d8ac5ca80225fb1f77c453469325d28e.png)

Looks fine in Chrome and FireFox.

---

<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:** [16 October 2021 17:11 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/14 "2021-10-16T17:11:48Z")

</div>

Thank you both. Restarted node-red (again) and it is now working!! 😌

---

<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:** [16 October 2021 19:55 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/15 "2021-10-16T19:55:12Z")

</div>

When things seen in the browser seem to start working for no obvious reason it is often a browser caching issue.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 October 2021 08:56 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/16 "2021-10-17T08:56:14Z")

</div>

@knolleary

BUG: Editing a LINK-OUT node - even opening it and closing it, removes all the links connected to it.

1 - add an Inject and link-out node and connect them  
 ![Screen Shot 2021-10-17 at 4.42.33 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/9/d935a7ec5f2be30f027c5bd414a624728482faf0.png)  
2 - add a link-in and a debug node and connect them  
 ![Screen Shot 2021-10-17 at 4.43.08 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/2/f2e3651ad8ba003ccb13a4a47f23f0de1e17f1ee.png)  
3 - go to the link-in node, select the link-out node and save - you will see the dotted link line  
 ![Screen Shot 2021-10-17 at 4.43.17 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/a/3a84b70fb96f9334a24a10b9e73f10c6b0537859.png)  
4 - deploy and press the inject - you will see a debug output  
5 - go to the link-out node and without making a change exit.  
 ![Screen Shot 2021-10-17 at 4.43.25 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/3/73d103c7d65e91d1021d370d74774ee5b298df18.png)  
at this point the link will be gone.

I've seen another possible iterations of this where you put the link-in and debug on a new tab and link them together, debug and test and it works.  
Now export the tab with the link-in/debug nodes and import it again as a copy. Everything looks ok but the link-out ID's does not match the ID of the new link-in node:

 ![Screen Shot 2021-10-17 at 4.01.55 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/4/54e77fae258048a5735b62a50df1be63480bb8a6.png)

---

<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:** [18 October 2021 19:18 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/17 "2021-10-18T19:18:16Z")

</div>

Code imports differently (wrong) in 2.1.0beta.2

This code (copied from another thread) has different results imported before and after installing the beta.

```auto
[
    {
        "id": "3d846a3cec7a7d97",
        "type": "change",
        "z": "da4995d901bb5abd",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "CLOSED",
                "fromt": "str",
                "to": "true",
                "tot": "bool"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "OPEN",
                "fromt": "str",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 580,
        "y": 180,
        "wires": [
            [
                "418f6185c0335945"
            ]
        ]
    }
]

```

 ![Untitled 1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/70aa8d1c59ce5b018a6ab903ac7b256f72642425.jpeg)  
The beta version has  
Node-RED version: v2.1.0-beta.2  
Node.js version: v14.18.1  
npm 8.1.0  
Linux 5.10.63-v7l+ arm LE

---

<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 October 2021 19:53 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/18 "2021-10-18T19:53:38Z")

</div>

In fact it is even worse than that.

If a Change node is configured as  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/e/be585b2f8882798b190b604f1d29fbbe94c0ba94.png)  
and the node is closed and reopened then the false changes to true.

---

<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:** [18 October 2021 19:54 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/19 "2021-10-18T19:54:48Z")

</div>

Currently debugging this live on Twitch... [Twitch](https://twitch.tv/knolleary)

---

<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:** [19 October 2021 04:37 UTC](https://discourse.nodered.org/t/node-red-2-1-0-beta-2-released/52212/20 "2021-10-19T04:37:24Z")

</div>

Possibly related.

In the Switch node when **"is of type"** is selected throws an `Uncaught ReferenceError: row is not defined` error.

ps. always enjoyable watching the live streams. very educational .. always at the end i go "aha .. so this is what real programming looks like" 😉

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