Skip to content

Releases: spatie/laravel-data

2.2.1

21 Dec 14:29
Compare
Choose a tag to compare
  • fix support to return 201 status code in Json Responses (#291)

2.2.0

21 Dec 12:50
Compare
Choose a tag to compare
  • Add generic return type for DataCollection::toCollection (#290)
  • Improve ide.json completion (#294)
  • Pass in payload relative to the data object when generating rules (#264)
  • ignore phpstorm attributes when instantiating and add readonly property (#281)

2.1.0

07 Dec 14:52
Compare
Choose a tag to compare
  • Stop using custom pipeline when creating data magically from requests
  • set timezones in datetime casts (#287 )

2.0.16

18 Nov 16:05
Compare
Choose a tag to compare
  • add support for optional properties in TypeScript transformer (#153)

2.0.15

17 Nov 10:45
Compare
Choose a tag to compare
  • refactor test suite to Pest (#239)
  • update the docs
  • add a StudlyMapper
  • add better support for Livewire

2.0.14

10 Nov 11:21
Compare
Choose a tag to compare
  • accept 'float' as data type (#237)
  • fix typo in mime type validation rule(#243)
  • add support for enums in validation attributes
  • add support for withoutTrashed to exists validation attribute (#248)
  • add PHP 8.2 testing in GH actions
  • add ability to modify properties before the data pipeline (#247)

2.0.13

14 Oct 10:35
Compare
Choose a tag to compare
  • fix first and last page url are never null (#215)
  • add ability to statically retrieve a data models rules (#221)
  • improved pattern matching in DataCollectionAnnotationReader (#225)
  • add ExcludeWithout attribute rule (#230)
  • improve getValidationRules to also retrieve wildcard rules (#231)
  • return property with or without mapping the name (#199)

2.0.12

29 Sep 08:38
Compare
Choose a tag to compare
  • Improve pattern matching in DataCollectionAnnotationReader (#214)
  • Add ability to retrieve rules for a data object (#221)

2.0.11

28 Sep 15:36
5dff9ec
Compare
Choose a tag to compare
  • Use generics with Data::collection (#213)
  • Improve pattern matching in DataCollectionAnnotationReader (#214)
  • Fix TypeScript Transformer paginated collections, first and last page url are never null (#215)

2.0.10

07 Sep 16:31
Compare
Choose a tag to compare
  • Add support for a JsonSerializer
  • Fix generic iterator definition for data collections
  • Fix validation of DataCollection objects not working as expected