Skip to content

Commit 9db55ee

Browse files
committed
2 parents d6334a8 + a41ad48 commit 9db55ee

File tree

1 file changed

+46
-7
lines changed

1 file changed

+46
-7
lines changed

Changelog.md

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,58 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [1.3] - 2024-1-25
8+
## [1.3] - 2024-3-20
9+
10+
### Added
11+
12+
- Compatibility with **.Net 8**
13+
- `(Readonly-)Span<T>.First()`
14+
- `(Readonly-)Span<T>.First(Predicate<T> predicate)`
15+
- `(Readonly-)Span<T>.FirstOrDefault()`
16+
- `(Readonly-)Span<T>.FirstOrDefault(Predicate<T> predicate)`
17+
- `(Readonly-)Span<T>.FirstOrDefault(T defaultValue)`
18+
- `(Readonly-)Span<T>.FirstOrDefault(Predicate<T> predicate, T defaultValue)`
19+
- `(Readonly-)Span<T>.Last()`
20+
- `(Readonly-)Span<T>.Last(Predicate<T> predicate)`
21+
- `(Readonly-)Span<T>.LastOrDefault()`
22+
- `(Readonly-)Span<T>.LastOrDefault(Predicate<T> predicate)`
23+
- `(Readonly-)Span<T>.LastOrDefault(T defaultValue)`
24+
- `(Readonly-)Span<T>.LastOrDefault(Predicate<T> predicate, T defaultValue)`
25+
- `(Readonly-)Span<T>.Single()`
26+
- `(Readonly-)Span<T>.Single(Predicate<T> predicate)`
27+
- `(Readonly-)Span<T>.SingleOrDefault()`
28+
- `(Readonly-)Span<T>.SingleOrDefault(Predicate<T> predicate)`
29+
- `(Readonly-)Span<T>.SingleOrDefault(T defaultValue)`
30+
- `(Readonly-)Span<T>.SingleOrDefault(Predicate<T> predicate, T defaultValue)`
31+
- `(Readonly-)Span<T>.ElementAt(int index)`
32+
- `(Readonly-)Span<T>.ElementAt(Index index)`
33+
- `(Readonly-)Span<T>.ElementAtOrDefault(int index)`
34+
- `(Readonly-)Span<T>.ElementAtOrDefault(Index index)`
35+
- `(Readonly-)Span<T>.ElementAtOrDefault(int index, T defaultValue)`
36+
- `(Readonly-)Span<T>.ElementAtOrDefault(Index index, T defaultValue)`
37+
- `(Readonly-)Span<T>.Min()` (https://github.com/draconware-dev/SpanExtensions.Net/pull/13)
38+
- `(Readonly-)Span<T>.Min(Func<TSource, TResult> selector)`
39+
- `(Readonly-)Span<T>.MinBy(Func<TSource, TKey> keySelector)`
40+
- `(Readonly-)Span<T>.MinBy(Func<TSource, TKey> keySelector, IComparer<TKey> comparer)`
41+
- `(Readonly-)Span<T>.Max()` (https://github.com/draconware-dev/SpanExtensions.Net/pull/13)
42+
- `(Readonly-)Span<T>.Max(Func<TSource, TResult> selector)`
43+
- `(Readonly-)Span<T>.MaxBy(Func<TSource, TKey> keySelector)`
44+
- `(Readonly-)Span<T>.MaxBy(Func<TSource, TKey> keySelector, IComparer<TKey> comparer)`
45+
- nuget badge to README (https://github.com/draconware-dev/SpanExtensions.Net/pull/12)
46+
- `CountExceedingBehaviour`, which is passed to Split, defining how to properly handle its remaining elements.
947

1048
### Changed
1149

1250
- documentation comments to better reflect the dotnet style (https://github.com/draconware-dev/SpanExtensions.Net/pull/8)
51+
- swapped order of `count` and `stringSplitOptions arguments` in `Split` methods.
52+
- renamed argument `span` in `Split` methods to `source`.
53+
54+
### Fixed
55+
56+
- empty spans being ignored if they are the last element to be returned from `Split` and are therefore not returned. (https://github.com/draconware-dev/SpanExtensions.Net/pull/10)
1357

1458
## [1.2.1] - 2024-1-25
1559

@@ -18,11 +62,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1862
- Ambiguous Extension Methods (https://github.com/draconware-dev/SpanExtensions.Net/issues/6)
1963
- Correctness of some documentation comments
2064

21-
### Changed
22-
23-
- moved custom Enumerators into `SpanExtensions.Enumerators`
24-
- declared every `GetEnumerator` method in a ref struct as `readonly`
25-
2665
## [1.2.0] - 2023-12-28
2766

2867
### Added

0 commit comments

Comments
 (0)