@codemirror/state 6.7.4 → 6.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 6.7.5 (2026-09-15)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a range set comparison bug that could cause spurious redraws around block wrapper boundaries.
6
+
1
7
  ## 6.7.4 (2026-09-04)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -3867,8 +3867,10 @@ function compare(a, startA, b, startB, length, comparator) {
3867
3867
  boundChange = false;
3868
3868
  }
3869
3869
  else {
3870
- if (boundChange)
3870
+ if (boundChange) {
3871
3871
  comparator.boundChange(pos);
3872
+ boundChange = false;
3873
+ }
3872
3874
  if (clipEnd > pos && !sameValues(a.active, b.active))
3873
3875
  comparator.compareRange(pos, clipEnd, a.active, b.active);
3874
3876
  if (bounds && clipEnd < endB && (dEnd || a.openEnd(end) != b.openEnd(end)))
package/dist/index.js CHANGED
@@ -3863,8 +3863,10 @@ function compare(a, startA, b, startB, length, comparator) {
3863
3863
  boundChange = false;
3864
3864
  }
3865
3865
  else {
3866
- if (boundChange)
3866
+ if (boundChange) {
3867
3867
  comparator.boundChange(pos);
3868
+ boundChange = false;
3869
+ }
3868
3870
  if (clipEnd > pos && !sameValues(a.active, b.active))
3869
3871
  comparator.compareRange(pos, clipEnd, a.active, b.active);
3870
3872
  if (bounds && clipEnd < endB && (dEnd || a.openEnd(end) != b.openEnd(end)))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/state",
3
- "version": "6.7.4",
3
+ "version": "6.7.5",
4
4
  "description": "Editor state data structures for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",