@codemirror/rangeset
Advanced tools
Comparing version 0.19.5 to 0.19.6
@@ -0,1 +1,9 @@ | ||
## 0.19.6 (2022-01-05) | ||
### Bug fixes | ||
Fix an issue where range sets that weren't mapped could cause `RangeSet.compare` to miss changes. | ||
Fix a bug where a zero-length range, even when inclusive, was never mapped to cover any content. | ||
## 0.19.5 (2021-12-21) | ||
@@ -2,0 +10,0 @@ |
@@ -93,2 +93,7 @@ import { MapMode } from '@codemirror/state'; | ||
newFrom = newTo = mapped; | ||
if (val.startSide != val.endSide) { | ||
newTo = changes.mapPos(curFrom, val.endSide); | ||
if (newTo < newFrom) | ||
continue; | ||
} | ||
} | ||
@@ -499,3 +504,4 @@ else { | ||
let known = inA.get(set.chunk[i]); | ||
if (known != null && (textDiff ? textDiff.mapPos(known) : known) == set.chunkPos[i]) | ||
if (known != null && (textDiff ? textDiff.mapPos(known) : known) == set.chunkPos[i] && | ||
!(textDiff === null || textDiff === void 0 ? void 0 : textDiff.touchesRange(known, known + set.chunk[i].length))) | ||
shared.add(set.chunk[i]); | ||
@@ -502,0 +508,0 @@ } |
{ | ||
"name": "@codemirror/rangeset", | ||
"version": "0.19.5", | ||
"version": "0.19.6", | ||
"description": "Range set data structure for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
75556
1942