Skip to content

Releases: guanguans/laravel-api-response

1.0.7

08 Nov 13:25
Compare
Choose a tag to compare

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

05 Nov 10:14
Compare
Choose a tag to compare

1.0.6 - 2024-11-05

Bug Fixes

  • HasPipes: Support multiple pipes in before and after methods

Features

  • HasExceptionPipes: Add new methods for exception pipe management
  • api-response: Add Dumpable trait for improved debugging

1.0.5

04 Nov 10:29
Compare
Choose a tag to compare

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

03 Nov 11:37
Compare
Choose a tag to compare

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

02 Nov 15:32
Compare
Choose a tag to compare

1.0.3 - 2024-11-02

Bug Fixes

  • pipes: Remove unused parameter from ScalarDataPipe

Features

  • api-response: Add ResourceCollectionDataPipe
  • middleware: Enhance accept header handling

Tests

  • composer-updater: improve process creation

1.0.2

31 Oct 10:30
Compare
Choose a tag to compare

1.0.2 - 2024-10-31

Bug Fixes

  • ApiResponse: Fix error code handling in exceptionDestination
  • utils: Improve Utils class

Tests

  • commit: Add new datasets for testing

1.0.1

30 Oct 10:29
Compare
Choose a tag to compare

1.0.1 - 2024-10-30

Bug Fixes

  • ExceptionPipes: fix validation error message
  • Pipes: Fix error handling in ErrorPipe

Features

  • api: Add Localizable trait to ApiResponse

Test

  • test: Add exception tests

1.0.0

29 Oct 10:21
Compare
Choose a tag to compare

1.0.0 - 2024-10-29

Docs

  • README: update usage instructions and add example methods
  • readme: Update README.md with example of customizing pipe

Features

  • api: add JsonResourceDataPipe

1.0.0-rc3

28 Oct 10:33
Compare
Choose a tag to compare

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

25 Oct 10:24
Compare
Choose a tag to compare

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