Commit Graph

853 Commits

Author SHA1 Message Date
Oliver Booth 9ee99d72d3
[ci skip] style: upgrade projects to C# 11
NB: While using a higher C# version with lower framework version is possible, it's generally advised against because C# syntax may map to .NET types not available in older versions such as .NET Standard 2.1.

This change does not invite the codebase to upgrade to newer types, but rather take advantage of syntax sugar (such as file-scoped namespaces, when this project was updated to C# 10) that does not effect the compiled result.

However, this change does open up the possibilities to add extension methods for the "generic math" interfaces (made possible by static interface members), and these upcoming methods will be targeted to .NET 7 or greater **ONLY**.
2023-03-31 17:30:30 +01:00
Oliver Booth 3cb459028f
[ci skip] docs: use C# 10 "where feasible" 2023-03-31 15:18:32 +01:00
Oliver Booth dd1a423752
[ci skip] docs: do england more gooder
Rider threw some warnings about grammar here. This change fixes the grammar. Rider has been tossed to the gulag
2023-03-31 15:18:05 +01:00
Oliver Booth b406b4dbb0
[ci skip] docs: update copyright year in LICENSE.md 2023-03-31 15:12:59 +01:00
Oliver Booth 4cd669a200
[ci skip] fix(test): force enumeration of lazy enumerable 2023-03-31 15:11:50 +01:00
Oliver Booth 38112f07ac
[ci skip] style: remove trailing whitespace 2023-03-31 15:10:51 +01:00
Oliver Booth d56d12ca23
perf: lazily yield additional value
This prevents an allocation of the array, saving approximately half. Initial benchmarks also show this implementation to be ~100ns faster
2023-03-31 15:07:08 +01:00
Oliver Booth 14e638e6d9
feat: add IEnumerable<T>.ConcatOne 2023-03-31 14:53:02 +01:00
Oliver Booth 33c5361c0b
fix/perf: return zero vector for identity quaternion 2023-03-31 01:33:38 +01:00
Oliver Booth cd4c3542f7
fix: use intrinsic convention for ToVector3 2023-03-31 01:31:19 +01:00
Oliver Booth 02947944cd
fix: accept ReadOnlySpan not Span for search needle 2023-03-30 21:23:46 +01:00
Oliver Booth 4c62367303
test: cover Span<char> overloads of CountSubstring 2023-03-30 21:22:45 +01:00
Oliver Booth f360311d9c
perf: exit early if TryGetNonEnumeratedCount is 0 2023-03-30 20:56:34 +01:00
Oliver Booth f30c052673
test: 100% coverage for TimeSpanParser.TryParse 2023-03-30 20:44:45 +01:00
Oliver Booth 628ead1ebb
test: add tests for GetIso8601WeekOfYear 2023-03-30 20:44:32 +01:00
Oliver Booth 006523d342
[ci skip] perf: convert Count to for loop with index access 2023-03-30 20:21:29 +01:00
Oliver Booth 76810408f2
[ci skip] style(test): suppress IteratorNeverReturns warning 2023-03-30 20:18:17 +01:00
Oliver Booth 3ce8d281b7
feat: add TextReader.EnumerateLines/Async 2023-03-30 17:55:41 +01:00
Oliver Booth 4f3f791948
[ci skip] test: assert ArgumentNullException from Grep 2023-03-30 17:49:00 +01:00
Oliver Booth 12d2e10be4
[ci skip] docs: mention ArgumentNullException for Grep 2023-03-30 17:43:56 +01:00
Oliver Booth d0f94a6493
feat: add IEnumerable<string>.Grep() 2023-03-30 17:29:54 +01:00
Oliver Booth f49188b428
feat: add string.EnsureEndsWith and string.EnsureStartsWith 2023-03-30 02:09:04 +01:00
Oliver Booth f5b53cd3f6
[ci skip] test: remove netstandard2.1 from test csproj 2023-03-29 17:55:00 +01:00
Oliver Booth 4dd31ec1b6
[ci skip] style: reformat & cleanup solution 2023-03-29 17:46:56 +01:00
Oliver Booth 436f56d912
feat: add Saturate for floating point types (#60) 2023-03-29 16:21:16 +01:00
Oliver Booth 34d1f859a7
[ci skip] ci(upm): output package.json instead of print to stdout 2023-03-29 16:08:19 +01:00
Oliver Booth 9ecbbee571
ci(upm): update package.json in upm branch (#69) 2023-03-29 16:03:55 +01:00
Oliver Booth 7a119fc3c1
ci(upm): automate upm branch update (resolves #69) 2023-03-29 15:00:00 +01:00
Oliver Booth a09492d418
perf: use UnsafeUtility for Unity<->System conversions 2023-03-29 00:14:49 +01:00
Oliver Booth 183033cc80
test: update X10D.Unity.Tests to 2021.3.21f1
This update also updates com.unity.collab-proxy to 2.0.1
2023-03-28 23:18:56 +01:00
Oliver Booth e0bdaaddce
style/perf: reduce complexity of MinMax and MinMaxBy 2023-03-28 16:28:59 +01:00
Oliver Booth 121c3a388a
test: 100% coverage on EnumerableExtensions 2023-03-28 16:28:38 +01:00
Oliver Booth 9bb9c9692a
tests: 100% coverage on Circle and CircleF 2023-03-28 16:09:35 +01:00
Oliver Booth 3e4d9603c0
test: cover Color.Deconstruct 2023-03-28 15:54:06 +01:00
Oliver Booth 3bc2ae45c7
style: remove unused using directive 2023-03-28 15:44:48 +01:00
Oliver Booth 7b9797648a
perf(sourcegen): cache and compile regex. pass timeout 2023-03-28 15:44:27 +01:00
Oliver Booth e3dcad5690
build(nupkg): use MSBuildProjectDirectory and go up 1 level
SolutionDir macro is returning empty/null in workflow, causing a job failure since CHANGELOG.md is not in root.

this may or may not fix the workflow. tba
2023-03-28 15:11:09 +01:00
Oliver Booth d4b23e8a8c
build(ci): update checkout and setup-dotnet actions
- actions/checkout@v3
- actions/setup-dotnet@v3
2023-03-28 15:02:09 +01:00
Oliver Booth 9c8527282b
[ci skip] feat: add workflow files as solution items 2023-03-28 14:59:46 +01:00
Oliver Booth 3121b23732
fix(tests): fix incorrect timezone offset for DST 2023-03-28 14:54:11 +01:00
Oliver Booth 55cae2f454
test: update test project dependencies
- Microsoft.NET.Test.Sdk 17.5.0
- MSTest.* 3.0.2
- coverlet.collector 3.2.0
2023-03-28 14:54:11 +01:00
Oliver Booth 2cb6567410
build(nupkg): add PackageReleaseNotes to csproj 2023-03-28 14:27:15 +01:00
Oliver Booth 9b5cc9fac3
[ci skip] Reference #72 in changelog 2023-03-26 17:24:20 +01:00
Oliver Booth 3b85419da3
Add MinMax and MinMaxBy (resolves #72) 2023-03-26 17:03:40 +01:00
Oliver Booth e00a673a04
i is for I will scream at these changes 2023-03-23 15:11:44 +00:00
Oliver Booth ea26b5a7e1
Use explicit type where non-evident in SpanExtensions 2023-03-23 15:11:15 +00:00
Oliver Booth 136382a2a3
[ci skip] Revert 167a55e2db
Code analysis can suck an egg. We needed this actually
2023-03-23 15:07:09 +00:00
Oliver Booth 167a55e2db
[ci skip] Remove redundant unsafe method modifiers 2023-03-23 15:06:01 +00:00
Oliver Booth cb80d19451
[ci skip] Fix xmldoc for SpanExtensions.Contains 2023-03-23 15:02:57 +00:00
Oliver Booth 9edab4d066
[ci skip] ... I mean PR #70
So about that. I'm tired and barely had one coffee today, leave me alone.
2023-03-23 13:54:46 +00:00