|
1 |
| -# 1.9.2-dev |
| 1 | +## 1.9.2-dev |
2 | 2 |
|
3 | 3 | * Require Dart 2.18
|
4 | 4 | * Add an API usage example in `example/`.
|
5 | 5 |
|
6 |
| -# 1.9.1 |
| 6 | +## 1.9.1 |
7 | 7 |
|
8 | 8 | * Properly handle multi-line labels for multi-span highlights.
|
9 | 9 |
|
10 | 10 | * Populate the pubspec `repository` field.
|
11 | 11 |
|
12 |
| -# 1.9.0 |
| 12 | +## 1.9.0 |
13 | 13 |
|
14 | 14 | * Add `SourceSpanWithContextExtension.subspan` that returns a
|
15 | 15 | `SourceSpanWithContext` rather than a plain `SourceSpan`.
|
16 | 16 |
|
17 |
| -# 1.8.2 |
| 17 | +## 1.8.2 |
18 | 18 |
|
19 | 19 | * Fix a bug where highlighting multiple spans with `null` URLs could cause an
|
20 | 20 | assertion error. Now when multiple spans are passed with `null` URLs, they're
|
21 | 21 | highlighted as though they all come from different source files.
|
22 | 22 |
|
23 |
| -# 1.8.1 |
| 23 | +## 1.8.1 |
24 | 24 |
|
25 | 25 | * Fix a bug where the URL header for the highlights with multiple files would
|
26 | 26 | get omitted only one span has a non-null URI.
|
27 | 27 |
|
28 |
| -# 1.8.0 |
| 28 | +## 1.8.0 |
29 | 29 |
|
30 | 30 | * Stable release for null safety.
|
31 | 31 |
|
32 |
| -# 1.7.0 |
| 32 | +## 1.7.0 |
33 | 33 |
|
34 | 34 | * Add a `SourceSpan.subspan()` extension method which returns a slice of an
|
35 | 35 | existing source span.
|
36 | 36 |
|
37 |
| -# 1.6.0 |
| 37 | +## 1.6.0 |
38 | 38 |
|
39 | 39 | * Add support for highlighting multiple source spans at once, providing more
|
40 | 40 | context for span-based messages. This is exposed through the new APIs
|
41 | 41 | `SourceSpan.highlightMultiple()` and `SourceSpan.messageMultiple()` (both
|
42 | 42 | extension methods), `MultiSourceSpanException`, and
|
43 | 43 | `MultiSourceSpanFormatException`.
|
44 | 44 |
|
45 |
| -# 1.5.6 |
| 45 | +## 1.5.6 |
46 | 46 |
|
47 | 47 | * Fix padding around line numbers that are powers of 10 in
|
48 | 48 | `FileSpan.highlight()`.
|
49 | 49 |
|
50 |
| -# 1.5.5 |
| 50 | +## 1.5.5 |
51 | 51 |
|
52 | 52 | * Fix a bug where `FileSpan.highlight()` would crash for spans that covered a
|
53 | 53 | trailing newline and a single additional empty line.
|
54 | 54 |
|
55 |
| -# 1.5.4 |
| 55 | +## 1.5.4 |
56 | 56 |
|
57 | 57 | * `FileSpan.highlight()` now properly highlights point spans at the beginning of
|
58 | 58 | lines.
|
59 | 59 |
|
60 |
| -# 1.5.3 |
| 60 | +## 1.5.3 |
61 | 61 |
|
62 | 62 | * Fix an edge case where `FileSpan.highlight()` would put the highlight
|
63 | 63 | indicator in the wrong position when highlighting a point span after the end
|
64 | 64 | of a file.
|
65 | 65 |
|
66 |
| -# 1.5.2 |
| 66 | +## 1.5.2 |
67 | 67 |
|
68 | 68 | * `SourceFile.span()` now goes to the end of the file by default, rather than
|
69 | 69 | ending one character before the end of the file. This matches the documented
|
|
75 | 75 | * Fix an edge case where `FileSpan.highlight()` could crash when highlighting a
|
76 | 76 | span that ended with an empty line.
|
77 | 77 |
|
78 |
| -# 1.5.1 |
| 78 | +## 1.5.1 |
79 | 79 |
|
80 | 80 | * Produce better source span highlights for multi-line spans that cover the
|
81 | 81 | entire last line of the span, including the newline.
|
82 | 82 |
|
83 | 83 | * Produce better source span highlights for spans that contain Windows-style
|
84 | 84 | newlines.
|
85 | 85 |
|
86 |
| -# 1.5.0 |
| 86 | +## 1.5.0 |
87 | 87 |
|
88 | 88 | * Improve the output of `SourceSpan.highlight()` and `SourceSpan.message()`:
|
89 | 89 |
|
|
94 | 94 |
|
95 | 95 | [`term_glyph.ascii`]: https://pub.dartlang.org/documentation/term_glyph/latest/term_glyph/ascii.html
|
96 | 96 |
|
97 |
| -# 1.4.1 |
| 97 | +## 1.4.1 |
98 | 98 |
|
99 | 99 | * Set max SDK version to `<3.0.0`, and adjust other dependencies.
|
100 | 100 |
|
101 |
| -# 1.4.0 |
| 101 | +## 1.4.0 |
102 | 102 |
|
103 | 103 | * The `new SourceFile()` constructor is deprecated. This constructed a source
|
104 | 104 | file from a string's runes, rather than its code units, which runs counter to
|
|
111 | 111 | * The current behavior when characters larger than `0xFFFF` are passed to `new
|
112 | 112 | SourceFile.decoded()` is now considered deprecated.
|
113 | 113 |
|
114 |
| -# 1.3.1 |
| 114 | +## 1.3.1 |
115 | 115 |
|
116 | 116 | * Properly highlight spans for lines that include tabs with
|
117 | 117 | `SourceSpan.highlight()` and `SourceSpan.message()`.
|
118 | 118 |
|
119 |
| -# 1.3.0 |
| 119 | +## 1.3.0 |
120 | 120 |
|
121 | 121 | * Add `SourceSpan.highlight()`, which returns just the highlighted text that
|
122 | 122 | would be included in `SourceSpan.message()`.
|
123 | 123 |
|
124 |
| -# 1.2.4 |
| 124 | +## 1.2.4 |
125 | 125 |
|
126 | 126 | * Fix a new strong mode error.
|
127 | 127 |
|
128 |
| -# 1.2.3 |
| 128 | +## 1.2.3 |
129 | 129 |
|
130 | 130 | * Fix a bug where a point span at the end of a file without a trailing newline
|
131 | 131 | would be printed incorrectly.
|
132 | 132 |
|
133 |
| -# 1.2.2 |
| 133 | +## 1.2.2 |
134 | 134 |
|
135 | 135 | * Allow `SourceSpanException.message`, `SourceSpanFormatException.source`, and
|
136 | 136 | `SourceSpanWithContext.context` to be overridden in strong mode.
|
137 | 137 |
|
138 |
| -# 1.2.1 |
| 138 | +## 1.2.1 |
139 | 139 |
|
140 | 140 | * Fix the declared type of `FileSpan.start` and `FileSpan.end`. In 1.2.0 these
|
141 | 141 | were mistakenly changed from `FileLocation` to `SourceLocation`.
|
142 | 142 |
|
143 |
| -# 1.2.0 |
| 143 | +## 1.2.0 |
144 | 144 |
|
145 | 145 | * **Deprecated:** Extending `SourceLocation` directly is deprecated. Instead,
|
146 | 146 | extend the new `SourceLocationBase` class or mix in the new
|
147 | 147 | `SourceLocationMixin` mixin.
|
148 | 148 |
|
149 | 149 | * Dramatically improve the performance of `FileLocation`.
|
150 | 150 |
|
151 |
| -# 1.1.6 |
| 151 | +## 1.1.6 |
152 | 152 |
|
153 | 153 | * Optimize `getLine()` in `SourceFile` when repeatedly called.
|
154 | 154 |
|
155 |
| -# 1.1.5 |
| 155 | +## 1.1.5 |
156 | 156 |
|
157 | 157 | * Fixed another case in which `FileSpan.union` could throw an exception for
|
158 | 158 | external implementations of `FileSpan`.
|
159 | 159 |
|
160 |
| -# 1.1.4 |
| 160 | +## 1.1.4 |
161 | 161 |
|
162 | 162 | * Eliminated dart2js warning about overriding `==`, but not `hashCode`.
|
163 | 163 |
|
164 |
| -# 1.1.3 |
| 164 | +## 1.1.3 |
165 | 165 |
|
166 | 166 | * `FileSpan.compareTo`, `FileSpan.==`, `FileSpan.union`, and `FileSpan.expand`
|
167 | 167 | no longer throw exceptions for external implementations of `FileSpan`.
|
168 | 168 |
|
169 | 169 | * `FileSpan.hashCode` now fully agrees with `FileSpan.==`.
|
170 | 170 |
|
171 |
| -# 1.1.2 |
| 171 | +## 1.1.2 |
172 | 172 |
|
173 | 173 | * Fixed validation in `SourceSpanWithContext` to allow multiple occurrences of
|
174 | 174 | `text` within `context`.
|
175 | 175 |
|
176 |
| -# 1.1.1 |
| 176 | +## 1.1.1 |
177 | 177 |
|
178 | 178 | * Fixed `FileSpan`'s context to include the full span text, not just the first
|
179 | 179 | line of it.
|
180 | 180 |
|
181 |
| -# 1.1.0 |
| 181 | +## 1.1.0 |
182 | 182 |
|
183 | 183 | * Added `SourceSpanWithContext`: a span that also includes the full line of text
|
184 | 184 | that contains the span.
|
185 | 185 |
|
186 |
| -# 1.0.3 |
| 186 | +## 1.0.3 |
187 | 187 |
|
188 | 188 | * Cleanup equality operator to accept any Object rather than just a
|
189 | 189 | `SourceLocation`.
|
190 | 190 |
|
191 |
| -# 1.0.2 |
| 191 | +## 1.0.2 |
192 | 192 |
|
193 | 193 | * Avoid unintentionally allocating extra objects for internal `FileSpan`
|
194 | 194 | operations.
|
195 | 195 |
|
196 | 196 | * Ensure that `SourceSpan.operator==` works on arbitrary `Object`s.
|
197 | 197 |
|
198 |
| -# 1.0.1 |
| 198 | +## 1.0.1 |
199 | 199 |
|
200 | 200 | * Use a more compact internal representation for `FileSpan`.
|
201 | 201 |
|
202 |
| -# 1.0.0 |
| 202 | +## 1.0.0 |
203 | 203 |
|
204 | 204 | This package was extracted from the
|
205 | 205 | [`source_maps`](https://pub.dev/packages/source_maps) package, but the
|
|
0 commit comments