Skip to content

Commit f5d5345

Browse files
committed
1.23.0
1 parent 0e60e3f commit f5d5345

File tree

5 files changed

+23
-13
lines changed

5 files changed

+23
-13
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 1.23.0 (05 January 2026)
2+
- [#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)
3+
- [#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)
4+
- [#1413](https://github.com/wiremock/WireMock.Net/issues/1413) - Parameter `matchOperator` is not respected in the method Request.WithPath [bug]
5+
- [#1415](https://github.com/wiremock/WireMock.Net/issues/1415) - HandlebarsSettings AllowedHandlebarsHelpers Configuration Not Applied [bug]
6+
17
# 1.22.0 (02 January 2026)
28
- [#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)
39
- [#1411](https://github.com/wiremock/WireMock.Net/issues/1411) - WireMock.Net.Testcontainers isn't compatible with Testcontainers 4.10.0 [bug]

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</PropertyGroup>
55

66
<PropertyGroup>
7-
<VersionPrefix>1.22.0</VersionPrefix>
7+
<VersionPrefix>1.23.0</VersionPrefix>
88
<PackageIcon>WireMock.Net-Logo.png</PackageIcon>
99
<PackageProjectUrl>https://github.com/wiremock/WireMock.Net</PackageProjectUrl>
1010
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

Generate-ReleaseNotes.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rem https://github.com/StefH/GitHubReleaseNotes
22

3-
SET version=1.22.0
3+
SET version=1.23.0
44

55
GitHubReleaseNotes --output CHANGELOG.md --skip-empty-releases --exclude-labels wontfix test question invalid doc duplicate example environment --version %version% --token %GH_TOKEN%
66

PackageReleaseNotes.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# 1.22.0 (02 January 2026)
2-
- #1412 chore(testcontainers): bump up Testcontainers to version 4.10.0 [feature]
3-
- #1411 WireMock.Net.Testcontainers isn't compatible with Testcontainers 4.10.0 [bug]
1+
# 1.23.0 (05 January 2026)
2+
- #1414 Pass the parameter matchOperator in Request.WithPath to its inner calls [bug]
3+
- #1416 Fix: Pass AllowedHandlebarsHelpers configuration to Handlebars.Net.Helpers library
4+
- #1413 Parameter `matchOperator` is not respected in the method Request.WithPath [bug]
5+
- #1415 HandlebarsSettings AllowedHandlebarsHelpers Configuration Not Applied [bug]
46

57
The full release notes can be found here: https://github.com/wiremock/WireMock.Net/blob/master/CHANGELOG.md

test/WireMock.Net.Tests/Settings/HandlebarsSettingsTests.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using HandlebarsDotNet;
88
using HandlebarsDotNet.Helpers.Enums;
99
using Moq;
10-
using NFluent;
1110
using WireMock.Handlers;
1211
using WireMock.Models;
1312
using WireMock.ResponseBuilders;
@@ -50,7 +49,7 @@ public async Task Response_HandlebarsHelpers_Environment_NotAllowed_By_Default()
5049
Func<Task> action = () => responseBuilder.ProvideResponseAsync(_mappingMock.Object, request, _settings);
5150

5251
// Assert
53-
action.Should().ThrowAsync<HandlebarsRuntimeException>();
52+
await action.Should().ThrowAsync<HandlebarsRuntimeException>();
5453
}
5554

5655
[Fact]
@@ -63,7 +62,7 @@ public async Task Response_HandlebarsHelpers_Environment_Allowed_When_Configured
6362
HandlebarsSettings = new HandlebarsSettings
6463
{
6564
AllowedHandlebarsHelpers = HandlebarsSettings.DefaultAllowedHandlebarsHelpers
66-
.Concat(new[] { Category.Environment })
65+
.Concat([Category.Environment])
6766
.ToArray()
6867
}
6968
};
@@ -78,14 +77,17 @@ public async Task Response_HandlebarsHelpers_Environment_Allowed_When_Configured
7877
var response = await responseBuilder.ProvideResponseAsync(_mappingMock.Object, request, settingsWithEnv).ConfigureAwait(false);
7978

8079
// Assert
81-
Check.That(response.Message.BodyData.BodyAsString).Not.Contains("{{Environment.GetEnvironmentVariable");
82-
Check.That(response.Message.BodyData.BodyAsString).StartsWith("User: ");
80+
response.Message?.BodyData?.BodyAsString.Should().NotContain("{{Environment.GetEnvironmentVariable");
81+
response.Message?.BodyData?.BodyAsString.Should().StartWith("User: ");
8382
}
8483

8584
[Fact]
86-
public void DefaultAllowedHandlebarsHelpers_Should_Not_Include_Environment()
85+
public void DefaultAllowedHandlebarsHelpers_Should_Not_Include_EnvironmentAndDynamicLinq()
8786
{
8887
// Assert
89-
Check.That(HandlebarsSettings.DefaultAllowedHandlebarsHelpers).Not.Contains(Category.Environment);
88+
HandlebarsSettings.DefaultAllowedHandlebarsHelpers.Should()
89+
.NotContain(Category.Environment)
90+
.And
91+
.NotContain(Category.DynamicLinq);
9092
}
91-
}
93+
}

0 commit comments

Comments
 (0)