diff --git a/packages/svelte/CHANGELOG.md b/packages/svelte/CHANGELOG.md index 430f2d82..799d1583 100644 --- a/packages/svelte/CHANGELOG.md +++ b/packages/svelte/CHANGELOG.md @@ -1,5 +1,9 @@ # @xyflow/svelte +## 0.1.1 + +- export `useInternalNode` hook + ## 0.1.0 This is a bigger update for Svelte Flow to keep up with the latest changes we made for React Flow and the Svelte5 rewrite. The biggest change is the separation of user nodes (type `Node`) and internal nodes (type `InternalNode`), which includes a renaming of the `node.computed` attribute to `node.measured`. In the previous versions, we stored internals in `node[internalsSymbol]`. This doesn't exist anymore, but we only add it to our internal nodes in `node.internals.`. diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 4a8e1bb5..a6ab1b23 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@xyflow/svelte", - "version": "0.1.0", + "version": "0.1.1", "description": "Svelte Flow - A highly customizable Svelte library for building node-based editors, workflow systems, diagrams and more.", "keywords": [ "svelte", diff --git a/packages/svelte/src/lib/index.ts b/packages/svelte/src/lib/index.ts index 6a646f80..36afc053 100644 --- a/packages/svelte/src/lib/index.ts +++ b/packages/svelte/src/lib/index.ts @@ -32,6 +32,7 @@ export * from '$lib/hooks/useConnection'; export * from '$lib/hooks/useNodesEdges'; export * from '$lib/hooks/useHandleConnections'; export * from '$lib/hooks/useNodesData'; +export * from '$lib/hooks/useInternalNode'; export { useInitialized, useNodesInitialized } from '$lib/hooks/useInitialized'; // types