@codemirror/lint 6.7.0 → 6.7.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.7.1 (2024-05-15)
2
+
3
+ ### Bug fixes
4
+
5
+ Don't perform an additional superfluous timed lint run after `forceLinting` has been called.
6
+
1
7
  ## 6.7.0 (2024-04-30)
2
8
 
3
9
  ### New features
package/dist/index.cjs CHANGED
@@ -225,6 +225,7 @@ const lintPlugin = view.ViewPlugin.fromClass(class {
225
225
  this.timeout = setTimeout(this.run, delay);
226
226
  }
227
227
  run() {
228
+ clearTimeout(this.timeout);
228
229
  let now = Date.now();
229
230
  if (now < this.lintTime - 10) {
230
231
  this.timeout = setTimeout(this.run, this.lintTime - now);
package/dist/index.js CHANGED
@@ -223,6 +223,7 @@ const lintPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {
223
223
  this.timeout = setTimeout(this.run, delay);
224
224
  }
225
225
  run() {
226
+ clearTimeout(this.timeout);
226
227
  let now = Date.now();
227
228
  if (now < this.lintTime - 10) {
228
229
  this.timeout = setTimeout(this.run, this.lintTime - now);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/lint",
3
- "version": "6.7.0",
3
+ "version": "6.7.1",
4
4
  "description": "Linting support for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",