Skip to content

Releases: chevere/action

3.0.2

30 Mar 14:21
a6a3519

Choose a tag to compare

  • Added ReflectionAction isFailFast parameter
  • Bump chevere/parameter ^2.0.5

Full Changelog: 3.0.1...3.0.2

3.0.1

01 Mar 12:54
a1a806d

Choose a tag to compare

  • Fix chevere/parameter version constrain

Full Changelog: 3.0.0...3.0.1

3.0.0

21 Feb 13:41
697fe41

Choose a tag to compare

  • Added support for PHP 8.5
  • Added support for chevere/parameter 2.0
  • Prioritize acceptReturn() before attribute rules (#10)
  • Added static method acceptParameters() (#9)
  • Added support for int|float|string on ControllerInterface

Full Changelog: 2.0.1...3.0.0

This one was driven by the CLI we needed at Chevereto Cloud. It adds support for static rules that override attribute notation and extend controller for supporting any scalar type (previously only supported type string).

2.0.1

17 Nov 17:23
1f77689

Choose a tag to compare

  • Improved ActionException parameters (null previous)

🎉 2.0.0

12 Sep 21:30
9d9d04b

Choose a tag to compare

  • Added assertArguments method
  • Added assertReturn method
  • Removed main method dependency in favor of __invoke method
  • Improved ActionInterface now with additional rules
  • Improved ActionNameInterface featuring 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

29 Aug 18:42
cd14e96

Choose a tag to compare

  • Added getReturnParameter function

Full Changelog: 1.1.1...1.1.2

1.1.1

17 Jul 13:27
1c0d315

Choose a tag to compare

  • Improve ActionName
  • Updated Sonarqube workflow

Full Changelog: 1.1.0...1.1.1

1.1.0

14 Feb 12:30
3a1972b

Choose a tag to compare

  • Added ActionName daa8c8e
  • Added return for expected parameters e8db62d
  • Removed ArrayAccess support 66821aa
  • Supports sensitive parameters 09f5040
  • Supports variadic parameter 2dbb3d6
  • Updated chevere/parameter 1.1.0

Full Changelog: 1.0.2...1.1.0

1.0.2

23 Jan 19:09
db7c586

Choose a tag to compare

Full Changelog: 1.0.1...1.0.2

1.0.1

08 Jan 14:12
d95f69a

Choose a tag to compare

  • Improved support for Actions returning union parameters (thanks @ramirovarandas)

Full Changelog: 1.0.0...1.0.1