@codemirror/view 6.21.0 → 6.21.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.21.1 (2023-10-02)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a bug that could corrupt the DOM view for specific changes involving newlines and mark decorations.
6
+
1
7
  ## 6.21.0 (2023-09-29)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -1653,7 +1653,8 @@ class ContentBuilder {
1653
1653
  this.flushBuffer();
1654
1654
  else
1655
1655
  this.pendingBuffer = 0 /* Buf.No */;
1656
- if (!openEnd && !this.posCovered())
1656
+ if (!this.posCovered() &&
1657
+ !(openEnd && this.content.length && this.content[this.content.length - 1] instanceof BlockWidgetView))
1657
1658
  this.getLine();
1658
1659
  }
1659
1660
  buildText(length, active, openStart) {
package/dist/index.js CHANGED
@@ -1650,7 +1650,8 @@ class ContentBuilder {
1650
1650
  this.flushBuffer();
1651
1651
  else
1652
1652
  this.pendingBuffer = 0 /* Buf.No */;
1653
- if (!openEnd && !this.posCovered())
1653
+ if (!this.posCovered() &&
1654
+ !(openEnd && this.content.length && this.content[this.content.length - 1] instanceof BlockWidgetView))
1654
1655
  this.getLine();
1655
1656
  }
1656
1657
  buildText(length, active, openStart) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "6.21.0",
3
+ "version": "6.21.1",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",