mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-27 12:22:16 -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,
|
i,
|
||||||
runIndex,
|
runIndex,
|
||||||
executeData,
|
executeData,
|
||||||
{ $credentials: credentials },
|
{ $credentials: credentials, $version: this.node.typeVersion },
|
||||||
false,
|
false,
|
||||||
) as string;
|
) as string;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
@ -179,7 +179,7 @@ export class RoutingNode {
|
||||||
i,
|
i,
|
||||||
runIndex,
|
runIndex,
|
||||||
executeData,
|
executeData,
|
||||||
{ $credentials: credentials },
|
{ $credentials: credentials, $version: this.node.typeVersion },
|
||||||
true,
|
true,
|
||||||
) as string | NodeParameterValue;
|
) as string | NodeParameterValue;
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ export class RoutingNode {
|
||||||
i,
|
i,
|
||||||
runIndex,
|
runIndex,
|
||||||
'',
|
'',
|
||||||
{ $credentials: credentials, $value: value },
|
{ $credentials: credentials, $value: value, $version: this.node.typeVersion },
|
||||||
);
|
);
|
||||||
|
|
||||||
this.mergeOptions(requestData, tempOptions);
|
this.mergeOptions(requestData, tempOptions);
|
||||||
|
@ -291,7 +291,7 @@ export class RoutingNode {
|
||||||
itemIndex,
|
itemIndex,
|
||||||
runIndex,
|
runIndex,
|
||||||
executeSingleFunctions.getExecuteData(),
|
executeSingleFunctions.getExecuteData(),
|
||||||
{ $response: responseData, $value: parameterValue },
|
{ $response: responseData, $value: parameterValue, $version: this.node.typeVersion },
|
||||||
false,
|
false,
|
||||||
) as string;
|
) as string;
|
||||||
return inputData.slice(0, parseInt(maxResults, 10));
|
return inputData.slice(0, parseInt(maxResults, 10));
|
||||||
|
@ -306,7 +306,7 @@ export class RoutingNode {
|
||||||
itemIndex,
|
itemIndex,
|
||||||
runIndex,
|
runIndex,
|
||||||
executeSingleFunctions.getExecuteData(),
|
executeSingleFunctions.getExecuteData(),
|
||||||
{ $response: responseData, $value: parameterValue },
|
{ $response: responseData, $value: parameterValue, $version: this.node.typeVersion },
|
||||||
false,
|
false,
|
||||||
) as IDataObject,
|
) as IDataObject,
|
||||||
},
|
},
|
||||||
|
@ -357,6 +357,7 @@ export class RoutingNode {
|
||||||
$response: responseData,
|
$response: responseData,
|
||||||
$responseItem: item.json,
|
$responseItem: item.json,
|
||||||
$value: parameterValue,
|
$value: parameterValue,
|
||||||
|
$version: this.node.typeVersion,
|
||||||
},
|
},
|
||||||
true,
|
true,
|
||||||
) as string;
|
) as string;
|
||||||
|
@ -377,7 +378,7 @@ export class RoutingNode {
|
||||||
itemIndex,
|
itemIndex,
|
||||||
runIndex,
|
runIndex,
|
||||||
executeSingleFunctions.getExecuteData(),
|
executeSingleFunctions.getExecuteData(),
|
||||||
{ $response: responseData, $value: parameterValue },
|
{ $response: responseData, $value: parameterValue, $version: this.node.typeVersion },
|
||||||
false,
|
false,
|
||||||
) as string;
|
) as string;
|
||||||
|
|
||||||
|
@ -830,7 +831,7 @@ export class RoutingNode {
|
||||||
itemIndex,
|
itemIndex,
|
||||||
runIndex,
|
runIndex,
|
||||||
`${basePath}${nodeProperties.name}`,
|
`${basePath}${nodeProperties.name}`,
|
||||||
{ $value: optionValue },
|
{ $value: optionValue, $version: this.node.typeVersion },
|
||||||
);
|
);
|
||||||
|
|
||||||
this.mergeOptions(returnData, tempOptions);
|
this.mergeOptions(returnData, tempOptions);
|
||||||
|
@ -854,6 +855,7 @@ export class RoutingNode {
|
||||||
itemIndex,
|
itemIndex,
|
||||||
runIndex,
|
runIndex,
|
||||||
`${basePath}${nodeProperties.name}`,
|
`${basePath}${nodeProperties.name}`,
|
||||||
|
{ $version: this.node.typeVersion },
|
||||||
);
|
);
|
||||||
|
|
||||||
this.mergeOptions(returnData, tempOptions);
|
this.mergeOptions(returnData, tempOptions);
|
||||||
|
|
Loading…
Reference in a new issue