Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0.0 major release #85

Merged
merged 145 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
87a85b8
feat: add Unpack for IBinaryInteger<T>
oliverbooth Apr 5, 2023
b91aad6
feat: convert DigitalRoot and Mod to generic math
oliverbooth Apr 5, 2023
2127131
feat: add generic math where possible in MathUtility
oliverbooth Apr 5, 2023
3b5fb7b
refactor: remove throw helpers in X10D.DSharpPlus (#80)
oliverbooth Apr 13, 2023
bb3659c
refactor: remove throw helpers (#80)
oliverbooth Apr 13, 2023
ccef1cd
Merge pull request #81 from oliverbooth/dev/remove_throwhelpers
oliverbooth Apr 13, 2023
dbc63b9
[ci skip] docs: bump version in README
oliverbooth Apr 13, 2023
21907ae
Merge branch 'main' into release/4.0.0
oliverbooth Apr 13, 2023
63e2f7b
Merge branch 'main' into release/4.0.0
oliverbooth Apr 13, 2023
6f3a667
feat: add string.ConcatIf
oliverbooth Apr 14, 2023
23dee3d
feat: add value-passthru overloads for ConcatIf
oliverbooth Apr 14, 2023
d8be858
refactor: remove IEnumerable.ConcatOne
oliverbooth May 14, 2023
8d7ca6e
fix(tests): remove outdated tests
oliverbooth May 14, 2023
b977b7a
Merge branch 'main' into release/4.0.0
oliverbooth Aug 9, 2023
9b99552
feat: add service/impl register for AddHostedSingleton
oliverbooth Aug 21, 2023
4c6ea59
Merge branch 'main' into release/4.0.0
oliverbooth Aug 21, 2023
a14fe4c
Merge branch 'main' into release/4.0.0
oliverbooth Aug 21, 2023
e8a331f
chore: use shared Build.props for all projects
oliverbooth Aug 22, 2023
24a7de7
refactor: define test fixtures as internal
oliverbooth Aug 22, 2023
d17d94a
chore: suppress NU1701 (#77)
oliverbooth Aug 22, 2023
4593a21
fix(tools): clear Package property groups
oliverbooth Aug 22, 2023
1b71d94
chore: remove redundant shared props
oliverbooth Aug 22, 2023
27e0ec5
chore: extract shared build props
oliverbooth Aug 22, 2023
1e71029
refactor: remove X10D.DSharpPlus
oliverbooth Aug 22, 2023
5b2c83e
chore: define TargetFrameworks in shared props
oliverbooth Aug 22, 2023
9c5ed12
chore: enable NRT for tools
oliverbooth Aug 22, 2023
0868b69
[ci skip] docs: fix README branding header in X10D.Unity
oliverbooth Aug 22, 2023
c5f5ba9
Merge branch 'main' into release/4.0.0
oliverbooth Aug 22, 2023
b4ae55c
Merge branch 'main' into release/4.0.0
oliverbooth Aug 22, 2023
fa375e7
refactor: conditionally import System.Runtime.Intrinsics.X86
oliverbooth Aug 22, 2023
15107ea
docs: fix xmldoc for Line3D
oliverbooth Aug 22, 2023
5c21c86
refactor!: replace Endianness enum with explicit Big/Little methods
oliverbooth Aug 23, 2023
0bf89bb
refactor!: change exception thrown by GetHash and TryWriteHash
oliverbooth Aug 23, 2023
28d7bee
fix(tests): add support for trace logging during tests
oliverbooth Aug 23, 2023
d90e949
fix(ci): build on subdir branch push
oliverbooth Aug 23, 2023
ed46bcd
Merge branch 'main' into release/4.0.0
oliverbooth Aug 23, 2023
caa0070
fix: fix incorrect endian swap
oliverbooth Aug 23, 2023
30b7a46
fix: fix marshal of decimal for netstandard 2.1
oliverbooth Aug 23, 2023
1157e36
refactor: separate stream Read/Write methods to partials
oliverbooth Aug 23, 2023
50d9cad
perf: optimise subsequent GetHash and TryWriteHash calls
oliverbooth Aug 23, 2023
71b0bec
style(test): format span tests
oliverbooth Aug 24, 2023
f238d42
Merge branch 'main' into release/4.0.0
oliverbooth Aug 24, 2023
129cbfb
refactor: revert 50d9cad2f3225d1155e2a91d9e7110aee6ac8006
oliverbooth Aug 24, 2023
8bc7372
Merge branch 'release/4.0.0' into feature/generic_math
oliverbooth Aug 25, 2023
423fb90
feat: add IBinaryInteger<T>.CountDigits
oliverbooth Aug 25, 2023
39dfea7
[ci skip] fix: define CountDigits in the correct file
oliverbooth Aug 25, 2023
b8f85e4
refactor: CountDigits is Pure. also honour methodimpl
oliverbooth Aug 25, 2023
2da8c7d
refactor: rename TNumber as TInteger
oliverbooth Aug 25, 2023
bb2f67e
style: remove UTF8 BOM
oliverbooth Aug 26, 2023
9caa0ac
style: remove UTF8 BOM
oliverbooth Aug 26, 2023
68968c1
style: remove UTF8 BOM
oliverbooth Aug 26, 2023
b843d15
[ci skip] style: cap line length at 130
oliverbooth Aug 26, 2023
799e635
style: mark WriteBits conditional
oliverbooth Aug 26, 2023
cfe70a7
refactor: discard GetBits return
oliverbooth Aug 26, 2023
bd823ba
perf: stackalloc single char span, instead of using ToString, for .NET 7
oliverbooth Aug 27, 2023
5d936b5
feat: add markdown formatting methods
oliverbooth Aug 27, 2023
41ba8b5
fix: include WriteBits to !NET5_0_OR_GREATER
oliverbooth Aug 27, 2023
c6dbc4c
style: cap lines to 130 in length
oliverbooth Aug 27, 2023
fbd3e95
fix: discard Repeat return value
oliverbooth Aug 27, 2023
45ffd08
tests: wrap multiple asserts in Assert.Multiple
oliverbooth Aug 27, 2023
dc0b6ab
style(tests): use Has.Length for length assertion
oliverbooth Aug 27, 2023
da08d23
style(tests): use more meaningful test names
oliverbooth Aug 27, 2023
579a1d8
style(docs): one-line <returns> element
oliverbooth Aug 27, 2023
1c58acd
ci: rename sonarcloud workflow
oliverbooth Aug 27, 2023
74f957f
ci: update sonarcloud to Java 17
oliverbooth Aug 27, 2023
2445e36
fix(ci): install dotCover global tool for sonarcloud workflow
oliverbooth Aug 27, 2023
43d2e8f
test: add tests for MDLink
oliverbooth Aug 27, 2023
2fb91d5
test: suppress CA1307 and add StringComparison overload calls
oliverbooth Aug 27, 2023
e115a8f
style: format document
oliverbooth Aug 27, 2023
0d02c88
test: use fluent Has.Length
oliverbooth Aug 27, 2023
20f81c5
test: use more meaningful test names
oliverbooth Aug 27, 2023
dfa0bd4
style: add braces around parent for loop
oliverbooth Aug 27, 2023
5220f38
style: amend 2fb91d517588ac41e63f2b12b5990ae5c93ebe4a
oliverbooth Aug 27, 2023
56c3f11
style: discard pure return of Randomize
oliverbooth Aug 27, 2023
ff6b8d5
feat: add Span overloads to complement char.Repeat/string.Repeat
oliverbooth Aug 27, 2023
964d105
fix(chore): don't pull CHANGELOG.md contents in PackageReleaseNotes
oliverbooth Aug 27, 2023
ea97616
chore: update X10D.Unity.Tests to 2021.3.29f1
oliverbooth Aug 28, 2023
f3023db
tests: add IsTestProject:true to csproj
oliverbooth Aug 28, 2023
60c739f
chore: don't share TargetFrameworks in build props
oliverbooth Aug 28, 2023
fc334d1
chore: ignore Libraries folder
oliverbooth Aug 28, 2023
b7d9a25
refactor!: add Bytes suffix to IO methods
oliverbooth Aug 28, 2023
21f9a92
docs: add more documentation pages
oliverbooth Aug 28, 2023
0a2eb5e
docs: give background and info
oliverbooth Aug 28, 2023
b84d9c7
refactor!: remove X10D.Unity + associated projects/workflows (#86)
oliverbooth Sep 12, 2023
89f8ceb
chore!: remove netstandard2.1/netcoreapp3.1 target (#87)
oliverbooth Sep 12, 2023
8f9fc6e
refactor: remove target-conditional branches (#87)
oliverbooth Sep 12, 2023
85685c1
docs: mention target loss in changelog
oliverbooth Sep 12, 2023
c9955b5
fix: remove netcoreapp3.1 target from Benchmarks tool (#87)
oliverbooth Sep 12, 2023
4c91ec4
fix(ci): drop netcoreapp3.1 from dotnet workflow (#87)
oliverbooth Sep 12, 2023
b18e3ac
chore: add global.json to sln
oliverbooth Nov 14, 2023
b6b90bf
build: target .NET 8 (#88)
oliverbooth Nov 14, 2023
e2327b5
refactor!: remove Span<T>.Replace for .NET 8 (#88)
oliverbooth Nov 14, 2023
ba451a0
chore: update dependencies
oliverbooth Nov 14, 2023
d5c63fe
fix(tests): remove ambiguous call to Span<T>.Count (#88)
oliverbooth Nov 14, 2023
fa0ece6
Obsolete AdvSimd intrinsic implementations, minor improvements in cer…
RealityProgrammer Nov 22, 2023
790b31a
Remove trailing whitespace
RealityProgrammer Nov 22, 2023
87f5b39
Merge branch 'release/4.0.0' into main
oliverbooth Jan 6, 2024
2a89c8e
Merge pull request #89 from RealityProgrammer/main
oliverbooth Jan 6, 2024
ceb7989
fix: revert changes by merge conflict from #89
oliverbooth Jan 6, 2024
be44b9d
Merge branch 'release/4.0.0' into feature/generic_math
oliverbooth Jan 6, 2024
458ab03
style: remove double blank line
oliverbooth Jan 6, 2024
7d911b9
fix(tests): assert correct exception for IList<T>.RemoveRange
oliverbooth Jan 6, 2024
cc94905
Merge branch 'release/4.0.0' into feature/generic_math
oliverbooth Jan 6, 2024
2b5c133
Merge branch 'main' into release/4.0.0
oliverbooth Feb 12, 2024
6750f0e
Merge branch 'main' into release/4.0.0
oliverbooth Feb 12, 2024
f679ec2
fix(tests): add test to fix coverage on DateOnly.Deconstruct
oliverbooth Feb 12, 2024
db3a80b
Merge branch 'main' into release/4.0.0
oliverbooth Feb 12, 2024
99e0bef
Merge branch 'release/4.0.0' into feature/generic_math
oliverbooth Feb 12, 2024
6472c0f
Merge branch 'main' into release/4.0.0
oliverbooth Feb 12, 2024
22aaa96
Merge branch 'main' into release/4.0.0
oliverbooth Feb 12, 2024
485501c
ci(test): add dotCover output to codecov upload
oliverbooth Feb 12, 2024
447323f
Merge branch 'main' into release/4.0.0
oliverbooth Feb 12, 2024
1c09081
Merge branch 'main' into release/4.0.0
oliverbooth Feb 12, 2024
43128c4
Merge branch 'main' into release/4.0.0
oliverbooth Feb 17, 2024
89de426
ci: search for files with codecov
oliverbooth Feb 17, 2024
29cd725
Merge branch 'main' into release/4.0.0
oliverbooth Feb 17, 2024
8cdbfcf
Merge branch 'release/4.0.0' into feature/generic_math
oliverbooth Feb 17, 2024
39773a5
ci: output DetailedXML from dotcover
oliverbooth Feb 17, 2024
6501162
fix(ci): convert coverage report to codecov supported format
oliverbooth Feb 17, 2024
69f0fa7
Merge branch 'release/4.0.0' into feature/generic_math
oliverbooth Feb 17, 2024
fdf1465
test: coverlet output xml
oliverbooth Feb 17, 2024
8459d8f
ci(test): use coverage from coverlet
oliverbooth Feb 17, 2024
eb46257
Merge branch 'release/4.0.0' into feature/generic_math
oliverbooth Feb 17, 2024
8d2b4b0
Merge branch 'main' into release/4.0.0
oliverbooth Feb 17, 2024
bd1b12d
docs: update 3.x.x migration docs
oliverbooth Feb 17, 2024
30f158e
refactor!: move Factorial to BinaryIntegerExtensions for .net>=7
oliverbooth Feb 17, 2024
3e0853d
refactor!: move GCF to BinaryIntegerExtensions for .net>=7
oliverbooth Feb 17, 2024
19c467d
refactor!: move IsEven/IsOdd to NumberExtensions for .net>=7.0
oliverbooth Feb 17, 2024
195e25e
feat: add range-based foreach
oliverbooth Jun 12, 2024
f389731
style: remove trailing whitespace on line 10
oliverbooth Jun 12, 2024
4a80c93
chore!: drop net7.0 target (#90)
oliverbooth Jun 12, 2024
69157b9
ci: drop net7.0 target for tests
oliverbooth Jun 12, 2024
77dd144
ci: ignore compile-generated file from coverage
oliverbooth Jun 12, 2024
d2924d7
refactor!: remove extensions for Progress<T>
oliverbooth Jun 12, 2024
c338f42
chore: favour use of c# 12
oliverbooth Jun 12, 2024
e5e27c0
[ci skip] test: remove NOSONAR markers
oliverbooth Jun 12, 2024
68197ef
fix: fix order of bytes in decimal write bytes methods
oliverbooth Jun 12, 2024
8eaa01b
test: TryWriteBytes should return false for smol span
oliverbooth Jun 12, 2024
e51296d
Merge branch 'release/4.0.0' into feature/generic_math
oliverbooth Jun 12, 2024
d022a71
test: add tests for INumber<T>.Sign
oliverbooth Jun 12, 2024
db96c9e
refactor(test): exclude platform-specific Unpack impl
oliverbooth Jun 12, 2024
7f92772
test: add 100% coverage for DigitalRoot
oliverbooth Jun 12, 2024
b8a0671
Merge pull request #84 from oliverbooth/feature/generic_math
oliverbooth Jun 12, 2024
b627d21
[ci skip] docs: update changelog to reflect #84
oliverbooth Jun 12, 2024
62cb9a3
feat: add EnqueueAll/DequeueAll, PushAll/PopAll for Queue and Stack
oliverbooth Jun 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 0 additions & 18 deletions .github/workflows/activate-unity.yml

This file was deleted.

27 changes: 4 additions & 23 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,46 +23,27 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
6.0.x
7.0.x
8.0.x

- name: Add NuGet source
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json"

- name: Restore dependencies
run: dotnet restore

- name: Install coverage tools
run: |
dotnet tool install --global JetBrains.dotCover.GlobalTool
dotnet tool install --global dotnet-reportgenerator-globaltool

- name: Build
run: dotnet build --no-restore --configuration Release

- name: Test .NET Core 3.1
run: dotnet test --no-build --verbosity normal --configuration Release --framework netcoreapp3.1

- name: Test .NET 6
run: dotnet test --no-build --verbosity normal --configuration Release --framework net6.0

- name: Test .NET 7
run: dotnet test --no-build --verbosity normal --configuration Release --framework net7.0
run: dotnet test --no-build --verbosity normal --configuration Release --framework net6.0 --collect:"XPlat Code Coverage" --results-directory test-results/net6.0

- name: Test .NET 8
run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0

- name: Collect coverage
run: dotnet dotcover test --dcReportType=DetailedXML

- name: Convert coverage
run: reportgenerator -reports:./dotCover.Output.xml -targetdir:. -reporttypes:Cobertura
run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0 --collect:"XPlat Code Coverage" --results-directory test-results/net8.0

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.0
with:
disable_search: true
file: Cobertura.xml
directory: test-results
token: ${{ secrets.CODECOV_TOKEN }}
slug: oliverbooth/X10D
43 changes: 1 addition & 42 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Add GitHub NuGet source
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json"
Expand All @@ -33,9 +33,7 @@ jobs:
run: |
mkdir build
dotnet pack X10D --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }}
dotnet pack X10D.DSharpPlus --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }}
dotnet pack X10D.Hosting --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }}
dotnet pack X10D.Unity --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }}

- name: Push NuGet Package to GitHub
run: dotnet nuget push "build/*" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
Expand All @@ -48,42 +46,3 @@ jobs:
with:
name: build
path: build/

- name: Checkout upm branch
uses: actions/checkout@v3
with:
ref: upm
path: upm

- name: Build package.json
run: |
dotnet run --project ./tools/UpmPackageGenerator/UpmPackageGenerator.csproj "./X10D/bin/Debug/netstandard2.1/X10D.dll"
cp package.json upm/package.json

- name: Copy built artifacts to upm
run: |
cd upm
cp ../X10D/bin/Debug/netstandard2.1/X10D.dll ./X10D.dll
cp ../X10D/bin/Debug/netstandard2.1/X10D.xml ./X10D.xml
cp ../X10D.Unity/bin/Debug/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll
cp ../X10D.Unity/bin/Debug/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml

- name: Check for changes
run: |
cd upm
git diff --quiet
continue-on-error: true

- name: Commit update
if: ${{ success() }}
run: |
cd upm
git config user.name github-actions
git config user.email github-actions@github.com
git add X10D.dll
git add X10D.Unity.dll
git add X10D.xml
git add X10D.Unity.xml
git add package.json
git commit -m "Update upm branch ($GITHUB_SHA)"
git push
43 changes: 1 addition & 42 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Add GitHub NuGet source
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json"
Expand All @@ -32,9 +32,7 @@ jobs:
run: |
mkdir build
dotnet pack X10D --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }}
dotnet pack X10D.DSharpPlus --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }}
dotnet pack X10D.Hosting --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }}
dotnet pack X10D.Unity --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }}

- name: Push NuGet Package to GitHub
run: dotnet nuget push "build/*" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
Expand All @@ -53,42 +51,3 @@ jobs:
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true

- name: Checkout upm branch
uses: actions/checkout@v3
with:
ref: upm
path: upm

- name: Build package.json
run: |
dotnet run --project ./tools/UpmPackageGenerator/UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll"
cp package.json upm/package.json

- name: Copy built artifacts to upm
run: |
cd upm
cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll
cp ../X10D/bin/Release/netstandard2.1/X10D.xml ./X10D.xml
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml

- name: Check for changes
run: |
cd upm
git diff --quiet
continue-on-error: true

- name: Commit update
if: ${{ success() }}
run: |
cd upm
git config user.name github-actions
git config user.email github-actions@github.com
git add X10D.dll
git add X10D.Unity.dll
git add X10D.xml
git add X10D.Unity.xml
git add package.json
git commit -m "Update upm branch ($GITHUB_SHA)"
git push
43 changes: 1 addition & 42 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Add GitHub NuGet source
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json"
Expand All @@ -32,9 +32,7 @@ jobs:
run: |
mkdir build
dotnet pack X10D --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build
dotnet pack X10D.DSharpPlus --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build
dotnet pack X10D.Hosting --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build
dotnet pack X10D.Unity --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build

- name: Push NuGet Package to GitHub
run: dotnet nuget push "build/*" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
Expand All @@ -53,42 +51,3 @@ jobs:
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false

- name: Checkout upm branch
uses: actions/checkout@v3
with:
ref: upm
path: upm

- name: Build package.json
run: |
dotnet run --project ./tools/UpmPackageGenerator/UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll"
cp package.json upm/package.json

- name: Copy built artifacts to upm
run: |
cd upm
cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll
cp ../X10D/bin/Release/netstandard2.1/X10D.xml ./X10D.xml
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml

- name: Check for changes
run: |
cd upm
git diff --quiet
continue-on-error: true

- name: Commit update
if: ${{ success() }}
run: |
cd upm
git config user.name github-actions
git config user.email github-actions@github.com
git add X10D.dll
git add X10D.Unity.dll
git add X10D.xml
git add X10D.Unity.xml
git add package.json
git commit -m "Update upm branch ($GITHUB_SHA)"
git push
4 changes: 2 additions & 2 deletions .github/workflows/source_validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Add GitHub NuGet source
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json"
Expand All @@ -31,4 +31,4 @@ jobs:
run: dotnet build -c Debug

- name: Run Source Validation
run: dotnet run --project ./tools/SourceValidator/SourceValidator.csproj ./X10D/src ./X10D.Unity/src
run: dotnet run --project ./tools/SourceValidator/SourceValidator.csproj ./X10D/src
50 changes: 0 additions & 50 deletions .github/workflows/unity.yml

This file was deleted.

53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,63 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 4.0.0 - [Unreleased]

### Added

- X10D: Add support for generic math interfaces.
- X10D: Added extension methods for `DateOnly`, for parity with `DateTime` and `DateTimeOffset`.
- X10D: Added math-related extension methods for `BigInteger`.
- X10D: Added `Queue<T>.EnqueueAll` and `Queue<T>.DequeueAll`.
- X10D: Added `Stack<T>.PushAll` and `Stack<T>.PopAll`.
- X10D: Added `Span<T>.Replace(T, T)`.
- X10D: Added `CountDigits` for integer types.
- X10D: Added `IEnumerable<T>.Except(T)`.
- X10D: Added `Progress<T>.OnProgressChanged([T])`.
- X10D: Added `TextWriter.WriteNoAlloc(int[, ReadOnlySpan<char>[, IFormatProvider]])`.
- X10D: Added `TextWriter.WriteNoAlloc(uint[, ReadOnlySpan<char>[, IFormatProvider]])`.
- X10D: Added `TextWriter.WriteNoAlloc(long[, ReadOnlySpan<char>[, IFormatProvider]])`.
- X10D: Added `TextWriter.WriteNoAlloc(ulong[, ReadOnlySpan<char>[, IFormatProvider]])`.
- X10D: Added `TextWriter.WriteLineNoAlloc(int[, ReadOnlySpan<char>[, IFormatProvider]])`.
- X10D: Added `TextWriter.WriteLineNoAlloc(uint[, ReadOnlySpan<char>[, IFormatProvider]])`.
- X10D: Added `TextWriter.WriteLineNoAlloc(long[, ReadOnlySpan<char>[, IFormatProvider]])`.
- X10D: Added `TextWriter.WriteLineNoAlloc(ulong[, ReadOnlySpan<char>[, IFormatProvider]])`.
- X10D: Added `Range.GetEnumerator` (and `RangeEnumerator`), implementing Python-esque `for` loops in C#.
- X10D: Added `string.ConcatIf`.
- X10D: Added `string.MDBold`, `string.MDCode`, `string.MDCodeBlock([string])`, `string.MDHeading(int)`,
`string.MDItalic`, `string.MDLink`, `string.MDStrikeOut`, and `string.MDUnderline` for Markdown formatting.
- X10D: Added Span overloads which complement `char.Repeat` and `string.Repeat`.

### Fixed

- X10D: Fixed XMLDoc for `Line3D` to read "single-precision floating-point" instead of "32-bit signed integer".

### Changed

- X10D: DateTime.Age(DateTime) and DateTimeOffset.Age(DateTimeOffset) parameter renamed from asOf to referenceDate.
- X10D: Methods which accepted the `Endianness` enum as an argument have been replaced with explicit
BigEndian/LittleEndian methods.
- X10D: `Stream.GetHash<>` and `Stream.TryWriteHash<>` now throw ArgumentException in lieu of
TypeInitializationException.
- X10D: `char.IsEmoji` no longer allocates for .NET 7+.
- X10D: `string.Repeat` is now more efficient.

### Removed

- X10D: Removed `IEnumerable<T>.ConcatOne` - this functionality already exists with `Append`.
- X10D: Removed `Endianness` enum.
- X10D: Removed `Span<T>.Replace(T, T)` for .NET 8 target.
- X10D: Removed .NET Standard 2.1 target.
- X10D: Removed extensions for `Progress<T>`. These are already provided by [`Observable.FromEventPattern`](https://learn.microsoft.com/en-us/previous-versions/dotnet/reactive-extensions/hh229424(v=vs.103)).
- X10D.Hosting: Removed .NET Standard 2.1 target.
- X10D.DSharpPlus: Complete sunset of library. This library will not be updated to support DSharpPlus v5.0.0 (#83).
- X10D.Unity: Complete sunset of library. This library will not be updated effective immediately (#86).

## [3.3.1] - 2023-08-21

### Fixed

- X10D: Fixed `decimal.TryWriteBigEndianBytes` and `decimal.TryWriteLittleEndianBytes`.
- X10D.Hosting: Fixed `AddHostedSingleton` not accepting an interface as the service type.

## [3.3.0] - 2023-08-21
Expand Down
Loading
Loading