Skip to content

Latest commit

 

History

History
212 lines (111 loc) · 16.3 KB

CHANGELOG.md

File metadata and controls

212 lines (111 loc) · 16.3 KB

slate

0.76.0

Minor Changes

  • #4873 20acca4b Thanks @bryanph! - A different behavior for inserting a soft break with shift+enter is quite common in rich text editors. Right now you have to do this in onKeyDown which is not so nice. This adds a separate insertSoftBreak method on the editor instance that gets called when a soft break is inserted. This maintains the current default behavior for backwards compatibility (it just splits the block). But at least you can easily overwrite it now.

    If you rely on overwriting editor.insertBreak for extra behavior for soft breaks this might be a breaking change for you and you should overwrite editor.insertSoftBreak instead.

Patch Changes

0.75.0

Patch Changes

0.73.1

Patch Changes

  • #4858 33be22f3 Thanks @TheSpyder! - Reverted #4804 as it triggered an exception when inserting text with multi-block selection

0.73.0

Minor Changes

0.72.8

Patch Changes

0.72.3

Patch Changes

0.72.2

Patch Changes

0.72.0

Patch Changes

  • #4708 2fc7ad92 Thanks @bryanph! - Allow Operation type to be extended

    For example:

    import type { BaseOperation } from 'slate'
    
    type CustomOperation =
     | BaseOperation
     | YourCustomOperation
     | AnotherCustomOperation
    
    declare module 'slate' {
      interface CustomTypes {
        Operation: CustomOperation;
      }
    }
    

0.71.0

Minor Changes

Patch Changes

  • #4671 e3afda94 Thanks @unageek! - Fixed the issue where the cursor jumps more than one character unexpectedly

0.70.0

Minor Changes

  • #4565 5818aca5 Thanks @oliger! - Fix issue with unicode 1.1 smileys followed by a variation selector.

Patch Changes

0.67.1

Patch Changes

0.66.5

Patch Changes

  • #4552 37d60c58 Thanks @clauderic! - Only apply Firefox toSlatePoint() offset fix when the cloned contents end in \n\n instead of just \n.

0.66.2

Patch Changes

0.66.1

Patch Changes

  • #4516 59ca7a8f Thanks @dylans! - another attempt to get the automated changeset workflow working again

0.66.0

Minor Changes

  • #4276 6f47cbbe Thanks @TheSpyder! - Switched from fast-deep-equal to a custom deep equality check. This restores the ability for text nodes with mark values set to undefined to merge with text nodes missing those keys.
  • #4431 55ff8f00 Thanks @TheSpyder! - Fixed regression in #4208 where normalization on empty block nodes could not be overridden
  • #4428 b47d3fd1 Thanks @TheSpyder! - Don't set null in set_node's newProperties object when using Transforms.unsetNodes()

Patch Changes

  • #4482 dd752df1 Thanks @Jokcy! - Fix cursor not correct issue after insert multiple nodes with Transform.insertNodes
  • #4458 95c759a1 Thanks @taj-codaio! - Normalization now removes empty text nodes after nonempty nodes with differing styles, but before inline nodes.

0.65.3

Patch Changes

  • #4253 0214b630 Thanks @TheSpyder! - Fix Transforms.wrapNodes crashing when the match function matched only the editor
  • #4421 237edc6e Thanks @jaked! - fix decorate bug (#4277) without adding extra layers of render tree

0.63.0

Minor Changes

  • #4230 796389c7 Thanks @TheSpyder! - Applying invalid insert_node operations will now throw an exception for all invalid paths, not just invalid parent paths.

Patch Changes

  • #4208 feb293aa Thanks @TheSpyder! - Fix Error: Cannot get the start point in the node at path [...] because it has no start text node caused by normalizing a document where some elements have no children
  • #4230 796389c7 Thanks @TheSpyder! - Exceptions in editor.apply() and Editor.withoutNormalizing() will no longer leave the editor in an invalid state
  • #4227 e6413d46 Thanks @ulion! - Fixed a bug that would allow multiple changes to be scheduled at the same time.

0.62.1

Patch Changes

  • #4193 fd70dc0b Thanks @beorn! - Fixed insert and remove text operations to no-op without any text.

0.62.0

Minor Changes

  • c6002024 - Updated Text.equals to deeply compare text node properties. Previously it only did a shallow comparison, but this made it harder to keep track of more complex data structures at the text level.
  • #4154 7283c51f Thanks @ianstormtaylor! - Start using 🦋 Changesets to manage releases. Going forward, whenever a pull request is made that fixes or adds functionality to Slate, it will need to be accompanied by a changset Markdown file describing the change. These files will be automatically used in the release process when bump the versions of Slate and compiling the changelog.
  • c6002024 - Added support for custom selection properties. Previously you could set custom properties on the selection objects but it was not a fully supported feature because there was no way to delete them later. Now custom properties are officially supported and deleting them once set is possible.

Patch Changes

  • c6002024 - Fixed move_node operations to normalize the node in question.
  • c6002024 - Added memoization logic to Node.isNodeList and Editor.isEditor to speed up common code paths.
  • c6002024 - Fixed a bug when merging deeply nested multi-child nodes.
  • c6002024 - Fixed a bug when deleting a hanging range with a trailing void block node.
  • c6002024 - Fixed a bug in Editor.positions which caused it to sometimes skip positions in text nodes that were segmented across inlines or marks.