Commit Graph

130 Commits

Author SHA1 Message Date
Nick O'Leary 785c349adc
Prevent function module overwriting built-in sandbox properties 2021-02-16 13:58:59 +00:00
Nick O'Leary 6336ab121e
Merge branch 'dev' into function-modules 2021-02-13 00:21:27 +00:00
Nick O'Leary a94c19a6cf
Fix up loading of freshly installed modules in Function node 2021-02-12 22:40:30 +00:00
Nick O'Leary 9c09ee3b71
Rework Function node module integration 2021-02-12 18:14:13 +00:00
Nick O'Leary 438d51d26e
Allow nested msg properties in msg/flow/global expressions (#2822)
* Allow nested msg properties in msg/flow/global expressions

* Remove typo in RED.utils

Co-authored-by: Nick O'Leary <knolleary@users.noreply.github.com>
2021-01-27 20:32:52 +00:00
Hiroyasu Nishiyama 4a1d66f210 update UI, Runtime API, metadata handling, and others 2021-01-27 22:27:54 +09:00
Nathanaël Lécaudé 2b28ae3402
Add settings.execMaxBufferSize to control buffer size of exec node (#2819)
Co-authored-by: Dave Conway-Jones <dceejay@users.noreply.github.com>
closes #2817
2021-01-14 14:38:39 +00:00
Dave Conway-Jones aa47bae2ad
Exec node - don't append msg.payload to command by default (#2818)
* exec change default to not append payload
2021-01-13 10:12:19 +00:00
Hiroyasu Nishiyama d51aefa156 initial support for npm module installation 2021-01-11 19:32:16 +09:00
Nick O'Leary f5fcf23678
Merge branch 'pr_2751' into dev 2020-12-07 13:58:53 +00:00
Nick O'Leary b80a7459cf
Merge pull request #2733 from node-red-hitachi/delay-node-mapi
Messaging API support in Delay node
2020-12-07 13:53:51 +00:00
Dave Conway-Jones 78f1cb8a66
ensure trigger timestamp option sends .now()
To close #2771
2020-12-01 23:05:22 +00:00
Nick O'Leary 6ea978d83d
Prevent needless retention of node status messages 2020-11-16 21:05:13 +00:00
Kunihiko Toumura f038069fe2 Messaging API support in Trigger node 2020-11-05 15:09:41 +09:00
Kunihiko Toumura dc1ab7e331 Add support for Messaging API to delay node 2020-10-26 16:52:18 +09:00
Nick O'Leary 2962c4372c
Support setting trigger loop interval with msg.delay 2020-09-29 17:47:09 +01:00
Nick O'Leary cf84ec78fa
Allow trigger node delay to be overridden with msg.delay 2020-09-28 21:10:23 +01:00
Nick O'Leary 4b8d07f301
Merge branch 'pr_2644' into dev 2020-09-25 17:11:39 +01:00
Nick O'Leary 2db3a4f1ef
Add unit tests for function node init code 2020-09-25 17:11:10 +01:00
Kunihiko Toumura 77bd7541ca new-style callback function (template node) 2020-07-14 19:05:41 +09:00
Kunihiko Toumura ca46bc5366 new-style callback function (range node) 2020-07-14 19:02:41 +09:00
cinhcet 0601833387 msgid added in vm to avoid unneccesary if statement 2020-07-08 19:09:07 +02:00
cinhcet 5d7a625883 expose send, status, log, warn, error, debug, trace, name, id in setup code of function node 2020-07-08 01:30:29 +02:00
Nick O'Leary 7a3ead8f3b
Merge branch 'dev' 2020-06-30 17:46:43 +01:00
Nick O'Leary 362554ad3b
Switch JSONata expr does not require msg.parts.count 2020-06-29 09:32:52 +01:00
Dave Conway-Jones 5596d2df8e
catch tiny possible escape for "\n " in exec command node label. 2020-06-22 22:41:22 +01:00
johanneskropf d9548a2891
moved check for shell 2020-06-12 17:14:11 +02:00
johanneskropf d25e027201
moved building of execOpt object to line 36 2020-06-12 17:10:31 +02:00
johanneskropf 06adf3d346
use bash as shell for exec command if on linux
This relates to:
https://github.com/node-red/node-red/issues/2604
and
https://discourse.nodered.org/t/exec-node-timeout-not-working-in-exec-mode/28040
and is a possible workaround for most issues related to kill described there.
This has only been tested on linux where this change applies so it would most definitely need more testing on windows/mac and maybe linux distributions where there is no bash(?).
2020-06-10 11:24:56 +02:00
Dave Conway-Jones cb218a57f1
Merge branch 'dev' of https://github.com/node-red/node-red into dev 2020-06-05 11:22:42 +01:00
Dave Conway-Jones ba8649117d
ensure trigger node detects changes to number of outputs 2020-06-05 11:22:38 +01:00
Nick O'Leary 20daebd965
Ignore whitespace when checking function setup/close code 2020-06-05 10:36:49 +01:00
Nick O'Leary 4b54a81dfd
Add test cases for setMessageProperty with non-object properties 2020-06-01 13:13:14 +01:00
Nick O'Leary 132254b3a5
Merge branch 'dev' into pr_2439 2020-06-01 11:56:19 +01:00
Dave Conway-Jones 8a798e620a
Ensure delay node rate limit timer is cleared on reset 2020-05-30 15:18:15 +01:00
Nick O'Leary 7969dd431f
[function] Make the function node top-level async
This allows you to use 'await' in a function node without
having to wrap it in another promise/async function.
2020-05-22 20:49:18 +01:00
Nick O'Leary 22e7ddcb1d
Merge branch 'dev' into pr_2490 2020-05-22 15:43:17 +01:00
Nick O'Leary 5d81cec00c
Merge branch 'pr_2498' into dev 2020-05-22 15:22:12 +01:00
Nick O'Leary 9512450d7c
Reduce duplicated code in Function node html 2020-05-22 14:57:28 +01:00
Dave Conway-Jones b6e0568e76
Trigger node - hide second outpiut option when not appropriate
Update status to better reflect multiple streams in flight
2020-05-16 22:24:29 +01:00
Hiroyasu Nishiyama a764a4a44b update initial contents for setup & close code 2020-05-11 22:55:07 +09:00
Hiroyasu Nishiyama 5b197adf33 update according to comments 2020-05-11 14:37:14 +09:00
Dave Conway-Jones 36b0698432
Trigger - redo second output code update 2020-05-04 17:11:09 +01:00
Nick O'Leary 90537e42ba
Merge branch 'dev' into add-trigger-second-output 2020-05-04 12:45:01 +01:00
Nick O'Leary d7df20413d
Merge branch 'master' into dev 2020-05-04 11:41:44 +01:00
Hiroyasu Nishiyama c649e1b4a2 update promise & message handling 2020-04-10 23:06:43 +09:00
Nick O'Leary 821b5686f2
Merge branch 'master' into pr_2492 2020-04-08 12:42:33 +01:00
Dave Conway-Jones 5eed4672ed
rtrigger node - reapply - passing topic through to output fix that seemed to only half merge 2020-04-06 22:58:00 +01:00
Hiroyasu Nishiyama 161f6090c1 update initialize & finalize processing of function node 2020-04-06 16:34:41 +09:00
Nick O'Leary 05fc3c5eca
Merge branch 'master' into dev 2020-03-30 23:41:33 +01:00
Dave Conway-Jones 43258ee816
Trigger node - reset default timeout value when switcing away from wait for reset 2020-03-15 15:11:19 +00:00
Dave Conway-Jones 9ba9998bd6
make exec node logging consistent with itself. (only be verbose when in verbose mode) 2020-03-13 11:26:49 +00:00
Hiroyasu Nishiyama 84d2b8ad6d add support of initialization & finalization to function node 2020-03-07 01:55:45 +09:00
Thierry Le Gal dea47a6e3d Improve performance in change node panel 2020-03-03 18:43:44 +01:00
Kazuhito Yokoi 6675fdf3c2 Saving the node description property to the library 2020-03-02 05:50:32 +00:00
Dave Conway-Jones 1868289b71
Better fix for trigegr 2nd message in last payload mode
Now works correctly in multiple topics mode.
And update tests
2020-02-25 22:15:53 +00:00
Dave Conway-Jones 01a143cd5a
Emsure trigger complete 2nd msg when set to send latest
and add test
to close #2474
2020-02-24 21:28:40 +00:00
Dave Conway-Jones 8405826fab
Ensure trigger sends complete 2nd msg if set to send latest msg
and add test
to close #2474
2020-02-24 21:17:54 +00:00
Dave Conway-Jones 127b361979
change PR to only use a single property for the 2nd output 2020-02-14 20:13:37 -05:00
Dave Conway-Jones 88e729664a
complete tidy up of trigger node
remove unnecessary console.log
2020-01-31 17:56:06 +00:00
Dave Conway-Jones 87aacb4270
change property name to leave space if we want to also do main payload property 2020-01-30 22:20:55 +00:00
Dave Conway-Jones 3f756aac21
Allow trigger node to use other than msg.topic to separate streams
and add test
2020-01-30 21:39:34 +00:00
Dave Conway-Jones d5d9ac5c76
let setMessageProperty return success flag
so calling node can warn if operation tries to overwrite primitive type
2020-01-26 18:20:25 +00:00
Dave Conway-Jones bb12ec702a
Add second output to trigger node
and add tests
2020-01-24 18:20:14 +00:00
Nick O'Leary 6b52206186
Merge branch 'master' into dev 2020-01-22 11:54:24 +00:00
Kazuhito Yokoi 74a015c329 Change types from text/x-red to text/html in node html files 2020-01-15 11:40:48 +09:00
Dave Conway-Jones 9c4640e010
Make min-height for change, switch, batch and mqtt consistent
to allow fit to smaller screens before scrolling
(to fix comment from forum)
2020-01-01 21:32:56 +00:00
Kazuhito Yokoi 9e16d7f433 Move messages to editor.json 2019-11-05 11:29:43 +09:00
Kazuhito Yokoi 7c21bf4555 Add icons for typedInput 2019-10-31 16:03:27 +09:00
Kazuhito Yokoi d2755a8049 Support i18n for typedInput in split and switch nodes 2019-10-30 19:58:29 +09:00
Dave Conway-Jones 0ff324b0db
delay node- remove commented out code 2019-10-25 17:03:16 +01:00
Dave Conway-Jones a96d5096fe
Fix delay to not pass through .reset and .flush props consistently
to close #2349
(it used to not pass them through but did on initial message... now it doesn't)
2019-10-25 16:48:35 +01:00
Nick O'Leary 6f91786f4d
Fixup Change node use of node.done 2019-10-11 11:08:25 +01:00
Dave Conway-Jones b763e0b0cb
Let switch node between rule work both ways round
and add test
2019-10-02 09:52:26 +01:00
Dave Conway-Jones a27e8777aa
Let function node spinner go to 0 2019-09-30 09:54:05 +01:00
Nick O'Leary f0839571d0
Clone the first message passed to node.send in Function
Also introduces an optional second arg to node.send in the Function
node that can disable that cloning
2019-09-12 22:09:35 +01:00
Dave Conway-Jones 89d0d6ec93
remove old rc option from exec node for 1.0
(not removing functionality so old flows will keep working - just removing option to select it)
2019-09-12 17:01:11 +01:00
Dave Conway-Jones 7c7be378bc
Add python and SQL to template language options
as we already include in the ACE modes
2019-09-10 17:17:21 +01:00
Nick O'Leary 3c657a6645
Fix Switch node display of jsonata_exp type 2019-09-10 14:31:34 +01:00
Nick O'Leary da6db24f9e
Reorganise nodes into new categories 2019-08-21 14:23:23 +01:00