mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 10:51:44 +02:00
Upgrade immer to 7.0.0 (#3850)
This commit is contained in:
committed by
GitHub
parent
d22c76ae13
commit
79e02e881f
@@ -14,7 +14,7 @@
|
||||
"dist/"
|
||||
],
|
||||
"dependencies": {
|
||||
"immer": "^5.0.0",
|
||||
"immer": "^7.0.0",
|
||||
"is-plain-object": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@@ -16,7 +16,7 @@
|
||||
"dependencies": {
|
||||
"@types/esrever": "^0.2.0",
|
||||
"esrever": "^0.2.0",
|
||||
"immer": "^5.0.0",
|
||||
"immer": "^7.0.0",
|
||||
"is-plain-object": "^3.0.0",
|
||||
"tiny-warning": "^1.0.3"
|
||||
},
|
||||
|
@@ -292,7 +292,7 @@ export const Node: NodeInterface = {
|
||||
)
|
||||
}
|
||||
|
||||
const newRoot = produce(root, r => {
|
||||
const newRoot = produce({ children: root.children }, r => {
|
||||
const [start, end] = Range.edges(range)
|
||||
const nodeEntries = Node.nodes(r, {
|
||||
reverse: true,
|
||||
|
Reference in New Issue
Block a user