@codemirror/text
Advanced tools
Comparing version 0.19.4 to 0.19.5
@@ -0,1 +1,7 @@ | ||
## 0.19.5 (2021-10-26) | ||
### Bug fixes | ||
Fix the return type of `iterLines`. | ||
## 0.19.4 (2021-10-01) | ||
@@ -2,0 +8,0 @@ |
@@ -48,3 +48,3 @@ /** | ||
*/ | ||
interface TextIterator extends Iterator<string> { | ||
interface TextIterator extends Iterator<string>, Iterable<string> { | ||
/** | ||
@@ -130,3 +130,3 @@ Retrieve the next string. Optionally skip a given number of | ||
*/ | ||
iterLines(from?: number, to?: number): LineCursor; | ||
iterLines(from?: number, to?: number): TextIterator; | ||
/** | ||
@@ -152,11 +152,2 @@ Convert the document to an array of lines (which can be | ||
} | ||
declare class LineCursor implements TextIterator { | ||
readonly inner: TextIterator; | ||
afterBreak: boolean; | ||
value: string; | ||
done: boolean; | ||
constructor(inner: TextIterator); | ||
next(skip?: number): this; | ||
get lineBreak(): boolean; | ||
} | ||
/** | ||
@@ -163,0 +154,0 @@ This type describes a line in the document. It is created |
{ | ||
"name": "@codemirror/text", | ||
"version": "0.19.4", | ||
"version": "0.19.5", | ||
"description": "Document data structure for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
62669
1567