Releases: spatie/laravel-data
Releases · spatie/laravel-data
4.3.1
What's Changed
- Support duration in cache configuration by @sebastiandedeyne in #694
- Handle
null
forfieldContext
withinresolvePotentialPartialArray
by @faustbrian in #693
Full Changelog: 4.3.0...4.3.1
4.3.0
What's Changed
- Update wrapping.md to clarify collections and paginated collections case by @santigarcor in #675
- Feature/cast and transformer iterables by @rubenvanassche in #686
- Add support for passing on partials when not transforming values by @rubenvanassche in #688
- chore(deps): bump ramsey/composer-install from 2 to 3 by @dependabot in #678
- Allow data context to be set to null by @sebastiandedeyne in #691
- Fix iterable casts when there's a global and local cast specified by @sebastiandedeyne in #690
- Fix iterable values with union types by @sebastiandedeyne in #692
Full Changelog: 4.2.0...4.3.0
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