|
| 1 | +## 1.4.1 |
| 2 | + |
| 3 | +* Move to `dart-lang/tools` monorepo. |
| 4 | + |
| 5 | +## 1.4.0 |
| 6 | + |
| 7 | +* Fix `LineScanner`'s handling of `\r\n`'s to preventing errors scanning |
| 8 | + zero-length matches when between CR and LF. CR is treated as a new line only |
| 9 | + if not immediately followed by a LF. |
| 10 | +* Fix `LineScanner`'s updating of `column` when setting `position` if the |
| 11 | + current position is not `0`. |
| 12 | + |
| 13 | +## 1.3.0 |
| 14 | + |
| 15 | +* Require Dart 3.1.0 |
| 16 | + |
| 17 | +* Add a `SpanScanner.spanFromPosition()` method which takes raw code units |
| 18 | + rather than `SpanScanner.spanFrom()`'s `LineScannerState`s. |
| 19 | + |
| 20 | +## 1.2.0 |
| 21 | + |
| 22 | +* Require Dart 2.18.0 |
| 23 | + |
| 24 | +* Add better support for reading code points in the Unicode supplementary plane: |
| 25 | + |
| 26 | + * Added `StringScanner.readCodePoint()`, which consumes an entire Unicode code |
| 27 | + point even if it's represented by two UTF-16 code units. |
| 28 | + |
| 29 | + * Added `StringScanner.peekCodePoint()`, which returns an entire Unicode code |
| 30 | + point even if it's represented by two UTF-16 code units. |
| 31 | + |
| 32 | + * `StringScanner.scanChar()` and `StringScanner.expectChar()` will now |
| 33 | + properly consume two UTF-16 code units if they're passed Unicode code points |
| 34 | + in the supplementary plane. |
| 35 | + |
| 36 | +## 1.1.1 |
| 37 | + |
| 38 | +* Populate the pubspec `repository` field. |
| 39 | +* Switch to `package:lints`. |
| 40 | +* Remove a dependency on `package:charcode`. |
| 41 | + |
| 42 | +## 1.1.0 |
| 43 | + |
| 44 | +* Stable release for null safety. |
| 45 | + |
| 46 | +## 1.1.0-nullsafety.3 |
| 47 | + |
| 48 | +* Update SDK constraints to `>=2.12.0-0 <3.0.0` based on beta release |
| 49 | + guidelines. |
| 50 | + |
| 51 | +## 1.1.0-nullsafety.2 |
| 52 | + |
| 53 | +* Allow prerelease versions of the 2.12 sdk. |
| 54 | + |
| 55 | +## 1.1.0-nullsafety.1 |
| 56 | + |
| 57 | +- Allow 2.10 stable and 2.11.0 dev SDK versions. |
| 58 | + |
| 59 | +## 1.1.0-nullsafety |
| 60 | + |
| 61 | +- Migrate to null safety. |
| 62 | + |
| 63 | +## 1.0.5 |
| 64 | + |
| 65 | +- Added an example. |
| 66 | + |
| 67 | +- Update Dart SDK constraint to `>=2.0.0 <3.0.0`. |
| 68 | + |
| 69 | +## 1.0.4 |
| 70 | + |
| 71 | +* Add @alwaysThrows annotation to error method. |
| 72 | + |
| 73 | +## 1.0.3 |
| 74 | + |
| 75 | +* Set max SDK version to `<3.0.0`, and adjust other dependencies. |
| 76 | + |
| 77 | +## 1.0.2 |
| 78 | + |
| 79 | +* `SpanScanner` no longer crashes when creating a span that contains a UTF-16 |
| 80 | + surrogate pair. |
| 81 | + |
| 82 | +## 1.0.1 |
| 83 | + |
| 84 | +* Fix the error text emitted by `StringScanner.expectChar()`. |
| 85 | + |
| 86 | +## 1.0.0 |
| 87 | + |
| 88 | +* **Breaking change**: `StringScanner.error()`'s `length` argument now defaults |
| 89 | + to `0` rather than `1` when no match data is available. |
| 90 | + |
| 91 | +* **Breaking change**: `StringScanner.lastMatch` and related methods are now |
| 92 | + reset when the scanner's position changes without producing a new match. |
| 93 | + |
| 94 | +**Note**: While the changes in `1.0.0` are user-visible, they're unlikely to |
| 95 | +actually break any code in practice. Unless you know that your package is |
| 96 | +incompatible with 0.1.x, consider using 0.1.5 as your lower bound rather |
| 97 | +than 1.0.0. For example, `string_scanner: ">=0.1.5 <2.0.0"`. |
| 98 | + |
| 99 | +## 0.1.5 |
| 100 | + |
| 101 | +* Add `new SpanScanner.within()`, which scans within a existing `FileSpan`. |
| 102 | + |
| 103 | +* Add `StringScanner.scanChar()` and `StringScanner.expectChar()`. |
| 104 | + |
| 105 | +## 0.1.4+1 |
| 106 | + |
| 107 | +* Remove the dependency on `path`, since we don't actually import it. |
| 108 | + |
| 109 | +## 0.1.4 |
| 110 | + |
| 111 | +* Add `new SpanScanner.eager()` for creating a `SpanScanner` that eagerly |
| 112 | + computes its current line and column numbers. |
| 113 | + |
| 114 | +## 0.1.3+2 |
| 115 | + |
| 116 | +* Fix `LineScanner`'s handling of carriage returns to match that of |
| 117 | + `SpanScanner`. |
| 118 | + |
| 119 | +## 0.1.3+1 |
| 120 | + |
| 121 | +* Fixed the homepage URL. |
| 122 | + |
| 123 | +## 0.1.3 |
| 124 | + |
| 125 | +* Add an optional `endState` argument to `SpanScanner.spanFrom`. |
| 126 | + |
| 127 | +## 0.1.2 |
| 128 | + |
| 129 | +* Add `StringScanner.substring`, which returns a substring of the source string. |
| 130 | + |
| 131 | +## 0.1.1 |
| 132 | + |
| 133 | +* Declare `SpanScanner`'s exposed `SourceSpan`s and `SourceLocation`s to be |
| 134 | + `FileSpan`s and `FileLocation`s. They always were underneath, but callers may |
| 135 | + now rely on it. |
| 136 | + |
| 137 | +* Add `SpanScanner.location`, which returns the scanner's current |
| 138 | + `SourceLocation`. |
| 139 | + |
| 140 | +## 0.1.0 |
| 141 | + |
| 142 | +* Switch from `source_maps`' `Span` class to `source_span`'s `SourceSpan` class. |
| 143 | + |
| 144 | +* `new StringScanner()`'s `sourceUrl` parameter is now named to make it clear |
| 145 | + that it can be safely `null`. |
| 146 | + |
| 147 | +* `new StringScannerException()` takes different arguments in a different order |
| 148 | + to match `SpanFormatException`. |
| 149 | + |
| 150 | +* `StringScannerException.string` has been renamed to |
| 151 | + `StringScannerException.source` to match the `FormatException` interface. |
| 152 | + |
| 153 | +## 0.0.3 |
| 154 | + |
| 155 | +* Make `StringScannerException` inherit from source_map's `SpanFormatException`. |
| 156 | + |
| 157 | +## 0.0.2 |
| 158 | + |
| 159 | +* `new StringScanner()` now takes an optional `sourceUrl` argument that provides |
| 160 | + the URL of the source file. This is used for error reporting. |
| 161 | + |
| 162 | +* Add `StringScanner.readChar()` and `StringScanner.peekChar()` methods for |
| 163 | + doing character-by-character scanning. |
| 164 | + |
| 165 | +* Scanners now throw `StringScannerException`s which provide more detailed |
| 166 | + access to information about the errors that were thrown and can provide |
| 167 | + terminal-colored messages. |
| 168 | + |
| 169 | +* Add a `LineScanner` subclass of `StringScanner` that automatically tracks line |
| 170 | + and column information of the text being scanned. |
| 171 | + |
| 172 | +* Add a `SpanScanner` subclass of `LineScanner` that exposes matched ranges as |
| 173 | + [source map][] `Span` objects. |
| 174 | + |
| 175 | +[source_map]: https://pub.dev/packages/source_maps |
0 commit comments