Releases: spatie/laravel-data
Releases · spatie/laravel-data
4.2.0
What's Changed
- Add experimental support for Livewire synths @rubenvanassche in #669
- Add DataCollectionSynth by @edalzell in #591
Full Changelog: 4.1.0...4.2.0
3.11.2
3.11.1
4.1.0
- 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
- 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
tocollect
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
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
- 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
3.10.1
3.10.0
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)