@codemirror/view 6.5.0 → 6.5.1

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.5.1 (2022-11-15)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a bug that caused marked unnecessary splitting of mark decoration DOM elements in some cases.
6
+
1
7
  ## 6.5.0 (2022-11-14)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -1669,7 +1669,7 @@ class ContentBuilder {
1669
1669
  }
1670
1670
  }
1671
1671
  let take = Math.min(this.text.length - this.textOff, length, 512 /* T.Chunk */);
1672
- this.flushBuffer(active.slice(0, openStart));
1672
+ this.flushBuffer(active.slice(active.length - openStart));
1673
1673
  this.getLine().append(wrapMarks(new TextView(this.text.slice(this.textOff, this.textOff + take)), active), openStart);
1674
1674
  this.atCursorPos = true;
1675
1675
  this.textOff += take;
package/dist/index.js CHANGED
@@ -1664,7 +1664,7 @@ class ContentBuilder {
1664
1664
  }
1665
1665
  }
1666
1666
  let take = Math.min(this.text.length - this.textOff, length, 512 /* T.Chunk */);
1667
- this.flushBuffer(active.slice(0, openStart));
1667
+ this.flushBuffer(active.slice(active.length - openStart));
1668
1668
  this.getLine().append(wrapMarks(new TextView(this.text.slice(this.textOff, this.textOff + take)), active), openStart);
1669
1669
  this.atCursorPos = true;
1670
1670
  this.textOff += take;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "6.5.0",
3
+ "version": "6.5.1",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",
@@ -26,7 +26,7 @@
26
26
  "sideEffects": false,
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@codemirror/state": "^6.0.0",
29
+ "@codemirror/state": "^6.1.4",
30
30
  "style-mod": "^4.0.0",
31
31
  "w3c-keyname": "^2.2.4"
32
32
  },