From e4389333a1ea427844c2ed2cc626f8487af3d940 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Sat, 19 Sep 2026 07:54:10 +0200 Subject: [PATCH] 2.16.0 --- CHANGELOG.md | 8 ++++++++ Directory.Build.props | 4 ++-- Generate-ReleaseNotes.cmd | 2 +- PackageReleaseNotes.txt | 13 +++++++------ examples/WireMock.Net.Client/Program.cs | 2 -- .../Program.cs | 1 - examples/WireMock.Net.Console.NET8/MainApp.cs | 6 ------ .../WireMock.Net.Console.RequestLogTest/Program.cs | 4 ---- .../WireMock.Net.ConsoleApp.UsingNuGet.csproj | 2 +- .../Program.cs | 2 -- 10 files changed, 19 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb85de5e..cb987e46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# 2.16.0 (19 September 2026) +- [#1502](https://github.com/wiremock/WireMock.Net/pull/1502) - Fix #1501: Generate WhenStateIs/WillSetStateTo correctly in ToCSharpCode contributed by [Bafyn](https://github.com/Bafyn) +- [#1503](https://github.com/wiremock/WireMock.Net/pull/1503) - Fix FormUrlEncodedMatcher (+ refactor values / matchers logic) contributed by [StefH](https://github.com/StefH) +- [#1504](https://github.com/wiremock/WireMock.Net/pull/1504) - Update SharpYaml package to version 2.5.1 [dependencies] contributed by [johnthcall](https://github.com/johnthcall) +- [#1505](https://github.com/wiremock/WireMock.Net/pull/1505) - Upgrade dependency RamlToOpenApiConverter to version 0.40.0 [dependencies] contributed by [StefH](https://github.com/StefH) +- [#1500](https://github.com/wiremock/WireMock.Net/issues/1500) - Sending a form-urlencoded body with a repeated field name returns HTTP 500 [bug] +- [#1501](https://github.com/wiremock/WireMock.Net/issues/1501) - Generated C# code for stateful (Scenario) mappings does not compile and drops the WhenStateIs condition [bug] + # 2.15.0 (15 August 2026) - [#1495](https://github.com/wiremock/WireMock.Net/pull/1495) - Fix #1494: `WithClientIP(MatchOperator, params IStringMatcher[])` ignores the MatchOperator argument [bug] contributed by [Bafyn](https://github.com/Bafyn) - [#1497](https://github.com/wiremock/WireMock.Net/pull/1497) - Fix WithParam RejectOnMatch inverting the match result #1496 [bug] contributed by [Bafyn](https://github.com/Bafyn) diff --git a/Directory.Build.props b/Directory.Build.props index 79945350..0b5500be 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -4,7 +4,7 @@ - 2.15.0 + 2.16.0 WireMock.Net-Logo.png https://github.com/wiremock/WireMock.Net Apache-2.0 @@ -52,7 +52,7 @@ - + diff --git a/Generate-ReleaseNotes.cmd b/Generate-ReleaseNotes.cmd index 58cbc00e..1fe834f1 100644 --- a/Generate-ReleaseNotes.cmd +++ b/Generate-ReleaseNotes.cmd @@ -1,6 +1,6 @@ rem https://github.com/StefH/GitHubReleaseNotes -SET version=2.15.0 +SET version=2.16.0 GitHubReleaseNotes --output CHANGELOG.md --skip-empty-releases --exclude-labels wontfix test question invalid doc duplicate example environment --version %version% --token %GH_TOKEN% diff --git a/PackageReleaseNotes.txt b/PackageReleaseNotes.txt index 40d63159..97cd2708 100644 --- a/PackageReleaseNotes.txt +++ b/PackageReleaseNotes.txt @@ -1,8 +1,9 @@ -# 2.15.0 (15 August 2026) -- #1495 Fix #1494: `WithClientIP(MatchOperator, params IStringMatcher[])` ignores the MatchOperator argument [bug] -- #1497 Fix WithParam RejectOnMatch inverting the match result #1496 [bug] -- #1499 Update Testcontainers [bug] -- #1494 `WithClientIP(MatchOperator, params IStringMatcher[])` ignores the `MatchOperator` argument [bug] -- #1496 `WithParam(key, MatchBehaviour.RejectOnMatch, values)` inverts the match result [bug] +# 2.16.0 (19 September 2026) +- #1502 Fix #1501: Generate WhenStateIs/WillSetStateTo correctly in ToCSharpCode +- #1503 Fix FormUrlEncodedMatcher (+ refactor values / matchers logic) +- #1504 Update SharpYaml package to version 2.5.1 [dependencies] +- #1505 Upgrade dependency RamlToOpenApiConverter to version 0.40.0 [dependencies] +- #1500 Sending a form-urlencoded body with a repeated field name returns HTTP 500 [bug] +- #1501 Generated C# code for stateful (Scenario) mappings does not compile and drops the WhenStateIs condition [bug] The full release notes can be found here: https://github.com/wiremock/WireMock.Net/blob/master/CHANGELOG.md \ No newline at end of file diff --git a/examples/WireMock.Net.Client/Program.cs b/examples/WireMock.Net.Client/Program.cs index f9651fbc..0f0c2f78 100644 --- a/examples/WireMock.Net.Client/Program.cs +++ b/examples/WireMock.Net.Client/Program.cs @@ -1,9 +1,7 @@ // Copyright © WireMock.Net -using System; using System.Net.Http.Headers; using System.Text; -using System.Threading.Tasks; using Newtonsoft.Json; using RestEase; using WireMock.Admin.Settings; diff --git a/examples/WireMock.Net.Console.NET8.WithCertificate/Program.cs b/examples/WireMock.Net.Console.NET8.WithCertificate/Program.cs index c81eca17..a1488ea6 100644 --- a/examples/WireMock.Net.Console.NET8.WithCertificate/Program.cs +++ b/examples/WireMock.Net.Console.NET8.WithCertificate/Program.cs @@ -1,6 +1,5 @@ // Copyright © WireMock.Net -using System.IO; using WireMock.Logging; using WireMock.Server; using WireMock.Settings; diff --git a/examples/WireMock.Net.Console.NET8/MainApp.cs b/examples/WireMock.Net.Console.NET8/MainApp.cs index 9023b526..952a65e1 100644 --- a/examples/WireMock.Net.Console.NET8/MainApp.cs +++ b/examples/WireMock.Net.Console.NET8/MainApp.cs @@ -1,14 +1,8 @@ // Copyright © WireMock.Net -using System; -using System.Collections.Generic; using System.Globalization; -using System.IO; -using System.Linq; using System.Net; -using System.Threading.Tasks; using Newtonsoft.Json; -using SharpYaml.Model; using WireMock.Logging; using WireMock.Matchers; using WireMock.Models; diff --git a/examples/WireMock.Net.Console.RequestLogTest/Program.cs b/examples/WireMock.Net.Console.RequestLogTest/Program.cs index d1aeab3b..dbcdc04a 100644 --- a/examples/WireMock.Net.Console.RequestLogTest/Program.cs +++ b/examples/WireMock.Net.Console.RequestLogTest/Program.cs @@ -1,9 +1,5 @@ // Copyright © WireMock.Net -using System; -using System.Linq; -using System.Net.Http; -using System.Threading.Tasks; using WireMock.Logging; using WireMock.Net.StandAlone; using WireMock.RequestBuilders; diff --git a/examples/WireMock.Net.ConsoleApp.UsingNuGet/WireMock.Net.ConsoleApp.UsingNuGet.csproj b/examples/WireMock.Net.ConsoleApp.UsingNuGet/WireMock.Net.ConsoleApp.UsingNuGet.csproj index 0836b3a1..f37fe696 100644 --- a/examples/WireMock.Net.ConsoleApp.UsingNuGet/WireMock.Net.ConsoleApp.UsingNuGet.csproj +++ b/examples/WireMock.Net.ConsoleApp.UsingNuGet/WireMock.Net.ConsoleApp.UsingNuGet.csproj @@ -16,7 +16,7 @@ - + \ No newline at end of file diff --git a/examples/WireMock.Net.OpenApiParser.ConsoleApp/Program.cs b/examples/WireMock.Net.OpenApiParser.ConsoleApp/Program.cs index 13230f90..4b0cc347 100644 --- a/examples/WireMock.Net.OpenApiParser.ConsoleApp/Program.cs +++ b/examples/WireMock.Net.OpenApiParser.ConsoleApp/Program.cs @@ -1,7 +1,5 @@ // Copyright © WireMock.Net -using System; -using System.IO; using WireMock.RequestBuilders; using WireMock.ResponseBuilders;