Skip to content

Commit

Permalink
chore(release): v1.0.0-beta.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jonisavo committed Sep 21, 2023
1 parent 424143b commit 6ffe8e8
Show file tree
Hide file tree
Showing 92 changed files with 197 additions and 184 deletions.
Binary file modified Assets/UIComponents/Roslyn/UIComponents.Roslyn.Generation.dll
Binary file not shown.
Binary file modified Assets/UIComponents/Roslyn/UIComponents.Roslyn.Generation.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion Assets/UIComponents/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "io.savolainen.uicomponents",
"displayName": "UIComponents",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"description": "A small front-end framework for Unity's UIToolkit.",
"unity": "2021.3",
"author": {
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@


# [1.0.0-beta.5](https://github.com/jonisavo/uicomponents/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2023-09-21)


### Features

* add abstract DependencyConsumer base class for DI consumers ([#108](https://github.com/jonisavo/uicomponents/issues/108)) ([424143b](https://github.com/jonisavo/uicomponents/commit/424143be87d25f4b70b90c37e5049da338f3a4a7))
* drop requirement of Logger field from dependency injection codegen ([9489002](https://github.com/jonisavo/uicomponents/commit/94890023a4b1243b2f0ccd88010d09b16e426770))


### Performance Improvements

* **codegen:** do not iterate through Object class's members ([b562ca7](https://github.com/jonisavo/uicomponents/commit/b562ca713d18f9f48ce19f9bdd7a69b239008c93))

# [1.0.0-beta.4](https://github.com/jonisavo/uicomponents/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2023-07-08)


Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Alternatively, merge this snippet to your `Packages/manifest.json` file:
}
],
"dependencies": {
"io.savolainen.uicomponents": "1.0.0-beta.4"
"io.savolainen.uicomponents": "1.0.0-beta.5"
}
}
```
Expand All @@ -182,12 +182,12 @@ Alternatively, merge this snippet to your `Packages/manifest.json` file:
Add this under `dependencies` in your `Packages/manifest.json` file:

```
"io.savolainen.uicomponents": "https://github.com/jonisavo/uicomponents.git#upm/v1.0.0-beta.4"
"io.savolainen.uicomponents": "https://github.com/jonisavo/uicomponents.git#upm/v1.0.0-beta.5"
```

This will install version 1.0.0-beta.4.
This will install version 1.0.0-beta.5.

To update, change `upm/v1.0.0-beta.4` to point to the latest version.
To update, change `upm/v1.0.0-beta.5` to point to the latest version.

### With .unitypackage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@

public partial class ConsumerComponent
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<UIComponents.IAssetResolver, UIComponents.ResourcesAssetResolver>(),
UIComponents.DependencyInjection.Dependency.SingletonFor<UIComponents.ILogger, UIComponents.DebugLogger>(),
UIComponents.DependencyInjection.Dependency.SingletonFor<IMyDependency, MyDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public override IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

public partial class UIComponentWithNoOwnDependencies
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<UIComponents.IAssetResolver, UIComponents.ResourcesAssetResolver>(),
UIComponents.DependencyInjection.Dependency.SingletonFor<UIComponents.ILogger, UIComponents.DebugLogger>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public override IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

public partial class ConsumerClass
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<IMyDependency, MyDependency>(),
UIComponents.DependencyInjection.Dependency.SingletonFor<ISecondDependency, SecondDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@

public partial class SecondConsumerClass
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<IMyDependency, MyDependency>(),
UIComponents.DependencyInjection.Dependency.SingletonFor<ISecondDependency, SecondDependency>(),
UIComponents.DependencyInjection.Dependency.SingletonFor<IThirdDependency, ThirdDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public override IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

public partial class ConsumerClass
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<IMyDependency, ConsumerDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

public partial class SecondConsumerClass
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<IMyDependency, OverriddenMyDependency>(),
UIComponents.DependencyInjection.Dependency.SingletonFor<ISecondDependency, OverriddenSecondDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public override IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

public partial class ConsumerClass
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.TransientFor<IMyDependency, MyDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

public partial class ConsumerClass
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<IMyDependency, MyDependency>(),
UIComponents.DependencyInjection.Dependency.TransientFor<ISecondDependency, SecondDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

public partial struct ConsumerStruct
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<IMyDependency, MyDependency>(),
UIComponents.DependencyInjection.Dependency.TransientFor<ISecondDependency, SecondDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

public partial class ConsumerClass
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<IMyDependency, MyDependency>(),
UIComponents.DependencyInjection.Dependency.TransientFor<ISecondDependency, SecondDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

public partial struct ConsumerStruct
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<IMyDependency, MyDependency>(),
UIComponents.DependencyInjection.Dependency.TransientFor<ISecondDependency, SecondDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ namespace MyLibrary.GUI.Components
{
public partial class MyGUIComponent
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<UIComponents.IAssetResolver, UIComponents.ResourcesAssetResolver>(),
UIComponents.DependencyInjection.Dependency.SingletonFor<UIComponents.ILogger, UIComponents.DebugLogger>(),
UIComponents.DependencyInjection.Dependency.SingletonFor<IService, Service>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
public override IEnumerable<IDependency> GetDependencies()
{
return UIC_Dependencies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

public partial class PriorityEffectComponent
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static UIComponentEffectAttribute[] UIC_EffectAttributes;

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static void UIC_InitializeEffectAttributes()
{
UIC_EffectAttributes = new [] {
Expand All @@ -24,7 +24,7 @@ private static void UIC_InitializeEffectAttributes()
Array.Sort(UIC_EffectAttributes);
}

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
protected override void UIC_ApplyEffects()
{
if (UIC_EffectAttributes == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

public partial class BasicEffectComponent
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static UIComponentEffectAttribute[] UIC_EffectAttributes;

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static void UIC_InitializeEffectAttributes()
{
UIC_EffectAttributes = new [] {
Expand All @@ -24,7 +24,7 @@ private static void UIC_InitializeEffectAttributes()
Array.Sort(UIC_EffectAttributes);
}

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
protected override void UIC_ApplyEffects()
{
if (UIC_EffectAttributes == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

public partial class BaseEffectComponent
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static UIComponentEffectAttribute[] UIC_EffectAttributes;

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static void UIC_InitializeEffectAttributes()
{
UIC_EffectAttributes = new [] {
Expand All @@ -23,7 +23,7 @@ private static void UIC_InitializeEffectAttributes()
Array.Sort(UIC_EffectAttributes);
}

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
protected override void UIC_ApplyEffects()
{
if (UIC_EffectAttributes == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

public partial class SecondSubclassEffectComponent
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static UIComponentEffectAttribute[] UIC_EffectAttributes;

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static void UIC_InitializeEffectAttributes()
{
UIC_EffectAttributes = new [] {
Expand All @@ -25,7 +25,7 @@ private static void UIC_InitializeEffectAttributes()
Array.Sort(UIC_EffectAttributes);
}

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
protected override void UIC_ApplyEffects()
{
if (UIC_EffectAttributes == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

public partial class SubclassEffectComponent
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static UIComponentEffectAttribute[] UIC_EffectAttributes;

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
private static void UIC_InitializeEffectAttributes()
{
UIC_EffectAttributes = new [] {
Expand All @@ -24,7 +24,7 @@ private static void UIC_InitializeEffectAttributes()
Array.Sort(UIC_EffectAttributes);
}

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
protected override void UIC_ApplyEffects()
{
if (UIC_EffectAttributes == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public partial class BaseLayoutComponent
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
protected override Task<VisualTreeAsset> UIC_StartLayoutLoad()
{
return AssetResolver.LoadAsset<VisualTreeAsset>("Components/BaseLayoutComponent");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public partial class OverriddenLayoutComponent
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
protected override Task<VisualTreeAsset> UIC_StartLayoutLoad()
{
return AssetResolver.LoadAsset<VisualTreeAsset>("Components/OverriddenLayoutComponent");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public partial class LayoutTestComponent
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
protected override Task<VisualTreeAsset> UIC_StartLayoutLoad()
{
return AssetResolver.LoadAsset<VisualTreeAsset>("Components/LayoutTestComponent");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial class ParentClass
{
public partial class FirstNestedComponent
{
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.4")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.5")]
protected override Task<VisualTreeAsset> UIC_StartLayoutLoad()
{
return AssetResolver.LoadAsset<VisualTreeAsset>("Components/FirstNestedComponent");
Expand Down
Loading

0 comments on commit 6ffe8e8

Please sign in to comment.