v0.2.0
What's Changed
- Refactor the usage of
$propertiesparam to$argsto align with WordPress usage by @gziolo in #59 - Add HEAD method support for performance optimization by @Ref34t in #71
- Fix
$inputtype hint inWP_Abilityby @gziolo in #61 - chore: update dev-deps to latest by @justlevine in #72
- fix: use link_header instead of add_link for pagination responses by @emdashcodes in #81
- Update CONTRIBUTING.md by @akkspros in #80
- Docs: REST API Reference by @gziolo in #77
- Add execute actions to the ability object by @gziolo in #56
- dev: Bump the PHPStan testing to PHP 8.4 by @johnbillion in #82
- feat!: make
permission_callbackarg required by @justlevine in #73 - Add client-side package for Abilities API by @emdashcodes in #60
- dev: add
register_ability_argsfilter [Proposal] by @justlevine in #74 - docs: Fix the variable name by @mrabbani in #92
- Fix has_permission() return type inconsistency (Issue #67) by @Ref34t in #76
- Docs/semantic headings by @jonathanbossenger in #96
- Rename
check_permission()tocheck_permissions()onWP_Abilityby @gziolo in #94 - Fix backwards compatibility with WP_REST_Request API by @budzanowski in #98
- Prepare the branch for
v0.2.0release by @gziolo in #90 - Include JS build files in the Composer package in v0.2.0 release by @gziolo in #100
Braking changes
They are primarily included in the WP_Ability object:
permission_callbackis now mandatory when registering an ability withwp_register_ability.has_permissionwas deprecated in favor ofcheck_permissions.executeandcheck_permissions(previouslyhas_permission) methods no longer accept onlyarrays. It's now possible to provide any input type, and it defaults tonull.- When no input schema is provided, then
permission_callbackandexecute_callbackget executed with no arguments. - Some other protected methods, like
validate_inputanddo_execute, also have different method signatures because of the input parameter changes.
New Contributors
- @Ref34t made their first contribution in #71
- @akkspros made their first contribution in #80
- @johnbillion made their first contribution in #82
- @mrabbani made their first contribution in #92
Full Changelog: v0.1.1...v0.2.0-rc