@codemirror/view 6.36.0 → 6.36.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.36.1 (2024-12-19)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a crash in MatchDecorator when updating matches at the end of the document.
6
+
1
7
  ## 6.36.0 (2024-12-17)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -9293,7 +9293,7 @@ class MatchDecorator {
9293
9293
  let changeFrom = 1e9, changeTo = -1;
9294
9294
  if (update.docChanged)
9295
9295
  update.changes.iterChanges((_f, _t, from, to) => {
9296
- if (to > update.view.viewport.from && from < update.view.viewport.to) {
9296
+ if (to >= update.view.viewport.from && from <= update.view.viewport.to) {
9297
9297
  changeFrom = Math.min(from, changeFrom);
9298
9298
  changeTo = Math.max(to, changeTo);
9299
9299
  }
package/dist/index.js CHANGED
@@ -9288,7 +9288,7 @@ class MatchDecorator {
9288
9288
  let changeFrom = 1e9, changeTo = -1;
9289
9289
  if (update.docChanged)
9290
9290
  update.changes.iterChanges((_f, _t, from, to) => {
9291
- if (to > update.view.viewport.from && from < update.view.viewport.to) {
9291
+ if (to >= update.view.viewport.from && from <= update.view.viewport.to) {
9292
9292
  changeFrom = Math.min(from, changeFrom);
9293
9293
  changeTo = Math.max(to, changeTo);
9294
9294
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "6.36.0",
3
+ "version": "6.36.1",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",