Skip to content

Commit 0460000

Browse files
committed
Merge branch 'dev' into normj/net10-blueprints
2 parents 1235ecd + 5391d47 commit 0460000

File tree

11 files changed

+24
-15
lines changed

11 files changed

+24
-15
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Release 2025-12-12
2+
3+
### Amazon.Lambda.Annotations (1.8.0)
4+
* Prepare Amazon.Lambda.Annotations for upcoming .NET 10 managed runtime
5+
### Amazon.Lambda.APIGatewayEvents (2.7.3)
6+
* Marked ProxyRequestContext.Error property as Obsolete for APIGatewayProxyRequest.
7+
18
## Release 2025-11-21
29

310
### Amazon.Lambda.DynamoDBEvents.SDK.Convertor (2.0.1)

Libraries/src/Amazon.Lambda.APIGatewayEvents/APIGatewayProxyRequest.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Amazon.Lambda.APIGatewayEvents
1+
namespace Amazon.Lambda.APIGatewayEvents
22
{
33
using System;
44
using System.Collections.Generic;
@@ -234,10 +234,11 @@ public class ProxyRequestContext
234234
/// Gets and sets the operation name.
235235
/// </summary>
236236
public string OperationName { get; set; }
237-
237+
238238
/// <summary>
239239
/// Gets and sets the error.
240240
/// </summary>
241+
[Obsolete("This property is obsolete since it is not used by AWS API Gateway and will never have value set by the service.")]
241242
public string Error { get; set; }
242243

243244
/// <summary>

Libraries/src/Amazon.Lambda.APIGatewayEvents/Amazon.Lambda.APIGatewayEvents.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net8.0</TargetFrameworks>
77
<Description>Amazon Lambda .NET Core support - API Gateway package.</Description>
88
<AssemblyTitle>Amazon.Lambda.APIGatewayEvents</AssemblyTitle>
9-
<Version>2.7.2</Version>
9+
<Version>2.7.3</Version>
1010
<AssemblyName>Amazon.Lambda.APIGatewayEvents</AssemblyName>
1111
<PackageId>Amazon.Lambda.APIGatewayEvents</PackageId>
1212
<PackageTags>AWS;Amazon;Lambda</PackageTags>

Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Amazon.Lambda.Annotations.SourceGenerator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
2121
<IncludeBuildOutput>false</IncludeBuildOutput>
2222

23-
<Version>1.7.0</Version>
23+
<Version>1.8.0</Version>
2424
</PropertyGroup>
2525

2626
<!-- Delay setting the package id till after resolving dependencies to avoid ambigious errors. -->

Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Generator.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ namespace Amazon.Lambda.Annotations.SourceGenerator
1616
[Generator]
1717
public class Generator : ISourceGenerator
1818
{
19-
private const string DEFAULT_LAMBDA_SERIALIZER = "Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer";
2019
private readonly IFileManager _fileManager = new FileManager();
2120
private readonly IDirectoryManager _directoryManager = new DirectoryManager();
2221

@@ -26,15 +25,17 @@ public class Generator : ISourceGenerator
2625
internal static readonly Dictionary<string, string> _targetFrameworksToRuntimes = new Dictionary<string, string>(2)
2726
{
2827
{ "net6.0", "dotnet6" },
29-
{ "net8.0", "dotnet8" }
28+
{ "net8.0", "dotnet8" },
29+
{ "net10.0", "dotnet10" }
3030
};
3131

3232
internal static readonly List<string> _allowedRuntimeValues = new List<string>(4)
3333
{
3434
"dotnet6",
3535
"provided.al2",
3636
"provided.al2023",
37-
"dotnet8"
37+
"dotnet8",
38+
"dotnet10"
3839
};
3940

4041
public Generator()

Libraries/src/Amazon.Lambda.Annotations/Amazon.Lambda.Annotations.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<AssemblyOriginatorKeyFile>..\..\..\buildtools\public.snk</AssemblyOriginatorKeyFile>
1212
<SignAssembly>true</SignAssembly>
1313

14-
<Version>1.7.0</Version>
14+
<Version>1.8.0</Version>
1515
</PropertyGroup>
1616

1717
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0'">

Libraries/src/Amazon.Lambda.Annotations/LambdaGlobalPropertiesAttribute.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-

1+
22
using System;
33

44
namespace Amazon.Lambda.Annotations
@@ -17,8 +17,8 @@ public class LambdaGlobalPropertiesAttribute : Attribute
1717
public bool GenerateMain { get; set; }
1818

1919
/// <summary>
20-
/// The runtime to set in the generated CloudFormation template. Either 'dotnet6', 'provided.al2', 'provided.al2023', or 'dotnet8'.
20+
/// The runtime to set in the generated CloudFormation template. Either 'dotnet6', 'provided.al2', 'provided.al2023', 'dotnet8', or 'dotnet10'.
2121
/// </summary>
2222
public string Runtime { get; set; }
2323
}
24-
}
24+
}

Libraries/test/Amazon.Lambda.Annotations.SourceGenerators.Tests/SourceGeneratorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public async Task TestInvalidGlobalRuntime_ShouldError()
264264
},
265265
ExpectedDiagnostics =
266266
{
267-
new DiagnosticResult("AWSLambda0112", DiagnosticSeverity.Error).WithMessage("The runtime selected in the Amazon.Lambda.Annotations.LambdaGlobalPropertiesAttribute is not a supported value. The valid values are: dotnet6, provided.al2, provided.al2023, dotnet8"),
267+
new DiagnosticResult("AWSLambda0112", DiagnosticSeverity.Error).WithMessage("The runtime selected in the Amazon.Lambda.Annotations.LambdaGlobalPropertiesAttribute is not a supported value. The valid values are: dotnet6, provided.al2, provided.al2023, dotnet8, dotnet10"),
268268
}
269269
}
270270
};

Libraries/test/TestExecutableServerlessApp/serverless.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"AWSTemplateFormatVersion": "2010-09-09",
33
"Transform": "AWS::Serverless-2016-10-31",
4-
"Description": "An AWS Serverless Application. This template is partially managed by Amazon.Lambda.Annotations (v1.7.0.0).",
4+
"Description": "An AWS Serverless Application. This template is partially managed by Amazon.Lambda.Annotations (v1.8.0.0).",
55
"Parameters": {
66
"ArchitectureTypeParameter": {
77
"Type": "String",

Libraries/test/TestServerlessApp.NET8/serverless.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"AWSTemplateFormatVersion": "2010-09-09",
33
"Transform": "AWS::Serverless-2016-10-31",
4-
"Description": "This template is partially managed by Amazon.Lambda.Annotations (v1.7.0.0).",
4+
"Description": "This template is partially managed by Amazon.Lambda.Annotations (v1.8.0.0).",
55
"Resources": {
66
"TestServerlessAppNET8FunctionsToUpperGenerated": {
77
"Type": "AWS::Serverless::Function",

0 commit comments

Comments
 (0)