PackageTrack

npm · #4119

@codemirror/lint

6.9.7

Linting support for the CodeMirror code editor

Release timeline

48 releases since 2020
202120222023202420252026

Releases

  1. 6.9.79 Jun 2026
    Release notes

    Bug fixes

    Avoid lint tooltips overlapping their target text when that is line-wrapped.

    Open source →
  2. 6.9.66 May 2026
    Release notes

    Bug fixes

    Pop open a diagnostic's tooltip when moving to it with nextDiagnostic or previousDiagnostic.

    Open source →
  3. 6.9.52 Mar 2026
    Release notes

    Bug fixes

    Use more appropriate background colors for the selected diagnostic in dark mode.

    Open source →
  4. 6.9.411 Feb 2026
    Release notes

    Bug fixes

    Make sure nextDiagnostic selects entire diagnostics, even when they overlap with other diagnostics.

    Open source →
  5. 6.9.327 Jan 2026
    Release notes

    Bug fixes

    Fix an issue where the lint panel inappropriately blocks the default behavior of key combinations with Ctrl, Alt, or Cmd held.

    Open source →
  6. 6.9.23 Nov 2025
    Release notes

    Bug fixes

    Fix an infinite loop that would occur when a diagnostic pointed beyond the end of the document.

    Open source →
  7. 6.9.123 Oct 2025
    Release notes

    Bug fixes

    Properly display diagnostics that just cover multiple newlines as widgets.

    Open source →
  8. 6.9.02 Oct 2025
    Release notes

    Bug fixes

    Multiple configurations to linter will now be merged without raising an error.

    New features

    The new markClass option to actions makes it possible to style action buttons.

    Open source →
  9. 6.8.526 Mar 2025
    Release notes

    Bug fixes

    Fix a regression (since 6.8.4) that broke the markerFilter option.

    Open source →
  10. 6.8.428 Nov 2024
    Release notes

    Bug fixes

    Don't create overlapping decorations when diagnostics overlap.

    Fix an issue where block widgets could cause the lint gutter to show diagnostics multiple times.

    Open source →
  11. 6.8.321 Nov 2024
    Release notes

    Bug fixes

    Fix an issue that prevented tooltips in the lint gutter from being displayed.

    Open source →
  12. 6.8.224 Sept 2024
    Release notes

    Bug fixes

    Show lint markers for code replaced by a block widget.

    When multiple linters are installed, start displaying results from ones that return quickly even if others are slow to return.

    Open source →
  13. 6.8.119 Jun 2024
    Release notes

    Bug fixes

    Make lint markers non-inclusive again, since having them that way causes more issues than it solves.

    Open source →
  14. 6.8.023 May 2024
    Release notes

    New features

    The new autoPanel option can be used to make the panel automatically appear when diagnostics are added and close when no diagnostics are left.

    Open source →
  15. 6.7.115 May 2024
    Release notes

    Bug fixes

    Don't perform an additional superfluous timed lint run after forceLinting has been called.

    Open source →
  16. 6.7.030 Apr 2024
    Release notes

    New features

    The renderMessage function is now called with the editor view as first argument.

    Open source →
  17. 6.6.029 Apr 2024
    Release notes

    New features

    The new hideOn configuration option can be used to control in what circumstances lint tooltips get hidden by state changes.

    Open source →
  18. 6.5.030 Jan 2024
    Release notes

    Bug fixes

    Make lint mark decorations inclusive, so that they are applied even if the marked content is replaced by a widget decoration.

    New features

    linter can now be called with null as source to only provide a configuration.

    markerFilter and tooltipFilter function now get passed the current editor state.

    Open source →
  19. 6.4.214 Sept 2023
    Release notes

    Bug fixes

    Make sure scrolling diagnostic into view in the panel works when the editor is scaled.

    Open source →
  20. 6.4.126 Aug 2023
    Release notes

    Bug fixes

    Fix a crash that could occur when a view was reconfigured in a way that removed the lint extension.

    Open source →
  21. 6.4.03 Jul 2023
    Release notes

    New features

    Diagnostics can now use "hint" as a severity level.

    Diagnostics can now set a markClass property to add an additional CSS class to the text marked by the diagnostic.

    Open source →
  22. 6.3.023 Jun 2023
    Release notes

    New features

    A new previousDiagnostic command can be used to move back through the active diagnostics.

    Open source →
  23. 6.2.25 Jun 2023
    Release notes

    Bug fixes

    Make sure lint gutter tooltips are properly closed when the content of their line changes.

    Open source →
  24. 6.2.113 Apr 2023
    Release notes

    Bug fixes

    The linter function now eagerly includes all lint-related extensions, rather than appending them to the configuration as-needed, so that turning off linting by clearing the compartment that contains it works properly.

    Open source →
  25. 6.2.027 Feb 2023
    Release notes

    New features

    The new needsRefresh option to linter makes it possible to cause linting to be recalculated for non-document state changes.

    Open source →
  26. 6.1.115 Feb 2023
    Release notes

    Bug fixes

    Give lint action buttons a pointer cursor style.

    Fix a bug that caused diagnostic action callbacks to be called twice when their button was clicked.

    Open source →
  27. 6.1.015 Nov 2022
    Release notes

    New features

    The new forEachDiagnostic function can be used to iterate over the diagnostics in an editor state.

    Open source →
  28. 6.0.08 Jun 2022
    Release notes

    Breaking changes

    Update dependencies to 6.0.0

    Open source →
  29. 0.20.325 May 2022
    Release notes

    New features

    Diagnostic objects may now have a renderMessage method to render their message to the DOM.

    Open source →
  30. 0.20.22 May 2022
    Release notes

    New features

    The package now exports the LintSource function type.

    The new markerFilter and tooltipFilter options to linter and lintGutter allow more control over which diagnostics are visible and which have tooltips.

    Open source →
  31. 0.20.122 Apr 2022
    Release notes

    Bug fixes

    Hide lint tooltips when the document is changed.

    Open source →
  32. 0.20.020 Apr 2022
    Release notes

    Breaking changes

    Update dependencies to 0.20.0

    Open source →
  33. 0.19.64 Mar 2022
    Release notes

    Bug fixes

    Fix a bug where hovering over the icons in the lint gutter would sometimes fail to show a tooltip or show the tooltip for another line.

    Open source →
  34. 0.19.525 Feb 2022
    Release notes

    Bug fixes

    Make sure the lint gutter tooltips are positioned under their icon, even when the line is wrapped.

    Open source →
  35. 0.19.425 Feb 2022
    Release notes

    Bug fixes

    Fix an issue where an outdated marker could stick around on the lint gutter after all diagnostics were removed.

    New features

    Add a hoverTime option to the lint gutter. Change default hover time to 300

    Open source →
  36. 0.19.39 Nov 2021
    Release notes

    New features

    Export a function lintGutter which returns an extension that installs a gutter marking lines with diagnostics.

    The package now exports the effect used to update the diagnostics (setDiagnosticsEffect).

    Open source →
  37. 0.19.229 Sept 2021
    Release notes

    Bug fixes

    Fix a bug where reconfiguring the lint source didn't restart linting.

    Open source →
  38. 0.19.117 Sept 2021
    Release notes

    Bug fixes

    Prevent decorations that cover just a line break from being invisible by showing a widget instead of range for them.

    New features

    The diagnosticCount method can now be used to determine whether there are active diagnostics.

    Open source →
  39. 0.19.011 Aug 2021
    Release notes

    Breaking changes

    Update dependencies to 0.19.0

    Open source →
  40. 0.18.68 Aug 2021
    Release notes

    Bug fixes

    Fix a crash in the key handler of the lint panel when no diagnostics are available.

    Open source →
  41. 0.18.57 Aug 2021
    Release notes

    Bug fixes

    Fix an issue that caused openLintPanel to not actually open the panel when ran before the editor had any lint state loaded.

    New features

    The package now exports a forceLinting function that forces pending lint queries to run immediately.

    Open source →
  42. 0.18.47 Jun 2021
    Release notes

    Bug fixes

    Multiple linter extensions can now be added to an editor without disrupting each other.

    Fix poor layout on lint tooltips due to changes in @codemirror/tooltip.

    Open source →
  43. 0.18.310 May 2021
    Release notes

    Bug fixes

    Fix a regression where using setDiagnostics when linting hadn't been abled yet ignored the first set of diagnostics.

    Open source →
  44. 0.18.216 Apr 2021
    Release notes

    Bug fixes

    Newlines in line messages are now shown as line breaks to the user.

    New features

    You can now pass a delay option to linter to configure how long it waits before calling the linter.

    Open source →
  45. 0.18.115 Mar 2021
    Release notes

    Bug fixes

    Adjust to current @codemirror/panel and @codemirror/tooltip interfaces.

    Open source →
  46. 0.18.03 Mar 2021
    Release notes

    Bug fixes

    Make sure action access keys are discoverable for screen reader users.

    Selection in the lint panel should now be properly visible to screen readers.

    Open source →
  47. 0.17.16 Jan 2021
    Release notes

    New features

    The package now also exports a CommonJS module.

    Open source →
  48. 0.17.029 Dec 2020
    Release notes

    Breaking changes

    First numbered release.

    Open source →