Commit Graph

130 Commits

Author SHA1 Message Date
Nick O'Leary 064f3eb3bc
Fix RBE node handling of default topi property
Fixes #3087
2021-07-26 14:36:09 +01:00
Nick O'Leary 68fb5089f8
Fix msg.reset handling in Delay node
Fixes #3074
2021-07-21 11:32:45 +01:00
Nick O'Leary b2dc1d8b23
Ensure default module export is exposed in Function node 2021-07-20 14:42:43 +01:00
Nick O'Leary eb3330d145
Fix vertical sizing of function node edit dialog 2021-07-16 09:44:56 +01:00
Nick O'Leary 66a704af55
Fallback to 'require' if on node < 12.17 2021-07-15 15:38:07 +01:00
Nick O'Leary 2cc1973f62
Enable functionExternalModules by default 2021-07-15 10:07:52 +01:00
Nick O'Leary eb4625a0b9
Merge pull request #3064 from node-red/revert-external-modules-dir
Move externalModules back into the user dir
2021-07-15 09:56:23 +01:00
Nick O'Leary 395b499856
Fix async loading of modules in function node 2021-07-14 21:10:59 +01:00
Nick O'Leary cce6a47f11
Rework function module screen 2021-07-14 20:23:01 +01:00
Nick O'Leary 7fd17b4ec0
Add RED.import to support importing ES6 modules 2021-07-14 19:18:39 +01:00
Dave Conway-Jones 41c8ca8ab4
Delay node updates to added flush control for queuing 2021-07-08 12:13:23 +01:00
Nick O'Leary 42992c64ec
Merge branch 'pr_3026' into dev 2021-07-02 09:22:35 +01:00
Nick O'Leary 2baff243ed
Rename exec node hideWin option 2021-07-02 09:22:08 +01:00
Nick O'Leary 2cda49fc38
Reduce z-Index of Function expand buttons to prevent overlap
Part of #3019
2021-06-23 14:16:36 +01:00
Nathanaël Lécaudé 2f0631809d exec node: modify test 2021-06-16 17:09:21 -04:00
Nathanaël Lécaudé 91ab3bd972 exec node: add windowsHide option to hide windows under Windows 2021-06-16 17:00:00 -04:00
Nick O'Leary 7c02e4d66a
Merge branch 'master' into dev 2021-06-02 15:40:56 +01:00
Nick O'Leary 12698dc347
Add full ast parsing in Function node to spot node.done calls
Fixes #2998
2021-06-02 12:32:44 +01:00
Hiroyasu Nishiyama 4dbebefb45 fix handling empty rules 2021-05-23 10:01:45 +09:00
Nick O'Leary a9164e63ab
Merge branch 'dev' into pr_2971 2021-05-18 16:30:13 +01:00
Nick O'Leary 6b43a23c4b
Merge branch 'master' into dev 2021-05-14 21:18:32 +01:00
Nick O'Leary 90761fd840
Fix 'SyntaxError' in Function node when last line of on-stop is a comment 2021-05-13 17:23:25 +01:00
Nick O'Leary 71ba73b38f
Merge branch 'master' into dev 2021-05-04 11:19:05 +01:00
Steve-Mcl c475536388 provide extra libs and call to refresh 2021-04-29 18:00:23 +01:00
Steve-Mcl 5bba50f01f refactor node.libs to a function getLibsList
- preparation for monaco integration
2021-04-29 16:56:16 +01:00
Dave Conway-Jones 9ee8c1c791
Give delay node random mina nd max more space so you can see complete value 2021-04-29 10:36:13 +01:00
Nick O'Leary bbac49ff38
Ensure function expand button is above vertical scrollbar
Fixes #2955
2021-04-26 10:18:25 +01:00
Dave Conway-Jones 93971537b4
add rate option to queue and timed modes. so a simple check box instead. 2021-04-22 11:02:34 +01:00
Dave Conway-Jones 87e816a7f5
Delay node - Make msg.rate an optional override 2021-04-22 10:26:35 +01:00
Dave Conway-Jones 0f45b1da48
Try to make delay modes consistent as regards flush
behaviour is different. May cause minor breakage.
if flush arrives with payload that is now included with the flushed data so no data is lost. Previously any payload was dropped.
2021-04-22 09:43:54 +01:00
Kazuhito Yokoi a20049c82a
Delay node enhancements (#2294)
* Remove unused messages in message catalog

* Support msg.rate in delay node

* Support nodeMessageBufferMaxLength in delay node

* Add logging function for queue size

* Support msg.nodeMessageBufferMaxLength

* Revert "Support msg.nodeMessageBufferMaxLength"

This reverts commit cc72f892f7.

* Improve logging function for delay node

* Add support for Messaging API to delay node

* Add documentation about msg.rate in delay node

* Add test cases for msg.rate in delay node

Co-authored-by: Dave Conway-Jones <dceejay@users.noreply.github.com>
2021-04-22 09:01:28 +01:00
Dave Conway-Jones 73063df11b
Pull in RBE node and push out tail 2021-04-19 13:09:13 +01:00
Kazuhito Yokoi 39274b0c5d
Add Japanese translations for Node-RED v1.3.1 (#2930) 2021-04-12 14:15:07 +01:00
Nick O'Leary 142a5f7ca1
Fix change node form validation 2021-04-08 16:21:03 +01:00
Kristian Heljas 7b8ed487e9
Function node: add `node.outputCount` property to sandbox (#2918)
* Function node: add `node.outputs` property to sandbox

https://discourse.nodered.org/t/expose-configured-output-count-to-function-node-i-can-pr/43848

* style: indetation for function node sanbox code

I guess this was unintentionally unindented in d51aefa156 (diff-24cd715c3b7405ea194bfdc0dc2a350ceb2f5d18696b8163c3e40105b981a666)

* Function node: tests for accessing node properties

consistently tests that `node.id`, `node.name` and `node.outputs`
are available in `init()`, `func()` and `finalize()` methods.

* Function node: rename `node.outputs` to `node.outputCount`

https://discourse.nodered.org/t/expose-configured-output-count-to-function-node-i-can-pr/43848/9?u=kristian
2021-04-08 14:52:02 +01:00
Kazuhito Yokoi a157580b22 Add Japanese translations for Node-RED v1.3 2021-04-08 20:06:35 +09:00
Nick O'Leary e3b70b10d1
Add property validate to Change node rule set
Closes #2911
2021-04-06 17:26:06 +01:00
Nick O'Leary f0f2eefb59
Merge branch 'pr_2908' into dev 2021-03-31 23:50:30 +01:00
Nick O'Leary bdb548ffdc
Exec node: remove addpayValue and reuse addpay to track appending property 2021-03-31 23:50:00 +01:00
Nick O'Leary 8da00c0872
Fix Switch node handling of hasKey rule when property is undefined 2021-03-30 21:37:39 +01:00
Nick O'Leary 082bac8c3a
Handle invalid regex set dynamically in Switch node
Fixes #2905
2021-03-22 21:06:59 +00:00
Kazuhito Yokoi 89485971fa Use RED.util.getMessageProperty() to check message property 2021-03-22 20:48:01 +09:00
Kazuhito Yokoi cb72d5100e Remove type for typedInput in exec node 2021-03-22 20:24:12 +09:00
Kazuhito Yokoi f103533852 Support typedInput in msg.payload field of exec node 2021-03-22 16:19:55 +09:00
Hiroyasu Nishiyama 7e40cb5331 update i18n and Japanese message for nodes 2021-03-03 10:07:33 +09:00
Nick O'Leary c9c5f7f088
Fix functionExternalModules tests 2021-03-01 21:34:37 +00:00
Nick O'Leary c3adc956d7
Add functionExternalModules to settings and default to false 2021-03-01 18:24:16 +00:00
Nick O'Leary d5f4f987f2
Add 'node' object to Function close scope 2021-02-17 14:41:50 +00:00
Nick O'Leary 11475b0c38
Move function expand buttons to overlap editor and save space 2021-02-17 14:41:25 +00:00
Nick O'Leary 137fa98903
Move name field above tab bar in Function node 2021-02-17 12:04:38 +00:00