@codemirror/view 6.39.6 → 6.39.7

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.7 (2025-12-24)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a bug that could sometimes cause the document to become mangled during composition.
6
+
1
7
  ## 6.39.6 (2025-12-23)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -2304,6 +2304,9 @@ class TileBuilder {
2304
2304
  }
2305
2305
  this.cache.reused.set(mark, 2 /* Reused.DOM */);
2306
2306
  }
2307
+ let oldTile = Tile.get(composition.text);
2308
+ if (oldTile)
2309
+ this.cache.reused.set(oldTile, 2 /* Reused.DOM */);
2307
2310
  let text = new TextTile(composition.text, composition.text.nodeValue);
2308
2311
  text.flags |= 8 /* TileFlag.Composition */;
2309
2312
  head.append(text);
package/dist/index.js CHANGED
@@ -2300,6 +2300,9 @@ class TileBuilder {
2300
2300
  }
2301
2301
  this.cache.reused.set(mark, 2 /* Reused.DOM */);
2302
2302
  }
2303
+ let oldTile = Tile.get(composition.text);
2304
+ if (oldTile)
2305
+ this.cache.reused.set(oldTile, 2 /* Reused.DOM */);
2303
2306
  let text = new TextTile(composition.text, composition.text.nodeValue);
2304
2307
  text.flags |= 8 /* TileFlag.Composition */;
2305
2308
  head.append(text);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "6.39.6",
3
+ "version": "6.39.7",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",