Implement Provider Pattern for Changelog Viewers and Split WebView2 Package #731
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces a flexible provider pattern for changelog viewers, splits the WebView2 functionality into a separate package, and adds a new Markdown package for enhanced changelog rendering. These changes improve the modularity, extensibility, and maintainability of the AutoUpdater.NET library.
Features
Multiple Viewer Options:
Content Loading Options:
User Configuration:
AutoUpdater.ChangelogViewerProvider
Extensibility:
IChangelogViewer
interface for custom viewersKey Changes
1. Provider Pattern Implementation
IChangelogViewerProvider
interface for implementing custom changelog viewersChangelogViewerFactory
to manage and create viewer instances2. Package Split
AutoUpdater.NET.Official.WebView2
)AutoUpdater.NET.Official.Markdown
)3. Markdown Support
Segoe UI Emoji
font4. Configuration and Control
AutoLoadExtensions
property to control automatic loading of viewer extensionsChangelogViewerProvider
property for explicit viewer selection5. Default Viewers
Benefits
Breaking Changes
None. All changes are backward compatible:
Usage Example
Testing Notes
Future Considerations
Related Issues
#470 #496 #73 #692