Skip to content

slate@0.146.0

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Oct 02:07
· 2 commits to main since this release
b9237ba

Minor Changes

  • #6332 4e73172 Thanks @dylans! - Add Node.findPath(root, node), which finds a node's path by walking the tree and returns undefined if the node isn't there. It doesn't depend on rendering, so it works without slate-react, for example on a server. DOMEditor.findPath uses it as its fallback when the rendered node maps are stale.

Patch Changes

  • #6331 cfd8049 Thanks @dylans! - Batches inside Editor.withoutNormalizing spend less time on dirty path bookkeeping. An operation that can't map two dirty paths onto one, which is every path-changing operation except merge_node, no longer rebuilds the dirty path key set. 5,000 splits of one block in a batch go from about 7.9 s to 3.7 s. The dirty paths and their order are unchanged.