Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: beacon-hq/bag

Remove caching when resolving Bags during request injection

09 Oct 02:28

Choose a tag to compare

What's Changed

  • fix: do not cache request resolution, it breaks in some scenarios by @dshafik in #114

Full Changelog: 2.6.1...2.6.2

Fix built-in cast support for Optionals

14 Sep 11:31

Choose a tag to compare

What's Changed

  • fix: Support Optionals in built-in casts by @dshafik in #113

Full Changelog: 2.6.0...2.6.1

Improve Validation of Optionals

16 Jul 09:02
704db39

Choose a tag to compare

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

02 Jul 10:57

Choose a tag to compare

What's Changed

  • fix: fix an issue where single array params were miss-handled by @dshafik in #107

Full Changelog: 2.5.3...2.5.4

2.5.3

02 Jul 07:56

Choose a tag to compare

What's Changed

  • feat: Do not store Optionals in DB with Eloquent cast by @dshafik in #105

Full Changelog: 2.5.2...2.5.3

2.5.2

05 Apr 17:57

Choose a tag to compare

What's Changed

  • fix: handle union types for CollectionOf and make:bag by @dshafik in #100
  • fix: remove nulls when using controller injection by @dshafik in #101

New Contributors

Full Changelog: 2.5.1...2.5.2

Support for Optionals with spatie/typescript-transformer

01 Apr 10:45

Choose a tag to compare

What's Changed

  • feat: Add spatie/typescript-transformer support by @dshafik in #96 (docs)

Full Changelog: 2.5.0...2.5.1

Add support for Optional properties

29 Mar 21:13
1f6fc61

Choose a tag to compare

What's Changed

For more details, see the documentation

Full Changelog: 2.4.1...2.5.0

Fix hidden params and allow nullable dates

26 Mar 03:55

Choose a tag to compare

What's Changed

Full Changelog: 2.4.0...2.4.1

Laravel DebugBar Support

05 Mar 09:59

Choose a tag to compare

What's Changed

  • feat: Add Laravel DebugBar Collector by @dshafik in #83

Full Changelog: 2.3.0...2.4.0