Skip to content

Releases: bluewing/sierra

1.17.3

19 May 03:53
Compare
Choose a tag to compare

What's changed

  • The Bluewing\Rules\MemberIsNew validation rule has been renamed Bluewing\Rules\IsEmailAddressUnique.

1.17.2

17 May 22:36
Compare
Choose a tag to compare

What's fixed

  • Bluewing\Http\Requests\BluewingFormRequest now supports rule methods that return an Arrayable instance.

1.17.1

29 Apr 23:45
Compare
Choose a tag to compare

What's fixed

  • To support Laravel 9's change to how getFacadeAccessor's resolve classes from the service container, Bluewing/Schema/Schema has been updated, and a binding of the customised schema builder to the 'db.schema' key has been included in Bluewing/Providers/BluewingServiceProvider. More information here.

1.17.0

29 Apr 09:57
Compare
Choose a tag to compare

What's changed

  • Bumped the minimum PHP version to 8.1.4.
  • Support for Laravel 9, by bumping the following composer.json dependencies:
    • laravel/framework 8.81.0 → 9.10.1
    • stripe/stripe-php 7.112.0 → 7.125.0
    • laravel/ui 3.4.2 → 3.4.5
    • phpunit/phpunit 9.5.13 → 9.5.20
    • orchestra/testbench 6.24.0 → 7.4.0

1.16.0

03 Apr 04:53
Compare
Choose a tag to compare

What's new

  • Introduces Bluewing\Enumerations\InstantiatesFromKey trait to allow a PHP 8 enumeration to be created from a key present on the enumeration.
  • Introduces Bluewing\Enumerations\MapsToArrays trait to allow PHP 8 enumerations to be converted to arrays containing the keys of the enumeration, the backed values of the enumeration, or an associative array of keys to backed values.
  • Introduces Bluewing\Testing\InteractsWithDatabaseJson trait supporting JSON columns in a PostgreSQL database to have their keys and values asserted via the assertDatabaseJson, similar to the already present assertDatabaseHas method.

What's changed

  • Readability and type improvements to expandable functionality. Introduces the Bluewing\Expandables\BaseExpandable abstract class to support clearer calculation of what expansion query string parameters are valid.

What's fixed

  • Fixed a bug in Bluewing\Rules\IsCoordinateComponent where coordinate values that were integers would be improperly validated (even if provided as a float with suffixed zeroes).

1.15.2

14 Mar 06:45
Compare
Choose a tag to compare

What's changed

1.15.1

28 Jan 05:54
Compare
Choose a tag to compare

What's changed

  • Bluewing\Rules\ValidEnumerationValue has been renamed to Bluewing\Rules\ValidEnum, and now accepts any PHP 8.1 native enumeration which implements the BackedEnum interface. Example usage:

    $rule = new ValidEnum(MyEnum::class);
    $rule->passes('attributeName', 'valueOnBackedEnumeration'); // true or false
    

1.15.0

27 Jan 03:56
Compare
Choose a tag to compare

What's changed

  • bluewing/sierra now requires PHP 8.1 via composer.json, as well as via its Dockerfile.
  • The bluewing/sierra docker image now provides Composer 2.2.5, as well as XDebug 3.1.2.
  • Explicitly bumped the following composer.json dependencies:
    • laravel/framework 8.78.0 → 8.81.0
    • stripe/stripe-php 7.108.0 → 7.112.0
    • laravel/ui 3.4.1 → 3.4.2
    • mockery/mockery 1.4.4 → 1.5.0
    • phpunit/phpunit 9.5.11 → 9.5.13
    • orchestra/testbench 6.23.2 → 6.24.0
  • Removed myclabs/php-enum, as we now implement PHP enumerations natively 🎉.
  • docker-compose.yaml schema is now explicitly set to '3.8'.

1.14.1

09 Jan 21:23
Compare
Choose a tag to compare

What's changed

Explicitly bumped the following composer.json dependencies:

  • lcobucci/jwt 4.1.4 → 4.1.5
  • laravel/framework 8.55.0 → 8.78.0
  • stripe/stripe-php 7.94.0 → 7.108.0
  • laravel/ui 3.3.0 → 3.4.1
  • mockery/mockery 1.4.3 → 1.4.4
  • phpunit/phpunit 9.5.8 → 9.5.11
  • orchestra/testbench 6.20.0 → 6.23.2

1.14.0

10 Sep 10:18
Compare
Choose a tag to compare

What's changed

  • Custom validation rules under the Bluewing\Rules namespace can now use the trait Bluewing\Rules\Support\HasCustomizableMessages to expose functionality to the consumer to modify the returned error message if the validation rule fails, using the withCustomMessage method, which fluently returns the modified Rule object.

  • Both Bluewing\Rules\MissingInTenancy and Bluewing\Rules\ExistsInTenancy now have static constructors and instance methods that more fluently build the respective rule objects. For example:

    // Previously: new MissingInTenancy('Departments', 'name')
    $rules = [
        'name' => [
            MissingInTenancy::inTable('Departments')→forColumn('name')
        ]
    ];