Releases: chevere/action
2.0.1
🎉 2.0.0
- Added
assertArgumentsmethod - Added
assertReturnmethod - Removed
mainmethod dependency in favor of__invokemethod - Improved
ActionInterfacenow with additional rules - Improved
ActionNameInterfacefeaturing arguments support - Improved documentation
Full Changelog: 1.1.1...2.0.0
This one is the result of the iteration in Chevereto (from 2022 onwards), Redacted project (2023) and Chevereto Cloud (2024, 2025).
I noticed the main() method was causing very annoying test experience by having to declare @method __invoke and it also made harder to understand language server level rules. Action 2.0 now uses __invoke, which exposes the I/O directly.
Development at chevere/http has been merged here concerning to the MiddlewareName logic which is now implemented by ActionName. Library chevere/router uses the concept of "ActionNames" to define static routing, which also help to shape this class.
Change main to __invoke:
// From
<public|protected> function main(...)
// To
public function __invoke(...)Change return() to acceptReturn():
// From
function return()
// To
function acceptReturn()1.1.2
- Added getReturnParameter function
Full Changelog: 1.1.1...1.1.2
1.1.1
- Improve ActionName
- Updated Sonarqube workflow
Full Changelog: 1.1.0...1.1.1
1.1.0
1.0.2
1.0.1
- Improved support for Actions returning union parameters (thanks @ramirovarandas)
Full Changelog: 1.0.0...1.0.1
🎉 1.0.0
- Initial release