Skip to content

Releases: ianstormtaylor/slate

slate@0.118.0

Choose a tag to compare

@github-actions github-actions released this 30 Jul 20:22
8eeeecc

Minor Changes

  • #5923 ba33735a Thanks @12joan! - - When removing a text node containing the cursor, always perfer placing the cursor in a sibling text node if one exists.
    • Previously, the selection would enter a sibling inline in some circumstances, even when a sibling text node was available.
    • The most noticeable effect of this change occurs when pressing backspace at the start of line N when the last non-empty node in line N-1 is an inline.
      • Before, the cursor would be placed inside the inline.
      • Now, the cursor is placed outside the inline.

slate-react@0.117.4

Choose a tag to compare

@github-actions github-actions released this 12 Jul 22:32
7657838

Patch Changes

slate-dom@0.117.4

Choose a tag to compare

@github-actions github-actions released this 12 Jul 22:32
7657838

Patch Changes

slate-react@0.117.3

Choose a tag to compare

@github-actions github-actions released this 27 Jun 23:34
0265b7c

Patch Changes

slate@0.117.2

Choose a tag to compare

@github-actions github-actions released this 25 Jun 15:55
aa27c2d

Patch Changes

  • #5899 94fb04a4 Thanks @12joan! - Fix: editor.selection is sometimes replaced with a new object even if the selection did not change

slate-react@0.117.2

Choose a tag to compare

@github-actions github-actions released this 25 Jun 15:55
aa27c2d

Patch Changes

  • #5908 06b21fdc Thanks @nabbydude! - Fixed issue on android where deleting forward at the end of a block would delete the first character in the next block instead of the linebreak

slate-react@0.117.1

Choose a tag to compare

@github-actions github-actions released this 13 Jun 14:07
f2fa279

Patch Changes

slate@0.117.0

Choose a tag to compare

@github-actions github-actions released this 11 Jun 20:40
06b8822

Minor Changes

  • #5885 c56a98fd Thanks @felixfeng33! - - Remove ignoreNonSelectable option from positions,before,after,nodes.
    • Fix move behavior when encounter non-selectable inline voids.

Patch Changes

  • #5890 9862ae71 Thanks @joblolin95! - Handle backspace correctly for grapheme clusters in Burmese, Hindi, Khmer, Malayalam, Oriya, Punjabi, Tamil, and Telugu.

slate@0.116.0

Choose a tag to compare

@github-actions github-actions released this 10 Jun 22:30
bcbc64d

Patch Changes

  • #5871 fb87646e Thanks @12joan! - - PERF: Use pure JS instead of Immer for applying operations and transforming points and ranges. Immer is now used only for producing fragments.

slate-react@0.116.0

Choose a tag to compare

@github-actions github-actions released this 10 Jun 22:30
bcbc64d

Minor Changes

  • #5871 fb87646e Thanks @12joan! - - Implement experimental chunking optimization (disabled by default, see https://docs.slatejs.org/walkthroughs/09-performance).
    • Add useElement and useElementIf hooks to get the current element.
    • BREAKING CHANGE: Decorations are no longer recomputed when a node's parent re-renders, only when the node itself re-renders or when the decorate function is changed.
      • Ensure that decorate is a pure function of the node passed into it. Depending on the node's parent may result in decorations not being recomputed when you expect them to be.
      • If this change impacts you, consider changing your decorate function to work on the node's parent instead.
      • For example, if your decorate function decorates a code-line based on the parent code-block's language, decorate the code-block instead.
      • This is unlikely to result in any performance detriment, since in previous versions of slate-react, the decorations of all siblings were recomputed when one sibling was modified.
    • Increase minimum slate-dom version to 0.116.0.
    • Deprecate the useSlateWithV hook
    • PERF: Use subscribable pattern for useSlate, useSelected and decorations to reduce re-renders.