✨ Minor Release
Changed
-
Moved
UpdaterRegistrytosrc/registryfor better organization and updated all relevant imports. -
Applied Dependency Inversion Principle (DIP) by passing
FileHandleras a dependency toManifestParser, andManifestParseras a dependency to updaters. This improves testability and flexibility. -
Defined more granular error classes (
FileNotFoundError,InvalidManifestError) withinerrors.tsto enable more precise error handling and user feedback. -
Updated
FileHandlerandManifestParserto throw these specific errors, andindex.tsto catch and handle them. -
Enhanced version bump action with explicit platform and git tag control:
- Added
target_platforminput toaction.ymlallowing users to explicitly specify the platform for version bumping, bypassing automatic detection. - Modified
UpdaterServiceto use thetarget_platformif provided, otherwise fall back to existing detection logic. - Updated
index.tsto read and passtarget_platformtoUpdaterService. - Implemented conditional Git tag creation based on the
git_taginput fromaction.yml.
- Added
-
Introduced custom error types for granular error handling.
Changed
- Encapsulated Git operations in a
GitService. - Extracted version calculation to a separate utility.
- Introduced
UpdaterServicefor dependency injection. - Extracted Git operations into a separate utility.
- Centralized file handling operations by introducing a new
FileHandlerutility. This improves consistency and maintainability across different updaters. - Centralized manifest parsing and updating logic by introducing
ManifestParserutility and updating all updaters to use it. - Updated
dist/index.jsafter centralizing action configuration.
Fixed
- Corrected NodeUpdater tests by ensuring manifestPath is set.
What's Changed
Full Changelog: v0.7.0...v0.8.0