Debian Codegraph @

CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4 and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html).
5
6 This changelog was added after the release of 1.0.0; changes before that are left undocumented.
7
8 ## 3.1.0
9
10 ### Internal
11
12 - Added optimized implementations of `Iterator::last` and `Iterator::count`
13
14 ## 3.0.0
15
16 Removed some methods to allow for a more efficient implementation of `JoinIter`. If you weren't using `peek` or `peek_item` you should be able to upgrade without issue.
17
18 ### Changed
19
20 - More efficient implementation of `JoinIter`. No more reduntant states allows for a manual `try_fold` implementation, at the cost of the `peek` family of methods
21 - Now using Edition 2021
22 - No longer need to use the `private::Display<'a>` hack
23
24 ### Removed
25
26 - Removed `peek` and `peek_item`
27 - Removed `syn` dependency
28
29 ## 2.1.0
30
31 ### Added
32
33 - Added `token-stream` feature which, when enabled, provides a `ToTokens` implementation to `Join`. This allows `Join` objects to be used as lazy token streams in `quote`.
34 - 0-size `Display` type for `Newline` in `separators`.
35
36 ## 2.0.0
37
38 2019-02-10
39
40 Major redesign of library. Most idiomatic joinery code should continue to work, but most of the library's traits and structs have been completely redesigned. The most significant change is that joinery is no longer primarily based on cloneable iterators, but rather on referentially iterable collections; that is, types for which `&'a Container: IntoIterator`. This means that we can get rid of a lot of the weird cruft related to `partial_clone`, etc.
41
42 ### Design notes:
43
44 - Iterators and collections are now treated separately. The `Join` struct is now based on collections, which are types which implement referential iteration (that is, for which `&T: IntoIterator`).
45 - Iterators can be adapted into `Join` instances via the `CloneIterator` adapter, which adds `&T: IntoIterator` to types that are `T: Clone + Iterator`.
46 - While the types have drastically changed, idiomatic code (which imports the prelude and uses mainly the `join_with` method) should continue to function
47 correctly.
48
49 ### Changed
50
51 - Split the library into various modules for the different functionality.
52 - `join` contains the `Join` type and related traits.
53 - `iter` contains the `JoinIter` type and related traits and structs.
54 - `separators` contains various convenient 0-size `Display` types for common separators, like `Comma` and `Space`.
55
56 ### Added
57
58 - `JoinableIterator` trait, which allows joining iterators directly via `iter_join_with`, or adapting them into `Join` structs via `join_with`
59 - Added numerous extra 0-size separator types, like `Comma` and `Space`, for common separators.
60 - Advanced to Rust 2018 Edition.
61
62 ### Removed
63
64 - `NoSeparator` removed from the prelude, since it's generally preferable to use `join_concat`
65 - Many methods on `Join` were deemed too niche and removed as part of the redesign, such as `partial_clone` and `consume_fmt`.
66
67 ## 1.2.2
68
69 2018-09-15
70
71 ### Minor
72
73 - Various optimizations and simplifications
74 - Extra test
75 - Added cargo categories
76
77 ## 1.2.1
78
79 2018-09-10
80
81 ### Minor
82
83 - Fixed broken documentation links
84
85 ## 1.2.0
86
87 2018-09-10
88
89 ### Changed
90
91 - Joinery is now `#![no_std]`
92
93 ## 1.1.2
94
95 2018-08-23
96
97 ### Minor
98
99 - Fixed broken link in docs
100
101 ## 1.1.1
102
103 2018-08-23
104
105 ### Minor
106
107 - Cleaned up the README badges
108
109 ## 1.1.0
110
111 2018-08-23
112
113 ### Added
114
115 - Empty separators:
116 - Added `NoSeparator`, a zero-size type which allows users to idiomatically join an iterator without any separator.
117 - Added `join_concat`, a helper method for separator-free joins.
118
119 ### Removed
120
121 - Removed `try_fold` after discovering serious implementation bug.
122 - Added test demonstrating this bug
123 - Would like to re-add someday, but seems difficult or impossible.
124 - Note that Iterator still provides `try_fold`; the only thing being removed is the specialized implementation.
125
126 ### Minor
127
128 - Small documentation fix (#12)
129 - Added README badges
130
131 ## 1.0.0
132
133 2018-08-10
134
135 First major release.