Releases: spatie/laravel-data
Releases · spatie/laravel-data
4.11.1
4.11.0
What's Changed
- feat: support "null to optional" by @innocenzi in #881
- Register optimize commands by @erikgaal in #880
Full Changelog: 4.10.1...4.11.0
4.10.1
- Fix an issue where optional default values would disable validation
4.10.0
It has been a fews weeks, a mostly bugfix release with one new feature, enjoy!
- Fix an issue where required rules could not be combined with optional (#844)
- Fix Livewire return type to make sure it can return everything in the data object (#836)
- Fix issue where validation messages where ignored by collections nested in collections (#867)
- Fix Resource to include Contextable data inteface (#868)
- Stop NormalizedModel from initializing itself and try to lazy load properties when required (#870)
- Passing an enum to caster handle without an error (#841)
- Passing date objects to caster handle without an error (#842)
- Allow setting a default mapping strategy (#846)
4.9.0
- Move some interfaces around in order to avoid a circular chaos
4.8.2
- Remove a circular dependency
4.8.1
- Fix a missing dependency
4.8.0
What's Changed
- Detect data from collection by @clementbirkle in #812
- Fix an issue where dd or dump did not work
Full Changelog: 4.7.2...4.8.0
4.7.2
- Fix issue where an exception was not always thrown while it should (#809)
- Solve an issue where an empty container with an iterable cast won't be cast (#810)
- Fix Parsing of Optional Types Annotations in DataIterableAnnotation (#808)
- Support TypeScript Hidden Properties (#820)
- Fix issue where abstract eloquent casts were not encrypted(#828)
4.7.1
What's Changed
- Fix some typos in docs by @Klaas058 in #794
- Provide a default timezone for casting date by @PhilippeThouvenot in #799
- Remove object rule caching
- Fix an issue where a normalized model attribute fetching a relation would not use the loaded relation
New Contributors
- @PhilippeThouvenot made their first contribution in #799
Full Changelog: 4.7.0...4.7.1