Skip to content

Commit a9d236a

Browse files
committed
add info to elements and changelog about future versions
1 parent c3300e7 commit a9d236a

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
88

99
### Added
1010

11-
- added support for `react-flow` v12 for `NodeContent` component, added v12-related components: `EdgeDefaultV12`, `NodeDefaultV12`, `EdgeDefs`
11+
- added support for React Flow v12
12+
- `<NodeContent />` can used with `flowVersion="v12"`
13+
- more v12-only components: `EdgeDefaultV12`, `NodeDefaultV12`, `EdgeDefs`
14+
- they may be removed in future version when v12 elements are available direcly via `<EdgeDefault />` and `<NodeDefault />`
15+
16+
### Deprecated
17+
18+
- `<EdgeDefaultV12 />` and `<NodeDefaultV12 />` will be removed when React Flow v12 is supported directly by `<EdgeDefault />` and `<NodeDefault />`
19+
- `flowVersion`: `legacy` and `next` will be removed/replaced by `v##` values
1220

1321
## [24.2.0] - 2025-06-04
1422

src/extensions/react-flow/edges/EdgeDefaultV12.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ export type EdgeDefaultV12DataProps = Record<string, unknown> & {
4141
edgeSvgProps?: React.SVGProps<SVGGElement>;
4242
};
4343

44+
/**
45+
* This element cannot be used directly, it must be connected via a `edgeTypes` definition.
46+
* @see https://reactflow.dev/docs/api/nodes/
47+
* @deprecated (v26) will be removed when `EdgeDefault` supports v12 directly
48+
*/
4449
export const EdgeDefaultV12 = memo(
4550
({
4651
id,

src/extensions/react-flow/nodes/NodeDefaultV12.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export interface NodeDefaultProps<NODE_DATA, NODE_CONTENT_PROPS = any> extends R
1414
}
1515

1616
/**
17-
* The `NodeDefault` element manages the display of React-Flow nodes.
18-
* This element cannot be used directly, it must be connected via a `nodeTypes` definition and all properties need to be routed through the `elements` property items inside the `ReactFlow` container.
17+
* This element cannot be used directly, it must be connected via a `nodeTypes` definition.
1918
* @see https://reactflow.dev/docs/api/nodes/
19+
* @deprecated (v26) will be removed when `NodeDefault` supports v12 directly
2020
*/
2121
export const NodeDefaultV12 = memo((node: NodeDefaultProps<any>) => {
2222
const {

src/extensions/react-flow/versionsupport.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useStore as useStoreFlowV12 } from "@xyflow/react";
55
export interface ReacFlowVersionSupportProps {
66
/**
77
* Spevifies the context of the react flow renderer version that is used for the component.
8+
* @deprecated (v25) `legacy` and `next` will be removed/replaced by `v##` values in future versions
89
*/
910
flowVersion?: "v12" | "legacy" | "next" | "none";
1011
}

0 commit comments

Comments
 (0)