Skip to content

Release 1.23.0

Compare
Choose a tag to compare
@jensrossbach jensrossbach released this 27 Apr 15:32
· 38 commits to main since this release

‼️ Breaking Changes ‼️

  • Property name in JSONata expressions of scheduler and state node has been renamed to node and turned into an expression variable, therefore must be accessed as $node now.
  • Property config in JSONata expressions of scheduler and state node has been turned into an expression variable and must therefore be accessed as $config now.
  • Property schedule in JSONata expressions of scheduler node has been renamed to event and turned into an expression variable, therefore must be accessed as $event now.
  • Property state in JSONata expressions of state node has been turned into an expression variable and must therefore be accessed as $state now.

Added

  • Added expression variables $node and $config to all available JSONata expressions.
  • Added possibility to configure states without associated trigger time in state nodes. Such states can only be activated manually from outside via an input message and command "set".
  • Extended possible input formats of time properties for time change nodes. They now match the formats that have already been introduced for time switch and filter nodes in the last release.
  • Added passive trigger mode to state nodes. In this mode, the state node will not actively change states upon reaching their trigger times. Instead, state changes must be triggered by an external trigger source via input message.
  • Added new command "trigger" for input messages of state nodes. This command accompanies the new passive trigger mode and is used to trigger state changes from outside.
  • Added new command "getid" for input messages of state nodes. This command can be used to query the identifier of the currently active state.

Changed

  • Turned some properties in JSONata expressions to expression variables, see breaking changes above for details.
  • Renamed some properties/variables in JSONata expressions, see breaking changes above for details.
  • Changed the color of the stateless state in state nodes from yellow to grey in the Node-RED editor.

Fixed

  • Fixed a potential crash of state nodes when being in stateless state and a state is activated from outside.

NPM SHA-Sum: b42801560ea27705a4ec7546aba7229e9cde0c01