Skip to content

Releases: spatie/laravel-data

3.11.1

20 Feb 07:46
06ee679
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.11.0...3.11.1

4.1.0

16 Feb 13:30
4135f77
Compare
Choose a tag to compare
  • Fix an issue where the cache was queried too much
  • Move the creation process of object rules from constructor to getRule to fix issues with caching and typescript transformer
  • Laravel 11 support

4.0.2

14 Feb 16:14
99adb0d
Compare
Choose a tag to compare
  • Fixes issue where casts could not return null or an empty array
  • Prevent out of memory with multiple requests in a test (#665)
  • Allow passing null to collect and return an empty version of the defined output type
  • Fix templates for Laravel Idea plugin support (#666)
  • Fix an issue where the cache could not be disabled

4.0.1

09 Feb 14:19
b884e9a
Compare
Choose a tag to compare

Laravel-data 4.0.0 was released 5 hours ago, time for an update!

  • Add support for a collection cast
  • Make sure we check wether a value is Uncastable
  • Fix issue where creating a data object from multiple payloads wasn't always consistent
  • Allow disabling cache
  • Refactor PropertyRules
  • Fix issue where install on windows was impossible
  • Fix types for map and through (#640)

4.0.0

09 Feb 08:34
fa428ce
Compare
Choose a tag to compare
  • Allow arrays, Collections, Paginators, ... to be used as DataCollections
  • Add support for magically creating data collections
  • Rewritten transformation system with respect to includeable properties
  • Addition of collect method
  • Removal of collection method
  • Add support for using Laravel Model attributes as data properties
  • Allow creating data objects using from without parameters
  • Add support for a Dto and Resource object
  • It is now a lot easier to validate all the payloads added to laravel-data
  • Added contexts to the creation and transformation process
  • Allow creating a data object or collection using a factory
  • Speed up the process of creating and transforming data objects
  • Add support for BNF syntax
  • Laravel 10 requirement
  • Rewritten docs

Some more "internal" changes

  • Restructured tests for the future we have ahead
  • The Type system was completely rewritten, allowing for a better performance and more flexibility in the future
  • Benchmarks added to make data even faster

3.11.0

21 Dec 12:32
e9cb661
Compare
Choose a tag to compare
  • Add support for data structure caching #622

3.10.1

04 Dec 15:00
23dd208
Compare
Choose a tag to compare
  • Make ValidationPath Stringable
  • Fix PHPStan
  • Improve performance when optional peoperty exists (#612)

3.10.0

01 Dec 14:51
5b9e328
Compare
Choose a tag to compare

A fresh release after a month of vacation, enjoy!

  • Add ExcludeWith validation rule (#584)
  • Add DoesntEndWith and DoesntStartWith validation rules (#585)
  • Add MinDigits and MaxDigits validation rules (#586)
  • Add DataCollection reject() method (#593)
  • Add generic type for WithData trait (#597)
  • Fix issue where non set optional values were transformed (#602)
  • Fix issue where parameters passed to Laravel Collection methods would sometimes provide alternative results (issue: #607)

1.5.3

01 Dec 09:47
674e1a9
Compare
Choose a tag to compare
  • MimeTypes validation fix on v1 (#596)

3.9.2

20 Oct 10:20
dea1e75
Compare
Choose a tag to compare
  • Fix breaking compatibility #590