Skip to content

Commit 0881512

Browse files
authored
Backend dependency bump for May 2025 (#3789)
1 parent 4088010 commit 0881512

File tree

4 files changed

+45
-45
lines changed

4 files changed

+45
-45
lines changed

Backend/BackendFramework.csproj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,29 @@
1010
<NoWarn>$(NoWarn);CA1305;CA1848;CS1591</NoWarn>
1111
</PropertyGroup>
1212
<ItemGroup>
13-
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.11.2" />
13+
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.12.0" />
1414
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.11.2" />
15-
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.11.2" />
15+
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.12.0" />
1616
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.11.1" />
1717
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.11.1" />
1818
<PackageReference Include="RelaxNG" Version="3.2.3">
1919
<NoWarn>NU1701</NoWarn>
2020
</PackageReference>
21-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.14" />
22-
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.6.0" />
23-
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.6.0" />
24-
<PackageReference Include="MailKit" Version="4.9.0" />
21+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.15" />
22+
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.9.0" />
23+
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.9.0" />
24+
<PackageReference Include="MailKit" Version="4.12.0" />
2525
<PackageReference Include="MongoDB.Driver" Version="3.3.0" />
26-
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.2.0" />
26+
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.1" />
2727
<PackageReference Include="Xabe.FFmpeg" Version="5.2.6"/>
2828

2929
<!-- SIL Maintained Dependencies. -->
3030
<PackageReference Include="icu.net" Version="3.0.1" />
3131
<PackageReference Include="Icu4c.Win.Full.Lib" Version="62.2.3-beta" />
32-
<PackageReference Include="SIL.Core" Version="16.0.0-beta0140" />
33-
<PackageReference Include="SIL.Core.Desktop" Version="16.0.0-beta0140"/>
34-
<PackageReference Include="SIL.DictionaryServices" Version="16.0.0-beta0140"/>
35-
<PackageReference Include="SIL.Lift" Version="16.0.0-beta0140"/>
36-
<PackageReference Include="SIL.WritingSystems" Version="16.0.0-beta0140" />
32+
<PackageReference Include="SIL.Core" Version="16.0.0" />
33+
<PackageReference Include="SIL.Core.Desktop" Version="16.0.0"/>
34+
<PackageReference Include="SIL.DictionaryServices" Version="16.0.0"/>
35+
<PackageReference Include="SIL.Lift" Version="16.0.0"/>
36+
<PackageReference Include="SIL.WritingSystems" Version="16.0.0" />
3737
</ItemGroup>
3838
</Project>

Backend/Models/Statistics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.ComponentModel.DataAnnotations;
4-
using SIL.Extensions;
4+
using static SIL.Extensions.DateTimeExtensions;
55

66
namespace BackendFramework.Models
77
{
@@ -74,7 +74,7 @@ public class WordsPerDayPerUserCount
7474

7575
public WordsPerDayPerUserCount(string isoString)
7676
{
77-
DateTime = DateTimeExtensions.ParseDateTimePermissivelyWithException(isoString);
77+
DateTime = isoString.ParseModernPastDateTimePermissivelyWithException();
7878
UserNameCountDictionary = [];
7979
}
8080
}

Backend/Services/StatisticsService.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public async Task<List<SemanticDomainCount>> GetSemanticDomainCounts(string proj
4040

4141
if (domainTreeNodeList is null || domainTreeNodeList.Count == 0 || wordList.Count == 0)
4242
{
43-
return new();
43+
return [];
4444
}
4545

4646
foreach (var word in wordList)
@@ -73,7 +73,7 @@ public async Task<List<WordsPerDayPerUserCount>> GetWordsPerDayPerUserCounts(str
7373

7474
if (wordList.Count == 0)
7575
{
76-
return new();
76+
return [];
7777
}
7878

7979
var allUsers = await _userRepo.GetAllUsers();
@@ -94,7 +94,7 @@ public async Task<List<WordsPerDayPerUserCount>> GetWordsPerDayPerUserCounts(str
9494
// The created timestamp may not exist for some model
9595
if (!string.IsNullOrEmpty(sd.Created))
9696
{
97-
var dateKey = ParseDateTimePermissivelyWithException(sd.Created)
97+
var dateKey = sd.Created.ParseModernPastDateTimePermissivelyWithException()
9898
.ToISO8601TimeFormatDateOnlyString();
9999
if (!shortTimeDictionary.TryGetValue(dateKey, out var chartNode))
100100
{
@@ -157,7 +157,7 @@ public async Task<ChartRootData> GetProgressEstimationLineChartRoot(string proje
157157

158158
if (!string.IsNullOrEmpty(sd.Created))
159159
{
160-
string dateString = ParseDateTimePermissivelyWithException(sd.Created)
160+
string dateString = sd.Created.ParseModernPastDateTimePermissivelyWithException()
161161
.ToISO8601TimeFormatDateOnlyString();
162162
if (!workshopSchedule.Contains(dateString))
163163
{
@@ -182,7 +182,7 @@ public async Task<ChartRootData> GetProgressEstimationLineChartRoot(string proje
182182
workshopSchedule.Sort();
183183
var totalCountList = totalCountDictionary.Values.ToList();
184184
var pastDays = workshopSchedule.FindAll(day =>
185-
ParseDateTimePermissivelyWithException(day).CompareTo(DateTime.Now) <= 0).Count;
185+
day.ParseModernPastDateTimePermissivelyWithException().CompareTo(DateTime.Now) <= 0).Count;
186186
// calculate average daily count
187187
// If pastDays is two or more, and pastDays equals the number of days on which at least one word was added
188188
var min = totalCountList.Min();
@@ -220,7 +220,7 @@ public async Task<ChartRootData> GetProgressEstimationLineChartRoot(string proje
220220
else
221221
{
222222
// not generate data after the current date for Daily Total, Average, and Running Total
223-
if (ParseDateTimePermissivelyWithException(day).CompareTo(DateTime.Now) <= 0)
223+
if (day.ParseModernPastDateTimePermissivelyWithException().CompareTo(DateTime.Now) <= 0)
224224
{
225225
runningTotal += today;
226226
LineChartData.Datasets.Find(element => element.UserName == StatDailyTotal)?.Data.Add(today);

docs/user_guide/assets/licenses/backend_licenses.txt

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
###############################################################
22
PackageId: BouncyCastle.Cryptography
3-
PackageVersion: 2.5.0
3+
PackageVersion: 2.5.1
44
PackageProjectUrl: https://www.bouncycastle.org/stable/nuget/csharp/website
55
Authors: Legion of the Bouncy Castle Inc.
66
License: MIT
@@ -34,7 +34,7 @@ License: MIT
3434
LicenseUrl: https://licenses.nuget.org/MIT
3535
###############################################################
3636
PackageId: MailKit
37-
PackageVersion: 4.9.0
37+
PackageVersion: 4.12.0
3838
PackageProjectUrl: http://www.mimekit.net/
3939
Authors: Jeffrey Stedfast
4040
License: MIT
@@ -48,7 +48,7 @@ License: BSD-2-Clause
4848
LicenseUrl: https://licenses.nuget.org/BSD-2-Clause
4949
###############################################################
5050
PackageId: Microsoft.AspNetCore.Authentication.JwtBearer
51-
PackageVersion: 8.0.14
51+
PackageVersion: 8.0.15
5252
PackageProjectUrl: https://asp.net/
5353
Authors: Microsoft
5454
License: MIT
@@ -188,21 +188,21 @@ License: MIT
188188
LicenseUrl: https://licenses.nuget.org/MIT
189189
###############################################################
190190
PackageId: Microsoft.IdentityModel.Abstractions
191-
PackageVersion: 8.6.0
191+
PackageVersion: 8.9.0
192192
PackageProjectUrl: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet
193193
Authors: Microsoft
194194
License: MIT
195195
LicenseUrl: https://licenses.nuget.org/MIT
196196
###############################################################
197197
PackageId: Microsoft.IdentityModel.JsonWebTokens
198-
PackageVersion: 8.6.0
198+
PackageVersion: 8.9.0
199199
PackageProjectUrl: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet
200200
Authors: Microsoft
201201
License: MIT
202202
LicenseUrl: https://licenses.nuget.org/MIT
203203
###############################################################
204204
PackageId: Microsoft.IdentityModel.Logging
205-
PackageVersion: 8.6.0
205+
PackageVersion: 8.9.0
206206
PackageProjectUrl: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet
207207
Authors: Microsoft
208208
License: MIT
@@ -223,7 +223,7 @@ License: MIT
223223
LicenseUrl: https://licenses.nuget.org/MIT
224224
###############################################################
225225
PackageId: Microsoft.IdentityModel.Tokens
226-
PackageVersion: 8.6.0
226+
PackageVersion: 8.9.0
227227
PackageProjectUrl: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet
228228
Authors: Microsoft
229229
License: MIT
@@ -244,7 +244,7 @@ License: http://go.microsoft.com/fwlink/?LinkId=329770
244244
LicenseUrl: http://go.microsoft.com/fwlink/?LinkId=329770
245245
###############################################################
246246
PackageId: Microsoft.OpenApi
247-
PackageVersion: 1.6.22
247+
PackageVersion: 1.6.23
248248
PackageProjectUrl: https://github.com/Microsoft/OpenAPI.NET
249249
Authors: Microsoft
250250
License: MIT
@@ -265,7 +265,7 @@ License: MIT
265265
LicenseUrl: https://licenses.nuget.org/MIT
266266
###############################################################
267267
PackageId: MimeKit
268-
PackageVersion: 4.9.0
268+
PackageVersion: 4.12.0
269269
PackageProjectUrl: https://www.mimekit.net/
270270
Authors: Jeffrey Stedfast
271271
License: MIT
@@ -300,28 +300,28 @@ License: MIT
300300
LicenseUrl: https://licenses.nuget.org/MIT
301301
###############################################################
302302
PackageId: OpenTelemetry
303-
PackageVersion: 1.11.2
303+
PackageVersion: 1.12.0
304304
PackageProjectUrl: https://opentelemetry.io/
305305
Authors: OpenTelemetry Authors
306306
License: Apache-2.0
307307
LicenseUrl: https://licenses.nuget.org/Apache-2.0
308308
###############################################################
309309
PackageId: OpenTelemetry.Api
310-
PackageVersion: 1.11.2
310+
PackageVersion: 1.12.0
311311
PackageProjectUrl: https://opentelemetry.io/
312312
Authors: OpenTelemetry Authors
313313
License: Apache-2.0
314314
LicenseUrl: https://licenses.nuget.org/Apache-2.0
315315
###############################################################
316316
PackageId: OpenTelemetry.Api.ProviderBuilderExtensions
317-
PackageVersion: 1.11.2
317+
PackageVersion: 1.12.0
318318
PackageProjectUrl: https://opentelemetry.io/
319319
Authors: OpenTelemetry Authors
320320
License: Apache-2.0
321321
LicenseUrl: https://licenses.nuget.org/Apache-2.0
322322
###############################################################
323323
PackageId: OpenTelemetry.Exporter.Console
324-
PackageVersion: 1.11.2
324+
PackageVersion: 1.12.0
325325
PackageProjectUrl: https://opentelemetry.io/
326326
Authors: OpenTelemetry Authors
327327
License: Apache-2.0
@@ -335,7 +335,7 @@ License: Apache-2.0
335335
LicenseUrl: https://licenses.nuget.org/Apache-2.0
336336
###############################################################
337337
PackageId: OpenTelemetry.Extensions.Hosting
338-
PackageVersion: 1.11.2
338+
PackageVersion: 1.12.0
339339
PackageProjectUrl: https://opentelemetry.io/
340340
Authors: OpenTelemetry Authors
341341
License: Apache-2.0
@@ -478,35 +478,35 @@ PackageProjectUrl: https://github.com/adamhathcock/sharpcompress
478478
Authors: Adam Hathcock
479479
###############################################################
480480
PackageId: SIL.Core
481-
PackageVersion: 16.0.0-beta0140
481+
PackageVersion: 16.0.0
482482
PackageProjectUrl: https://github.com/sillsdev/libpalaso
483483
Authors: SIL Global
484484
License: MIT
485485
LicenseUrl: https://licenses.nuget.org/MIT
486486
###############################################################
487487
PackageId: SIL.Core.Desktop
488-
PackageVersion: 16.0.0-beta0140
488+
PackageVersion: 16.0.0
489489
PackageProjectUrl: https://github.com/sillsdev/libpalaso
490490
Authors: SIL Global
491491
License: MIT
492492
LicenseUrl: https://licenses.nuget.org/MIT
493493
###############################################################
494494
PackageId: SIL.DictionaryServices
495-
PackageVersion: 16.0.0-beta0140
495+
PackageVersion: 16.0.0
496496
PackageProjectUrl: https://github.com/sillsdev/libpalaso
497497
Authors: SIL Global
498498
License: MIT
499499
LicenseUrl: https://licenses.nuget.org/MIT
500500
###############################################################
501501
PackageId: SIL.Lift
502-
PackageVersion: 16.0.0-beta0140
502+
PackageVersion: 16.0.0
503503
PackageProjectUrl: https://github.com/sillsdev/libpalaso
504504
Authors: SIL Global
505505
License: MIT
506506
LicenseUrl: https://licenses.nuget.org/MIT
507507
###############################################################
508508
PackageId: SIL.WritingSystems
509-
PackageVersion: 16.0.0-beta0140
509+
PackageVersion: 16.0.0
510510
PackageProjectUrl: https://github.com/sillsdev/libpalaso
511511
Authors: SIL Global
512512
License: MIT
@@ -525,28 +525,28 @@ License: https://opensource.org/licenses/Zlib
525525
LicenseUrl: https://opensource.org/licenses/Zlib
526526
###############################################################
527527
PackageId: Swashbuckle.AspNetCore
528-
PackageVersion: 7.2.0
528+
PackageVersion: 8.1.1
529529
PackageProjectUrl: https://github.com/domaindrivendev/Swashbuckle.AspNetCore
530530
Authors: domaindrivendev
531531
License: MIT
532532
LicenseUrl: https://licenses.nuget.org/MIT
533533
###############################################################
534534
PackageId: Swashbuckle.AspNetCore.Swagger
535-
PackageVersion: 7.2.0
535+
PackageVersion: 8.1.1
536536
PackageProjectUrl: https://github.com/domaindrivendev/Swashbuckle.AspNetCore
537537
Authors: domaindrivendev
538538
License: MIT
539539
LicenseUrl: https://licenses.nuget.org/MIT
540540
###############################################################
541541
PackageId: Swashbuckle.AspNetCore.SwaggerGen
542-
PackageVersion: 7.2.0
542+
PackageVersion: 8.1.1
543543
PackageProjectUrl: https://github.com/domaindrivendev/Swashbuckle.AspNetCore
544544
Authors: domaindrivendev
545545
License: MIT
546546
LicenseUrl: https://licenses.nuget.org/MIT
547547
###############################################################
548548
PackageId: Swashbuckle.AspNetCore.SwaggerUI
549-
PackageVersion: 7.2.0
549+
PackageVersion: 8.1.1
550550
PackageProjectUrl: https://github.com/domaindrivendev/Swashbuckle.AspNetCore
551551
Authors: domaindrivendev
552552
License: MIT
@@ -623,7 +623,7 @@ License: http://go.microsoft.com/fwlink/?LinkId=329770
623623
LicenseUrl: http://go.microsoft.com/fwlink/?LinkId=329770
624624
###############################################################
625625
PackageId: System.Formats.Asn1
626-
PackageVersion: 8.0.1
626+
PackageVersion: 8.0.2
627627
PackageProjectUrl: https://dot.net/
628628
Authors: Microsoft
629629
License: MIT
@@ -651,7 +651,7 @@ License: http://go.microsoft.com/fwlink/?LinkId=329770
651651
LicenseUrl: http://go.microsoft.com/fwlink/?LinkId=329770
652652
###############################################################
653653
PackageId: System.IdentityModel.Tokens.Jwt
654-
PackageVersion: 8.6.0
654+
PackageVersion: 8.9.0
655655
PackageProjectUrl: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet
656656
Authors: Microsoft
657657
License: MIT

0 commit comments

Comments
 (0)