2.3 KiB
Changelog
This document maintains a list of changes to the slate-react
package with each new version. Until 1.0.0
is released, breaking changes will be added as minor version bumps, and smaller changes won't be accounted for since the library is moving quickly.
0.5.0
— October 15, 2017
DEPRECATED
- The
data.*
properties that relate to keyboard events have been deprecated. There were a few different issues with these "helpers":data.key
didn't account for international keyboards, many properties awkwardly duplicated information that was available onevent.*
, but not completely, and many properties were confusing as to when they applied. If you were using these, you'll now need to use the nativeevent.*
properties instead. There's also a helpfulis-hotkey
package for more complex hotkey matching.
0.4.0
— October 14, 2017
BREAKING
- Updated work with
slate@0.27.0
. The new version of Slate renames the oldRange
model toLeaf
, and the oldSelection
model toRange
.
NEW
-
Added a new
findDOMRange
helper. Give a SlateRange
object, it will return a DOMRange
object with the correct start and end points, making it easier to work with lower-level DOM selections. -
Added a new
findRange
helper. Given either a DOMSelection
or DOMRange
object and a SlateState
, it will return a SlateRange
representing the same part of the document, making it easier to work with DOM selection changes. -
Added a new
findNode
helper. Given a DOMElement
, it will find the closest SlateNode
that it represents, making
0.3.0
— October 13, 2017
BREAKING
- The decoration logic has been updated to use
slate@0.26.0
. This allows for more complex decoration logic, and even decorations based on external information.
0.2.0
— September 29, 2017
BREAKING
onBeforeChange
is now called automatically again in<Editor>
. This was removed before, in attempt to decrease the "magic" that the editor was performing, since it normalizes when new props are passed to it, creating instant changes. But we discovered that it is actually necessary for now, so it has been added again.
0.1.0
— September 17, 2017
🎉