Releases: guanguans/laravel-api-response
Releases · guanguans/laravel-api-response
1.0.7
1.0.7 - 2024-11-08
Bug Fixes
- CastDataPipe: Handle null case in dataFor method
- ErrorPipe: Enhance error message handling
Code Refactoring
- composer: Rename Dumpable.php to Traits
- laravel-api-response: rename Macros to Mixins
Features
- JsonResponsableDataPipe: Add associative option for JSON response
Performance Improvements
- Pipes: Optimize dataFor method type check
Tests
- pipes: Improve pipe handling and add exception test
1.0.6
1.0.5
1.0.5 - 2024-11-04
Features
- ApiResponse: Add ConcreteCast trait for data casting
- pipe: Add CallableDataPipe for processing response data
- pipes: Add IterableDataPipe for processing iterable data
- pipes: Add CastDataPipe class for data type casting
Performance Improvements
- ApiResponse: Enhance JSON options for response formatting
Tests
- iterable-data-pipe: Update iterable data handling logic
1.0.4
1.0.4 - 2024-11-03
Bug Fixes
- ErrorPipe: Correct message assignment logic
- MessagePipe: Improve error handling messages
- api: Change response data to null instead of empty object
- api-response: Simplify data structure in response
- utils: Rename error code validation methods
Code Refactoring
- api: Remove ResourceCollectionDataPipe class
- api: Improve visibility and remove middleware
- api-response: rename ToJsonResponseDataPipe to JsonResponsableDataPipe
- nullDataPipe: Improve data handling in dataFor method
Features
- pipes: Enhance PaginatorDataPipe to support wrapping data
Style
- ExceptionPipes: Refactor variable naming from data to structure
Tests
- LaravelDataTest: Add tests for pagination wrappers
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-rc3
1.0.0-rc3 - 2024-10-28
CI
- composer: Update composer-require-checker
Chores
- release: 1.0.0-rc2
Code Refactoring
- concerns: rename ConcreteHttpStatusMethods to ConcreteHttpStatus
Docs
- api: Add response structure documentation
- readme: Add ShouldReturnJsonRenderUsing example
Test
- rename: rename test files
- types: add tests for LaravelDataTypesTest.php
1.0.0-rc2
1.0.0-rc2 - 2024-10-25
Chores
- commit: Update project dependencies
- composer: Add phpmnd package
- release: 1.0.0-rc1
Code Refactoring
- api: replace magic numbers with constants
- pipes: update StatusCodePipe to handle success/error codes
Docs
- api-response: Add features section
Features
- ApiResponse: improve JSON response options
- rendering: Refactor ApiPathsRenderUsing to include 'only' and 'except' parameters
Test
- Add snapshot update command and new RoleUser model
- Feature: update LaravelDataTypesTest
- commit: Update ApiResponse, ApiResponseContract, and related classes