Skip to content

Commit

Permalink
Increase version to 5.1 and add changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
nkristek committed Aug 21, 2019
1 parent af9f743 commit 863dc2b
Showing 1 changed file with 6 additions and 40 deletions.
46 changes: 6 additions & 40 deletions src/Smaragd/Smaragd.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<LangVersion>latest</LangVersion>
<RootNamespace>NKristek.Smaragd</RootNamespace>
<AssemblyName>NKristek.Smaragd</AssemblyName>
<Version>5.0</Version>
<Version>5.1</Version>
<Description>Base classes for implementing an C# .NET application using the MVVM architecture</Description>
<Company>nkristek</Company>
<Authors>nkristek</Authors>
Expand All @@ -17,45 +17,11 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RepositoryType>git</RepositoryType>
<PackageTags>MVVM ViewModel INotifyPropertyChanged INotifyPropertyChanging INotifyDataErrorInfo</PackageTags>
<PackageReleaseNotes>This release introduces a refactoring of many classes and interfaces included in this library. This reduces complexity, enables better testability and provides better performance.
There are also new features, like the added support for WeakReference&lt;T&gt; storage fields, updated XML documentation and more unittests.

A more detailed summary of the changes:

# Bindable
- remove IRaisePropertyChanging and IRaisePropertyChanged interfaces and change methods to protected visibility
- rename RaisePropertyChanging method to NotifyPropertyChanging
- rename RaisePropertyChanged method to NotifyPropertyChanged
- remove virtual keyword from PropertyChanging and PropertyChanged eventhandlers
- allow propertyName to be null in NotifyPropertyChanging, NotifyPropertyChanged and SetProperty methods
- add overload for SetProperty method for setting WeakReference&lt;T&gt; storage fields
- add overloads for SetProperty method without the oldValue out parameter
- add comparer parameter to SetProperty methods

# ComputedBindable and ViewModel
- remove ComputedBindable class and move logic to ViewModel class
- remove Commands dictionary from ViewModel class
- add virtual keyword to IsDirty, Parent and IsUpdating properties

# ValidatingViewModel
- remove IRaiseErrorsChanged interface and change method to protected visibility
- rename RaiseErrorsChanged method to NotifyErrorsChanged
- remove virtual keyword from ErrorsChanged eventhandler
- set multiple validation errors per property by using SetErrors()
- add overload to GetErrors method with generic return type IEnumerable&lt;string&gt;
- remove support for IDataErrorInfo interface
- change IValidation interface to generic in and out parameters
- remove Validation&lt;T&gt; base class
- add FuncValidation class

# ViewModelCommand and AsyncViewModelCommand
- remove IRaiseCanExecuteChanged interface and change method to protected visibility
- rename RaiseCanExecuteChanged method to NotifyCanExecuteChanged
- remove virtual keyword from CanExecuteChanged eventhandler
- remove CanExecuteSourceAttribute class, use OnParentPropertyChanged instead
- implement and automatically attach OnParentPropertyChanging and OnParentPropertyChanged methods to Parent
- properly raise events on PropertyChanging and PropertyChanged eventhandlers when IsWorking is about to change or has changed
- check if the returned task from the ExecuteAsync method is null before awaiting it</PackageReleaseNotes>
<PackageReleaseNotes>- ValidatingViewModel was renamed to ValidatingBindable and now inherits from Bindable instead of ViewModel
- ViewModel inherits from ValidatingBindable instead of Bindable
- Dialog inherits from ViewModel instead of ValidatingViewModel
- The IsValid property was moved to ViewModel
- The type of errors of a property was changed to IEnumerable to enable non string errors</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
Expand Down

0 comments on commit 863dc2b

Please sign in to comment.