| 1 | # CHANGELOG |
| 2 | |
| 3 | ## v5.0.0 |
| 4 | |
| 5 | Breaking change: |
| 6 | |
| 7 | * [Migrate to 8.0 `nom`](https://github.com/fflorent/nom_locate/pull/96) |
| 8 | * Bump up MSRV to 1.65 |
| 9 | |
| 10 | ## v4.2.0 |
| 11 | |
| 12 | Improvements: |
| 13 | |
| 14 | * [Add methods to take ownership of fragment and extra data](https://github.com/fflorent/nom_locate/pull/91) |
| 15 | |
| 16 | Internal: |
| 17 | |
| 18 | * Remove build status from README |
| 19 | * Fix compilation warning in example |
| 20 | |
| 21 | ## v4.1.0 |
| 22 | |
| 23 | Improvements: |
| 24 | |
| 25 | * [Remove unneeded bounds & add map method](https://github.com/fflorent/nom_locate/pull/83) |
| 26 | * [Implement AsRef for LocatedSpan](https://github.com/fflorent/nom_locate/pull/85) |
| 27 | |
| 28 | Documentation fix: |
| 29 | |
| 30 | * [Use `new_extra` instead of `new` for `LocatedSpan` with extra data](https://github.com/fflorent/nom_locate/pull/84) |
| 31 | |
| 32 | ## v4.0.0 |
| 33 | |
| 34 | Breaking change: |
| 35 | |
| 36 | * [Update to nom 7](https://github.com/fflorent/nom_locate/pull/78) |
| 37 | |
| 38 | ## v3.1.0 |
| 39 | |
| 40 | This is likely the last 3.x.x release, and 4.0.0 will use nom 7 instead of nom 6. |
| 41 | |
| 42 | Improvements: |
| 43 | |
| 44 | * [Genericizes the rest of the nom traits](https://github.com/fflorent/nom_locate/pull/76) |
| 45 | |
| 46 | Documentation fix: |
| 47 | |
| 48 | * [Fix link to docs of LocatedSpan in README](https://github.com/fflorent/nom_locate/pull/77) |
| 49 | |
| 50 | |
| 51 | ## v3.0.2 |
| 52 | |
| 53 | Fixes: |
| 54 | |
| 55 | * [Generalize FindSubstring impl](https://github.com/fflorent/nom_locate/pull/72) to types other than &'a str |
| 56 | * [no_std support](https://github.com/fflorent/nom_locate/pull/61) |
| 57 | |
| 58 | Other changes: |
| 59 | |
| 60 | * Switched CI from Travis to Github Actions |
| 61 | * Always run 'cargo fmt' on the CI |
| 62 | |
| 63 | ## v3.0.1 |
| 64 | |
| 65 | Fix: |
| 66 | |
| 67 | * [Skip test it_should_ignore_extra_for_hash on no_std](https://github.com/fflorent/nom_locate/commit/42046bc1765d45dac00e2d6dd3bbd07b997946f1) |
| 68 | |
| 69 | Documentation fixes/updates: |
| 70 | |
| 71 | * [README.md: Update example code block from the documentation](https://github.com/fflorent/nom_locate/commit/5775fe3c5203ca082e8e61049eac78195e3c2386) |
| 72 | * [Fix erroneous backticks in documentation + Update documentation from README and nom](https://github.com/fflorent/nom_locate/pull/63) |
| 73 | |
| 74 | ## v3.0.0 |
| 75 | |
| 76 | Breaking change: |
| 77 | |
| 78 | * [Update to nom 6](https://github.com/fflorent/nom_locate/pull/67) |
| 79 | |
| 80 | Other change: |
| 81 | |
| 82 | * [Implement Hash if members impl Hash](https://github.com/fflorent/nom_locate/pull/69) |
| 83 | |
| 84 | |
| 85 | ## v2.1.0 |
| 86 | |
| 87 | This release mostly brings some new trait implementations for convenience. |
| 88 | |
| 89 | * [Change tests text for copyright reasons](https://github.com/fflorent/nom_locate/pull/56) |
| 90 | * [Implement `From<T>` for `LocatedSpan`](https://github.com/fflorent/nom_locate/pull/57) |
| 91 | * [Implement `Deref` for `LocatedSpan`, returning the fragment](https://github.com/fflorent/nom_locate/pull/58) |
| 92 | * [Optionally implement `StableDeref` as well](https://github.com/fflorent/nom_locate/pull/65), if the `stable-deref-trait` feature is enabled. |
| 93 | * [Generalize `Compare`](https://github.com/fflorent/nom_locate/pull/58) |
| 94 | * [Generalize `HexDisplay`, and deprecated the `impl_hex_display!` macro which no longer does anything](https://github.com/fflorent/nom_locate/pull/58) |
| 95 | * [Add `LocatedSpan::get_line_beginning`](https://github.com/fflorent/nom_locate/pull/66), which returns the beginning of a line up to the end of the LocatedSpan. Useful to display human-friendly errors. |
| 96 | |
| 97 | |
| 98 | ## v2.0.0 |
| 99 | |
| 100 | This release brings several breaking changes: |
| 101 | |
| 102 | * [Error type for "position" is made generic](https://github.com/fflorent/nom_locate/pull/37) |
| 103 | * [`extra` property is now ignored when comparing LocatedSpan](https://github.com/fflorent/nom_locate/pull/46) |
| 104 | * [Dependency on nom now uses with `default-features = false`](https://github.com/fflorent/nom_locate/pull/47) |
| 105 | * [`offset`/`line`/`fragment` are now private attributes of the `LocatedSpan` structure](https://github.com/fflorent/nom_locate/pull/50), |
| 106 | to fix an undefined behavior is they are modified. You now have to use the `location_offset()`, `location_line()`, and `fragment()` getters instead. |
| 107 | * [`LocatedSpanEx` is removed in favour of adding a generic type parameter to `LocatedSpan` which defaults to to `()`](https://github.com/fflorent/nom_locate/pull/51) |
| 108 | |
| 109 | |
| 110 | Additionally, there are a few documentation improvements: |
| 111 | |
| 112 | * LocatedSpan should not be constructed in the middle of a parser. |
| 113 | * Fix typo in extra property docs for LocatedSpan |
| 114 | |
| 115 | Finally, [`LocatedSpan` now implements `Display`](https://github.com/fflorent/nom_locate/pull/40) |
| 116 | |
| 117 | |
| 118 | ## v1.0.0 |
| 119 | |
| 120 | We decided that the crate was mature enough to release the version 1.0.0. It doesn't bring much new things, still we are proud of this big move! :tada: |
| 121 | |
| 122 | - [Implement AsByte](https://github.com/fflorent/nom_locate/pull/33) |
| 123 | |
| 124 | ## v0.4.0 |
| 125 | |
| 126 | - [Support for Nom v5](https://github.com/fflorent/nom_locate/pull/23) |
| 127 | - [Add support for extra information to LocatedSpan](https://github.com/fflorent/nom_locate/pull/28) |
| 128 | |
| 129 | Thanks to the people who made this release: @ProgVal, @peckpeck, @wycats, @dalance |
| 130 | |
| 131 | ## v0.3.1 |
| 132 | |
| 133 | Patch version: |
| 134 | - [Support no_std](https://github.com/fflorent/nom_locate/pull/16) |
| 135 | - [Fix compilation with verbose-errors](https://github.com/fflorent/nom_locate/issues/17) |
| 136 | |
| 137 | ## v0.3 |
| 138 | |
| 139 | - [Support for Nom v4](https://github.com/fflorent/nom_locate/pull/10) |
| 140 | - [Better performance for columns calculation](https://github.com/fflorent/nom_locate/issues/4) |
| 141 | - [Speed up slices](https://github.com/fflorent/nom_locate/pull/15) |