React Flow - A highly customizable React library for building node-based editors and interactive flow charts.
Last release 2 days ago
25 Aug 2026
Release timing varies
gaps range from 8 days to 3 months
Nearly every release is documented
notes for 54 of 55 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
84 releases · first in 2024
Release timeline
84 releases since 2024Releases
- 12.11.525 Aug 2026
- 12.11.425 Aug 2026
- 12.11.312 Aug 2026
Release notes
Open source →Patch Changes
-
#5902
393d951- Allow middle-mouse viewport panning to start from a selection rectangle. -
#5889
ff126a0- Fixextent: 'parent'not immediately resolving when parent haswidthorinitialWidth. -
#5947
2ba040f- Use correctnodeExtentfor internalsetNodes. -
#5918
c5d7442- Fix selection box appearing when dragging the pane via touch. Prefer touch panning over drag selection whenselectionOnDragis combined with mouse-button-specificpanOnDragsettings. -
#5922
392da00- AllowControlto activate pane panning with a primary-button drag. -
#5929
4c5d7d2- Allow key combinations of three or more keys (e.g.'Meta+Shift+s') foruseKeyPress. -
#5938
91a052f- Fix<Background />pattern offset miscalculation. -
Updated dependencies [
393d951,ff126a0,e5d86bd,392da00]:- @xyflow/[email protected]
-
- 12.11.26 Jul 2026
Release notes
Open source →Patch Changes
-
#5825
5072914- Only create anXYDraginstance for draggable nodes. -
#5847
742860c- Stop theMiniMapfrom re-rendering on every store update. -
#5846
17c64a1- Apply the viewport pan/zoom transform imperatively so theViewportcomponent only renders once. -
Updated dependencies [
c707267,0c0cebc,56cf3b0,a01bb6b,9b3f390,cdfcbeb]:- @xyflow/[email protected]
-
- 12.11.122 Jun 2026
Release notes
Open source →Patch Changes
-
#5815
87da45c- FixFinalConnectionStatetype so it preserves the discriminated union. -
#5824
6b1dac5- Do not fire on pane click when connection ends on pane -
#5818
4ddc2d8- Provide the shared handle config (connectOnClick,noPanClassName,rfId) through context instead of subscribing to the store in everyHandle, so a store update no longer runs a selector once per handle -
#5817
8df250b- Reduce per-handle work on store updates by returning a shared connection state while no connection is in progress. -
#5822
a6249de- Return stable reference for edge position when connected node gets deleted -
Updated dependencies [
ceb8604,87da45c]:- @xyflow/[email protected]
-
- 12.11.01 Jun 2026
Release notes
Open source →12.11.0
Minor Changes
- #5677
e6661de- AddautoPanOnSelectionto auto-pan when user drags a selection close to the edge of the viewport.
Patch Changes
-
#5791
732c8eb- Adds a type error whenhandleIdis used withouthandleTypeinuseNodeConnections -
#5793
c5c853d- Dev Warnings now use library-specific messaging with the correct documentation links. -
#5755
88737f9- Add@types/reactand@types/react-domas optional peer dependencies to prevent issues with pnpm strict mode (hoist: false) -
#5784
7055140- Fix node resizing possible beyond absolute extents -
#5769
ad4d547- UseuseEffectfor StoreUpdater to restore previous behaviour -
Updated dependencies [
732c8eb,c5c853d,e6661de,737194d,40660cd,4806e7c,7055140]:- @xyflow/[email protected]
- #5677
- 12.10.227 Mar 2026
Release notes
Open source →Patch Changes
-
#5735
a6c938fb2Thanks @nvie! - Allowtypefield to be missing inBuiltInNode(notypefield is the same astype: "default") -
#5722
8c9b7e726Thanks @dfblhmm! - AddsnapGridtoscreenToFlowPositionoptions -
#5723
82249517aThanks @moklick! - Pass options to useReactFlow/useSvelteFlow viewport helper functions correctly -
#5733
64115cd08Thanks @AlaricBaraou! - Fix empty store during ReactFlow remount by reordering StoreUpdater before GraphView and using layout effects -
#5727
dd54e86b9Thanks @solastley! - Ensure visual nodes selection state is cleared when zero selected nodes remain in the flow -
Updated dependencies [
4a278dbbf]:- @xyflow/[email protected]
-
- 12.10.119 Feb 2026
Release notes
Open source →Patch Changes
-
#5704
c91d3d022Thanks @peterkogo! - KeeponConnectEndandisValidConnectionup to date in an ongoing connection -
#5687
2624479adThanks @vkrol! - Optimize zooming performance when panOnScroll mode is enabled -
#5682
7b6e46ce1Thanks @artemtam! - Prevent unnecessary updates when selectNodesOnDrag = false -
#5703
ce6c869dfThanks @peterkogo! - Improve return type of useNodesData. Now you can narrow down the data type by checking the node type. -
#5692
49646858fThanks @moklick! - Handle undefined node in mini map -
#5684
382c654c3Thanks @ysds! - Consolidate drag handler effects in useDrag to fix programmatic selection issues -
Updated dependencies [
ce6c869df]:- @xyflow/[email protected]
-
- 12.10.04 Dec 2025
Release notes
Open source →Minor Changes
-
#5637
0c7261a6dThanks @moklick! - AddzIndexModeto control how z-index is calculated for nodes and edges -
#5484
a523919d6Thanks @peterkogo! - Addexperimental_useOnNodesChangeMiddlewarehook
Patch Changes
-
#5629
9030fab2dThanks @AlaricBaraou! - Prevent unnecessary re-render inFlowRenderer -
#5592
38dbf41c4Thanks @svilen-ivanov-kubit! - Always create a new measured object in apply changes. -
#5635
2d7fa40e2Thanks @tornado-softwares! - Update an ongoing connection when user moves node with keyboard. -
Updated dependencies [
0c7261a6d,8598b6bc2,2d7fa40e2]:- @xyflow/[email protected]
-
- 12.9.313 Nov 2025
Release notes
Open source →Patch Changes
-
#5621
c1304dba7Thanks @moklick! - SetpaneClickDistancedefault value to1. -
#5578
00bcb9f5fThanks @peterkogo! - Pass current pointer position to connection -
Updated dependencies [
00bcb9f5f]:- @xyflow/[email protected]
-
- 12.9.230 Oct 2025
Release notes
Open source → - 12.9.128 Oct 2025
Release notes
Open source →Patch Changes
-
#5572
5ec0cac7fThanks @peterkogo! - Fix onPaneClick events being suppressed when selectionOnDrag=true -
Updated dependencies [
5ec0cac7f]:- @xyflow/[email protected]
-
- 12.9.020 Oct 2025
Release notes
Open source →Minor Changes
-
#5544
c17b49f4cThanks @0x0f0f0f! - AddEdgeToolbarcomponent -
#5550
6ffb9f790Thanks @peterkogo! - Prevent child nodes of different parents from overlapping -
#5551
6bb64b3edThanks @moklick! - Allow to start a selection above a node
Patch Changes
-
#5531
fe2a45ed2Thanks @Sec-ant! - Addtypeproperty toEdgePropsto matchNodePropsbehavior -
#5528
d50a963cdThanks @peterkogo! - LetNodeResizerprops change during ongoing resize -
#5530
3b9951e42Thanks @peterkogo! - Improve performance of adding nodes & edges -
#5547
1c8961207Thanks @moklick! - Always callonMoveEndwhenonMoveStartwas called -
Updated dependencies [
c17b49f4c,6ffb9f790,d50a963cd,6bb64b3ed,8a9ee2d83,1c8961207]:- @xyflow/[email protected]
-
- 12.8.626 Sept 2025
Nothing published for this version
- 12.8.517 Sept 2025
Release notes
Open source →Patch Changes
-
#5480
f869808e3Thanks @peterkogo! - Prevent multi-touch events while making a new connection -
#5482
56381ae54Thanks @peterkogo! - Make isNodeIntersecting behave the same as getIntersectingNodes -
#5509
b6ae4cc11Thanks @moklick! - Prevent calling onResizeEnd if node was not resized -
#5511
d891e5ff1Thanks @peterkogo! - Fix regression: elevate edges if connected nodes are selected -
#5497
eba087e8bThanks @peterkogo! - Skip eagerly rendering nodes when node dimensions and handles are predefined -
#5455
d2df1dcedThanks @Sec-ant! - Fix warning when display is set to none on the wrapper div -
Updated dependencies [
f869808e3,2a35c65a0,b6ae4cc11,d891e5ff1,eba087e8b]:- @xyflow/[email protected]
-
- 12.8.420 Aug 2025
- 12.8.313 Aug 2025
Release notes
Open source →Patch Changes
-
#5420
c453ee3fThanks @ShlomoGalle! - OmitdefaultValuefromNode'sdomAttributesto fix type incompatibility when usingWritableDraft -
#5436
def02b96Thanks @moklick! - Prevent a 0 added to the markup for edges when interactionWidth is 0 -
#5444
9aca4839Thanks @paula-stacho! - Export MiniMapNode -
#5443
144f8febThanks @moklick! - Use 1 as the default for interactive Minimap zoom step -
#5428
f18e9856Thanks @Karl255! - Fix clicking on detached handle elements not initiating drawing of connections -
#5453
7a088817Thanks @moklick! - Snap selection instead of separate nodes when snap grid is enabled -
#5415
6838df9dThanks @moklick! - Allow strings and enums for existing marker types -
#5444
9192fd7dThanks @paula-stacho! - Export MiniMapNode -
#5448
f5fe1d71Thanks @moklick! - Use correct HandleConnection type for Handle onConnect -
#5419
daa33fb3Thanks @0x0f0f0f! - Make arrow heads markers fallback to --xy-edge-stroke CSS variable when passing null as marker color -
Updated dependencies [
144f8feb,f18e9856,7a088817,6838df9d,fddbb7de,f5fe1d71,daa33fb3]:- @xyflow/[email protected]
-
- 12.8.211 Jul 2025
Release notes
Open source →Patch Changes
-
#5384
18514e11Thanks @Sec-ant! - Fix node fallback to respect custom default node type when unknown node type is encountered -
#5394
21db22d4Thanks @moklick! - Return intersections correctly of passed node is bigger than intersecting nodes -
#5384
ab05d008Thanks @Sec-ant! - Fix edge fallback to respect custom default edge type when unknown edge type is encountered. -
#5376
f0ce2c87Thanks @kennyjwilli! - Add stepPosition param to step edge -
Updated dependencies [
864d4188,f0ce2c87]:- @xyflow/[email protected]
-
- 12.8.127 Jun 2025
- 12.8.027 Jun 2025
Release notes
Open source →Minor Changes
-
#5361
90e9247aThanks @peterkogo! - Render edges above nodes when they are within a subflow -
#5344
2441bf8dThanks @moklick! - Add connectionDragThreshold prop
Patch Changes
-
- 12.7.123 Jun 2025
Release notes
Open source →Patch Changes
-
#5333
3d7e8b6bThanks @peterkogo! - Add missing type exports -
#5353
4dd3ae66Thanks @aidanbarrett! - Add missingFinalConnectionStateparameter toonReconnectEndprop types -
Updated dependencies [
c4312d89,3d7e8b6b,9c61000c]:- @xyflow/[email protected]
- 12.7.011 Jun 2025
Release notes
Open source →Minor Changes
-
#5299
848b486bThanks @printerscanner! - AddariaRoleprop to nodes and edges -
#5276
6ce44a05Thanks @moklick! - Add aneaseandinterpolateoption to all function that alter the viewport -
#5277
f59730ceThanks @printerscanner! - AddariaLabelConfigprop for customizing UI text like aria labels and descriptions. -
#5317
09458f52Thanks @moklick! - AdddomAttributesoption for nodes and edges -
#5326
050b511cThanks @peterkogo! - Prevent NodeResizer controls to become too small when zooming out -
#5308
09fab679Thanks @printerscanner! - Focus nodes on tab if not within the viewport and add a new propautoPanOnNodeFocus
Patch Changes
-
- 12.6.415 May 2025
Release notes
Open source →Patch Changes
-
#5263
e4a8d4b4Thanks @moklick! - Multi select key works when input is focused -
#5266
77107453Thanks @peterkogo! - Fix connection snapping for handles larger than connectionRadius -
Updated dependencies [
77107453]:- @xyflow/[email protected]
-
- 12.6.314 May 2025
Release notes
Open source →Patch Changes
-
#5259
77bf79c4Thanks @peterkogo! - Fix background-color css variable fallback. -
Updated dependencies [
77bf79c4]:- @xyflow/[email protected]
-
- 12.6.214 May 2025
Release notes
Open source →Patch Changes
-
#5257
b1314be0Thanks @moklick! - Use OnReconnect from system -
Updated dependencies [
a95f0e2f]:- @xyflow/[email protected]
-
- 12.6.112 May 2025
- 12.6.017 Apr 2025
- 12.5.614 Apr 2025
Release notes
Open source →Patch Changes
-
#5212
0f43b8eaThanks @moklick! - Add polyfill forPromise.withResolvers -
#5192
fc241253Thanks @peterkogo! - Optimize performance of nodesInitialized -
#5196
7f902db4Thanks @moklick! - Hide edge marker and attribution for screenreaders -
#5213
78782c16Thanks @moklick! - Do not trigger selection events if elementsSelectable=false -
#5191
e5735b51Thanks @peterkogo! - Fix legacy padding being slightly larger than before -
Updated dependencies [
0f43b8ea,fc241253,98fe23c7,e5735b51]:- @xyflow/[email protected]
-
- 12.5.57 Apr 2025
Release notes
Open source →Patch Changes
-
#5172
e6139a00Thanks @dimaMachina! - Improve TSDoc comments foruseNodesData,useReactFlow,isNodeandisEdge -
#5165
d536abeaThanks @dimaMachina! - Improve TSDoc comments foruseViewport,useUpdateNodeInternals,useOnSelectionChange,useNodesInitializedhooks andUseOnSelectionChangeOptions,UseNodesInitializedOptionstypes -
#5171
62d87409Thanks @dimaMachina! - Improve TSDoc comments forReactFlowProps -
#5154
d0237166Thanks @ibagov! - Improve TSDoc comments foronNodesChange -
#5174
ae585d13Thanks @dimaMachina! - Improve TSDoc comments forBaseEdgeProps -
#5159
0c1436d6Thanks @dimaMachina! - Improve TSDoc comments foruseConnectionhook -
#5167
934ea42dThanks @dimaMachina! - Improve TSDoc comments foruseEdges,useInternalNode,useNodesanduseNodeIdhooks -
#5163
ab800054Thanks @dimaMachina! - Improve TSDoc comments foruseNodesStateanduseEdgesStatehook -
#5160
b357f43dThanks @dimaMachina! - Improve TSDoc comments fortype UseHandleConnectionsParamsanduseHandleConnectionshook -
#5162
29f4aeb2Thanks @dimaMachina! - Improve TSDoc comments fortype UseNodeConnectionsParamsanduseNodeConnectionshook -
#5164
09021550Thanks @dimaMachina! - Improve TSDoc comments fortype UseOnViewportChangeOptionsanduseOnViewportChangehook -
#5166
701ad17eThanks @dimaMachina! - Improve TSDoc comments foruseStorehook -
#5170
eb2a33c6Thanks @dimaMachina! - Improve TSDoc comments forinterface GetSimpleBezierPathParamsandgetSimpleBezierPath -
#5161
c4efe749Thanks @dimaMachina! - Improve TSDoc comments fortype UseKeyPressOptionsanduseKeyPresshook -
Updated dependencies [
02a3b746,cbe305e1,1f671bd4,aaebc462,6ec942fc]:- @xyflow/[email protected]
-
- 12.5.42 Apr 2025
Release notes
Open source →Patch Changes
-
#5134
7acab1e1Thanks @dimaMachina! - Adjust@defaultTSDoc tags forBackgroundProps -
#5135
754a1671Thanks @dimaMachina! - Improve TSDoc comments forNodeResizerPropsandResizeControlProps -
#5140
82e6860eThanks @dimaMachina! - Improve TSDoc comments forMiniMapPropsandPanelProps -
#5147
f819005bThanks @moklick! - Pass dimensions to final resize change event -
#5143
b1e1cc11Thanks @dimaMachina! - Improve TSDoc comments forReactFlowInstanceandGeneralHelpers -
#5138
d4eb8d52Thanks @dimaMachina! - Improve TSDoc comments forViewportHelperFunctionsandNodeToolbarProps -
#5144
5a1ce56eThanks @dimaMachina! - ComparenodeStrokeWidthwithnumber, not withstringwithinMiniMap -
#5141
06cf4c10Thanks @dimaMachina! - Improve TSDoc comments forEdge,BaseEdgePropsandConnectionLineComponentProps -
Updated dependencies [
f819005b,24a1bc89,36657cd6,89de9ca8,2ac6e155,f0f378e5]:- @xyflow/[email protected]
-
- 12.5.31 Apr 2025
Release notes
Open source →Patch Changes
- #5132
75ab8942Thanks @peterkogo! - Fix fitView not working when onNodesChange is not defined.
- #5132
- 12.5.231 Mar 2025
Release notes
Open source →Patch Changes
-
#5124
b76f7f9eThanks @bjornosal! - Export NodeConnection type -
#5127
3079c2c9Thanks @peterkogo! - FixfitViewnot working when returning early inonNodesChange.
-
- 12.5.127 Mar 2025
Release notes
Open source → - 12.5.027 Mar 2025
Release notes
Open source →Minor Changes
- #5067
acba901dThanks @peterkogo! - You can now express paddings in fitViewOptions as pixels ('30px'), as viewport percentages ('20%') and define different paddings for each side.
Patch Changes
-
#5109
0cdda42cThanks @dimaMachina! - fix: improve TSDoc comments forBackgroundProps -
#5059
065ff89dThanks @bcakmakoglu! - Prevent onPaneClick when connection is in progress. Closes #5057 -
#5110
7eb6eb07Thanks @dimaMachina! - fix: improve TSDoc comments forEdgeLabelOptionsandBaseEdgeProps -
#5113
bce8542dThanks @dimaMachina! - fix: improve TSDoc comments forControlProps -
#5116
58942154Thanks @dimaMachina! - fix: improve TSDoc comments forNodeToolbarProps -
#5114
ba2bfbb4Thanks @dimaMachina! - feat: exportEdgeLabelRendererProps -
#5107
c5a8c237Thanks @moklick! - Add TSDoc annotations for exported edges -
#5067
cb685281Thanks @peterkogo! - Fix fitView not working immediately after adding new nodes -
#5115
c2154557Thanks @dimaMachina! - fix: improve TSDoc comments forEdgeLabelOptionsandEdgeTextProps -
#5093
65825e89Thanks @moklick! - Hidden nodes are not displayed in the mini map anymore -
#5090
8da1748aThanks @moklick! - Release key even when an inout field is focused -
Updated dependencies [
5d15b01b,cb685281,a79f30b3]:- @xyflow/[email protected]
- #5067
- 12.4.425 Feb 2025
Release notes
Open source →Patch Changes
-
#5052
99dd7d35Thanks @moklick! - Show an error if user drags uninitialized node -
#5042
2fe0e850Thanks @moklick! - Allow click connections when target setsisConnectableStart -
#5047
b3bf5693Thanks @moklick! - Pass generics to OnSelectionChangeFunc so that users can type it correctly -
#5053
25fb45b5Thanks @moklick! - Remove incorrect deprecation warning -
#5033
7b4a81fbThanks @dimaMachina! - lint: useReact.JSXtype instead of the deprecated globalJSXnamespace -
#5043
0292ad20Thanks @moklick! - Use current expandParent value on drag to be able to update it while dragging -
#5032
5867bba8Thanks @dimaMachina! - lint: remove unnecessary type assertions -
Updated dependencies [
99dd7d35]:- @xyflow/[email protected]
-
- 12.4.312 Feb 2025
Release notes
Open source →Patch Changes
-
#5010
6c121d42Thanks @moklick! - Add more TSDocs to components, hooks, utils funcs and types -
#4991
ea54d9bcThanks @waynetee! - Fix viewport shifting on node focus -
#5013
cde899c5Thanks @moklick! - PassNodeTypetype argument fromReactFlowPropstoconnectionLineComponentproperty. -
#5008
12d859feThanks @moklick! - Add package.json to exports -
#5012
4d3f19e8Thanks @moklick! - Add snapGrid option to screenToFlowPosition and set snapToGrid to false -
#5003
e8e0d684Thanks @dimaMachina! - repair lint command -
#4991
4c62f19bThanks @waynetee! - Prevent viewport shift after using Tab -
Updated dependencies [
6c121d42,4947029c,e8e0d684]:- @xyflow/[email protected]
-
- 12.4.221 Jan 2025
Release notes
Open source →Patch Changes
-
#4957
fe843982Thanks @peterkogo! - Narrow properties selected, selectable, deletable, draggable of NodeProps type to be required. -
Updated dependencies [
fe843982,e73ef09f]:- @xyflow/[email protected]
-
- 12.4.116 Jan 2025
Release notes
Open source →Patch Changes
-
#4949
592c7eafThanks @peterkogo! - Fix useNodeConnection hook not returning all connected edges. -
Updated dependencies [
592c7eaf]:- @xyflow/[email protected]
-
- 12.4.015 Jan 2025
Release notes
Open source →Minor Changes
- #4725
e10f53cfThanks @peterkogo! - Add useNodeConnections hook to track all connections to a node. Can be filtered by handleType and handleId.
Patch Changes
-
#4947
868aa3f3Thanks @moklick! - Export ResizeControlVariant correctly as a value. -
#4880
e2d849dcThanks @crimx! - Add type check for all event targets -
#4929
4947f683Thanks @peterkogo! - Optimize selections and take into account if edges connected to selected nodes are actually selectable. -
Updated dependencies [
e2d849dc,e10f53cf,4947f683]:- @xyflow/[email protected]
- #4725
- 12.3.69 Dec 2024
Release notes
Open source →Patch Changes
-
#4846
75017939Thanks @moklick! - Make it possible to use expandParent with immer and other immutable helpers -
#4865
2c4acc2bThanks @moklick! - Add group node to BuiltInNode type. Thanks @sjdemartini! -
#4877
9a8309daThanks @peterkogo! - Fix intersections for nodes with origins other than [0,0]. Thanks @gmvrpw! -
#4844
6f11e552Thanks @moklick! - Allow custom data-testid for ReactFlow component -
#4816
43aa52a8Thanks @moklick! - Type isValidConnection prop correctly by passing EdgeType -
#4855
106c2cf8Thanks @mhuggins! - Support passingpathelement attributes toBaseEdgecomponent. -
#4862
adf4fb4eThanks @bcakmakoglu! - Prevent default scrolling behavior when nodes or a selection is moved with an arrow key press. -
#4875
41d4743aThanks @peterkogo! - Prevent unnecessary rerenders of edges when resizing the flow. -
#4826
5f90acdaThanks @chrtze! - Forward ref of the div inside Panel components. -
Updated dependencies [
d60331e6]:- @xyflow/[email protected]
-
- 12.3.511 Nov 2024
Release notes
Open source →Patch Changes
-
#4789
358eb355Thanks @peterkogo! - Support key combinations which include '+' (e.g., 'Control++' resolves to the combination 'Control' and '+'). -
#4796
73402779Thanks @Aki-7! - Fix number of issues connected to batching node & edge updates. -
#4790
2fa9a920Thanks @peterkogo! - Fix node dragging & resizing while zooming on flow that does not cover whole browser window. -
#4782
323e1b35Thanks @peterkogo! - Fix node intersections in nested flow. -
Updated dependencies [
2fa9a920,323e1b35]:- @xyflow/[email protected]
-
- 12.3.431 Oct 2024
Release notes
Open source →Patch Changes
-
#4772
7f670ab0Thanks @mistic! - Splits exports field in package.json to support an explicit resolution for browser, node and default to resolve issues with webpack esm module resolution. -
Updated dependencies [
7f670ab0]:- @xyflow/[email protected]
-
- 12.3.330 Oct 2024
Release notes
Open source →Patch Changes
-
#4755
005ae1c0Thanks @peterkogo! - Add module to exports in package.json. This should resolve possible issues with Webpack ESM Module Resolution. -
#4730
2c590b90Thanks @peterkogo! - Fixed rare crash while dragging -
Updated dependencies [
005ae1c0,2c590b90]:- @xyflow/[email protected]
-
- 12.3.210 Oct 2024
- 12.3.126 Sept 2024
Release notes
Open source →Patch Changes
-
#4670
b056564cThanks @peterkogo! - Fix initialfitViewnot working correctly fornodeOriginother than [0,0] -
#4670
b056564cThanks @peterkogo! - ImprovefitViewto respect clamped node positions based onnodeExtent -
#4653
02390f99Thanks @bcakmakoglu! - Calculate viewport dimensions infitViewinstead of using stored dimensions. Fixes #4652 -
Updated dependencies [
99ba64ac,b056564c]:- @xyflow/[email protected]
-
- 12.3.012 Sept 2024
Release notes
Open source →Minor Changes
- #4477
d5592e75Thanks @peterkogo! - AddgetNodesBoundstouseReactFlow/useSvelteFlowhook as the new recommended way of determining node bounds.
Patch Changes
-
#4630
4347269fThanks @moklick! - Fix<Minimap />only displaying nodes when providingonNodesChange. -
#4572
d9563505Thanks @peterkogo! - Improve handling of global and individualnodeExtents. Nodes will never render outside of specified extents. -
Updated dependencies [
d5592e75,d9563505]:- @xyflow/[email protected]
- #4477
- 12.2.14 Sept 2024
- 12.2.028 Aug 2024
Release notes
Open source →Minor Changes
- #4574
b65aed19Thanks @bcakmakoglu! - AddgetHandleConnectionshelper touseReactFlow&useSvelteFlow
Patch Changes
-
#4594
5138d90bThanks @peterkogo! - Fixed reconnecting edges with loose connectionMode -
#4603
12dbe125Thanks @moklick! - use correct index when using setNodes for inserting -
Updated dependencies [
5138d90b,12dbe125]:- @xyflow/[email protected]
- #4574
- 12.1.119 Aug 2024
Release notes
Open source →Patch Changes
-
#4568
c3e62782Thanks @peterkogo! - Only display grab cursor when panOnDrag is on left mouse button -
#4567
cc75c29fThanks @peterkogo! - Fix internal type of edges in store -
Updated dependencies [
c3e62782]:- @xyflow/[email protected]
-
- 12.1.015 Aug 2024
Release notes
Open source →Minor Changes
-
#4555
24e87e39Thanks @peterkogo! - Added final connection state as a function parameter to onReconnectEnd -
#4554
cca11ea1Thanks @peterkogo! - Added optional selector for useConnection hook -
#4549
99733c01Thanks @moklick! - feat(onConnectEnd): pass connectionState param
Patch Changes
-
#4550
41981970Thanks @moklick! - fix(fitView): only trigger for resize observer -
#4501
ec64b572Thanks @jeffgord! - fix(background): use offset prop correctly for dots variant -
#4548
692e6440Thanks @peterkogo! - Replaced algorithm used for searching close handles while connecting -
#4547
fdff601dThanks @moklick! - chore(react): re-export Handle type -
Updated dependencies [
b63a3734,24e87e39,692e6440,559d4926,4ecfd7e1,e7ef328f,99733c01]:- @xyflow/[email protected]
-
- 12.0.430 Jul 2024
Release notes
Open source →Patch Changes
-
#4480
aae526f4Thanks @peterkogo! - fix(dragging) nodeExtent breaks dragging nodes in subflows -
#4498
7a6e9e30Thanks @peterkogo! - fix(pane) only capture pointer after a valid selection has started, fixes #4492
-
- 12.0.318 Jul 2024
Release notes
Open source →Patch Changes
- Updated dependencies [
543c0939,89cd677b,c253c7c5]:- @xyflow/[email protected]
- Updated dependencies [
- 12.0.215 Jul 2024
- 12.0.110 Jul 2024
- 12.0.09 Jul 2024
Release notes
Open source →React Flow 12 is finally out! With a new package name
@xyflow/react!Main features
- SSR / SSG: you can define
width,heightandhandlesfor the nodes. This makes it possible to render a flow on the server and hydrate on the client: SSR guide- Details: In v11,
widthandheightwere set by the library as soon as the nodes got measured. This still happens, but we are now usingmeasured.widthandmeasured.heightto store this information. In the previous versions there was always a lot of confusion aboutwidthandheight. It’s hard to understand, that you can’t use it for passing an actual width or height. It’s also not obvious that those attributes get added by the library. We think that the new implementation solves both of the problems:widthandheightare optional attributes that can be used to define dimensions and the measured dimensions are stored inmeasured.
- Details: In v11,
- Reactive Flows: The new hooks
useHandleConnectionsanduseNodesDataand the newupdateNodeandupdateNodeDatafunctions can be used for managing the data flow between your nodes: computing flows guide- Details: Working with reactive flows is super common. You update node A and want to react on those changes in the connected node B. Until now everyone had to come up with a custom solution. With this version we want to change this and give you performant helpers to handle this. If you are excited about this, you can check out this example:
- Dark mode and css variables: React Flow now comes with a built-in dark mode, that can be toggled by using the new
colorModeprop (”light”, “dark” or “system”): dark mode example- Details: With this version we want to make it easier to switch between dark and light modes and give you a better starting point for dark flows. If you pass colorMode=”dark”, we add the class name “dark” to the wrapper and use it to adjust the styling. To make the implementation for this new feature easier on our ends, we switched to CSS variables for most of the styles. These variables can also be used in user land to customize a flow.
More features and updates
There is more! Besides the new main features, we added some minor things that were on our list for a long time. We also started to use TS docs for better docs. We already started to add some docs for some types and hooks which should improve the developer experience.
useConnectionhook: With this hook you can access the ongoing connection. For example, you can use it for colorizing handles styling a custom connection line based on the current start / end handles.- Controlled
viewport: This is an advanced feature. Possible use cases are to animate the viewport or round the transform for lower res screens for example. This features brings two new props:viewportandonViewportChange. ViewportPortalcomponent: This makes it possible to render elements in the viewport without the need to implement a custom node.onDeletehandler: We added a combined handler foronDeleteNodesandonDeleteEdgesto make it easier to react to deletions.onBeforeDeletehandler: With this handler you can prevent/ manage deletions.isValidConnectionprop: This makes it possible to implement one validation function for all connections. It also gets called for programmatically added edges.autoPanSpeedprop: For controlling the speed while auto panning.- Background component: add
patternClassNameprop to be able to style the background pattern by using a class name. This is useful if you want to style the background pattern with Tailwind for example. onMovecallback gets triggered for library-invoked viewport updates (like fitView or zoom-in)deleteElementsnow returns deleted nodes and deleted edges- add
originattribute for nodes - add
selectableattribute for edges - Node Resizer: child nodes don't move when the group is resized, extent and expand is recognized correctly
- Correct types for
BezierEdge,StepEdge,SmoothStepEdgeandStraightEdgecomponents - New edges created by the library only have
sourceHandleandtargetHandleattributes when those attributes are set. (We used to passsourceHandle: nullandtargetHandle: null) - Edges do not mount/unmount when their z-index change
- connection line knows about the target handle position so that the path is drawn correctly
nodeDragThresholdis 1 by default instead of 0- a better selection box usability (capture while dragging out of the flow)
- add
selectable,deletable,draggableandparentIdtoNodeProps - add a warning when styles not loaded
- SSR / SSG: you can define
- 12.0.0-next.289 Jul 2024pre-release
Nothing published for this version
- 12.0.0-next.278 Jul 2024pre-release
Nothing published for this version
- 12.0.0-next.264 Jul 2024pre-release
Nothing published for this version
- 12.0.0-next.251 Jul 2024pre-release
Nothing published for this version
- 12.0.0-next.2420 Jun 2024pre-release
Nothing published for this version