Repository navigation
v2.0.0 Beta1
Pre-release
Pre-release
·
120 commits
to main
since this release
This release sees a rework of factories with many breaking changes.
Breaking Changes
IComponentMetaDataFactorywas moved to the Web packagesIImageBuilderFactoryandILinkBuilderFactorywere completely removed in favor of directly injectingIImageBuilderandILinkBuilderinto the DI container.IImageBuilderandILinkBuilderwere also moved out of the Infrastructure package and into their own separate package Rhythm.Drop.Builders. This was done so these builders can support web and non-web based logic if needed.
ILinkBuilder specific changes
- Logic in
ILinkBuilderand its methods was consolidated into a single class instead of spread across multiple concrete classes. - Removed
WithLabelunderILinkBuilderthis to discourage varying paths to get to the same thing (e.g. WithLabel() -> AndUrl() was the same as WithUrl() -> AndLabel()). However for extension methods both scenarios would need to be considered. - Logic for AndLabel, Include/Remove Attribute and Add/Remove Class was moved to generic interfaces to help with future extension method writing to utilize these methods with duplicating code.
Misc
- Add RhythmDropBulider for Web were given a "Web" name (e.g. AddHelpers is now AddWebHelpers)
- RhythmDropBuilder is now in the Rhythm.Drop package.