slate v0.29.0 Release Notes
Release Date: 2017-10-27 // over 6 years ago-
NEW
➕ Added the new
Value
model to replaceState
. The new model is exactly the same, but with a new name. There is also a shimmedState
model exported that warns when used, to ease migration.BREAKING
The
set_state
operation has been renamedset_value
. This shouldn't affect almost anyone, but in the event that you were relying on the low-level operation types you'll need to update this.🗄 ###### DEPRECATED
The "state" has been renamed to "value" everywhere. All of the current references are maintained as deprecations, so you should be able to upgrade and see warnings logged instead of being greeted with a broken editor. This is to reduce the confusion between React's "state" and Slate's editor value, and in an effort to further mimic the native DOM APIs.