From 8cbe94708e632d6fd3366e46173e528f9f95c2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Fri, 25 Oct 2024 09:55:15 +0200 Subject: [PATCH] refactor: Every node class should have a distinct constructor name (no-changelog) (#11403) --- .../VectorStoreInMemory/VectorStoreInMemory.node.ts | 4 ++-- .../VectorStorePGVector/VectorStorePGVector.node.ts | 4 ++-- .../VectorStorePinecone/VectorStorePinecone.node.ts | 4 ++-- .../vector_store/VectorStoreQdrant/VectorStoreQdrant.node.ts | 4 ++-- .../VectorStoreSupabase/VectorStoreSupabase.node.ts | 4 ++-- .../nodes/vector_store/VectorStoreZep/VectorStoreZep.node.ts | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.ts b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.ts index fecf8d163a..cbd2cef75a 100644 --- a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.ts @@ -19,7 +19,7 @@ const insertFields: INodeProperties[] = [ }, ]; -export const VectorStoreInMemory = createVectorStoreNode({ +export class VectorStoreInMemory extends createVectorStoreNode({ meta: { displayName: 'In-Memory Vector Store', name: 'vectorStoreInMemory', @@ -56,4 +56,4 @@ export const VectorStoreInMemory = createVectorStoreNode({ void vectorStoreInstance.addDocuments(`${workflowId}__${memoryKey}`, documents, clearStore); }, -}); +}) {} diff --git a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.ts b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.ts index 0c9a148bec..8336958cc5 100644 --- a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.ts @@ -212,7 +212,7 @@ class ExtendedPGVectorStore extends PGVectorStore { } } -export const VectorStorePGVector = createVectorStoreNode({ +export class VectorStorePGVector extends createVectorStoreNode({ meta: { description: 'Work with your data in Postgresql with the PGVector extension', icon: 'file:postgres.svg', @@ -308,4 +308,4 @@ export const VectorStorePGVector = createVectorStoreNode({ await PGVectorStore.fromDocuments(documents, embeddings, config); }, -}); +}) {} diff --git a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.ts b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.ts index 85509a6287..d153979ef4 100644 --- a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.ts @@ -49,7 +49,7 @@ const insertFields: INodeProperties[] = [ }, ]; -export const VectorStorePinecone = createVectorStoreNode({ +export class VectorStorePinecone extends createVectorStoreNode({ meta: { displayName: 'Pinecone Vector Store', name: 'vectorStorePinecone', @@ -132,4 +132,4 @@ export const VectorStorePinecone = createVectorStoreNode({ pineconeIndex, }); }, -}); +}) {} diff --git a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.ts b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.ts index 5568243418..0b5859e0bc 100644 --- a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.ts @@ -78,7 +78,7 @@ const retrieveFields: INodeProperties[] = [ }, ]; -export const VectorStoreQdrant = createVectorStoreNode({ +export class VectorStoreQdrant extends createVectorStoreNode({ meta: { displayName: 'Qdrant Vector Store', name: 'vectorStoreQdrant', @@ -134,4 +134,4 @@ export const VectorStoreQdrant = createVectorStoreNode({ await QdrantVectorStore.fromDocuments(documents, embeddings, config); }, -}); +}) {} diff --git a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.ts b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.ts index 0269a0cef2..549fcd5e7f 100644 --- a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.ts @@ -39,7 +39,7 @@ const retrieveFields: INodeProperties[] = [ const updateFields: INodeProperties[] = [...insertFields]; -export const VectorStoreSupabase = createVectorStoreNode({ +export class VectorStoreSupabase extends createVectorStoreNode({ meta: { description: 'Work with your data in Supabase Vector Store', icon: 'file:supabase.svg', @@ -109,4 +109,4 @@ export const VectorStoreSupabase = createVectorStoreNode({ } } }, -}); +}) {} diff --git a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.ts b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.ts index d041b43d6b..184b720d31 100644 --- a/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.ts @@ -44,7 +44,7 @@ const retrieveFields: INodeProperties[] = [ }, ]; -export const VectorStoreZep = createVectorStoreNode({ +export class VectorStoreZep extends createVectorStoreNode({ meta: { displayName: 'Zep Vector Store', name: 'vectorStoreZep', @@ -130,4 +130,4 @@ export const VectorStoreZep = createVectorStoreNode({ throw new NodeOperationError(context.getNode(), error as Error, { itemIndex }); } }, -}); +}) {}