mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-03-06 05:49:47 +01:00
1.9 KiB
1.9 KiB
This document maintains a list of changes to Slate with each new version. Until 1.0.0
is released, breaking changes will be added as minor version bumps, and non-breaking changes won't be accounted for since the library is moving quickly.
0.5.0
July 20, 2016
BREAKING CHANGES
-
node.getTextNodes()
is nownode.getTexts()
. This is just for consistency with the other existingNode
methods likegetBlocks()
,getInlines()
, etc. And it's nicely shorter. 😉 -
Node
methods nowthrow
earlier during unexpected states. This shouldn't break anything for most folks, unless a strange edge-case was going undetected previously.
0.4.0
July 20, 2016
BREAKING CHANGES
renderMark(mark, state, editor)
is nowrenderMark(mark, marks, state, editor)
. This change allows you to render marks based on multiplemarks
presence at once on a given range of text, for example using a customBoldItalic.otf
font when text has bothbold
anditalic
marks.
0.3.0
July 20, 2016
BREAKING CHANGES
transform.unwrapBlock()
now unwraps selectively. Previously, callingunwrapBlock
with a range representing a middle sibling would unwrap all of the siblings, removing the wrapping block entirely. Now, calling it with those same arguments will only move the middle sibling up a layer in the hierarchy, preserving the nesting on any of its siblings. This changes makes it much simpler to implement functionality like unwrapping a single list item, which previously would unwrap the entire list.
0.2.0
July 18, 2016
BREAKING CHANGES
transform.mark()
is nowtransform.addMark()
andtransform.unmark()
is nowtransform.removeMark()
. The new names make it clearer that the transforms are actions being performed, and it paves the way for adding atoggleMark
convenience as well.
0.1.0
July 13, 2016
🎉