@codemirror/view 6.43.2 → 6.43.3

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.43.3 (2026-06-25)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a bug in the content DOM update code that could corrupt the editor state.
6
+
1
7
  ## 6.43.2 (2026-06-23)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -2785,8 +2785,9 @@ class TileUpdate {
2785
2785
  }
2786
2786
  }
2787
2787
  });
2788
- b.addLineStartIfNotCovered(pendingLineAttrs);
2789
2788
  this.openWidget = openEnd > markCount;
2789
+ if (!this.openWidget)
2790
+ b.addLineStartIfNotCovered(pendingLineAttrs);
2790
2791
  this.openMarks = openEnd;
2791
2792
  }
2792
2793
  forward(from, to, side = 1) {
package/dist/index.js CHANGED
@@ -2781,8 +2781,9 @@ class TileUpdate {
2781
2781
  }
2782
2782
  }
2783
2783
  });
2784
- b.addLineStartIfNotCovered(pendingLineAttrs);
2785
2784
  this.openWidget = openEnd > markCount;
2785
+ if (!this.openWidget)
2786
+ b.addLineStartIfNotCovered(pendingLineAttrs);
2786
2787
  this.openMarks = openEnd;
2787
2788
  }
2788
2789
  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.3",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",