Releases: spatie/laravel-data
Releases · spatie/laravel-data
4.7.0
What's Changed
- Fix typo in docs by @DvDty in #769
- Update wrapping.md by @kimulisiraj in #770
- Fix typos on "Use with Livewire" page by @vkarchevskyi in #777
- Fix dataCastUsing method signature by @shankhadevpadam in #781
- Avoid loading already loaded relations and allow loading non studly relation names by @Tofandel in #773
- Fix routing parameters filled in incorrectly using mapping property names by @guiqibusixin in #775
- Feature: add ability to store eloquent casts as an encrypted string by @eugen-stranz in #723
New Contributors
- @DvDty made their first contribution in #769
- @vkarchevskyi made their first contribution in #777
- @shankhadevpadam made their first contribution in #781
- @guiqibusixin made their first contribution in #775
- @eugen-stranz made their first contribution in #723
- @yob-yob made their first contribution in #776
Full Changelog: 4.6.0...4.7.0
4.6.0
What's Changed
- Add initial support for casting union types
- Fix an issue with paginator includes not working
- Fix consistency of After, AfterOrEqual, Before, BeforeOrEquals rules
- Fix creation context issue (#749)
- Fix an performance issue where when creating a data object from models, the attributes were always called
- Add a #[LoadRelation] attribute which allows loading model relations when creating data objects on the fly
Full Changelog: 4.5.1...4.6.0
3.12.0
What's Changed
- Backport cache fix to v3 by @jameshulse in #671
- fix: adds environment variable to disable structure caching by @jaydublu2002 in #645
- v3 support for Laravel 11 by @jameshulse in #739
Full Changelog: 4.5.1...3.12.0
4.5.1
What's Changed
- Abstract data object as collection by @onursimsek in #741
Full Changelog: 4.5.0...4.5.1
4.5.0
What's Changed
- Cast value to string for createFromFormat by @kylekatarnls in #707
- fix: avoid mutation during
DataCollectable
transformation by @innocenzi in #696 - Add new section to the docs for package testing by @adam-code-labx in #711
- Change default cache variable by @Elnadrion in #717
- Improve performance of CastPropertiesDataPipe by using hash lookups instead of ->first by @LauJosefsen in #721
- Change method of creating object without magic methods by @daveroverts in #725
- Upgrade to inertia 1.0 by @kimulisiraj in #726
- Allow to pass multiple formats to Laravel's
date_format
rule by @riesjart in #727 - Add attribute for Laravel's
list
validation rule by @riesjart in #728 - chore(deps): bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in #718
- Update creating-a-cast.md by @AlexRegenbogen in #724
- Fix wrong link to using attributes page by @BernhardK91 in #733
- Add better support for serializing data by @rubenvanassche in #735
- Fix for the use of built-in class names in Collection annotations by @27pchrisl in #736
- Adds a config option to silently ignore when a Computed Property is being set by @erikaraujo in #714
Full Changelog: 4.4.1...4.5.0
4.4.1
What's Changed
- fix issue where DataCollection keys were missing in TypeScript by @rubenvanassche
Full Changelog: 4.4.0...4.4.1
4.4.0
What's Changed
- Add support for transformation max depths by @rubenvanassche in #699
Full Changelog: 4.3.2...4.4.0
4.3.2
What's Changed
- Provide fallbacks for config values by @sebastiandedeyne in #695
Full Changelog: 4.3.1...4.3.2
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