slate-serializers
v2.2.2
Published
This package has been split into separate packages.
Downloads
10,716
Readme
slate-serializers
This package has been split into separate packages.
There is no need to change - slate-serializers
will continue to be maintained alongside the new serializers. However, upgrading will keep the dependency tree minimal for your project.
Original docs available at packages/slate-serializers/docs/original.md.
New packages
An overview is available at README.md.
Upgrade
HTML serializers
Change import from slate-serializers
to @slate-serializers/html
.
If importing configuration objects, change the name as follows.
slateToDomConfig
toslateToHtmlConfig
.payloadSlateToDomConfig
topayloadSlateToHtmlConfig
.slateDemoSlateToDomConfig
toslateDemoSlateToHtmlConfig
DOM serializer
Change import from slate-serializers
to @slate-serializers/dom
.
Rationale for splitting the packages
As more serializers are introduced, the number of dependencies increase. It makes sense to maintain separate packages to keep the serializers as efficient as possible for their desired use case.