@codemirror/lint 6.8.0 → 6.8.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.8.1 (2024-06-19)
2
+
3
+ ### Bug fixes
4
+
5
+ Make lint markers non-inclusive again, since having them that way causes more issues than it solves.
6
+
1
7
  ## 6.8.0 (2024-05-23)
2
8
 
3
9
  ### New features
package/dist/index.cjs CHANGED
@@ -32,8 +32,7 @@ class LintState {
32
32
  }).range(d.from)
33
33
  : view.Decoration.mark({
34
34
  attributes: { class: "cm-lintRange cm-lintRange-" + d.severity + (d.markClass ? " " + d.markClass : "") },
35
- diagnostic: d,
36
- inclusive: true
35
+ diagnostic: d
37
36
  }).range(d.from, d.to);
38
37
  }), true);
39
38
  return new LintState(ranges, panel, findDiagnostic(ranges));
@@ -116,7 +115,7 @@ function diagnosticCount(state) {
116
115
  let lint = state.field(lintState, false);
117
116
  return lint ? lint.diagnostics.size : 0;
118
117
  }
119
- const activeMark = view.Decoration.mark({ class: "cm-lintRange cm-lintRange-active", inclusive: true });
118
+ const activeMark = view.Decoration.mark({ class: "cm-lintRange cm-lintRange-active" });
120
119
  function lintTooltip(view, pos, side) {
121
120
  let { diagnostics } = view.state.field(lintState);
122
121
  let found = [], stackStart = 2e8, stackEnd = 0;
package/dist/index.js CHANGED
@@ -30,8 +30,7 @@ class LintState {
30
30
  }).range(d.from)
31
31
  : Decoration.mark({
32
32
  attributes: { class: "cm-lintRange cm-lintRange-" + d.severity + (d.markClass ? " " + d.markClass : "") },
33
- diagnostic: d,
34
- inclusive: true
33
+ diagnostic: d
35
34
  }).range(d.from, d.to);
36
35
  }), true);
37
36
  return new LintState(ranges, panel, findDiagnostic(ranges));
@@ -114,7 +113,7 @@ function diagnosticCount(state) {
114
113
  let lint = state.field(lintState, false);
115
114
  return lint ? lint.diagnostics.size : 0;
116
115
  }
117
- const activeMark = /*@__PURE__*/Decoration.mark({ class: "cm-lintRange cm-lintRange-active", inclusive: true });
116
+ const activeMark = /*@__PURE__*/Decoration.mark({ class: "cm-lintRange cm-lintRange-active" });
118
117
  function lintTooltip(view, pos, side) {
119
118
  let { diagnostics } = view.state.field(lintState);
120
119
  let found = [], stackStart = 2e8, stackEnd = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/lint",
3
- "version": "6.8.0",
3
+ "version": "6.8.1",
4
4
  "description": "Linting support for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",