slate v0.24.0 Release Notes
Release Date: 2017-09-11 // over 6 years ago-
NEW
Slate is now a "monorepo". Instead of a single package, Slate has been divided up into individual packages so that you can only require what you need, cutting down on file size. In the process, some helpful modules that used to be internal-only are now exposed.
There's a new
slate-hyperscript
helper. This was possible thanks to the work onslate-sugar
, which paved the way.📦 The
slate-prop-types
package is now exposed. Previously this was an internal module, but now you can use it for adding prop types to any components or plugins you create.📦 The
slate-simulator
package is now exposed. Previously this was an internal testing utility, but now you can use it in your own tests as well. It's currently pretty bare bones, but we can add to it over time.BREAKING
immutable
is now a peer dependency of Slate. Previously it was a regular dependency, but this prevented you from bringing your own version, or you'd have duplication. You'll need to ensure you install it!📦 The
Html
,Plain
andRaw
serializers are broken into new packages. Previously you'd import them fromslate
. But now you'll import them fromslate-html-serializer
andslate-plain-serializer
. And theRaw
serializer that was deprecated is now removed.📦 The
Editor
andPlaceholder
components are broken into a new React-specific package. Previously you'd import them fromslate
. But now youimport { Editor } from 'slate-react'
instead.