Skip to content

chore: release v2.0.2 - #52

Merged
ogorzalka merged 2 commits into
mainfrom
chore/release-2.0.2
Nov 25, 2026
Merged

ogorzalka merged 2 commits into
mainfrom
chore/release-2.0.2

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Prepares the release of pollora/hook: the [Unreleased] section of the CHANGELOG becomes [2.0.2] - 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.0.2 (the maintainer's choice)

The fix itself is a patch. The release also carries two additions to the public surface, which strict semver would count as a minor (2.1.0); the maintainer chose to ship it as a patch, the additions being, in effect, internal details:

  • new classes in a new namespace: Pollora\Hook\Domain\Exceptions\{HookException, HookMethodNotFoundException, CallbackResolutionFailedException, CallbackAnalysisFailedException} (they all extend \RuntimeException, so no existing catch changes);
  • a new static method Recovery::run(), marked @internal.

Nothing is removed or changed in a signature (checked below), so a project on ^2.0 takes the release without any change.

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.0.2 on the merge commit (maintainer only). Release notes: the CHANGELOG section.

@ogorzalka
ogorzalka merged commit 22bc9be into main Nov 25, 2026
15 checks passed
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