Skip to content

Commit

Permalink
chore(release): v1.0.0-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jonisavo committed May 26, 2023
1 parent c699c6d commit d6ff785
Show file tree
Hide file tree
Showing 92 changed files with 209 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.2",
"version": "1.0.0-beta.3",
"description": "A small front-end framework for Unity's UIToolkit.",
"unity": "2021.3",
"author": {
Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@


# [1.0.0-beta.3](https://github.com/jonisavo/uicomponents/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2023-05-26)


### Bug Fixes

* **docs:** fix erroneous documentation comment in TestBed ([24ead3e](https://github.com/jonisavo/uicomponents/commit/24ead3ef18a684a202bdf278fcfd59ee64489fe7))


### Features

* add AssetDatabaseAssetResolver ([57153a8](https://github.com/jonisavo/uicomponents/commit/57153a8c90d17344773ee86e45e5f89095dc66c8))
* initialize UIComponents on first attach to panel ([e8a2c60](https://github.com/jonisavo/uicomponents/commit/e8a2c608420075a3c6a786dcef865b717543f034))
* **UIComponent:** return Task from Initialize ([77a7cb7](https://github.com/jonisavo/uicomponents/commit/77a7cb7d3436d42bed7a76609aba2878d488b7b6))


### Performance Improvements

* **UIComponent:** reduce allocations while loading style sheets ([e163110](https://github.com/jonisavo/uicomponents/commit/e163110842d9000dc054ab9432c67e68e268fd7a))
* **UIComponent:** use cached Task when no layouts are defined ([1d2edd4](https://github.com/jonisavo/uicomponents/commit/1d2edd403d1bc6901452e6b6b3577aed2366bdb5))


### BREAKING CHANGES

* UIComponents no longer start their initialization in the inherited constructor. Instead, it is started when they are first attached to a panel. Alternatively, the newly exposed Initialize method can be called to start initialization.

# [1.0.0-beta.2](https://github.com/jonisavo/uicomponents/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2023-03-21)


Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Alternatively, merge this snippet to your `Packages/manifest.json` file:
}
],
"dependencies": {
"io.savolainen.uicomponents": "1.0.0-beta.2"
"io.savolainen.uicomponents": "1.0.0-beta.3"
}
}
```
Expand All @@ -179,12 +179,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.2"
"io.savolainen.uicomponents": "https://github.com/jonisavo/uicomponents.git#upm/v1.0.0-beta.3"
```

This will install version 1.0.0-beta.2.
This will install version 1.0.0-beta.3.

To update, change `upm/v1.0.0-beta.2` to point to the latest version.
To update, change `upm/v1.0.0-beta.3` 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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.SingletonFor<IMyDependency, ConsumerDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
private static readonly IDependency[] UIC_Dependencies = new IDependency[] {
UIComponents.DependencyInjection.Dependency.TransientFor<IMyDependency, MyDependency>()
};

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
private static UIComponentEffectAttribute[] UIC_EffectAttributes;

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
private static UIComponentEffectAttribute[] UIC_EffectAttributes;

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
private static UIComponentEffectAttribute[] UIC_EffectAttributes;

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
private static UIComponentEffectAttribute[] UIC_EffectAttributes;

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
private static UIComponentEffectAttribute[] UIC_EffectAttributes;

[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
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.2")]
[GeneratedCode("UIComponents.Roslyn.Generation", "1.0.0-beta.3")]
protected override Task<VisualTreeAsset> UIC_StartLayoutLoad()
{
return AssetResolver.LoadAsset<VisualTreeAsset>("Components/LayoutTestComponent");
Expand Down

0 comments on commit d6ff785

Please sign in to comment.