Release 11.8.0
This is probably the last minor and hopefully also the last patch release for v11. In the next weeks we will focus on the xyflow branch and the upcoming v12 major release. This release comes with a lot of fixes that we wanted to do for a long time. We finally fixed some windows scroll related bugs (fast zooming, no horizontal pan on scroll) and smooth edge bugs (better label positions, weird layouts).
Important updates for Windows users
- default key for zoom activation and multi selection is "Control" instead of "Meta"
- you can pan horizontally when Shift is pressed (when
panOnScroll
is set) - we fixed the fast zooming bug when users pressed Control
Important note for Zustand users
If you are using Zustand, you need to update to v4.4.1 and follow the migration guide https://github.com/pmndrs/zustand/releases/tag/v4.4.0
Fixes
- #3286
ff85d908
- fix(selection): keep node positions when extent is reached - #3289
61d90578
- fix(onMoveEnd): falsely triggered on right click - #3307
fdddf43d
- fix(windows): allow horizontal pan with Shift + scroll Thanks @s-yadav - #3290
6e6bb674
- fix(panOnScroll): fire move events - #3293
bb1b9318
- fix(zoom): handle windows zoom with ctrl - #3279
ed4a0c1b
- fix(step-edge): edge path for horizontally or vertically aligned nodes - #3305
10a32239
- fix(step-edge): better default label positions - #3306
f9169108
- fix(key-press): mac issue keyup not triggered Thanks @VictorWinberg - #3301
8b3e8400
- fix(windows): more natural key defaults - #3294
de989bc6
- fix(node-click): handle deleted node Thanks @hayleigh-dot-dev
Minimap Updates
- #3283
1f4a2b52
- feat(minimap): addoffsetScale
prop Thanks @Elringus - #3284
327e54f5
- feat(minimap): add selected class name to minimap node Thanks @Elringus
Chore and Refactoring
- #3304
15742c00
- chore(zustand): use latest version - #3292
6255c4cf
- chore(pkg): add exports field for package.json - #3288
511ca769
- refactor(onError): use for node and edge type creation - #3285
e64e961a
- chore(a11y): always add role attribute to edge wrapper - chore(tests): use latest cypress version
- Updated dependencies [
15742c00
,10a32239
,fdddf43d
,6255c4cf
,ff85d908
,61d90578
,6e6bb674
,327e54f5
,1f4a2b52
,511ca769
,bb1b9318
,ed4a0c1b
,f9169108
,8b3e8400
,e64e961a
,de989bc6
]:- @reactflow/background@11.2.5
- @reactflow/controls@11.1.16
- @reactflow/core@11.8.0
- @reactflow/minimap@11.6.0
- @reactflow/node-resizer@2.1.2
- @reactflow/node-toolbar@1.2.4