0.8.0 • Published 6 years ago

node-red-contrib-unsafe-function v0.8.0

Weekly downloads
37
License
Apache-2.0
Repository
github
Last release
6 years ago

node-red-contrib-unsafe-function

The fast and furious version of function nodes.

Uses require-from-string instead of executing the function inside a vm.

The implementation sticks to the api of the standard function nodes, so if your code worked on a standard function node it should also work on unsafe-function (only faster!). unsafe-function does not run inside a vm and therefore may do unsafe operations (like calling require('fs') and its operations).

Additional Features

nodeRedContribUnsafeFunctionAsyncSend, nodeRedContribUnsafeFunctionAsyncReceive - Set these RED settings variables in order to make the sending\receiving of messages asynchronous. The current behavior of node-red is that sending a message pauses until all the following nodes in the flow finish handling the sent message (unless they specifically do it asynchronously). For more information, see issue 833.

nodeRedContribUnsafeFunctionProfiling: Set this RED settings variable to show for each node a status message with basic profiling information: how many messages were handled and what's the total\max execution time.

Change Log

From 0.3.0 to 0.4.0

  • Using global RED settings nodeRedContribUnsafeFunctionAsyncSend, nodeRedContribUnsafeFunctionAsyncReceive and nodeRedContribUnsafeFunctionProfiling, instead of checking NODE_RED_CONTRIB_UNSAFE_FUNCTION_ASYNC_SEND, NODE_RED_CONTRIB_UNSAFE_FUNCTION_ASYNC_RECEIVE and NODE_RED_CONTRIB_UNSAFE_FUNCTION_PROFILING environment variables.
  • Updating package dependency require-from-string to version 1.2.1.
0.8.0

6 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

9 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago