Skip to content

Release v0.8.0

Choose a tag to compare

@github-actions github-actions released this 24 Aug 10:20
· 259 commits to main since this release
9933ad8

✨ Minor Release

Changed

  • Moved UpdaterRegistry to src/registry for better organization and updated all relevant imports.

  • Applied Dependency Inversion Principle (DIP) by passing FileHandler as a dependency to ManifestParser, and ManifestParser as a dependency to updaters. This improves testability and flexibility.

  • Defined more granular error classes (FileNotFoundError, InvalidManifestError) within errors.ts to enable more precise error handling and user feedback.

  • Updated FileHandler and ManifestParser to throw these specific errors, and index.ts to catch and handle them.

  • Enhanced version bump action with explicit platform and git tag control:

    • Added target_platform input to action.yml allowing users to explicitly specify the platform for version bumping, bypassing automatic detection.
    • Modified UpdaterService to use the target_platform if provided, otherwise fall back to existing detection logic.
    • Updated index.ts to read and pass target_platform to UpdaterService.
    • Implemented conditional Git tag creation based on the git_tag input from action.yml.
  • Introduced custom error types for granular error handling.

Changed

  • Encapsulated Git operations in a GitService.
  • Extracted version calculation to a separate utility.
  • Introduced UpdaterService for dependency injection.
  • Extracted Git operations into a separate utility.
  • Centralized file handling operations by introducing a new FileHandler utility. This improves consistency and maintainability across different updaters.
  • Centralized manifest parsing and updating logic by introducing ManifestParser utility and updating all updaters to use it.
  • Updated dist/index.js after centralizing action configuration.

Fixed

  • Corrected NodeUpdater tests by ensuring manifestPath is set.

What's Changed

  • Feature/refactor git operations by @taj54 in #12
  • Release: v0.8.0 by @github-actions[bot] in #13

Full Changelog: v0.7.0...v0.8.0