From 6984bbf536039a6b73938f9f1678257c21a6d13a Mon Sep 17 00:00:00 2001 From: Alessandro Giorgetti Date: Sat, 31 Aug 2024 11:30:31 +0200 Subject: [PATCH 1/4] Refs: #66 Updated MongoDB 2.28.0 (strongly signed) --- Changelog.md | 9 +++++++++ .../NEventStore.Persistence.MongoDB.Core.Tests.csproj | 2 +- .../NEventStore.Persistence.MongoDB.Core.csproj | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index ebad214..84dfdbf 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,14 @@ # NEventStore.Persistence.MongoDB +## vNext + +- Updated MongoDB drivers to 2.28.0 + +### Breaking Changes + +- MongoDB drivers are now strogly signed, binary compatibility with previous versions is now broken. If you update to this version of NEventStore.Persistence.MongoDB package + you are forced to use the same version of MongoDB drivers (or setup assembly binding redirects). + ## 9.1.2 - Fixed connectionString validation when connecting to a replica set using an already built MongoClient instance. diff --git a/src/NEventStore.Persistence.MongoDB.Tests/NEventStore.Persistence.MongoDB.Core.Tests.csproj b/src/NEventStore.Persistence.MongoDB.Tests/NEventStore.Persistence.MongoDB.Core.Tests.csproj index 3743c24..7d171db 100644 --- a/src/NEventStore.Persistence.MongoDB.Tests/NEventStore.Persistence.MongoDB.Core.Tests.csproj +++ b/src/NEventStore.Persistence.MongoDB.Tests/NEventStore.Persistence.MongoDB.Core.Tests.csproj @@ -21,7 +21,7 @@ - + diff --git a/src/NEventStore.Persistence.MongoDB/NEventStore.Persistence.MongoDB.Core.csproj b/src/NEventStore.Persistence.MongoDB/NEventStore.Persistence.MongoDB.Core.csproj index 66e8726..2febf3b 100644 --- a/src/NEventStore.Persistence.MongoDB/NEventStore.Persistence.MongoDB.Core.csproj +++ b/src/NEventStore.Persistence.MongoDB/NEventStore.Persistence.MongoDB.Core.csproj @@ -33,7 +33,7 @@ - + From 6a62302775d5337e2a6821971a3721892ac8b7ea Mon Sep 17 00:00:00 2001 From: Alessandro Giorgetti Date: Sat, 31 Aug 2024 12:07:57 +0200 Subject: [PATCH 2/4] Updated Build to use GitVersion 6.0.2 NuGetVersion variable has been removed, use SemVer instead --- .config/dotnet-tools.json | 5 +++-- appveyor.yml | 4 ++-- build.ps1 | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 32dd9fd..4cc543c 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,10 +3,11 @@ "isRoot": true, "tools": { "gitversion.tool": { - "version": "5.12.0", + "version": "6.0.2", "commands": [ "dotnet-gitversion" - ] + ], + "rollForward": false } } } \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index ff54caa..0e17bd3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -42,13 +42,13 @@ build: verbosity: minimal after_build: - cmd: >- - REM dotnet pack ./src/NEventStore.Persistence.MongoDB/NEventStore.Persistence.MongoDB.Core.csproj -c %CONFIGURATION% --no-build -o artifacts -p:PackageVersion=%GitVersion_NuGetVersion% + REM dotnet pack ./src/NEventStore.Persistence.MongoDB/NEventStore.Persistence.MongoDB.Core.csproj -c %CONFIGURATION% --no-build -o artifacts -p:PackageVersion=%GitVersion_SemVer% REM use .nuspec file, projects with submodule generate wrong PackageReferences - nuget pack ./src/.nuget/NEventStore.Persistence.MongoDB.nuspec -properties "version=%GitVersion_NuGetVersion%;configuration=%CONFIGURATION%" -OutputDirectory artifacts + nuget pack ./src/.nuget/NEventStore.Persistence.MongoDB.nuspec -properties "version=%GitVersion_SemVer%;configuration=%CONFIGURATION%" -OutputDirectory artifacts test: assemblies: except: diff --git a/build.ps1 b/build.ps1 index c02f007..a8bd9f6 100644 --- a/build.ps1 +++ b/build.ps1 @@ -17,7 +17,7 @@ dotnet restore ./src/NEventStore.Persistence.MongoDB.Core.sln --verbosity m Write-Host "Running GitVersion for the Project" $str = dotnet tool run dotnet-gitversion /updateAssemblyInfo | out-string $json = convertFrom-json $str -$nugetversion = $json.NuGetVersion +$nugetversion = $json.SemVer # Now we need to patch the AssemblyInfo for submodules Write-Host "Running GitVersion for the Dependencies" From a7cc3ff61fdd30578e2cb1cb76275e473660798f Mon Sep 17 00:00:00 2001 From: Alessandro Giorgetti Date: Sat, 31 Aug 2024 14:32:43 +0200 Subject: [PATCH 3/4] Updated .nuspec to refecence MongoDB 2.28.0 and release version 10.0.0 --- Changelog.md | 2 +- src/.nuget/NEventStore.Persistence.MongoDB.nuspec | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index 84dfdbf..1443d41 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,6 @@ # NEventStore.Persistence.MongoDB -## vNext +## 10.0.0 - Updated MongoDB drivers to 2.28.0 diff --git a/src/.nuget/NEventStore.Persistence.MongoDB.nuspec b/src/.nuget/NEventStore.Persistence.MongoDB.nuspec index a4f0500..fcfe844 100644 --- a/src/.nuget/NEventStore.Persistence.MongoDB.nuspec +++ b/src/.nuget/NEventStore.Persistence.MongoDB.nuspec @@ -23,12 +23,12 @@ - + - + From 15884d55ed2389e139d8e12a63b4a308a8946430 Mon Sep 17 00:00:00 2001 From: Alessandro Giorgetti Date: Sat, 31 Aug 2024 14:59:10 +0200 Subject: [PATCH 4/4] Updated .nuspec to add license and readme --- LICENSE => LICENSE.md | 0 src/.nuget/NEventStore.Persistence.MongoDB.nuspec | 4 ++++ 2 files changed, 4 insertions(+) rename LICENSE => LICENSE.md (100%) diff --git a/LICENSE b/LICENSE.md similarity index 100% rename from LICENSE rename to LICENSE.md diff --git a/src/.nuget/NEventStore.Persistence.MongoDB.nuspec b/src/.nuget/NEventStore.Persistence.MongoDB.nuspec index fcfe844..cbeee81 100644 --- a/src/.nuget/NEventStore.Persistence.MongoDB.nuspec +++ b/src/.nuget/NEventStore.Persistence.MongoDB.nuspec @@ -12,6 +12,8 @@ MongoDB persistence provider for NEventStore. es-US events, event sourcing, cqrs, storage, persistence, database, mongodb + LICENSE.md + README.md + + \ No newline at end of file