OLD | NEW |
| 1 # 1.4.0 |
| 2 |
| 3 * The `new SourceFile()` constructor is deprecated. This constructed a source |
| 4 file from a string's runes, rather than its code units, which runs counter to |
| 5 the way Dart handles strings otherwise. The `new StringFile.fromString()` |
| 6 constructor (see below) should be used instead. |
| 7 |
| 8 * The `new SourceFile.fromString()` constructor was added. This works like `new |
| 9 SourceFile()`, except it uses code units rather than runes. |
| 10 |
| 11 * The current behavior when characters larger than `0xFFFF` are passed to `new |
| 12 SourceFile.decoded()` is now considered deprecated. |
| 13 |
| 14 # 1.3.1 |
| 15 |
| 16 * Properly highlight spans for lines that include tabs with |
| 17 `SourceSpan.highlight()` and `SourceSpan.message()`. |
| 18 |
| 19 # 1.3.0 |
| 20 |
| 21 * Add `SourceSpan.highlight()`, which returns just the highlighted text that |
| 22 would be included in `SourceSpan.message()`. |
| 23 |
| 24 # 1.2.4 |
| 25 |
| 26 * Fix a new strong mode error. |
| 27 |
| 28 # 1.2.3 |
| 29 |
| 30 * Fix a bug where a point span at the end of a file without a trailing newline |
| 31 would be printed incorrectly. |
| 32 |
| 33 # 1.2.2 |
| 34 |
| 35 * Allow `SourceSpanException.message`, `SourceSpanFormatException.source`, and |
| 36 `SourceSpanWithContext.context` to be overridden in strong mode. |
| 37 |
1 # 1.2.1 | 38 # 1.2.1 |
2 | 39 |
3 * Fix the declared type of `FileSpan.start` and `FileSpan.end`. In 1.2.0 these | 40 * Fix the declared type of `FileSpan.start` and `FileSpan.end`. In 1.2.0 these |
4 were mistakenly changed from `FileLocation` to `SourceLocation`. | 41 were mistakenly changed from `FileLocation` to `SourceLocation`. |
5 | 42 |
6 # 1.2.0 | 43 # 1.2.0 |
7 | 44 |
8 * **Deprecated:** Extending `SourceLocation` directly is deprecated. Instead, | 45 * **Deprecated:** Extending `SourceLocation` directly is deprecated. Instead, |
9 extend the new `SourceLocationBase` class or mix in the new | 46 extend the new `SourceLocationBase` class or mix in the new |
10 `SourceLocationMixin` mixin. | 47 `SourceLocationMixin` mixin. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 `SourceSpan.message` and `SourceFile.message`, respectively. Rather than | 125 `SourceSpan.message` and `SourceFile.message`, respectively. Rather than |
89 taking both a `useColor` and a `color` parameter, they now take a single | 126 taking both a `useColor` and a `color` parameter, they now take a single |
90 `color` parameter that controls both whether and which color is used. | 127 `color` parameter that controls both whether and which color is used. |
91 | 128 |
92 * `Span.isIdentifier` has been removed. This property doesn't make sense outside | 129 * `Span.isIdentifier` has been removed. This property doesn't make sense outside |
93 of a source map context. | 130 of a source map context. |
94 | 131 |
95 * `SourceFileSegment` has been removed. This class wasn't widely used and was | 132 * `SourceFileSegment` has been removed. This class wasn't widely used and was |
96 inconsistent in its choice of which parameters were considered relative and | 133 inconsistent in its choice of which parameters were considered relative and |
97 which absolute. | 134 which absolute. |
OLD | NEW |