Skip to content

chore: release v2.1.0 - #51

Closed
ogorzalka wants to merge 1 commit into
mainfrom
chore/release-2.1.0
Closed

ogorzalka wants to merge 1 commit into
mainfrom
chore/release-2.1.0

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Prepares the release of pollora/hook: the [Unreleased] section of the CHANGELOG becomes [2.1.0] - 2026-11-25. Like the previous release commits (v2.0.1, v2.0.0) this changes CHANGELOG.md only: there is no version file, the version is the tag.

Version: 2.1.0, not 2.0.2

The fix alone would be a patch, but the release also carries two additions to the public API, which semver counts as a minor:

  • new public classes in a new namespace: Pollora\Hook\Domain\Exceptions\{HookException, HookMethodNotFoundException, CallbackResolutionFailedException, CallbackAnalysisFailedException};
  • new public static method Recovery::run() (marked @internal).

If you prefer 2.0.2 (the additions being, in effect, internal details), change the heading in CHANGELOG.md and tag v2.0.2; nothing else depends on the number.

Checked

  • roave/backward-compatibility-check --from=v2.0.1 --to=origin/main: "No backwards-incompatible changes detected".
  • pollora-qa surface: public surface unchanged (6 hook entries); api-surface.json untouched since v2.0.1 (it did not exist then; it lists hooks only, not classes).
  • The new exceptions all extend HookException extends \RuntimeException, so a catch (\RuntimeException) keeps working. The existing message prefixes (Failed to resolve '…', Method '…' not found in class '…', Failed to analyze callable:) and the code/previous of the wrapped error are kept; messages only gain a trailing hint.
  • Recovery::recover() keeps its signature and return value (count of executions scheduled again); only the registered action callback is the new Recovery::run().
  • composer qa:fast passes. composer qa passes (13 gates ran); Pest passes.

Not verified

  • Semgrep is not installed locally, so the "Security patterns" gate did not run here; CI runs it.
  • Line coverage and mutation score were not compared locally (no Clover/Infection report); CI does.
  • Not verified, by reading only: code that calls has_action(Recovery::HOOK, [Recovery::class, 'recover']) or remove_action with the old callback would no longer match (the callback registered is now run). Hooks are per-request, and Recovery is internal to the async runtime.
  • A subclass of AbstractHook reading the protected $reflectionCache for closure@<id> keys would no longer find them (closures are counted in a WeakMap). No such use in this repository.

After merge

Tag v2.1.0 on the merge commit (maintainer only). Release notes: the CHANGELOG section.

@ogorzalka

Copy link
Copy Markdown
Member Author

Replaced by the v2.0.2 release pull request: the maintainer chose to ship these changes as a patch.

@ogorzalka ogorzalka closed this Nov 25, 2026
@ogorzalka
ogorzalka deleted the chore/release-2.1.0 branch November 25, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant