| OLD | NEW |
| (Empty) |
| 1 # 1.0.2 | |
| 2 | |
| 3 * Avoid unintentionally allocating extra objects for internal `FileSpan` | |
| 4 operations. | |
| 5 | |
| 6 * Ensure that `SourceSpan.operator==` works on arbitrary `Object`s. | |
| 7 | |
| 8 # 1.0.1 | |
| 9 | |
| 10 * Use a more compact internal representation for `FileSpan`. | |
| 11 | |
| 12 # 1.0.0 | |
| 13 | |
| 14 This package was extracted from the | |
| 15 [`source_maps`](http://pub.dartlang.org/packages/source_maps) package, but the | |
| 16 API has many differences. Among them: | |
| 17 | |
| 18 * `Span` has been renamed to `SourceSpan` and `Location` has been renamed to | |
| 19 `SourceLocation` to clarify their purpose and maintain consistency with the | |
| 20 package name. Likewise, `SpanException` is now `SourceSpanException` and | |
| 21 `SpanFormatException` is not `SourceSpanFormatException`. | |
| 22 | |
| 23 * `FixedSpan` and `FixedLocation` have been rolled into the `Span` and | |
| 24 `Location` classes, respectively. | |
| 25 | |
| 26 * `SourceFile` is more aggressive about validating its arguments. Out-of-bounds | |
| 27 lines, columns, and offsets will now throw errors rather than be silently | |
| 28 clamped. | |
| 29 | |
| 30 * `SourceSpan.sourceUrl`, `SourceLocation.sourceUrl`, and `SourceFile.url` now | |
| 31 return `Uri` objects rather than `String`s. The constructors allow either | |
| 32 `String`s or `Uri`s. | |
| 33 | |
| 34 * `Span.getLocationMessage` and `SourceFile.getLocationMessage` are now | |
| 35 `SourceSpan.message` and `SourceFile.message`, respectively. Rather than | |
| 36 taking both a `useColor` and a `color` parameter, they now take a single | |
| 37 `color` parameter that controls both whether and which color is used. | |
| 38 | |
| 39 * `Span.isIdentifier` has been removed. This property doesn't make sense outside | |
| 40 of a source map context. | |
| 41 | |
| 42 * `SourceFileSegment` has been removed. This class wasn't widely used and was | |
| 43 inconsistent in its choice of which parameters were considered relative and | |
| 44 which absolute. | |
| OLD | NEW |