From f5d53453e569384efcb704a6ac473a73916e4a66 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Mon, 5 Jan 2026 21:34:11 +0100 Subject: [PATCH] 1.23.0 --- CHANGELOG.md | 6 ++++++ Directory.Build.props | 2 +- Generate-ReleaseNotes.cmd | 2 +- PackageReleaseNotes.txt | 8 +++++--- .../Settings/HandlebarsSettingsTests.cs | 18 ++++++++++-------- 5 files changed, 23 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe2640b8..42ab62e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.23.0 (05 January 2026) +- [#1414](https://github.com/wiremock/WireMock.Net/pull/1414) - Pass the parameter matchOperator in Request.WithPath to its inner calls [bug] contributed by [gbamqzkdyg](https://github.com/gbamqzkdyg) +- [#1416](https://github.com/wiremock/WireMock.Net/pull/1416) - Fix: Pass AllowedHandlebarsHelpers configuration to Handlebars.Net.Helpers library contributed by [samlatham](https://github.com/samlatham) +- [#1413](https://github.com/wiremock/WireMock.Net/issues/1413) - Parameter `matchOperator` is not respected in the method Request.WithPath [bug] +- [#1415](https://github.com/wiremock/WireMock.Net/issues/1415) - HandlebarsSettings AllowedHandlebarsHelpers Configuration Not Applied [bug] + # 1.22.0 (02 January 2026) - [#1412](https://github.com/wiremock/WireMock.Net/pull/1412) - chore(testcontainers): bump up Testcontainers to version 4.10.0 [feature] contributed by [vhatsura](https://github.com/vhatsura) - [#1411](https://github.com/wiremock/WireMock.Net/issues/1411) - WireMock.Net.Testcontainers isn't compatible with Testcontainers 4.10.0 [bug] diff --git a/Directory.Build.props b/Directory.Build.props index 51a840c4..305a7415 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -4,7 +4,7 @@ - 1.22.0 + 1.23.0 WireMock.Net-Logo.png https://github.com/wiremock/WireMock.Net Apache-2.0 diff --git a/Generate-ReleaseNotes.cmd b/Generate-ReleaseNotes.cmd index 5c9e488c..90e00c82 100644 --- a/Generate-ReleaseNotes.cmd +++ b/Generate-ReleaseNotes.cmd @@ -1,6 +1,6 @@ rem https://github.com/StefH/GitHubReleaseNotes -SET version=1.22.0 +SET version=1.23.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 83140fb9..8d7293e0 100644 --- a/PackageReleaseNotes.txt +++ b/PackageReleaseNotes.txt @@ -1,5 +1,7 @@ -# 1.22.0 (02 January 2026) -- #1412 chore(testcontainers): bump up Testcontainers to version 4.10.0 [feature] -- #1411 WireMock.Net.Testcontainers isn't compatible with Testcontainers 4.10.0 [bug] +# 1.23.0 (05 January 2026) +- #1414 Pass the parameter matchOperator in Request.WithPath to its inner calls [bug] +- #1416 Fix: Pass AllowedHandlebarsHelpers configuration to Handlebars.Net.Helpers library +- #1413 Parameter `matchOperator` is not respected in the method Request.WithPath [bug] +- #1415 HandlebarsSettings AllowedHandlebarsHelpers Configuration Not Applied [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/test/WireMock.Net.Tests/Settings/HandlebarsSettingsTests.cs b/test/WireMock.Net.Tests/Settings/HandlebarsSettingsTests.cs index ab27c4c7..1655dd68 100644 --- a/test/WireMock.Net.Tests/Settings/HandlebarsSettingsTests.cs +++ b/test/WireMock.Net.Tests/Settings/HandlebarsSettingsTests.cs @@ -7,7 +7,6 @@ using FluentAssertions; using HandlebarsDotNet; using HandlebarsDotNet.Helpers.Enums; using Moq; -using NFluent; using WireMock.Handlers; using WireMock.Models; using WireMock.ResponseBuilders; @@ -50,7 +49,7 @@ public class HandlebarsSettingsTests Func action = () => responseBuilder.ProvideResponseAsync(_mappingMock.Object, request, _settings); // Assert - action.Should().ThrowAsync(); + await action.Should().ThrowAsync(); } [Fact] @@ -63,7 +62,7 @@ public class HandlebarsSettingsTests HandlebarsSettings = new HandlebarsSettings { AllowedHandlebarsHelpers = HandlebarsSettings.DefaultAllowedHandlebarsHelpers - .Concat(new[] { Category.Environment }) + .Concat([Category.Environment]) .ToArray() } }; @@ -78,14 +77,17 @@ public class HandlebarsSettingsTests var response = await responseBuilder.ProvideResponseAsync(_mappingMock.Object, request, settingsWithEnv).ConfigureAwait(false); // Assert - Check.That(response.Message.BodyData.BodyAsString).Not.Contains("{{Environment.GetEnvironmentVariable"); - Check.That(response.Message.BodyData.BodyAsString).StartsWith("User: "); + response.Message?.BodyData?.BodyAsString.Should().NotContain("{{Environment.GetEnvironmentVariable"); + response.Message?.BodyData?.BodyAsString.Should().StartWith("User: "); } [Fact] - public void DefaultAllowedHandlebarsHelpers_Should_Not_Include_Environment() + public void DefaultAllowedHandlebarsHelpers_Should_Not_Include_EnvironmentAndDynamicLinq() { // Assert - Check.That(HandlebarsSettings.DefaultAllowedHandlebarsHelpers).Not.Contains(Category.Environment); + HandlebarsSettings.DefaultAllowedHandlebarsHelpers.Should() + .NotContain(Category.Environment) + .And + .NotContain(Category.DynamicLinq); } -} +} \ No newline at end of file