From 1b320cd8c9b1e00257c03f92a175e3c9ab9f8030 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Thu, 6 Oct 2022 22:09:45 +0200 Subject: [PATCH] feat(core): Improve light versioning support in declarative node design (#4254) * feat(core): Improve light versioning support in declarative node design * refactor: add to other parameters Co-authored-by: Omar Ajoue --- packages/workflow/src/RoutingNode.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/workflow/src/RoutingNode.ts b/packages/workflow/src/RoutingNode.ts index 95f90d3a16..131e68431a 100644 --- a/packages/workflow/src/RoutingNode.ts +++ b/packages/workflow/src/RoutingNode.ts @@ -163,7 +163,7 @@ export class RoutingNode { i, runIndex, executeData, - { $credentials: credentials }, + { $credentials: credentials, $version: this.node.typeVersion }, false, ) as string; // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -179,7 +179,7 @@ export class RoutingNode { i, runIndex, executeData, - { $credentials: credentials }, + { $credentials: credentials, $version: this.node.typeVersion }, true, ) as string | NodeParameterValue; @@ -189,7 +189,7 @@ export class RoutingNode { i, runIndex, '', - { $credentials: credentials, $value: value }, + { $credentials: credentials, $value: value, $version: this.node.typeVersion }, ); this.mergeOptions(requestData, tempOptions); @@ -291,7 +291,7 @@ export class RoutingNode { itemIndex, runIndex, executeSingleFunctions.getExecuteData(), - { $response: responseData, $value: parameterValue }, + { $response: responseData, $value: parameterValue, $version: this.node.typeVersion }, false, ) as string; return inputData.slice(0, parseInt(maxResults, 10)); @@ -306,7 +306,7 @@ export class RoutingNode { itemIndex, runIndex, executeSingleFunctions.getExecuteData(), - { $response: responseData, $value: parameterValue }, + { $response: responseData, $value: parameterValue, $version: this.node.typeVersion }, false, ) as IDataObject, }, @@ -357,6 +357,7 @@ export class RoutingNode { $response: responseData, $responseItem: item.json, $value: parameterValue, + $version: this.node.typeVersion, }, true, ) as string; @@ -377,7 +378,7 @@ export class RoutingNode { itemIndex, runIndex, executeSingleFunctions.getExecuteData(), - { $response: responseData, $value: parameterValue }, + { $response: responseData, $value: parameterValue, $version: this.node.typeVersion }, false, ) as string; @@ -830,7 +831,7 @@ export class RoutingNode { itemIndex, runIndex, `${basePath}${nodeProperties.name}`, - { $value: optionValue }, + { $value: optionValue, $version: this.node.typeVersion }, ); this.mergeOptions(returnData, tempOptions); @@ -854,6 +855,7 @@ export class RoutingNode { itemIndex, runIndex, `${basePath}${nodeProperties.name}`, + { $version: this.node.typeVersion }, ); this.mergeOptions(returnData, tempOptions);