Skip to content

Releases: holiq/action-data

v2.0.0

22 Mar 15:51
272fde4

Choose a tag to compare

Laravel Action Data v2.0.0

This major release improves Laravel-native validation behavior and makes DTO serialization reliable for nested structures.

Highlights

Integrated Laravel ValidationException for attribute-based validation.
Improved toArray behavior with recursive conversion for nested DTOs and arrays of DTOs.
Validation errors now follow Laravel standard field-based error formatting.
Better API consistency and developer experience in Laravel applications.

What's Changed

  • refactor: integrate Laravel ValidationException and add recursive toArray by @holiq in #6

Breaking Changes

  • validateAttributes now throws Illuminate ValidationException instead of InvalidArgumentException.
  • Existing try/catch logic that handles attribute validation errors must be updated accordingly.

Migration Guide

  • Replace InvalidArgumentException catches used for DTO attribute validation with ValidationException.
  • If you use Laravel default exception handling, no custom error formatting is required for 422 responses.
  • Keep custom handlers only if you need a non-standard error response shape.

Compatibility

PHP: 8.3+
Laravel: 12.x and 13.x

Full Changelog: v1.2.1...v2.0.0

v1.2.1

05 Feb 04:28
02da3d2

Choose a tag to compare

fix: tranformation case issue (02da3d2)

Full Changelog: v1.2.0...v1.2.1

v1.2.0

04 Oct 02:08
41e7ddf

Choose a tag to compare

What's Changed

  • feat: improve the docs by @holiq in #1
  • feat: enhance DTOs with new methods, improve error handling, and fix … by @holiq in #2
  • feat(validation): add attribute-based rules & callback pipeline by @holiq in #3
  • feat(command): support make action with option --with-dto for auto generated by @holiq in #4
  • docs: improve structure and new example features by @holiq in #5

New Contributors

  • @holiq made their first contribution in #1

Full Changelog: v1.1.1...v1.2.0

v1.1.1

31 May 01:21
6694edd

Choose a tag to compare

fix invalid version dependency

v1.1.0

31 May 01:17
a5a619b

Choose a tag to compare

Support Laravel 12.x

v1.0.0

21 Aug 08:24
57dc2b9

Choose a tag to compare

feat: init ActionData