Skip to content

Releases: datomatic/enum-helper

v2.0.0

31 Oct 10:58
Compare
Choose a tag to compare
  • add wrap() method to EnumFrom trait
  • change EnumUniqueId to EnumSerialization trait and change separator to ::
  • add EnumLabel trait if you prefer use ->label() istead of ->desceription()
  • add new EnumProperties trait
  • general refactoring
  • update pest and phpstan versions
  • add pint formatting
  • update github workflow

v1.1.0

15 Oct 11:28
Compare
Choose a tag to compare
  • Add nullableDescriptionsByValue method

v1.0.0

09 Sep 12:43
Compare
Choose a tag to compare
  • v 1.0 🚀 🎉
  • Added Inspection methods (isPure(),isBacked(),has(), doesntHave(), hasName(), doesntHaveName(), hasValue(), doesntHaveValue())
  • Refactored readme examples and test classes name

v0.7.2

08 Sep 09:27
Compare
Choose a tag to compare
  • permit enum equality to compare IntBackedEnum with numeric string

v0.7.1

05 Jul 13:46
Compare
Choose a tag to compare
  • added support of null param on in() and notIn() methods

v0.7.0

02 Jul 08:21
Compare
Choose a tag to compare

After migrating several projects with my fellow @RobertoNegro and listening to different opinions we have decided to simplify the package.
From now on, I will consider a pure enum as a StringBackedEnum with names as values, so all ***AsSelect() methods will be replaced by ***ByValue() methods.

  • removed all methods ***AsSelect()
  • added support on ***ByValue() methods also for pure enum using name instead value
  • removed NotBackedEnum exception

v0.6.2

28 Jun 16:21
Compare
Choose a tag to compare
  • added fromValue() and tryFromValue() aliases
  • refactored EnumFromTest.php

v0.6.1

20 Jun 07:49
Compare
Choose a tag to compare
  • set public dynamic methods

v0.6.0

18 Jun 10:44
Compare
Choose a tag to compare
  • moved the Laravel part of package to new laravel-enum-helper package
  • updated the banner

v0.5.0

14 Jun 10:25
Compare
Choose a tag to compare
  • moved LaravelEnum to Datomatic\EnumHelper\Traits\Laravel namespace
  • code refactor