OLD | NEW |
(Empty) | |
| 1 # 1.2.1 |
| 2 |
| 3 * Fix the declared type of `FileSpan.start` and `FileSpan.end`. In 1.2.0 these |
| 4 were mistakenly changed from `FileLocation` to `SourceLocation`. |
| 5 |
| 6 # 1.2.0 |
| 7 |
| 8 * **Deprecated:** Extending `SourceLocation` directly is deprecated. Instead, |
| 9 extend the new `SourceLocationBase` class or mix in the new |
| 10 `SourceLocationMixin` mixin. |
| 11 |
| 12 * Dramatically improve the performance of `FileLocation`. |
| 13 |
| 14 # 1.1.6 |
| 15 |
| 16 * Optimize `getLine()` in `SourceFile` when repeatedly called. |
| 17 |
| 18 # 1.1.5 |
| 19 |
| 20 * Fixed another case in which `FileSpan.union` could throw an exception for |
| 21 external implementations of `FileSpan`. |
| 22 |
| 23 # 1.1.4 |
| 24 |
| 25 * Eliminated dart2js warning about overriding `==`, but not `hashCode`. |
| 26 |
| 27 # 1.1.3 |
| 28 |
| 29 * `FileSpan.compareTo`, `FileSpan.==`, `FileSpan.union`, and `FileSpan.expand` |
| 30 no longer throw exceptions for external implementations of `FileSpan`. |
| 31 |
| 32 * `FileSpan.hashCode` now fully agrees with `FileSpan.==`. |
| 33 |
| 34 # 1.1.2 |
| 35 |
| 36 * Fixed validation in `SourceSpanWithContext` to allow multiple occurrences of |
| 37 `text` within `context`. |
| 38 |
| 39 # 1.1.1 |
| 40 |
| 41 * Fixed `FileSpan`'s context to include the full span text, not just the first |
| 42 line of it. |
| 43 |
| 44 # 1.1.0 |
| 45 |
| 46 * Added `SourceSpanWithContext`: a span that also includes the full line of text |
| 47 that contains the span. |
| 48 |
| 49 # 1.0.3 |
| 50 |
| 51 * Cleanup equality operator to accept any Object rather than just a |
| 52 `SourceLocation`. |
| 53 |
| 54 # 1.0.2 |
| 55 |
| 56 * Avoid unintentionally allocating extra objects for internal `FileSpan` |
| 57 operations. |
| 58 |
| 59 * Ensure that `SourceSpan.operator==` works on arbitrary `Object`s. |
| 60 |
| 61 # 1.0.1 |
| 62 |
| 63 * Use a more compact internal representation for `FileSpan`. |
| 64 |
| 65 # 1.0.0 |
| 66 |
| 67 This package was extracted from the |
| 68 [`source_maps`](http://pub.dartlang.org/packages/source_maps) package, but the |
| 69 API has many differences. Among them: |
| 70 |
| 71 * `Span` has been renamed to `SourceSpan` and `Location` has been renamed to |
| 72 `SourceLocation` to clarify their purpose and maintain consistency with the |
| 73 package name. Likewise, `SpanException` is now `SourceSpanException` and |
| 74 `SpanFormatException` is not `SourceSpanFormatException`. |
| 75 |
| 76 * `FixedSpan` and `FixedLocation` have been rolled into the `Span` and |
| 77 `Location` classes, respectively. |
| 78 |
| 79 * `SourceFile` is more aggressive about validating its arguments. Out-of-bounds |
| 80 lines, columns, and offsets will now throw errors rather than be silently |
| 81 clamped. |
| 82 |
| 83 * `SourceSpan.sourceUrl`, `SourceLocation.sourceUrl`, and `SourceFile.url` now |
| 84 return `Uri` objects rather than `String`s. The constructors allow either |
| 85 `String`s or `Uri`s. |
| 86 |
| 87 * `Span.getLocationMessage` and `SourceFile.getLocationMessage` are now |
| 88 `SourceSpan.message` and `SourceFile.message`, respectively. Rather than |
| 89 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. |
| 91 |
| 92 * `Span.isIdentifier` has been removed. This property doesn't make sense outside |
| 93 of a source map context. |
| 94 |
| 95 * `SourceFileSegment` has been removed. This class wasn't widely used and was |
| 96 inconsistent in its choice of which parameters were considered relative and |
| 97 which absolute. |
OLD | NEW |