Commit Graph

99 Commits (5092-port-state)

Author SHA1 Message Date
Nick O'Leary 03d324eae8
Only apply colours for non-default log lines 2025-05-01 17:55:50 +01:00
Ben Hardill 93c55e3a1e
Add guard against unknown level 2025-04-16 12:40:35 +01:00
Ben Hardill 082afb7ebd
Add missing call 2025-04-15 18:25:34 +01:00
Ben Hardill f69227c2e1
Merge branch 'dev' into colour-logs 2025-04-15 18:13:01 +01:00
Ben Hardill 080a6af54b
Add all the levels to the colours list 2025-04-15 18:11:21 +01:00
Ben Hardill ead0385edf
Colourise the Node-RED logs 2025-04-15 17:52:34 +01:00
Nick O'Leary a5383f4064
Bump i18next to 24.x and auto-migrate message catalog format 2025-03-24 17:38:21 +00:00
Nick O'Leary 90c2758624
Add code to error object sent by Catch node 2025-03-13 10:49:15 +00:00
Nick O'Leary 82ba56bffe
Fix up tests 2025-03-11 16:07:15 +00:00
Nick O'Leary 5eea8b6b60
Improve debug display of error objects 2025-03-10 17:43:06 +00:00
Nick O'Leary d76b0d39cd
Remove use of util.log 2024-09-11 17:47:26 +01:00
Rotzbua 9b86874c2d
chore: migrate deprecated `util.isArray`
Deprecated: Use Array.isArray() instead.

Source: https://nodejs.org/docs/latest-v18.x/api/util.html#utilisarrayobject
2024-05-25 22:55:09 +02:00
Rotzbua aa372a1707
Fix typo in source code comment 2024-05-12 18:25:08 +02:00
Nick O'Leary e4dc1779c3
Merge pull request #4590 from node-red/jsonata-update
Upgrade to JSONata 2.x
2024-03-07 14:28:35 +00:00
Nick O'Leary b50e0533eb
Add js date option to inject 2024-03-04 16:35:59 +00:00
Nick O'Leary 711545539f
Allow typedInput timestamp to specify format 2024-03-04 16:35:54 +00:00
Nick O'Leary a6cbceed28
Upgrade to JSONata 2.x 2024-03-04 16:32:31 +00:00
Nick O'Leary a3e41d4f35
Update packages/node_modules/@node-red/util/lib/util.js
Co-authored-by: Stephen McLaughlin <44235289+Steve-Mcl@users.noreply.github.com>
2023-07-11 21:11:26 +01:00
Nick O'Leary 1c5fdb6ab6
Evaluate all env vars as part of async flow start 2023-06-23 02:11:57 +01:00
Nick O'Leary 51a0b68d8e
Revert "Add callback to getSetting to support async jsonata access" 2023-06-22 10:17:48 +01:00
Steve-Mcl 502dacd865 fix failure to return after calling callback 2023-06-17 22:44:55 +01:00
Steve-Mcl 4808cac89d Add async to all paths that JSONata env var calls 2023-06-17 21:14:56 +01:00
Nick O'Leary ca53712ee9
Deprecate synchronous access to jsonata 2023-03-03 11:43:06 +00:00
Hiroyasu Nishiyama 93a88a83a8 add JSONata support for env var definition 2022-07-20 10:13:13 +09:00
Hiroyasu Nishiyama bc80569fe9 fix buffer parse error message of evaluateNodeProperty 2022-05-22 17:59:27 +09:00
Steve-Mcl 2b958f5724 Improve module location parsing when adding hook
- fixes #3401
- handles brackets and no brackets in stack line
- handles short stack
2022-02-15 12:40:34 +00:00
Alexandre Alapetite 2e1e61dabe
Remove part of JSDoc 2022-02-03 16:32:51 +01:00
Alexandre Alapetite 280d63fde7
Fix util.encodeObject 2022-02-03 15:59:25 +01:00
Hiroyasu Nishiyama c948ff88a5 add support of NR_NODE_PATH 2022-01-26 21:24:48 +09:00
Hiroyasu Nishiyama ba304c9651 add NR_ prefix to special environment variables 2022-01-26 09:25:30 +09:00
Hiroyasu Nishiyama 75bcd9e8d5 add support for accessing node id & name as env var 2022-01-14 23:40:12 +09:00
Nick O'Leary 20dbf7c5f4
Merge pull request #3346 from node-red/fix-stack-capture
Handle reporting error location when stack is truncated
2022-01-12 22:54:25 +00:00
Nick O'Leary 82ae2e7118
Handle reporting error location when stack is truncated
Fixes #3292
2022-01-12 22:07:44 +00:00
Nick O'Leary 0cf9b5f3df
Improve jsonata legacy mode detection regex
Fixes #3290
2022-01-12 21:56:38 +00:00
Nick O'Leary 33af5cd7c6
Apply i18n namespace fix to runtime component 2021-12-01 15:15:08 +00:00
Hiroyasu Nishiyama c331da7323 fix env var access using $env for groups 2021-11-27 19:29:57 +09:00
Nick O'Leary b6570a16b8
Handle RegExp types in Debug sidebar
Fixes #3245
2021-11-08 20:24:10 +00:00
Nick O'Leary 8042fe4e2b
Merge branch 'master' into dev 2021-10-06 09:12:16 +01:00
Nick O'Leary a27ce375db
Update package dependencies 2021-10-06 09:11:20 +01:00
Dave Conway-Jones 2fe78cf971
Update packages/node_modules/@node-red/util/lib/i18n.js
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2021-09-25 14:51:47 +01:00
Dave Conway-Jones bbf066f030
Fixes to fs promises so that electron version runs 2021-09-10 08:33:07 +01:00
Hiroyasu Nishiyama d78e5932f9 update according to PR comments 2021-08-30 08:00:58 +09:00
Hiroyasu Nishiyama 6aecc3915c add support of environtment variable for tab & group 2021-08-19 21:15:13 +09:00
Nick O'Leary 48ac50e1c9
Add support for Map/Set property types on Debug 2021-06-29 11:09:30 +01:00
Nick O'Leary 8bbed2c831
Change node id generation to give fixed length values without '.' 2021-05-18 11:32:17 +01:00
Nick O'Leary 79a142fb19
Fix error log in runtime hooks module 2021-05-13 13:40:42 +01:00
Nick O'Leary 4ff991764e
Updates to encode/decode message when passed over debug comms link 2021-05-13 13:38:34 +01:00
Nick O'Leary f7210effec
Rework hooks structure to be a linkedlist
Allows for safe removal of hooks whilst they are being invoked
2021-04-26 21:14:42 +01:00
Nick O'Leary 22df59e229
Update hooks api to support promise api 2021-04-15 15:12:35 +01:00
Nick O'Leary ed351eee54
Move hooks to util package 2021-04-15 15:12:30 +01:00