All notable changes to this project will be documented in this file.
1.0.7 - 2024-11-08
- CastDataPipe: Handle null case in dataFor method
- ErrorPipe: Enhance error message handling
- composer: Rename Dumpable.php to Traits
- laravel-api-response: rename Macros to Mixins
- JsonResponsableDataPipe: Add associative option for JSON response
- Pipes: Optimize dataFor method type check
- pipes: Improve pipe handling and add exception test
1.0.6 - 2024-11-05
- HasPipes: Support multiple pipes in before and after methods
- HasExceptionPipes: Add new methods for exception pipe management
- api-response: Add Dumpable trait for improved debugging
1.0.5 - 2024-11-04
- 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
- ApiResponse: Enhance JSON options for response formatting
- iterable-data-pipe: Update iterable data handling logic
1.0.4 - 2024-11-03
- 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
- api: Remove ResourceCollectionDataPipe class
- api: Improve visibility and remove middleware
- api-response: rename ToJsonResponseDataPipe to JsonResponsableDataPipe
- nullDataPipe: Improve data handling in dataFor method
- pipes: Enhance PaginatorDataPipe to support wrapping data
- ExceptionPipes: Refactor variable naming from data to structure
- LaravelDataTest: Add tests for pagination wrappers
1.0.3 - 2024-11-02
- pipes: Remove unused parameter from ScalarDataPipe
- api-response: Add ResourceCollectionDataPipe
- middleware: Enhance accept header handling
- composer-updater: improve process creation
1.0.2 - 2024-10-31
- ApiResponse: Fix error code handling in exceptionDestination
- utils: Improve Utils class
- commit: Add new datasets for testing
1.0.1 - 2024-10-30
- ExceptionPipes: fix validation error message
- Pipes: Fix error handling in ErrorPipe
- api: Add Localizable trait to ApiResponse
- test: Add exception tests
1.0.0 - 2024-10-29
- README: update usage instructions and add example methods
- readme: Update README.md with example of customizing pipe
- api: add JsonResourceDataPipe
1.0.0-rc3 - 2024-10-28
- composer: Update composer-require-checker
- concerns: rename ConcreteHttpStatusMethods to ConcreteHttpStatus
- api: Add response structure documentation
- readme: Add ShouldReturnJsonRenderUsing example
- rename: rename test files
- types: add tests for LaravelDataTypesTest.php
1.0.0-rc2 - 2024-10-25
- api: replace magic numbers with constants
- pipes: update StatusCodePipe to handle success/error codes
- api-response: Add features section
- ApiResponse: improve JSON response options
- rendering: Refactor ApiPathsRenderUsing to include 'only' and 'except' parameters
- Add snapshot update command and new RoleUser model
- Feature: update LaravelDataTypesTest
- commit: Update ApiResponse, ApiResponseContract, and related classes
1.0.0-rc1 - 2024-08-28
- models: simplify relationship methods
- exception-pipes: add HttpResponseExceptionPipe and ResponsableExceptionPipe
- tests: update HTTP status checks for API responses
- refactor: rename test directories and update paths
1.0.0-beta3 - 2024-08-27
- api-response: rename HideMessageExceptionPipe to HideOriginalMessageExceptionPipe
- implement __set_state method using SetStateable traitReplace the explicit __set_state method with the SetStateable trait in theApiPathsRenderUsingFactory class to improve code reuse and readability.
- ApiResponse: inline pipeline instantiates and extracts destination closure
- ApiResponseServiceProvider: simplify registration methods
- api-response: rename WithHeadersExceptionPipe to SetHeadersExceptionPipe
- api-response: handle authentication and hide sensitive errors
- api-response: optimize status code validation and error handling
- api-response: remove default data pipe to simplify response data handling
- render-usings: rename classes and adjust naming convention
- remove invalid argument exception and runtime exception classes
- add null data pipe and scalar data pipe classes to process data
- ApiResponseServiceProvider: modifying exception handling factory classes and methods
- Facades: rename ApiResponse to ApiResponseFacade
- api-response: add exception pipes for headers and error handling
- api-response: add exception pipes for status code and message settingAdd new exception pipes to handle the setting of status codes and messages uniformly across exceptions. This enhances the error handling in the API by allowing customizable response formatting through
SetCodeExceptionPipe
andSetMessageExceptionPipe
, providing better control over the error messages and codes returned. - tests: add test models and seeder for API responsesAdded model classes and a seeder for database tables to expand testing coverage of API responses. This includes the creation of models for Country, User, Post, Comment, Role, and Tag entities, along with a seeder class to populate these models with test data.
- api: update exception pipes and response handling
- api-response: update tests for model and resource data types
Exception handling logic might need to be updated to accommodate the new pipes for proper header and error handling.
1.0.0-beta2 - 2024-08-23
- CollectionMacro: add unshift method to CollectionMacro
- Remove old success and error response tests
- Add unit tests for ApiResponse functionality
- api-response: fix exception handling and improve test coverage
- Rename Throwable interface and update usage
- MessagePipe: rename default parameter and update method logic
- api: replace ApiResponse with ApiResponseContract
- api-response: rename interface and update bindings
- pipes: rename SetStatusCodePipe to StatusCodePipe
- pipes: rename DataPipe to DefaultDataPipe and add PaginatorDataPipe
- render: restructure render factories and update usage
- updated code in Pipes and Middleware to optimize the request processing flow
- wip
- build the basic skeleton
- api-response: refactor exception handling and removal of exception map
- ci: update Laravel version constraints in workflows and composer
- exception: add exception handling with pipes
- exception-pipes: add HideMessageExceptionPipe
- exception-pipes: add validation and HTTP exception pipes
- Refactor tests and skip unimplemented tests
- apiResponse: Refactor API response tests to use instance method