@codemirror/view 6.43.2 → 6.43.4

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,15 @@
1
+ ## 6.43.4 (2026-06-27)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a regression in DOM document updates that could corrupt the tile tree and cause crashes.
6
+
7
+ ## 6.43.3 (2026-06-25)
8
+
9
+ ### Bug fixes
10
+
11
+ Fix a bug in the content DOM update code that could corrupt the editor state.
12
+
1
13
  ## 6.43.2 (2026-06-23)
2
14
 
3
15
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -2783,10 +2783,12 @@ class TileUpdate {
2783
2783
  }
2784
2784
  pendingLineAttrs = null;
2785
2785
  }
2786
+ markCount = active.length;
2786
2787
  }
2787
2788
  });
2788
- b.addLineStartIfNotCovered(pendingLineAttrs);
2789
2789
  this.openWidget = openEnd > markCount;
2790
+ if (!this.openWidget)
2791
+ b.addLineStartIfNotCovered(pendingLineAttrs);
2790
2792
  this.openMarks = openEnd;
2791
2793
  }
2792
2794
  forward(from, to, side = 1) {
package/dist/index.js CHANGED
@@ -2779,10 +2779,12 @@ class TileUpdate {
2779
2779
  }
2780
2780
  pendingLineAttrs = null;
2781
2781
  }
2782
+ markCount = active.length;
2782
2783
  }
2783
2784
  });
2784
- b.addLineStartIfNotCovered(pendingLineAttrs);
2785
2785
  this.openWidget = openEnd > markCount;
2786
+ if (!this.openWidget)
2787
+ b.addLineStartIfNotCovered(pendingLineAttrs);
2786
2788
  this.openMarks = openEnd;
2787
2789
  }
2788
2790
  forward(from, to, side = 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "6.43.2",
3
+ "version": "6.43.4",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",