Sam Machin
af0f02d63e
add locale warning
2022-03-19 17:44:21 +00:00
Sam Machin
4d048af384
Check for missing encrypted credentials
2022-03-19 13:34:46 +00:00
Steve-Mcl
efd8c1229d
improve "Unexpected Node Error" logging
...
- fixes #3389
- adds additional info to aid sourcing the issue
- removes lots of undefined info when node type is incorrect
- stores and reports original stack before internal try/catch exception
- ensure this._flow is something before attempting to call `handleError`
2022-02-15 10:51:18 +00:00
Nick O'Leary
4173625fca
Merge pull request #3243 from node-red/delete-global-context
...
Clear context contents when switching projects
2022-01-26 11:28:34 +00:00
Nick O'Leary
703c5adba7
Add _path property to nodes and expose as node.path in Function node
2022-01-25 21:32:28 +00:00
Nick O'Leary
3abef972a7
Clear context contents when switching projects
...
Fixes #3240
2022-01-12 18:59:29 +00:00
Nick O'Leary
c801bc5e6b
Add error logging if Node.log throws an error
...
Part of #3327
2022-01-12 11:13:29 +00:00
Nick O'Leary
ea43729063
Add _module to Node object to provide module info
2022-01-12 11:07:25 +00:00
Hiroyasu Nishiyama
6aecc3915c
add support of environtment variable for tab & group
2021-08-19 21:15:13 +09:00
Nick O'Leary
ce905ba2c4
Merge branch 'master' into dev
2021-06-08 11:44:31 +01:00
Steve-Mcl
a92f0c4c6e
fix context key validation + add tests
...
- adds a helper function validateContextKey to keep it DRY
- adds tests ensure key of null "" 1 {} [] [""] [1] [{}] all throw error
2021-05-26 13:04:09 +01:00
Steve-Mcl
4d768fd236
ensure context get/set key is a string
2021-05-25 14:53:06 +01:00
Nick O'Leary
001f066769
Remove all input event listeners on a node once it is closed
...
This prevents in-flight messages being passed to the node after
it has closed.
2021-05-13 13:37:21 +01:00
Nick O'Leary
71ba73b38f
Merge branch 'master' into dev
2021-05-04 11:19:05 +01:00
Nick O'Leary
7df1a03b4b
Handle subflow modules that contain subflows
2021-04-28 21:50:00 +01:00
Nick O'Leary
ed351eee54
Move hooks to util package
2021-04-15 15:12:30 +01:00
Nick O'Leary
8543613563
Allow module to provide resources and automatically expose them
2021-03-15 21:06:10 +00:00
Nick O'Leary
9c09ee3b71
Rework Function node module integration
2021-02-12 18:14:13 +00:00
Hiroyasu Nishiyama
4a1d66f210
update UI, Runtime API, metadata handling, and others
2021-01-27 22:27:54 +09:00
Hiroyasu Nishiyama
d51aefa156
initial support for npm module installation
2021-01-11 19:32:16 +09:00
Nick O'Leary
da96c85d32
Handle subflow modules with their own npm dependencies
2021-01-07 11:26:20 +00:00
Nick O'Leary
0c9fd25d3e
Nodes log via parent flow to allow flow-info to be added
2021-01-07 11:10:34 +00:00
Nick O'Leary
9a660f3fe9
Support npm subflow modules
2021-01-07 11:10:33 +00:00
Nick O'Leary
fca21ac126
Rename paletteEditorEnabled to installerEnabled
2020-12-07 11:49:01 +00:00
Nick O'Leary
6fb96fa3c1
Move exec and events components to util module
...
The exec and events components are common components that
are used by both runtime and registry. It makes sense to
move them into the util package.
This also adds some docs to the registry module
2020-12-07 11:49:01 +00:00
Nick O'Leary
5992ed1fab
Fully remove when.js dependency
2020-12-07 11:49:01 +00:00
Nick O'Leary
af636870d4
Add better error message if context file gets corrupted
2020-10-06 15:42:52 +01:00
Nick O'Leary
08148a07b2
Update Node/Flow to trigger msg routing hooks
2020-09-29 12:19:27 +01:00
Nick O'Leary
d57ec0cd53
Refactor lib/flows code to include initial router component
2020-09-29 12:19:26 +01:00
Nick O'Leary
69d60ffb24
Add simplified git workflow to auto-commit changes
2020-09-28 10:41:33 +01:00
Nick O'Leary
b7243c2226
Merge branch 'master' into dev
2020-09-16 11:54:34 +01:00
Melvin Groenhoff
d84c2b780b
Fix this
context when calling multiple event listeners ( fixes #2692 ).
2020-09-04 10:20:30 +02:00
Nick O'Leary
be880c25f9
Merge pull request #2682 from node-red/upload-npm
...
Add support for file upload on /nodes api
2020-09-03 15:01:31 +01:00
Kunihiko Toumura
0c5586ddfb
Add 'done' metric log for message tracing
2020-08-18 09:28:50 +09:00
Nick O'Leary
6f1ed76b4c
Add support for file upload in /nodes api
2020-08-13 15:54:54 +01:00
Nick O'Leary
fe4ef354ac
Flag a node as removed when it is disabled
2020-06-08 20:59:00 +01:00
Nick O'Leary
1c94064c57
Remove unused _info/_type subflow env var magic values
2020-05-22 20:54:06 +01:00
Nick O'Leary
d7df20413d
Merge branch 'master' into dev
2020-05-04 11:41:44 +01:00
Nick O'Leary
97c771f93a
Ensure file context does not write 'undefined' to store
...
Fixes #2522
2020-04-08 11:32:39 +01:00
martinLim45
513957eea1
Set flow.disabled when disabled property is false
2020-04-07 16:41:49 +09:00
Nick O'Leary
344c9fe57e
Merge branch 'master' into dev
2020-04-02 23:24:42 +01:00
Nick O'Leary
9d4400349b
Fix timer reference in node close handling
2020-04-02 23:24:18 +01:00
Nick O'Leary
6ff3286d78
Merge branch 'master' into dev
2020-04-02 16:52:55 +01:00
Nick O'Leary
a6ecb54cc4
Clear node.close timeout to avoid unnecessary work on restart
2020-03-31 19:25:20 +01:00
Nick O'Leary
294696daf5
Merge branch 'dev' into groups
2020-03-30 23:42:52 +01:00
Nick O'Leary
d099356207
Merge branch 'master' into dev
2020-03-30 23:42:40 +01:00
Nick O'Leary
5c06761b1a
Remove console.log from subflow
2020-03-30 23:42:30 +01:00
Nick O'Leary
05fc3c5eca
Merge branch 'master' into dev
2020-03-30 23:41:33 +01:00
Nick O'Leary
84771f5864
Flows/subflows must preinitialise their context objects
...
Fixes #2513
If a node inside a subflow accessed its context object in its
constructor, the subflow-instance flow context would not yet
have been created. This would cause a place holder context
to get created on its behalf, but that place holder doesn't
have its parent set properly. This then breaks the usage
of $parent inside such a subflow.
This fix has changed it so flows (and subflows) create their
flow context as part of their initial creation. That ensures
it exists when individual nodes from the subflow are created,
allowing them to safely access their context.
This has also fixed a related issue where any attempt to use
$parent to access beyond the root parent would seemingly hang
as the callback was never being called. This would cause
messages to get stuck in flows. The fix ensures the callback
is used in the root context objects and undefined is returned.
2020-03-27 23:47:12 +00:00
Nick O'Leary
4304d44851
Ensure complete node scope is remapped in subflows
...
Fixes #2514
2020-03-27 09:44:15 +00:00