Skip to content

Commit 1ada0fe

Browse files
committed
Convert the RELEASES doc to markdown
1 parent 248e720 commit 1ada0fe

File tree

3 files changed

+348
-348
lines changed

3 files changed

+348
-348
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ which is roughly:
5252

5353
# Recent Changes
5454

55-
See [RELEASES.rst](https://github.com/bluss/indexmap/blob/master/README.rst).
55+
See [RELEASES.md](https://github.com/bluss/indexmap/blob/master/README.md).

RELEASES.md

Lines changed: 347 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,347 @@
1+
- 1.8.0
2+
3+
- The new `IndexMap::into_keys` and `IndexMap::into_values` will consume
4+
the map into keys or values, respectively, matching Rust 1.54's `HashMap`
5+
methods, by @taiki-e in PR [195].
6+
7+
- More of the iterator types implement `Debug`, `ExactSizeIterator`, and
8+
`FusedIterator`, by @cuviper in PR [196].
9+
10+
- `IndexMap` and `IndexSet` now implement rayon's `ParallelDrainRange`,
11+
by @cuviper in PR [197].
12+
13+
- `IndexMap::with_hasher` and `IndexSet::with_hasher` are now `const`
14+
functions, allowing static maps and sets, by @mwillsey in PR [203].
15+
16+
- `IndexMap` and `IndexSet` now implement `From` for arrays, matching
17+
Rust 1.56's implementation for `HashMap`, by @rouge8 in PR [205].
18+
19+
- `IndexMap` and `IndexSet` now have methods `sort_unstable_keys`,
20+
`sort_unstable_by`, `sorted_unstable_by`, and `par_*` equivalents,
21+
which sort in-place without preserving the order of equal items, by
22+
@bhgomes in PR [211].
23+
24+
[195]: https://github.com/bluss/indexmap/pull/195
25+
[196]: https://github.com/bluss/indexmap/pull/196
26+
[197]: https://github.com/bluss/indexmap/pull/197
27+
[203]: https://github.com/bluss/indexmap/pull/203
28+
[205]: https://github.com/bluss/indexmap/pull/205
29+
[211]: https://github.com/bluss/indexmap/pull/211
30+
31+
- 1.7.0
32+
33+
- **MSRV**: Rust 1.49 or later is now required.
34+
35+
- The `hashbrown` dependency has been updated to version 0.11.
36+
37+
- 1.6.2
38+
39+
- Fixed to match `std` behavior, `OccupiedEntry::key` now references the
40+
existing key in the map instead of the lookup key, by @cuviper in PR [170].
41+
42+
- The new `Entry::or_insert_with_key` matches Rust 1.50's `Entry` method,
43+
passing `&K` to the callback to create a value, by @cuviper in PR [175].
44+
45+
[170]: https://github.com/bluss/indexmap/pull/170
46+
[175]: https://github.com/bluss/indexmap/pull/175
47+
48+
- 1.6.1
49+
50+
- The new `serde_seq` module implements `IndexMap` serialization as a
51+
sequence to ensure order is preserved, by @cuviper in PR [158].
52+
53+
- New methods on maps and sets work like the `Vec`/slice methods by the same name:
54+
`truncate`, `split_off`, `first`, `first_mut`, `last`, `last_mut`, and
55+
`swap_indices`, by @cuviper in PR [160].
56+
57+
[158]: https://github.com/bluss/indexmap/pull/158
58+
[160]: https://github.com/bluss/indexmap/pull/160
59+
60+
- 1.6.0
61+
62+
- **MSRV**: Rust 1.36 or later is now required.
63+
64+
- The `hashbrown` dependency has been updated to version 0.9.
65+
66+
- 1.5.2
67+
68+
- The new "std" feature will force the use of `std` for users that explicitly
69+
want the default `S = RandomState`, bypassing the autodetection added in 1.3.0,
70+
by @cuviper in PR [145].
71+
72+
[145]: https://github.com/bluss/indexmap/pull/145
73+
74+
- 1.5.1
75+
76+
- Values can now be indexed by their `usize` position by @cuviper in PR [132].
77+
78+
- Some of the generic bounds have been relaxed to match `std` by @cuviper in PR [141].
79+
80+
- `drain` now accepts any `R: RangeBounds<usize>` by @cuviper in PR [142].
81+
82+
[132]: https://github.com/bluss/indexmap/pull/132
83+
[141]: https://github.com/bluss/indexmap/pull/141
84+
[142]: https://github.com/bluss/indexmap/pull/142
85+
86+
- 1.5.0
87+
88+
- **MSRV**: Rust 1.32 or later is now required.
89+
90+
- The inner hash table is now based on `hashbrown` by @cuviper in PR [131].
91+
This also completes the method `reserve` and adds `shrink_to_fit`.
92+
93+
- Add new methods `get_key_value`, `remove_entry`, `swap_remove_entry`,
94+
and `shift_remove_entry`, by @cuviper in PR [136]
95+
96+
- `Clone::clone_from` reuses allocations by @cuviper in PR [125]
97+
98+
- Add new method `reverse` by @linclelinkpart5 in PR [128]
99+
100+
[125]: https://github.com/bluss/indexmap/pull/125
101+
[128]: https://github.com/bluss/indexmap/pull/128
102+
[131]: https://github.com/bluss/indexmap/pull/131
103+
[136]: https://github.com/bluss/indexmap/pull/136
104+
105+
- 1.4.0
106+
107+
- Add new method `get_index_of` by @Thermatrix in PR [115] and [120]
108+
109+
- Fix build script rebuild-if-changed configuration to use "build.rs";
110+
fixes issue [123]. Fix by @cuviper.
111+
112+
- Dev-dependencies (rand and quickcheck) have been updated. The crate's tests
113+
now run using Rust 1.32 or later (MSRV for building the crate has not changed).
114+
by @kjeremy and @bluss
115+
116+
[123]: https://github.com/bluss/indexmap/issues/123
117+
[115]: https://github.com/bluss/indexmap/pull/115
118+
[120]: https://github.com/bluss/indexmap/pull/120
119+
120+
- 1.3.2
121+
122+
- Maintenance update to regenerate the published `Cargo.toml`.
123+
124+
- 1.3.1
125+
126+
- Maintenance update for formatting and `autocfg` 1.0.
127+
128+
- 1.3.0
129+
130+
- The deprecation messages in the previous version have been removed.
131+
(The methods have not otherwise changed.) Docs for removal methods have been
132+
improved.
133+
- From Rust 1.36, this crate supports being built **without std**, requiring
134+
`alloc` instead. This is enabled automatically when it is detected that
135+
`std` is not available. There is no crate feature to enable/disable to
136+
trigger this. The new build-dep `autocfg` enables this.
137+
138+
- 1.2.0
139+
140+
- Plain `.remove()` now has a deprecation message, it informs the user
141+
about picking one of the removal functions `swap_remove` and `shift_remove`
142+
which have different performance and order semantics.
143+
Plain `.remove()` will not be removed, the warning message and method
144+
will remain until further.
145+
146+
- Add new method `shift_remove` for order preserving removal on the map,
147+
and `shift_take` for the corresponding operation on the set.
148+
149+
- Add methods `swap_remove`, `swap_remove_entry` to `Entry`.
150+
151+
- Fix indexset/indexmap to support full paths, like `indexmap::indexmap!()`
152+
153+
- Internal improvements: fix warnings, deprecations and style lints
154+
155+
- 1.1.0
156+
157+
- Added optional feature `"rayon"` that adds parallel iterator support
158+
to `IndexMap` and `IndexSet` using Rayon. This includes all the regular
159+
iterators in parallel versions, and parallel sort.
160+
161+
- Implemented `Clone` for `map::{Iter, Keys, Values}` and
162+
`set::{Difference, Intersection, Iter, SymmetricDifference, Union}`
163+
164+
- Implemented `Debug` for `map::{Entry, IntoIter, Iter, Keys, Values}` and
165+
`set::{Difference, Intersection, IntoIter, Iter, SymmetricDifference, Union}`
166+
167+
- Serde trait `IntoDeserializer` are implemented for `IndexMap` and `IndexSet`.
168+
169+
- Minimum Rust version requirement increased to Rust 1.30 for development builds.
170+
171+
- 1.0.2
172+
173+
- The new methods `IndexMap::insert_full` and `IndexSet::insert_full` are
174+
both like `insert` with the index included in the return value.
175+
176+
- The new method `Entry::and_modify` can be used to modify occupied
177+
entries, matching the new methods of `std` maps in Rust 1.26.
178+
179+
- The new method `Entry::or_default` inserts a default value in unoccupied
180+
entries, matching the new methods of `std` maps in Rust 1.28.
181+
182+
- 1.0.1
183+
184+
- Document Rust version policy for the crate (see rustdoc)
185+
186+
- 1.0.0
187+
188+
- This is the 1.0 release for `indexmap`! (the crate and datastructure
189+
formerly known as “ordermap”)
190+
- `OccupiedEntry::insert` changed its signature, to use `&mut self` for
191+
the method receiver, matching the equivalent method for a standard
192+
`HashMap`. Thanks to @dtolnay for finding this bug.
193+
- The deprecated old names from ordermap were removed: `OrderMap`,
194+
`OrderSet`, `ordermap!{}`, `orderset!{}`. Use the new `IndexMap`
195+
etc names instead.
196+
197+
- 0.4.1
198+
199+
- Renamed crate to `indexmap`; the `ordermap` crate is now deprecated
200+
and the types `OrderMap/Set` now have a deprecation notice.
201+
202+
- 0.4.0
203+
204+
- This is the last release series for this `ordermap` under that name,
205+
because the crate is **going to be renamed** to `indexmap` (with types
206+
`IndexMap`, `IndexSet`) and no change in functionality!
207+
- The map and its associated structs moved into the `map` submodule of the
208+
crate, so that the map and set are symmetric
209+
210+
+ The iterators, `Entry` and other structs are now under `ordermap::map::`
211+
212+
- Internally refactored `OrderMap<K, V, S>` so that all the main algorithms
213+
(insertion, lookup, removal etc) that don't use the `S` parameter (the
214+
hasher) are compiled without depending on `S`, which reduces generics bloat.
215+
216+
- `Entry<K, V>` no longer has a type parameter `S`, which is just like
217+
the standard `HashMap`'s entry.
218+
219+
- Minimum Rust version requirement increased to Rust 1.18
220+
221+
- 0.3.5
222+
223+
- Documentation improvements
224+
225+
- 0.3.4
226+
227+
- The `.retain()` methods for `OrderMap` and `OrderSet` now
228+
traverse the elements in order, and the retained elements **keep their order**
229+
- Added new methods `.sort_by()`, `.sort_keys()` to `OrderMap` and
230+
`.sort_by()`, `.sort()` to `OrderSet`. These methods allow you to
231+
sort the maps in place efficiently.
232+
233+
- 0.3.3
234+
235+
- Document insertion behaviour better by @lucab
236+
- Updated dependences (no feature changes) by @ignatenkobrain
237+
238+
- 0.3.2
239+
240+
- Add `OrderSet` by @cuviper!
241+
- `OrderMap::drain` is now (too) a double ended iterator.
242+
243+
- 0.3.1
244+
245+
- In all ordermap iterators, forward the `collect` method to the underlying
246+
iterator as well.
247+
- Add crates.io categories.
248+
249+
- 0.3.0
250+
251+
- The methods `get_pair`, `get_pair_index` were both replaced by
252+
`get_full` (and the same for the mutable case).
253+
- Method `swap_remove_pair` replaced by `swap_remove_full`.
254+
- Add trait `MutableKeys` for opt-in mutable key access. Mutable key access
255+
is only possible through the methods of this extension trait.
256+
- Add new trait `Equivalent` for key equivalence. This extends the
257+
`Borrow` trait mechanism for `OrderMap::get` in a backwards compatible
258+
way, just some minor type inference related issues may become apparent.
259+
See [#10] for more information.
260+
- Implement `Extend<(&K, &V)>` by @xfix.
261+
262+
[#10]: https://github.com/bluss/ordermap/pull/10
263+
264+
- 0.2.13
265+
266+
- Fix deserialization to support custom hashers by @Techcable.
267+
- Add methods `.index()` on the entry types by @garro95.
268+
269+
- 0.2.12
270+
271+
- Add methods `.with_hasher()`, `.hasher()`.
272+
273+
- 0.2.11
274+
275+
- Support `ExactSizeIterator` for the iterators. By @Binero.
276+
- Use `Box<[Pos]>` internally, saving a word in the `OrderMap` struct.
277+
- Serde support, with crate feature `"serde-1"`. By @xfix.
278+
279+
- 0.2.10
280+
281+
- Add iterator `.drain(..)` by @stevej.
282+
283+
- 0.2.9
284+
285+
- Add method `.is_empty()` by @overvenus.
286+
- Implement `PartialEq, Eq` by @overvenus.
287+
- Add method `.sorted_by()`.
288+
289+
- 0.2.8
290+
291+
- Add iterators `.values()` and `.values_mut()`.
292+
- Fix compatibility with 32-bit platforms.
293+
294+
- 0.2.7
295+
296+
- Add `.retain()`.
297+
298+
- 0.2.6
299+
300+
- Add `OccupiedEntry::remove_entry` and other minor entry methods,
301+
so that it now has all the features of `HashMap`'s entries.
302+
303+
- 0.2.5
304+
305+
- Improved `.pop()` slightly.
306+
307+
- 0.2.4
308+
309+
- Improved performance of `.insert()` ([#3]) by @pczarn.
310+
311+
[#3]: https://github.com/bluss/ordermap/pull/3
312+
313+
- 0.2.3
314+
315+
- Generalize `Entry` for now, so that it works on hashmaps with non-default
316+
hasher. However, there's a lingering compat issue since libstd `HashMap`
317+
does not parameterize its entries by the hasher (`S` typarm).
318+
- Special case some iterator methods like `.nth()`.
319+
320+
- 0.2.2
321+
322+
- Disable the verbose `Debug` impl by default.
323+
324+
- 0.2.1
325+
326+
- Fix doc links and clarify docs.
327+
328+
- 0.2.0
329+
330+
- Add more `HashMap` methods & compat with its API.
331+
- Experimental support for `.entry()` (the simplest parts of the API).
332+
- Add `.reserve()` (placeholder impl).
333+
- Add `.remove()` as synonym for `.swap_remove()`.
334+
- Changed `.insert()` to swap value if the entry already exists, and
335+
return `Option`.
336+
- Experimental support as an *indexed* hash map! Added methods
337+
`.get_index()`, `.get_index_mut()`, `.swap_remove_index()`,
338+
`.get_pair_index()`, `.get_pair_index_mut()`.
339+
340+
- 0.1.2
341+
342+
- Implement the 32/32 split idea for `Pos` which improves cache utilization
343+
and lookup performance.
344+
345+
- 0.1.1
346+
347+
- Initial release.

0 commit comments

Comments
 (0)