Skip to content

Releases: apiato/apiato

v12.5.1

05 Sep 09:45
Compare
Choose a tag to compare
  • chore(deps): update composer dependencies
    • This includes an update from Apiato/Core which reverses a breaking change.

v12.5.0

26 Aug 15:36
Compare
Choose a tag to compare

Dependencies

Core v8.12.0 to v8.13.0
Read the Core changelog here.

  • feat: Added App\Ship\Parents\Collections\EloquentCollection
    In future updates, code generator will use this to generate custom eloquent collections for generated models. Here is a good read if you want to learn more about the usefullness of them.
  • feat: Added custom collection for models (Role, Permission & User)
  • fix(config): API debugging is enabled by default if the related env key don't exists.
  • deprecate(test): $faker property in tests is now depracated in favor of Laravel's own fake() helper function

New Contributors

Full Changelog: v12.4.1...v12.5.0

v12.4.1

06 Feb 14:35
Compare
Choose a tag to compare

Full Changelog: v12.4.0...v12.4.1

Dependencies

Core v8.8.0 to v8.9.0

v12.4.0

05 Feb 16:46
ac2eb90
Compare
Choose a tag to compare

Full Changelog: v12.2.0...v12.4.0

Dependencies

Core v8.7.0 to v8.8.0

Features

  • feat(config): Add unset macro which can be used to completely remove a config key.
    • config()->unset($key)
  • feat(repository):
    • Add findById method which returns Model|Null
    • Add getById method which returns Model or throws exception
    • Add findMany method which returns Collection (empty or not)
    • Add pushCriteriaWith method which is a wrapper around pushCriteria method that allows for easier testing

Bug fixes

  • fix(auth): Web authentication doesn't work with "login with custom attributes" feature
  • fix(config): Debugbar feature is enabled by default (if DEBUGBAR_ENABLED is not specified in the .env)

Enhancements

  • test: Add +400 tests. We are at +90% coverage now.
  • refactor: Remove Welcome vendor container dependency and move it's features/endpoints to Authentication container: Landing/Welcome & Login pages
  • ci: Setup GitHub actions: test runner, php cs fixer
  • ci: Setup code coverage
  • feat: Remove lang folder
  • refactor(test): Move all tests under app/Containers/{SectionName}/{ContainerName}/Tests directory
  • refactor(test): Replace PHPUnit annotations with new PHPUnit v10 attributes
  • refactor: Remove useless PHP docs
  • refactor: Remove AuthorizationTrait
  • refactor: Remove IsResourceOwnerTrait (use policies instead)
  • refactor: Use method injection (instead of constructor injection) in controllers to inject Actions
  • refactor(container): Rename GetAllResources files to ListResources
  • refactor(user): Move default password rule definition from User model to User/Providers/MainServicePorvider

v12.3.0

05 Feb 16:23
Compare
Choose a tag to compare

INVALID RELEASE

UPGRADE TO v12.4.0

v12.2.0

14 Oct 18:34
Compare
Choose a tag to compare

Full Changelog: v12.1.0...v12.2.0

Dependencies updated to
Core v8.7.0 & Doc Generator v3.0.5

Features

  • feat: Add activeGuard helper to get the current logged-in user guard.
  • refactor: use Core/Traits/ModelTrait.php on
    App\Containers\AppSection\Authorization\Models\Permission and
    App\Containers\AppSection\Authorization\Models\Role
    instead of adding required traits manually.
  • feat: generate verify email route only if email verification is enabled

Bug fixes

  • fix: use hash ids in DetachPermissionsFromUserRequest
  • fix: reset password endpoint accepts all http verbs. Now only accept post.

Enhancements

  • feat: GetAllPermissionsTask & GetAllRolesTask now only return roles & permissions for the current logged-in user guard.
  • feat: added guard_name field to the response of Role & Permission transformers. (Only for admin)

v12.1.1

15 Jul 09:15
Compare
Choose a tag to compare

Full Changelog: v12.1.0...v12.1.1

  • fix: unable to generate docs (introduced in v12.1.0)
    A PHP CS Fixer rule was changing the API Docs documentation in an unexpected way which was causing an error while generating the docs.

Note: If you are on v12.1.0 please see the fix and apply it to your code.

v12.1.0

12 Jul 18:04
Compare
Choose a tag to compare

Full Changelog: v12.0.2...v12.1.0

  • chore(dep): update composer dependencies
  • feat: add automated php-cs-fixer workflow
  • refactor: LoginCustomAttribute class
  • feat(ExceptionHandling): render proper response based on request accept header

Including the fixes and changes in Core v8.4.1 & v8.5.0.

v12.0.2

15 Jun 23:26
Compare
Choose a tag to compare
  • fix: lock lcobucci/clock version to prevent composer package conflicts

v12.0.1

15 Jun 22:26
Compare
Choose a tag to compare

Apiato:

  • fix: PHPUnit correctly excludes files from coverage now
  • chore(dep): update composer dependencies

Core:
https://github.com/apiato/core/releases/tag/v8.4.0

  • feat: don't load routes if routes are cached
  • fix: replace removed exception HashidsException -> InvalidArgumentException