Node-RED’s Road to 1.0
The Latest version of Node-RED is 0.19. The Node-RED Version is created and released as a stepping stone for the release of version 1.0. Node-RED latest version consists of many additional features.
- Persistent context:
The context data is state held within a flow outside of the individual messages flowing through it. In the previous version, this data would be lost whenever the runtime restarted.
The newest version provides the state can now be held outside of the runtime. Node-RED gives two implementations ready to use
- The default store: The data will remain in-memory store. Nothing will change for existing flows.
- File-based store: The context data gets written to files under your user directory.
- Context browser:
For the persistent context feature, they have added a context browser. The context data can be viewed by a new sidebar added within the editor. This sidebar has been constructed around the new underlying context APIs and fully supports multiple context stores.
- Changing node icons:
With the updated Node-RED version it is now possible to change the icon for the nodes in our flow. This feature helps to distinguish between different nodes of the same type that perform different roles. But Node-RED does not support the Font Awesome icons for the node.
- Changing sub-flow category:
We can choose what palette category a sub-flow appears in. Now it is easy to organize our sub-flows rather than having them all in a single category at the top of the palette.
- Environment variables:
The Environment variables can be directly accessed within a flow. The Inject, Switch, Change nodes have all been updated and now has the ‘env variable’ option.
There is a function added to the JSONata expression $env() to allow environment variables to be accessed from within an expression
- Node Updates:
- The Switch node has a new ‘isEmpty’ rule. It matches on Strings, Arrays, and Buffers that are empty. It also has ‘isNotEmpty’ rule.
I am excited to work with Node-RED, and I am looking forward to Node-RED 1.0. Further details visit nodered.org.