diff --git a/CHANGELOG.md b/CHANGELOG.md index c1a01e6c..d5998ed3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [v1.0.0-beta08] + +Fixes +* Fix bug in System.Text.Json converters that could cause errors when used with source generators + ## [v1.0.0-beta07] Breaking Changes: diff --git a/README.md b/README.md index d0e5b1a2..3b418410 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ You must be using the .NET 7+ SDK (though you can compile for other target frame To use StronglyTypedIds, install the [StronglyTypedId NuGet package](https://www.nuget.org/packages/StronglyTypedId) into your _csproj_ file, for example by running ```bash -dotnet add package StronglyTypedId --version 1.0.0-beta07 +dotnet add package StronglyTypedId --version 1.0.0-beta08 ``` This adds a `` to your project. You can additionally mark the package as `PrivateAsets="all"` and `ExcludeAssets="runtime"`. @@ -61,7 +61,7 @@ This adds a `` to your project. You can additionally mark the - + @@ -270,7 +270,7 @@ The "template-based" design of StronglyTypedId is intended to make it easy to ge To make it easier to share templates with multiple people, and optional _StronglyTypedId.Templates_ NuGet package is available that includes various converters and other backing types. To use these templates, add the _StronglyTypedId.Templates_ package to your project: ```bash -dotnet add package StronglyTypedId.Templates --version 1.0.0-beta07 +dotnet add package StronglyTypedId.Templates --version 1.0.0-beta08 ``` You will then be able to reference any of the templates it includes. This includes "complete" implementations, including multiple converters, for various backing types: @@ -327,7 +327,7 @@ Your project file should look something like this: - @@ -352,7 +352,7 @@ If you wish to preserve these attributes in the build output, you can define the - + diff --git a/releasenotes.props b/releasenotes.props index a5d619e4..8a67c27c 100644 --- a/releasenotes.props +++ b/releasenotes.props @@ -3,6 +3,11 @@ diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleTemplatesWithoutBuiltIn.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleTemplatesWithoutBuiltIn.verified.txt index 90db96b5..f4ec11b8 100644 --- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleTemplatesWithoutBuiltIn.verified.txt +++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateMultipleTemplatesWithoutBuiltIn.verified.txt @@ -10,7 +10,7 @@ #pragma warning disable 1591 // publicly visible type or member must be documented #nullable enable - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta7")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta08")] partial struct MyId { public partial class EfCoreValueConverter : global::Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNestedIdInFileScopeNamespace.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNestedIdInFileScopeNamespace.verified.txt index f68c9472..e16f1583 100644 --- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNestedIdInFileScopeNamespace.verified.txt +++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNestedIdInFileScopeNamespace.verified.txt @@ -16,7 +16,7 @@ namespace SomeNamespace { [global::System.ComponentModel.TypeConverter(typeof(MyIdTypeConverter))] [global::System.Text.Json.Serialization.JsonConverter(typeof(MyIdSystemTextJsonConverter))] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta7")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta08")] partial struct MyId : #if NET6_0_OR_GREATER global::System.ISpanFormattable, diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNonDefaultIdInNamespace.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNonDefaultIdInNamespace.verified.txt index a527f220..2abc9be8 100644 --- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNonDefaultIdInNamespace.verified.txt +++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateNonDefaultIdInNamespace.verified.txt @@ -14,7 +14,7 @@ namespace SomeNamespace { [global::System.ComponentModel.TypeConverter(typeof(MyIdTypeConverter))] [global::System.Text.Json.Serialization.JsonConverter(typeof(MyIdSystemTextJsonConverter))] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta7")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta08")] partial struct MyId : #if NET6_0_OR_GREATER global::System.ISpanFormattable, diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateVeryNestedIdInFileScopeNamespace.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateVeryNestedIdInFileScopeNamespace.verified.txt index 79ebbdc6..7957b81b 100644 --- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateVeryNestedIdInFileScopeNamespace.verified.txt +++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanGenerateVeryNestedIdInFileScopeNamespace.verified.txt @@ -20,7 +20,7 @@ namespace SomeNamespace { [global::System.ComponentModel.TypeConverter(typeof(MyIdTypeConverter))] [global::System.Text.Json.Serialization.JsonConverter(typeof(MyIdSystemTextJsonConverter))] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta7")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta08")] partial struct MyId : #if NET6_0_OR_GREATER global::System.ISpanFormattable, diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithCustomTemplateUsingGlobalAttribute.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithCustomTemplateUsingGlobalAttribute.verified.txt index 35f3fc37..8e87d5b6 100644 --- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithCustomTemplateUsingGlobalAttribute.verified.txt +++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithCustomTemplateUsingGlobalAttribute.verified.txt @@ -10,7 +10,7 @@ #pragma warning disable 1591 // publicly visible type or member must be documented #nullable enable - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta7")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta08")] [global::System.ComponentModel.TypeConverter(typeof(MyIdTypeConverter))] [global::System.Text.Json.Serialization.JsonConverter(typeof(MyIdSystemTextJsonConverter))] [global::Newtonsoft.Json.JsonConverter(typeof(MyIdNewtonsoftJsonConverter))] diff --git a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithTemplateUsingGlobalAttribute.verified.txt b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithTemplateUsingGlobalAttribute.verified.txt index 7157a5a2..b68bd984 100644 --- a/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithTemplateUsingGlobalAttribute.verified.txt +++ b/test/StronglyTypedIds.Tests/Snapshots/StronglyTypedIdGeneratorTests.CanOverrideDefaultsWithTemplateUsingGlobalAttribute.verified.txt @@ -12,7 +12,7 @@ #nullable enable [global::System.ComponentModel.TypeConverter(typeof(MyIdTypeConverter))] [global::System.Text.Json.Serialization.JsonConverter(typeof(MyIdSystemTextJsonConverter))] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta7")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("StronglyTypedId", "1.0.0-beta08")] partial struct MyId : #if NET6_0_OR_GREATER global::System.ISpanFormattable, diff --git a/version.props b/version.props index 4ab397a6..992754da 100644 --- a/version.props +++ b/version.props @@ -1,7 +1,7 @@ 1.0.0 - beta07 + beta08 $(VersionPrefix) $(VersionPrefix)-$(VersionSuffix)