Skip to content

Releases: spatie/laravel-data

3.2.0

17 Mar 09:49
c4f6329
Compare
Choose a tag to compare
  • Add benchmarks for testing data performance
  • Add some performance improvements for data creation and transformation

3.1.3

16 Mar 14:19
Compare
Choose a tag to compare
  • Performance improvements

3.1.2

10 Mar 09:07
Compare
Choose a tag to compare
  • Fix issue where promoted protected constructor parameters were seen as possible property canidates
  • Allow using closures within the with method (#372)
  • Add support for Validation Rule Contract in Rule rule (#362)
  • Allow laravel-data validation rules to be used in Laravel validator (#375)

3.1.1

02 Mar 11:09
ef671d7
Compare
Choose a tag to compare
  • Add WithCastable attribute (#349)
  • Quote non-standard object keys when transforming to Typescript (#367)

3.1.0

10 Feb 09:41
Compare
Choose a tag to compare
  • Allow filling props from route parameters (#341)
  • Better handing of custom regex validation rules(#342)
  • Fix types (#348)
  • Improve validation when strings are passed for nested data objects
  • Add FieldReference to Before and After Validation attribute (#345)

3.0.0

01 Feb 13:27
Compare
Choose a tag to compare
  • The validation logic is completely rewritten
    • Add support for nested nullable and optional data objects
    • Allow referencing other fields in validation attributes when the data is nested
    • Allow referencing url parameters (and even model properties) in validation attributes
    • Allow circular dependencies when validating data
    • Add support for nested validation messages and attributes
  • Package specific properties are renamed to avoid conflicts
  • Serialization logic updated to only serialize your properties
  • Prevent fatal error when passing a string containing only an integer to JSON Normalizer (#322)
  • Ignore leading ! in DateTimeInterfaceTransformer (#325)
  • Extend the make:data command to be more flexible (#335)

2.2.3

24 Jan 08:24
cbc712e
Compare
Choose a tag to compare
  • Add Laravel 10.x support (#331)

2.2.2

09 Jan 08:04
a9446a8
Compare
Choose a tag to compare
  • Add a way to prepend DataPipes to the pipeline (#305)
  • Better IDE completion (#307)
  • Make eloquent collection cast respect collection (#308)

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)