From 7a00fe3520428f0e98803017e3082786453f0b4d Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 25 Feb 2025 11:03:14 +0100 Subject: [PATCH 1/2] chore(getNodeConnections): remove deprecation #5051 --- packages/react/src/types/instance.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/react/src/types/instance.ts b/packages/react/src/types/instance.ts index 85d66651..fce67ec5 100644 --- a/packages/react/src/types/instance.ts +++ b/packages/react/src/types/instance.ts @@ -203,7 +203,6 @@ export type GeneralHelpers HandleConnection[]; /** * Gets all connections to a node. Can be filtered by handle type and id. - * @deprecated use `getNodeConnections` instead * @param type - handle type 'source' or 'target' * @param handleId - the handle id (this is only needed if you have multiple handles of the same type, meaning you have to provide a unique id for each handle) * @param nodeId - the node id the handle belongs to @@ -219,7 +218,6 @@ export type GeneralHelpers NodeConnection[]; }; - /** * The `ReactFlowInstance` provides a collection of methods to query and manipulate * the internal state of your flow. You can get an instance by using the From 25fb45b5e9d6da391b9aff652b8e6e34eaf757fc Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 25 Feb 2025 11:04:16 +0100 Subject: [PATCH 2/2] chore(changeset): add --- .changeset/red-geese-cry.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/red-geese-cry.md diff --git a/.changeset/red-geese-cry.md b/.changeset/red-geese-cry.md new file mode 100644 index 00000000..f959708f --- /dev/null +++ b/.changeset/red-geese-cry.md @@ -0,0 +1,5 @@ +--- +'@xyflow/react': patch +--- + +Remove incorrect deprecation warning