@codemirror/lint 6.8.4 → 6.8.5

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.5 (2025-03-26)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a regression (since 6.8.4) that broke the `markerFilter` option.
6
+
1
7
  ## 6.8.4 (2024-11-28)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -19,10 +19,9 @@ class LintState {
19
19
  }
20
20
  static init(diagnostics, panel, state$1) {
21
21
  // Filter the list of diagnostics for which to create markers
22
- let markedDiagnostics = diagnostics;
23
22
  let diagnosticFilter = state$1.facet(lintConfig).markerFilter;
24
23
  if (diagnosticFilter)
25
- markedDiagnostics = diagnosticFilter(markedDiagnostics, state$1);
24
+ diagnostics = diagnosticFilter(diagnostics, state$1);
26
25
  let sorted = diagnostics.slice().sort((a, b) => a.from - b.from || a.to - b.to);
27
26
  let deco = new state.RangeSetBuilder(), active = [], pos = 0;
28
27
  for (let i = 0;;) {
package/dist/index.js CHANGED
@@ -17,10 +17,9 @@ class LintState {
17
17
  }
18
18
  static init(diagnostics, panel, state) {
19
19
  // Filter the list of diagnostics for which to create markers
20
- let markedDiagnostics = diagnostics;
21
20
  let diagnosticFilter = state.facet(lintConfig).markerFilter;
22
21
  if (diagnosticFilter)
23
- markedDiagnostics = diagnosticFilter(markedDiagnostics, state);
22
+ diagnostics = diagnosticFilter(diagnostics, state);
24
23
  let sorted = diagnostics.slice().sort((a, b) => a.from - b.from || a.to - b.to);
25
24
  let deco = new RangeSetBuilder(), active = [], pos = 0;
26
25
  for (let i = 0;;) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/lint",
3
- "version": "6.8.4",
3
+ "version": "6.8.5",
4
4
  "description": "Linting support for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",