@codemirror/autocomplete
Advanced tools
Comparing version 6.17.0 to 6.18.0
@@ -0,1 +1,11 @@ | ||
## 6.18.0 (2024-08-05) | ||
### Bug fixes | ||
Style the info element so that newlines are preserved, to make it easier to display multi-line info from a string source. | ||
### New features | ||
When registering an `abort` handler for a completion query, you can now use the `onDocChange` option to indicate that your query should be aborted as soon as the document changes while it is running. | ||
## 6.17.0 (2024-07-03) | ||
@@ -2,0 +12,0 @@ |
@@ -196,4 +196,14 @@ import * as _codemirror_state from '@codemirror/state'; | ||
[aborted](https://codemirror.net/6/docs/ref/#autocomplete.CompletionContext.aborted). | ||
By default, running queries will not be aborted for regular | ||
typing or backspacing, on the assumption that they are likely to | ||
return a result with a | ||
[`validFor`](https://codemirror.net/6/docs/ref/#autocomplete.CompletionResult.validFor) field that | ||
allows the result to be used after all. Passing `onDocChange: | ||
true` will cause this query to be aborted for any document | ||
change. | ||
*/ | ||
addEventListener(type: "abort", listener: () => void): void; | ||
addEventListener(type: "abort", listener: () => void, options?: { | ||
onDocChange: boolean; | ||
}): void; | ||
} | ||
@@ -200,0 +210,0 @@ /** |
{ | ||
"name": "@codemirror/autocomplete", | ||
"version": "6.17.0", | ||
"version": "6.18.0", | ||
"description": "Autocompletion for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
246928
4745