Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@codemirror/lint

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/lint - npm Package Compare versions

Comparing version
6.8.4
to
6.8.5
+6
-0
CHANGELOG.md

@@ -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;

@@ -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;

{
"name": "@codemirror/lint",
"version": "6.8.4",
"version": "6.8.5",
"description": "Linting support for the CodeMirror code editor",

@@ -5,0 +5,0 @@ "scripts": {