diff --git a/package-lock.json b/package-lock.json index 29839a83d2963..ce67dc5dcafce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "n8n", - "version": "0.168.2", + "version": "0.174.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "n8n", - "version": "0.168.2", + "version": "0.174.0", "dependencies": { "@babel/core": "^7.14.6", "@fontsource/open-sans": "^4.5.0", diff --git a/packages/cli/src/CredentialsHelper.ts b/packages/cli/src/CredentialsHelper.ts index c4278aaa6aa92..7707cd1a39228 100644 --- a/packages/cli/src/CredentialsHelper.ts +++ b/packages/cli/src/CredentialsHelper.ts @@ -342,6 +342,7 @@ export class CredentialsHelper extends ICredentialsHelper { decryptedDataOriginal as INodeParameters, true, false, + null, ) as ICredentialDataDecryptedObject; if (decryptedDataOriginal.oauthTokenData !== undefined) { @@ -436,8 +437,6 @@ export class CredentialsHelper extends ICredentialsHelper { // Add special database related data newCredentialsData.updatedAt = new Date(); - // TODO: also add user automatically depending on who is logged in, if anybody is logged in - // Save the credentials in DB const findQuery = { id: credentials.id, @@ -562,7 +561,9 @@ export class CredentialsHelper extends ICredentialsHelper { parameters: {}, name: 'Temp-Node', type: nodeType.description.name, - typeVersion: nodeType.description.version, + typeVersion: Array.isArray(nodeType.description.version) + ? nodeType.description.version.slice(-1)[0] + : nodeType.description.version, position: [0, 0], }; diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index 6dc23ed38e057..e8038b757255c 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -1298,6 +1298,7 @@ export async function getCredentials( !NodeHelpers.displayParameter( additionalData.currentNodeParameters || node.parameters, nodeCredentialDescription, + node, node.parameters, ) ) { diff --git a/packages/editor-ui/src/components/CollectionParameter.vue b/packages/editor-ui/src/components/CollectionParameter.vue index ae2dcbd2baf6d..b93e15987c41d 100644 --- a/packages/editor-ui/src/components/CollectionParameter.vue +++ b/packages/editor-ui/src/components/CollectionParameter.vue @@ -32,6 +32,7 @@