mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-06 15:26:34 +02:00
Remove deprecations (#1317)
* remove deprecations from slate core * remove deprecations from slate-html-serializer * remove deprecations from slate-hyperscript * remove deprecations from slate-plain-serializer * remove deprecations from slate-prop-types * remove deprecations from slate-simulator * remove deprecations from slate-react * fix linter, fix tests
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
|
||||
import isEmpty from 'is-empty'
|
||||
import isPlainObject from 'is-plain-object'
|
||||
import logger from 'slate-dev-logger'
|
||||
|
||||
import {
|
||||
Block,
|
||||
@@ -75,11 +74,6 @@ const CREATORS = {
|
||||
return Range.create(attributes)
|
||||
},
|
||||
|
||||
state(...args) {
|
||||
logger.deprecate('slate-hyperscript@0.3.0', 'The `<state>` tag has been renamed to `<value>`.')
|
||||
return CREATORS.value(...args)
|
||||
},
|
||||
|
||||
value(tagName, attributes, children) {
|
||||
const { data } = attributes
|
||||
const document = children.find(Document.isDocument)
|
||||
|
Reference in New Issue
Block a user