Releases: spatie/laravel-data
Releases · spatie/laravel-data
4.18.0
What's Changed
- Update issue template by @AlexVanderbist in #1080
- Improve validate performance by @cyppe in #1043
- can get the data class for a data collection by annotation with unicode characters by @it4need in #1048
- Allow re-encrypting attributes when app uses previous keys by @JaZo in #1049
- [feat] Added group to Inertia defer by @giusepetroso in #1056
- Add KebabCaseMapper by @hrsa in #1060
- feat: support BackedEnum to BackedEnum casting in EnumCast by @gigerIT in #1067
- feat(validation): add protocol support to Url attribute by @wouter90 in #1068
- Fix TransformableData docblocks by @cosmastech in #1069
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #1074
- Bump stefanzweifel/git-auto-commit-action from 6 to 7 by @dependabot[bot] in #1093
- FIX Inconsistency between documentation and PHPDoc for rules() by @davidoskay in #1075
- BuiltinTypeCast true and false strings to bool by @Chemaclass in #1092
- fix: clone transformation context instead of creating a new one by @iamrgroot in #1091
- Fix #1057 by @rubenvanassche in #1095
- Fix 1058 by @rubenvanassche in #1096
Full Changelog: 4.17.1...4.18.0
4.17.1
What's Changed
- Fix issue where toArray() is called on null collections by @oddvalue in #1054
- Update the annotations in the Eloquent casts
Full Changelog: 4.17.0...4.17.1
4.17.0
What's Changed
- Add support for external validation attribute references by @rubenvanassche in #1051
Breaking changes
- While technically not breaking, some changes were made inside the validation attributes. You can check it here: #1051 in the headsup section.
Full Changelog: 4.16.1...4.17.0
4.16.1
What's Changed
Full Changelog: 4.16.0...4.16.1
4.16.0
What's Changed
- Add return type annotations to TransformableData trait by @cyppe in #1000
- Add the possibibilty to except key for empty data generation by @thoresuenert in #1035
- Enhance CannotCastEnum exception message to include property name by @rajmundtoth0 in #1039
- Fix issue in pr 1007 by @rubenvanassche in #1041
- Implement the compare method on the eloquent casts to improve the isDirty check by @SanderSander in #1033
- Add support for default values on properties for morph by @bentleyo in #1017
- Fix problem with dynamic properties
Full Changelog: 4.15.3...4.16.0
4.15.3
- Add support for only and except in enum rule
Full Changelog: 4.15.2...4.15.3
4.15.2
- Fix: CannotCreateData exception when AutoWhenLoadedLazy relationship is not loaded (#1009)
- Fix: Inertia deferred properties not being that flexible
Full Changelog: 4.15.1...4.15.2
4.15.1
4.15.0
What's Changed
- Add test and doc changes by @rubenvanassche in #996
- Add support for inertia deferred props by @matthiasweiss in #939
- Add EmptyString support for Formik compatibility by @igorleszczynski in #955
- Update ide.json by @Yi-pixel in #990
- feature property morphable by @bentleyo in #995
Full Changelog: 4.14.1...4.15.0
4.14.1
What's Changed
Full Changelog: 4.14.0...4.14.1