Hi there,
when embedding NodeRED into an application, is it ok to use express version 5? Or do you expect any obstacles there?
Hi there,
when embedding NodeRED into an application, is it ok to use express version 5? Or do you expect any obstacles there?
Great question,
Probably easiest to simply try it.
You should probably look at the breaking changes and migration guide to see what possible problems might occur.
The short answer is basically covered in the issue @GogoVega has linked to.
Express 5 contains a number of breaking changes from the v4 version that Node-RED uses.
I haven't yet had time to evaluate how much work is needed to update the code of Node-RED to handle those changes. The potentially bigger issue will be that many 3rd party nodes might also be using those APIs (anything that registers admin http end points for example); so we need to figure out a way to handle that.
Either way, this will need to be a Node-RED v5 level of change - it is unlikely we will be able to support both v4 and v5 in a single version, so will require a major version jump of Node-RED to go with it.
Thankfully, I already moved all ExpressJS handling into a separate class module for uibuilder. So should be relatively easy to adjust when the time comes.
Having just been reminded to check breaking changes by this thread, I've added a couple of quick updates to the issue. Looks like Node-RED core and core nodes are in a decent position as is uibuilder.