github ianstormtaylor/slate slate@0.146.0

one hour ago

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.

Don't miss a new slate release

NewReleases is sending notifications on new releases.