diff --git a/README.md b/README.md index 9f53470..06ea132 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Before you begin, install the following on your development machine: ### Required -- **[Node.js](https://nodejs.org/)** (v20 or higher) and npm +- **[Node.js](https://nodejs.org/)** (v22 or higher) and npm - Linux/Mac/WSL: Install via [nvm](https://github.com/nvm-sh/nvm) - Windows: Follow [Microsoft's NodeJS guide](https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows) - **[git](https://git-scm.com/downloads)** @@ -228,7 +228,7 @@ Run `npm run lint:fix` to automatically fix most common issues. For remaining er ### TypeScript errors -Make sure you're using Node.js v20 or higher and have run `npm install` to get all type definitions. +Make sure you're using Node.js v22 or higher and have run `npm install` to get all type definitions. ## Resources diff --git a/nodes/Example/Example.node.ts b/nodes/Example/Example.node.ts index 38102a9..fb5e019 100644 --- a/nodes/Example/Example.node.ts +++ b/nodes/Example/Example.node.ts @@ -4,7 +4,7 @@ import type { INodeType, INodeTypeDescription, } from 'n8n-workflow'; -import { NodeConnectionType, NodeOperationError } from 'n8n-workflow'; +import { NodeConnectionTypes, NodeOperationError } from 'n8n-workflow'; export class Example implements INodeType { description: INodeTypeDescription = { @@ -17,8 +17,8 @@ export class Example implements INodeType { defaults: { name: 'Example', }, - inputs: [NodeConnectionType.Main], - outputs: [NodeConnectionType.Main], + inputs: [NodeConnectionTypes.Main], + outputs: [NodeConnectionTypes.Main], usableAsTool: true, properties: [ // Node properties which the user gets displayed and diff --git a/nodes/GithubIssues/GithubIssues.node.ts b/nodes/GithubIssues/GithubIssues.node.ts index b2c5114..9965864 100644 --- a/nodes/GithubIssues/GithubIssues.node.ts +++ b/nodes/GithubIssues/GithubIssues.node.ts @@ -1,4 +1,4 @@ -import { NodeConnectionType, type INodeType, type INodeTypeDescription } from 'n8n-workflow'; +import { NodeConnectionTypes, type INodeType, type INodeTypeDescription } from 'n8n-workflow'; import { issueDescription } from './resources/issue'; import { issueCommentDescription } from './resources/issueComment'; import { getRepositories } from './listSearch/getRepositories'; @@ -18,8 +18,8 @@ export class GithubIssues implements INodeType { name: 'GitHub Issues', }, usableAsTool: true, - inputs: [NodeConnectionType.Main], - outputs: [NodeConnectionType.Main], + inputs: [NodeConnectionTypes.Main], + outputs: [NodeConnectionTypes.Main], credentials: [ { name: 'githubIssuesApi', diff --git a/package.json b/package.json index 01a9f57..66b8c45 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "n8n-community-node-package" ], "author": { - "name": "Elias Meire", - "email": "elias@meire.dev" + "name": "", + "email": "" }, "repository": { "type": "git",