Skip to content

Releases: chevere/action

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

🎉 1.0.0

11 Jan 15:56
a4687b1

Choose a tag to compare