@codemirror/view 6.39.2 → 6.39.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.39.3 (2025-12-11)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a bug that could corrupt the rendered document in some situations involving adjacent mark decorations of the same type.
6
+
1
7
  ## 6.39.2 (2025-12-09)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -2649,6 +2649,7 @@ class TileUpdate {
2649
2649
  else if (tile instanceof MarkTile) {
2650
2650
  this.builder.addMark(tile, activeMarks, openMarks);
2651
2651
  this.cache.reused.set(tile, 1 /* Reused.Full */);
2652
+ openMarks = activeMarks.length;
2652
2653
  }
2653
2654
  else {
2654
2655
  return false;
@@ -2661,10 +2662,8 @@ class TileUpdate {
2661
2662
  }
2662
2663
  else {
2663
2664
  this.cache.add(tile);
2664
- if (tile instanceof MarkTile) {
2665
+ if (tile instanceof MarkTile)
2665
2666
  activeMarks.unshift(tile.mark);
2666
- openMarks++;
2667
- }
2668
2667
  }
2669
2668
  this.openWidget = false;
2670
2669
  },
package/dist/index.js CHANGED
@@ -2645,6 +2645,7 @@ class TileUpdate {
2645
2645
  else if (tile instanceof MarkTile) {
2646
2646
  this.builder.addMark(tile, activeMarks, openMarks);
2647
2647
  this.cache.reused.set(tile, 1 /* Reused.Full */);
2648
+ openMarks = activeMarks.length;
2648
2649
  }
2649
2650
  else {
2650
2651
  return false;
@@ -2657,10 +2658,8 @@ class TileUpdate {
2657
2658
  }
2658
2659
  else {
2659
2660
  this.cache.add(tile);
2660
- if (tile instanceof MarkTile) {
2661
+ if (tile instanceof MarkTile)
2661
2662
  activeMarks.unshift(tile.mark);
2662
- openMarks++;
2663
- }
2664
2663
  }
2665
2664
  this.openWidget = false;
2666
2665
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "6.39.2",
3
+ "version": "6.39.3",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",