1
0
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:
Krzysztof Mędrzycki
2021-01-15 18:07:42 +01:00
committed by GitHub
parent d22c76ae13
commit 79e02e881f
4 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@
"dist/"
],
"dependencies": {
"immer": "^5.0.0",
"immer": "^7.0.0",
"is-plain-object": "^3.0.0"
},
"devDependencies": {

View File

@@ -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"
},

View File

@@ -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,