@codemirror/view 6.39.5 → 6.39.6

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.6 (2025-12-23)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix an issue when composing on the boundary of a decoration, where the text after the composition would get garbled.
6
+
1
7
  ## 6.39.5 (2025-12-22)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -2604,6 +2604,7 @@ class TileUpdate {
2604
2604
  if (composition && next.fromA <= composition.range.fromA && next.toA >= composition.range.toA) {
2605
2605
  this.emit(posB, composition.range.fromB);
2606
2606
  this.builder.addComposition(composition, compositionContext);
2607
+ this.text.skip(composition.range.toB - composition.range.fromB);
2607
2608
  this.emit(composition.range.toB, next.toB);
2608
2609
  }
2609
2610
  else {
package/dist/index.js CHANGED
@@ -2600,6 +2600,7 @@ class TileUpdate {
2600
2600
  if (composition && next.fromA <= composition.range.fromA && next.toA >= composition.range.toA) {
2601
2601
  this.emit(posB, composition.range.fromB);
2602
2602
  this.builder.addComposition(composition, compositionContext);
2603
+ this.text.skip(composition.range.toB - composition.range.fromB);
2603
2604
  this.emit(composition.range.toB, next.toB);
2604
2605
  }
2605
2606
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "6.39.5",
3
+ "version": "6.39.6",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",