Repository navigation
chore: release v2.0.2 - #52
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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 changesCHANGELOG.mdonly: 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:
Pollora\Hook\Domain\Exceptions\{HookException, HookMethodNotFoundException, CallbackResolutionFailedException, CallbackAnalysisFailedException}(they all extend\RuntimeException, so no existingcatchchanges);Recovery::run(), marked@internal.Nothing is removed or changed in a signature (checked below), so a project on
^2.0takes 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.jsonuntouched since v2.0.1 (it did not exist then; it lists hooks only, not classes).HookException extends \RuntimeException, so acatch (\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 newRecovery::run().composer qa:fastpasses.composer qapasses (13 gates ran); Pest passes.Not verified
has_action(Recovery::HOOK, [Recovery::class, 'recover'])orremove_actionwith the old callback would no longer match (the callback registered is nowrun). Hooks are per-request, andRecoveryis internal to the async runtime.AbstractHookreading the protected$reflectionCacheforclosure@<id>keys would no longer find them (closures are counted in aWeakMap). No such use in this repository.After merge
Tag
v2.0.2on the merge commit (maintainer only). Release notes: the CHANGELOG section.