Skip to content

Releases: lVlyke/lithium-angular

7.0.0-beta.0

03 Jul 03:12
Compare
Choose a tag to compare
7.0.0-beta.0 Pre-release
Pre-release
  • Fixed typing issue where component state properties with generic values weren't able to be accessed.
  • Fixed typing issue where DeclareState decorator wasn't able to reference public named properties with generic values.
  • Fixed issue where ComponentStateRef.set wasn't propagating errors to returned observable chain.
  • Fixed issues where ComponentStateRef.sync was causing infinite loops in some circumstances.

6.1.0

03 Jul 03:10
Compare
Choose a tag to compare
  • Adds support for Angular 12.

7.0.0-alpha.8

03 Jul 03:10
Compare
Choose a tag to compare
7.0.0-alpha.8 Pre-release
Pre-release
  • Fixed issue with DeclareState decorator typings where publicName type constraints weren't being enforced.
  • Fixed issue with DeclareState decorator typings where declaring a publicName resulted in a compiler error for classes containing properties with values of a generic type.

7.0.0-alpha.7

28 Jun 02:17
Compare
Choose a tag to compare
7.0.0-alpha.7 Pre-release
Pre-release
  • Fixed regression in typings for ComponentState.

7.0.0-alpha.6

28 Jun 02:17
Compare
Choose a tag to compare
7.0.0-alpha.6 Pre-release
Pre-release
  • @AsyncState decorator can now take in optional async property source key (defaults to ${key}$).
  • @DeclareState decorator no longer takes in an options object and only takes an optional Name property key.
  • @AsyncState and @DeclareState decorators are now completely type safe.

7.0.0-alpha.5

26 Jun 00:33
Compare
Choose a tag to compare
7.0.0-alpha.5 Pre-release
Pre-release
  • @DeclareState decorator now accepts a type safe property key config option to allow for mirroring a private state definition to a public variable.
  • Added ComponentStateRef.sync method for synchronizing two state properties to the same value.

7.0.0-alpha.4

25 Jun 01:20
Compare
Choose a tag to compare
7.0.0-alpha.4 Pre-release
Pre-release
  • Component states now use properties declared in base classes with @DeclareState and @AsyncState.
  • ComponentState.create now supports forwardRef.
  • Added DirectiveState type and namespace for creating directive states, which are component states that are injected with a specific injection token to prevent state collisions.

7.0.0-alpha.3

24 Jun 00:26
Compare
Choose a tag to compare
7.0.0-alpha.3 Pre-release
Pre-release
  • Added @DeclareState property decorator for declaring uninitialized component state.
  • Resolved issue where component state objects were being incorrectly assigned amongst component instances of the same type.

7.0.0-alpha.2

23 Jun 01:58
Compare
Choose a tag to compare
7.0.0-alpha.2 Pre-release
Pre-release
  • Fixed an issue where initial property state values from @AsyncState property sources weren't being broadcast to the state subjects.
  • Component state initialization is now performed on AfterViewInit and AfterContentInit events in addition to OnInit to ensure late-initialized properties are captured (i.e. from @ViewChild and @ContentChild decorators).
  • ComponentStateRef selector methods now use pending component state if available to ensure state is available in OnInit and other early events.
  • ComponentStateRef.set now returns an observable that emits when the state has been set.
  • Added improved error logging when component state hasn't been properly initialized.

7.0.0-alpha.1

22 Jun 01:24
Compare
Choose a tag to compare
7.0.0-alpha.1 Pre-release
Pre-release
  • Fixed issue where component state instances were being initialized multiple times with repeated component instance creation.