Releases: beacon-hq/bag
Remove caching when resolving Bags during request injection
What's Changed
Full Changelog: 2.6.1...2.6.2
Fix built-in cast support for Optionals
What's Changed
Full Changelog: 2.6.0...2.6.1
Improve Validation of Optionals
This release changes the behavior of validation when Optionals are involved. Prior to this release, if your validation for an Optional field was a simple presence requirement (e.g. required, present), an Optional value would pass, whereas a type/format validator would fail.
After this change, unless you use the OptionalOr validator, Optional values are stripped from the validated values, allowing rules like required to fail as expected.
This is a minor backward incompatible change, but the behavior is now what would have been expected previously.
Full documentation on Optional and the validation of Optionals can be found here
2.5.4
2.5.3
2.5.2
Support for Optionals with spatie/typescript-transformer
What's Changed
Full Changelog: 2.5.0...2.5.1
Add support for Optional properties
Fix hidden params and allow nullable dates
Laravel DebugBar Support
What's Changed
Full Changelog: 2.3.0...2.4.0