Update dependency @xyflow/svelte to v2 #83
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/xyflow-svelte-2.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^1.7.0→^2.0.0Release Notes
xyflow/xyflow (@xyflow/svelte)
v2.0.3Compare Source
Patch Changes
#6172
b0166b6- Fix viewport not syncing correctly after programmatically updating viabind:viewport.Updated dependencies [
6bb426c,853c44a]:v2.0.2Compare Source
Patch Changes
#6130
d0d3fd7- Announce the new position, instead of the previous one, when moving a selected node with the arrow keys.#6151
3a587bf- Fix effect-on-teardown error. Reuse initial store when Svelte Flow unmounts within a provider.v2.0.1Compare Source
Patch Changes
#6142
270f947- Show a nicer readme on npm :)#6144
40affcd- Add missingaddNodesandaddEdgesutils.v2.0.0Compare Source
Major Changes
#6114
dff4dad- Align the connection APIs across all frameworks onNodeConnection.getHandleConnections. UsegetNodeConnections({ nodeId, type, handleId })instead:idis renamed tohandleIdandtypeis optional.getNodeConnectionstouseSvelteFlow.HandleConnectiontype removed: useNodeConnectioninstead.#6082
70615a3- Removed setters fromuseNodesanduseEdgesin favor of better change handling viaupdateNode&updateEdgeinuseSvelteFlow.#6117
dae45aa-onConnectEndandonReconnectEndnow receivetoin flow coordinates instead of screen coordinates#5965
14093fa- RemoveduseColorModehook.#5915
96b196f- Remove requirement of parent nodes to appear before child nodes in the nodes array#5927
69dc311- Use 5% as new default padding forfitView, andfitBounds.#6115
b1ad016- ReplacepaneClickDistancewithpaneDragThreshold(default1). LikenodeDragThreshold, the pane only starts panning or selecting once the pointer has moved further than the threshold; otherwise it counts as a click. Works with every mouse button.#5843
9eb6929- Use system color mode by default, addforceColorModeto opt-out.#5556
9fcddb8- RemovenodeClickDistance. Whether a click on a node fires is now determined solely by whether a drag actually moved the node: clicks are suppressed only after a drag changed node positions. UsenodeDragThreshold(andsnapGrid) to control this.#5987
615c5f6- Rename the measured handle geometry type fromHandletoHandleBoundsso it no longer collides with the<Handle />component.#5927
7b52b50- Numbers passed tofitViewOptions.paddingare interpreted as pixel values instead of legacy units. Use percentage values instead (0.1 ≈ 4.5%, 0.5 ≈ 16.7%, 1 ≈ 25%, 2 ≈ 33%)#5944
5ff09ef- PassNodeChangeset/EdgeChangesetclass toonNodesChange/onEdgesChangeoronnodeschange/onedgeschange.#5967
257d5d7- RenameuseStoretouseSvelteFlowStore#5842
968d801- Hooks do not require to be $derived anymore and accept a function parameter instead.Minor Changes
#5866
1a77ebf- Add style import from@xyflow/svelte/style.css.#5939
621f5d9- AddchangeParenttouseReactFlow,useSvelteFlowanduseVueFlow, to easily change the parent of a node without calculating a new position.#6082
4bdeda0- Control and monitor any changes to your nodes & edges viaonnodeschange&onedgeschange.Clearing a changeset with
changes.clear()inonnodeschangeprevents automatic application of changes. Use it to manually manage changes to nodes & edges.#5844
861a6be- Exported styles now live in@layer xyflow.#6029
b872a5b- Improve panning performance by avoiding a full style recalculation when the pane cursor changes.#5993
901b0e4- Addxy-theme.cssstylesheet (@xyflow/<lib>/xy-theme.css) that ships the xyflow default theme on top ofbase.css.#5939
846d686- AdduseNodeanduseEdgehooks for subscribing to changes to specific nodes & edgesPatch Changes
#5866
7da73f2- Include source maps and src folder in package. "Go to definition" now links to the source code instead of the generated types#6064
de1e4c5- Stop an interrupted animatedfitViewfrom running again on every later nodes change, for example while dragging a node#6084
1d9b9cd- Fix resizing nodes with a fixed extent & a non-default origin.#6115
b1ad016- Fire the pane context menu event when right-click panning is enabled (panOnDragincludes2).#5989
bf27626- Prevent jumping nodes when origin node option is used#6064
de1e4c5- Resolve the promises of animated viewport functions likefitViewandsetCenterwithfalsewhen a user interaction or another viewport change interrupts the animation, instead of leaving them pending#6131
8849014- NarrowdatabytypewhenNodePropsreceives a union of node types.#5996
885ac9e- Performance: Optimize processing of nodes & edgesUpdated dependencies [
dff4dad,dae45aa,13bf20a,5d448e9,fbe2ba5,96b196f,69dc311,b872a5b,1d9b9cd,b1ad016,de1e4c5,bf27626,9fcddb8,5161767,615c5f6,de1e4c5,8849014,7b52b50,885ac9e]:v1.7.1Compare Source
Patch Changes
#6106
b65d451- Prevent excessive repainting of nodes during pan & zoom#6068
7813eeb- Cancel a pending click connection when clicking the pane and callonClickConnectEnd/onclickconnectend#6090
b235ea0- RespectnodeOrigininisNodeIntersectingandgetIntersectingNodeswhen you pass a node object instead of{ id }#6054
c7d0fcb- Disconnect theResizeObservers when a flow unmountsUpdated dependencies [
d150c38,8483a2f,c7d0fcb,9dcbd29,cba335d]:Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
8f958d114d1cb9616de1View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.