1# Change Log 2All notable changes to this project will be documented in this file. 3 4The format is based on [Keep a Changelog](http://keepachangelog.com/) 5and this project adheres to [Semantic Versioning](http://semver.org/). 6 7<!-- next-header --> 8## [Unreleased] - ReleaseDate 9## [1.0.4] - 2020-03-04 10### Fixed 11 12- Upgrade normalize-line-endings 13 14## [1.0.3] - 2020-02-25 15 16## [1.0.2] - 2019-11-18 17### Fixed 18- `BooleanPredicate` now implements `Predicate<T>` where `T: ?Sized` 19 ([#84](https://github.com/assert-rs/predicates-rs/pull/84)) 20 21## [1.0.1] - 2019-04-22 22### Changed 23- BooleanPredicate is no longer generic, and is always Send and Sync. 24 25## [1.0.0] - 2018-10-06 26 27## [0.9.1] - 2018-10-05 28### Added 29- Created a predicate selection guide. 30 31## [0.9.0] - 2018-07-30 32### Added 33- Support `?Sized` types for `FnPredicate`. 34- Add `str_pred.normalize()` predicate. 35- Add reflection to `Predicate`. 36- Add support for predicates returning why they failed (`find_case`) which can 37 be combined with the new `predicates-tree` crate. 38- Split out `predicates-core` for reducing ecosystem breaking changes. 39 40### Changed 41- Predicates must also implement `PredicateReflection` 42 43## [0.5.2] - 2018-07-20 44### Added 45- **path:** support file-based str predicates ([4b430532](https://github.com/assert-rs/predicates-rs/commit/4b430532f7cd660bd813863871ede6f108e7be67), closes [#56](https://github.com/assert-rs/predicates-rs/issues/56)) 46- Expand trait coverage ([33972a7d](https://github.com/assert-rs/predicates-rs/commit/33972a7d0c92eb7f7c7e95af4bb35bea0ac810ab)) 47 48## [0.5.1] - 2018-06-05 49### Added 50- Fix eq for str ([7650e9e6](https://github.com/assert-rs/predicates-rs/commit/7650e9e6d43f2ddd047ad8defa0c724b31ebd1c4)) 51 52## [0.5.0] - 2018-05-30 53### Added 54- **trait:** 55 - Allow naming `Predicate` expressions 56- **str:** 57 - Add regex repetition count, closes #27 58 - from_utf8 adapter, closes #21 59 - Trimming predicate decorator 60- **path:** 61 - `eq_file` predicate to test a file-under-test with a fixture, closes #32. 62 - `eq_file(...).utf()` adapter to do string comparisons with the fixture 63 - Add a `from_file_path` extension method to `Predicate<[u8]>` that turns it into a `Predicate<Path>`, closes #31. 64 65### Breaking Changes 66- **trait:** 67 - All `Predicate`s are now `Display` ([05216708](https://github.com/assert-rs/predicates-rs/commit/05216708359544f2c5f3a256f50c012f521c39a6), breaks [#](https://github.com/assert-rs/predicates-rs/issues/)) 68 - Decouple boxing from trait ([f981fac3](https://github.com/assert-rs/predicates-rs/commit/f981fac39271746162365f3c577cffac730e1d97), breaks [#](https://github.com/assert-rs/predicates-rs/issues/)) 69 - Decouple boolean logic from trait ([88b72f9e](https://github.com/assert-rs/predicates-rs/commit/88b72f9ef58a86f2af68c0510d99326f5e644f76), breaks [#](https://github.com/assert-rs/predicates-rs/issues/)) 70 71## [0.4.0] - 2018-05-10 72### Added 73- Define oldest supported version of Rust as 1.22. 74- CI that ensures 75 - works on Windows and Linux 76 - works on 1.22 to nightly 77- **float:** `is_close` Predicate (see #11). 78- **path:** 79 - File type predicates: `is_file`, `is_dir`, `is_symlink` (see #8). 80 - Existence predicate: `exists`, `missing` (see #8). 81- **str:** 82 - Basic string predicates: `is_empty`, `starts_with`, `ends_with`, and `contains` with optional count (see #25). 83 - Regex predicate (see #12). 84 - Edit-distance predicate (see #9). 85 86### Changed 87- Clearly delineate API from prelude (see #17). 88- Switch `Predicate` trait from Associated Types to Generics. 89- **iter:** 90 - Renamed `set` predicates as `iter` predicates to clarify the intent from some implementation. 91 - Remove ambiguity of predicate factories (see #24): 92 - `contains` -> `in_iter` 93 - `contains_hashable` -> `in_hash` 94 - Turned `contains_ord` into a specialization of `in_iter` by adding a `sort` method. 95 96## [0.3.0] - 2017-06-26 97### Added 98- `BoxPredicate` type that wraps a `Predicate` trait object to make it easier 99 to store and work with predicates through a program. Also implements `Debug` 100 and `Display` wrappers as a convenience. 101- `FnPredicate` type that wraps a function of the type `Fn(&T) -> bool` in a 102 `Predicate` type. 103 104### Changed 105- The `boxed` function now returns a type `BoxPredicate` instead of a type 106 alias. 107- The `Item` type parameter of `Predicate` no longer has the `Sized` 108 restriction. 109 110## [0.2.0] - 2017-06-02 111### Added 112- This changelog 113 114### Fixed 115- Made modules under `predicate` private, with their public interfaces exposed 116 through `pub use` in the `predicate` `mod.rs` file. 117 118## 0.1.0 - 2017-06-02 119### Added 120- Initial commit of functional code 121- Continuous integration with Travis (Linux) and AppVeyor (Windows) 122- Basic README 123 124<!-- next-url --> 125[Unreleased]: https://github.com/assert-rs/predicates-rs/compare/v1.0.4...HEAD 126[1.0.4]: https://github.com/assert-rs/predicates-rs/compare/v1.0.3...v1.0.4 127[1.0.3]: https://github.com/assert-rs/predicates-rs/compare/v1.0.2...v1.0.3 128[1.0.2]: https://github.com/assert-rs/predicates-rs/compare/v1.0.1...v1.0.2 129[1.0.1]: https://github.com/assert-rs/predicates-rs/compare/v1.0.0...v1.0.1 130[1.0.0]: https://github.com/assert-rs/predicates-rs/compare/v0.9.1...v1.0.0 131[0.9.1]: https://github.com/assert-rs/predicates-rs/compare/v0.9.0...v0.9.1 132[0.9.0]: https://github.com/assert-rs/predicates-rs/compare/v0.5.2...v0.9.0 133[0.5.2]: https://github.com/assert-rs/predicates-rs/compare/v0.5.1...v0.5.2 134[0.5.1]: https://github.com/assert-rs/predicates-rs/compare/v0.5.0...v0.5.1 135[0.5.0]: https://github.com/assert-rs/predicates-rs/compare/v0.4.0...v0.5.0 136[0.4.0]: https://github.com/assert-rs/predicates-rs/compare/v0.3.0...v0.4.0 137[0.3.0]: https://github.com/assert-rs/predicates-rs/compare/v0.2.0...v0.3.0 138[0.2.0]: https://github.com/assert-rs/predicates-rs/compare/v0.1.0...v0.2.0 139