Skip to content

Commit

Permalink
Version bump (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlock committed Apr 25, 2024
1 parent c303bd9 commit e5df78d
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 21 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<PackageReference>` to your project. You can additionally mark the package as `PrivateAsets="all"` and `ExcludeAssets="runtime"`.
Expand All @@ -61,7 +61,7 @@ This adds a `<PackageReference>` to your project. You can additionally mark the

<ItemGroup>
<!-- Add the package -->
<PackageReference Include="StronglyTypedId" Version="1.0.0-beta07" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="StronglyTypedId" Version="1.0.0-beta08" PrivateAssets="all" ExcludeAssets="runtime" />
<!-- -->
</ItemGroup>

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -327,7 +327,7 @@ Your project file should look something like this:
</PropertyGroup>

<!-- Add the package -->
<PackageReference Include="StronglyTypedId" Version="1.0.0-beta07"
<PackageReference Include="StronglyTypedId" Version="1.0.0-beta08"
PrivateAssets="all"
ExcludeAssets="compile;runtime" />
<!-- ☝ Add compile to the list of excluded assets. -->
Expand All @@ -352,7 +352,7 @@ If you wish to preserve these attributes in the build output, you can define the
</PropertyGroup>

<!-- Add the package -->
<PackageReference Include="StronglyTypedId" Version="1.0.0-beta07" PrivateAssets="all" />
<PackageReference Include="StronglyTypedId" Version="1.0.0-beta08" PrivateAssets="all" />
<!-- ☝ You must not exclude the runtime assets in this case -->

</Project>
Expand Down
5 changes: 5 additions & 0 deletions releasenotes.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
<PackageReleaseNotes Condition="'$(VersionPrefix)' == '1.0.0'">
<![CDATA[
## Changes in 1.0.0-beta08:
Fixes
* Fix bug in System.Text.Json converters that could cause errors when used with source generators
## Changes in 1.0.0-beta07:
⚠ WARNING ⚠
Expand Down
2 changes: 1 addition & 1 deletion src/StronglyTypedIds/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace StronglyTypedIds
{
internal static class Constants
{
public const string StronglyTypedIdsVersion = "1.0.0-beta7";
public const string StronglyTypedIdsVersion = "1.0.0-beta08";
public const string Usage = nameof(Usage);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#nullable enable
namespace SomeNamespace
{
[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))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace SomeNamespace
{
public partial struct InnerStruct
{
[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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace MyContracts.V1
{
[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,
Expand Down Expand Up @@ -246,7 +246,7 @@ namespace MyContracts.V2
{
[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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<MyId, global::System.Guid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<MyId, global::System.Guid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion version.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>beta07</VersionSuffix>
<VersionSuffix>beta08</VersionSuffix>
<PackageVersion Condition="'$(VersionSuffix)' == ''">$(VersionPrefix)</PackageVersion>
<PackageVersion Condition="'$(VersionSuffix)' != ''">$(VersionPrefix)-$(VersionSuffix)</PackageVersion>
</PropertyGroup>
Expand Down

0 comments on commit e5df78d

Please sign in to comment.