prosemirror-transform
Advanced tools
Comparing version 1.2.11 to 1.2.12
@@ -0,1 +1,7 @@ | ||
## 1.2.12 (2021-02-20) | ||
### Bug fixes | ||
Fix a bug where merging replace steps with the `structure` flag could create steps that couldn't be applied. | ||
## 1.2.11 (2021-02-06) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-transform", | ||
"version": "1.2.11", | ||
"version": "1.2.12", | ||
"description": "ProseMirror document transformations", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -45,3 +45,3 @@ import {Slice} from "prosemirror-model" | ||
merge(other) { | ||
if (!(other instanceof ReplaceStep) || other.structure != this.structure) return null | ||
if (!(other instanceof ReplaceStep) || other.structure || this.structure) return null | ||
@@ -48,0 +48,0 @@ if (this.from + this.slice.size == other.from && !this.slice.openEnd && !other.slice.openStart) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
487562