mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-26 03:52:23 -08:00
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 <krynble@gmail.com>
This commit is contained in:
parent
19e333e660
commit
1b320cd8c9
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue