From 936d41514b37fefa7d3cd5bae28c2270cb94d70d Mon Sep 17 00:00:00 2001 From: David Pine Date: Thu, 7 Mar 2024 14:25:12 -0600 Subject: [PATCH 1/3] Upgrade the Std.UriTemplate lib to 0.54 and add a unit test. --- .../RequestInformationTests.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Microsoft.Kiota.Abstractions.Tests/RequestInformationTests.cs b/Microsoft.Kiota.Abstractions.Tests/RequestInformationTests.cs index 89e701b2..caaf6110 100644 --- a/Microsoft.Kiota.Abstractions.Tests/RequestInformationTests.cs +++ b/Microsoft.Kiota.Abstractions.Tests/RequestInformationTests.cs @@ -10,6 +10,24 @@ namespace Microsoft.Kiota.Abstractions.Tests { public class RequestInformationTests { + [Fact] + public void SetUriCorrectlyEscapesDataString() + { + // Arrange + var testRequest = new RequestInformation() + { + HttpMethod = Method.GET, + UrlTemplate = "http://localhost/repos/{owner}/{repo}/labels/{name}" + }; + // Act + testRequest.PathParameters.Add("owner", "me"); + testRequest.PathParameters.Add("repo", "test"); + testRequest.PathParameters.Add("name", "profane content 🤬"); + // Assert + var actual = testRequest.URI.AbsoluteUri.ToString(); + Assert.Equal("http://localhost/repos/me/test/labels/profane%20content%20%F0%9F%A4%AC", actual); + Assert.Empty(testRequest.QueryParameters); + } [Fact] public void SetUriExtractsQueryParameters() { From 980d6f5aabe9805d985dcf10cfdd75c5bd407bf4 Mon Sep 17 00:00:00 2001 From: David Pine Date: Fri, 8 Mar 2024 10:17:35 -0600 Subject: [PATCH 2/3] items to .sln for visibility and update changelog --- CHANGELOG.md | 7 +++++++ Microsoft.Kiota.Abstractions.sln | 12 +++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 063ec50f..653577a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.7.12] - 2024-03-08 + +### Changed + +- Upgrade `Std.UriTemplate` NuGet package to version 0.54. +- Add a unit test for emoji in URI template parameters. + ## [1.7.11] - 2024-02-26 ### Changed diff --git a/Microsoft.Kiota.Abstractions.sln b/Microsoft.Kiota.Abstractions.sln index c5c947b2..f43cbea5 100644 --- a/Microsoft.Kiota.Abstractions.sln +++ b/Microsoft.Kiota.Abstractions.sln @@ -1,16 +1,22 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31424.327 +# Visual Studio Version 17 +VisualStudioVersion = 17.10.34706.255 MinimumVisualStudioVersion = 15.0.26124.0 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Abstractions", "src\Microsoft.Kiota.Abstractions.csproj", "{DEE3A7F9-7951-403C-A90C-C182A381D6B6}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{812D9C21-411D-4987-AB8E-C96185F01AD0}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig + CHANGELOG.md = CHANGELOG.md + CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md + LICENSE = LICENSE + README.md = README.md + SECURITY.md = SECURITY.md + SUPPORT.md = SUPPORT.md EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Kiota.Abstractions.Tests", "Microsoft.Kiota.Abstractions.Tests\Microsoft.Kiota.Abstractions.Tests.csproj", "{95C59CD7-B996-45A7-927D-4952E85A2BB8}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Kiota.Abstractions.Tests", "Microsoft.Kiota.Abstractions.Tests\Microsoft.Kiota.Abstractions.Tests.csproj", "{95C59CD7-B996-45A7-927D-4952E85A2BB8}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution From 97fe58390319b370e4528b630f4d1533a5836185 Mon Sep 17 00:00:00 2001 From: Eastman Date: Mon, 11 Mar 2024 09:41:36 +0300 Subject: [PATCH 3/3] Update csproj version --- src/Microsoft.Kiota.Abstractions.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.Kiota.Abstractions.csproj b/src/Microsoft.Kiota.Abstractions.csproj index 2c1d091f..a1fd41bc 100644 --- a/src/Microsoft.Kiota.Abstractions.csproj +++ b/src/Microsoft.Kiota.Abstractions.csproj @@ -14,7 +14,7 @@ https://aka.ms/kiota/docs true true - 1.7.11 + 1.7.12 true false @@ -61,4 +61,4 @@ - \ No newline at end of file +