@codemirror/lint
Advanced tools
+6
-0
@@ -0,1 +1,7 @@ | ||
| ## 6.8.5 (2025-03-26) | ||
| ### Bug fixes | ||
| Fix a regression (since 6.8.4) that broke the `markerFilter` option. | ||
| ## 6.8.4 (2024-11-28) | ||
@@ -2,0 +8,0 @@ |
+1
-2
@@ -22,6 +22,5 @@ 'use strict'; | ||
| // Filter the list of diagnostics for which to create markers | ||
| let markedDiagnostics = diagnostics; | ||
| let diagnosticFilter = state$1.facet(lintConfig).markerFilter; | ||
| if (diagnosticFilter) | ||
| markedDiagnostics = diagnosticFilter(markedDiagnostics, state$1); | ||
| diagnostics = diagnosticFilter(diagnostics, state$1); | ||
| let sorted = diagnostics.slice().sort((a, b) => a.from - b.from || a.to - b.to); | ||
@@ -28,0 +27,0 @@ let deco = new state.RangeSetBuilder(), active = [], pos = 0; |
+1
-2
@@ -20,6 +20,5 @@ import { Decoration, showPanel, EditorView, ViewPlugin, gutter, showTooltip, hoverTooltip, getPanel, logException, WidgetType, GutterMarker } from '@codemirror/view'; | ||
| // Filter the list of diagnostics for which to create markers | ||
| let markedDiagnostics = diagnostics; | ||
| let diagnosticFilter = state.facet(lintConfig).markerFilter; | ||
| if (diagnosticFilter) | ||
| markedDiagnostics = diagnosticFilter(markedDiagnostics, state); | ||
| diagnostics = diagnosticFilter(diagnostics, state); | ||
| let sorted = diagnostics.slice().sort((a, b) => a.from - b.from || a.to - b.to); | ||
@@ -26,0 +25,0 @@ let deco = new RangeSetBuilder(), active = [], pos = 0; |
+1
-1
| { | ||
| "name": "@codemirror/lint", | ||
| "version": "6.8.4", | ||
| "version": "6.8.5", | ||
| "description": "Linting support for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
91526
-0.01%1981
-0.1%