diff --git a/README.md b/README.md index 7cebd1ec..f864c063 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ For simple typos and single line fixes please just raise an issue pointing out our mistakes. For larger changes, please discuss them on the [forum](https://discourse.nodered.org) or [Slack team](http://nodered.org/slack/) #docs channel. If you need to raise a pull request please read our -[contribution guidelines](https://github.com/node-red/node-red/blob/master/CONTRIBUTING.md) +[contribution guidelines](https://github.com/node-red/node-red/blob/main/CONTRIBUTING.md) before doing so. ### Previewing the Site diff --git a/_includes/docs-content.html b/_includes/docs-content.html index bf8ab7b6..37df893f 100644 --- a/_includes/docs-content.html +++ b/_includes/docs-content.html @@ -13,6 +13,9 @@
+ The modernised Node-RED 5 editor
+
+ Sidebar toolbar
+
+
+ The Explorer and Information sidebar panels
+
+ Node-RED 5 dark mode theme
+
+ Node selection
+
+ Node documentation badge
+
+ Markdown editor including an Information alert
+
+ Pausing debug output
+sudo.
@@ -54,7 +54,7 @@ That command will install Node-RED as a global module along with its dependencie
You can confirm it has succeeded if the end of the command output looks similar to:
```
-+ node-red@4.1.2
++ node-red@4.1.7
added 227 packages in 13s
found 0 vulnerabilities
```
@@ -69,8 +69,7 @@ For more detailed information see our [docker](/docs/getting-started/docker) gui
### Installing with snap
-If your OS supports [Snap](https://snapcraft.io/docs/core/install) you can install
-Node-RED with:
+Generally not recommended, but if your OS supports [Snap](https://snapcraft.io/docs/core/install) you can install Node-RED with:
```
sudo snap install node-red
@@ -84,7 +83,9 @@ When installed as a Snap package, it will run in a secure container that **does
- direct access to gpio hardware
- access to any external commands your flows want to use with the Exec node (for example).
+sudo.
diff --git a/docs/getting-started/raspberrypi.md b/docs/getting-started/raspberrypi.md
index 460283ea..cd8d742a 100644
--- a/docs/getting-started/raspberrypi.md
+++ b/docs/getting-started/raspberrypi.md
@@ -14,10 +14,10 @@ Pi, and other platforms running a Debian based OS. The script can also be
used to upgrade an existing install when a new release is available.
Running the following command will download and run the script. If you want
-to review the contents of the script first, you can view it [on Github](https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered).
+to review the contents of the script first, you can view it [on Github](https://raw.githubusercontent.com/node-red/linux-installers/master/deb/install-update-nodered).
```
-bash <(curl -sL https://github.com/node-red/linux-installers/releases/latest/download/update-nodejs-and-nodered-deb)
+bash <(curl -sL https://github.com/node-red/linux-installers/releases/latest/download/install-update-nodered-deb)
```
There are extra parameters you can pass to the script. Add --help to the end of the above command to see them.
@@ -35,7 +35,7 @@ first to ensure npm is able to fetch and build any binary modules it needs to in
This script will:
- remove the existing version of Node-RED if present.
- - if it detects Node.js is already installed, it will ensure it is at least v18. If nothing is found it will install the Node.js 20 LTS release using the [NodeSource](https://github.com/nodesource/distributions/blob/master/README.md) package.
+ - if it detects Node.js is already installed, it will ensure it is at least v20. If nothing is found it will install the Node.js v22 LTS release using the [NodeSource](https://nodesource.com/products/distributions) package.
- install the latest version of Node-RED using npm.
- optionally install a collection of useful Pi-specific nodes.
- setup Node-RED to run as a service and provide a set of commands to work with
@@ -44,9 +44,8 @@ This script will:
+ Editor window
+
- Editor window
-
- Editor components
-
- Palette toggle
-| Reference | |
|---|---|
| Key shortcut | Ctrl/โ-p |
| Menu option | View -> Show Palette |
| Action | core:toggle-palette |
| Action | core:show-palette-tab |
| Key shortcut | Ctrl/โ-g p |
Ctrl/โ-g d
Debug filter options
+ Debug paused
+| Reference | |
|---|---|
| Action | core:toggle-debug-messages |
| Reference | |
|---|---|
| Reference | |
|---|---|
| Reference | |
|---|---|
| Action | core:show-explorer-tab |
| Key shortcut | Ctrl/โ-g e |
Help Sidebar
-*Since Node-RED 1.1.0* - -In previous versions of Node-RED, the help text for the currently selected node -was displayed in the Information sidebar. - -Introduced in Node-RED 1.1.0, the Help sidebar provides access to the help content -for all nodes in the editor - not just the current selection. +The Help sidebar provides access to the help content for all nodes in the editor. The top section provides a full table of contents, that can be toggled using the - button. + button.| Reference | |
|---|---|
| Key shortcut | Ctrl/โ-Alt-Space |
| Menu option | View -> Show left sidebar |
| Action | core:toggle-left-sidebar |
| Reference | |
|---|---|
| Key shortcut | Ctrl/โ-Space |
| Menu option | View -> Show sidebar |
| Action | core:toggle-sidebar |
| Menu option | View -> Show right sidebar |
| Action | core:toggle-right-sidebar |
Information Sidebar
- Outline entry options
-| Reference | |
|---|---|
| Action | core:show-info-tab |
| Reference | |
|---|---|
| Key shortcut | Ctrl/โ-Shift-p |
| Menu option | View -> Action list |
| Action | core:show-action-list |
Flow properties editor
-
+
Information Sidebar
| Reference | |
|---|---|
| Reference | |
|---|---|
| Reference | |
|---|---|
| Key shortcut | Shift-? |
| Menu option | View -> Keyboard shortcuts |
| Action | core:show-keyboard-settings |
+
Node elements
+ Node error tooltip
+
+ Node documentation
+| Reference | |
|---|---|
| Key shortcut | Ctrl/โ-f |
+ Search toolbar
+
- Selecting multiple wires
-| Reference | |
|---|---|
| Action | core:detach-selected-nodes |
| Key shortcut | *Not assigned |
| Key shortcut | Not assigned |
sudo is required if running as a non-root user on Linux/OS X. If
diff --git a/docs/user-guide/runtime/adding-nodes.md b/docs/user-guide/runtime/adding-nodes.md
index 86ced807..ec512e8e 100644
--- a/docs/user-guide/runtime/adding-nodes.md
+++ b/docs/user-guide/runtime/adding-nodes.md
@@ -60,10 +60,3 @@ npm install --unsafe-perm option is that when node-gyp tries to recompile any
-native libraries it tries to do so as a "nobody" user and then fails to get
-access to certain directories. This causes the nodes in question (for example,
-serialport) not to be installed. Allowing it root access during install
-allows the nodes to be installed correctly during the upgrade.
+
+The `link out` node is configured with the option `return to calling link node` option.
+
+#### Using `node.linkcall`
+
+A Function node can call a link node using the `node.linkcall` function:
+
+{% highlight javascript %}
+// Set a query for the sqlite node to use
+msg.topic = 'select * from orders';
+// Call the `database-query` link node and await a response
+const result = await node.linkcall('database-query', msg);
+
+// result.payload contains the result of the database query
+
+{% endhighlight %}
+
+#### `node.linkcall(target, message, options)`
+
+ - `target` is a string identifier for the `link in` node that should be called. It is either the `id` or `name` of the node.
+ - `msg` is the message object to pass the flow.
+ - `options` is an optional object with the following properties:
+ - `timeout` : set a timeout for the call, in milliseconds. Default: `5000` (5 seconds)
+ - `clone` : whether to clone the message before sending. Default: `true`.
+
+
+
+
+
***
### API Reference
@@ -474,9 +510,9 @@ raising an error. If set to 0, the default, no timeout is applied.
The following objects are available within the Function node.
#### `node`
- * `node.id` : the id of the Function node - *added in 0.19*
- * `node.name` : the name of the Function node - *added in 0.19*
- * `node.outputCount` : number of outputs set for Function node - *added in 1.3*
+ * `node.id` : the id of the Function node
+ * `node.name` : the name of the Function node
+ * `node.outputCount` : number of outputs set for Function node
* `node.log(..)` : [log a message](#logging-events)
* `node.warn(..)` : [log a warning message](#logging-events)
* `node.error(..)` : [log an error message](#logging-events)
@@ -486,6 +522,7 @@ The following objects are available within the Function node.
* `node.status(..)` : [update the node status](#adding-status)
* `node.send(..)` : [send a message](#sending-messages-asynchronously)
* `node.done(..)` : [finish with a message](#finishing-with-a-message)
+ * `node.linkcall(..)` : [call a `link in` node and await a response](#calling-link-nodes) - *added in 5.0*
#### `context`
* `context.get(..)` : get a node-scoped context property
diff --git a/index.html b/index.html
index d2656f38..0db0e9dd 100644
--- a/index.html
+++ b/index.html
@@ -7,7 +7,7 @@
Latest version: v4.1.3 (npm)
+Latest version: v5.0.4 (npm)