8000 Releases · apiato/apiato · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: apiato/apiato

v11.0.0

27 Apr 17:31
21fc123
Compare
Choose a tag to compare

v11.0.0 - 2022-04-27

Apiato 11 includes a variety of changes to the application skeleton. Please consult the diff to see what's new.

Release Notes

Added

  • Added support for Laravel 9.0
  • Added new method to transformers: nullableItem()
    This helps in situations when you want to check if a relation is null and act base on that. So instead of writing something like this: return $user->something ? $this->item($user->something, new SomethingTransformer()) : $this->primitive(null); you can just write $this->nullableItem($user->something, new SomethingTransformer()) which returns null if the relation doesn't exist.
  • Added apiato:generate:policy command
  • You can publish compatible containers configs using php artisan vendor:publish for now these containers are updated:
    Documentation
    SocialAuth
  • Added new method: transactionalRun() to actions. This is just a wrapper around actions run() which puts in into a db::transaction
  • New commands:
    • apiato:generate:factory
    • apiato:generate:event
    • apiato:generate:listener
    • apiato:generate:middleware
  • apiato:generate:container command is greatly improved with new goodies!
    • added option to generate API events & listeners for generated container
    • added option to generate API tests for generated container
    • While generating Containers (API only) You can now choose to generate:
      • Events Listeners (experimental! I think this might be useless!)
        If you choose to generate Events: Events will be implemented in Tasks, e.g. CreateOrderTask will fire OrderCreatedEvent
      • Tests
        If you choose to generate Tests:
        If Events are generated then the generated Tests will also test Events being fired!
        Note: some generated tests are more like placeholders which you can uncomment and modify to your use case but nevertheless you will be way ahead!
        You can find the placeholder tests by searching for TODO TEST

Fixed

  • Fixed a small issue with the HashIdTrait
  • Email verification now works actually! See the docs for more info.
  • +Numerous more bugfixes...

Changed

  • Updated Dependencies in composer.json file to the latest versions
  • In case of an exception with empty error bag we will now return {} instead of []
  • Localization language files are now loaded from languages folder instead of resources/languages
  • Global throttling on routes is now named api and is only applied to api routes and not the web routes and can be bypassed using withoutMiddleware() method on route.
  • Login attribute (email, name, etc...) is now case insensitive. This behaviour can be changed in the configs.
  • You can now choose between Multi Action or Single Action Controllers when using apiato:generate:container command.
  • Almost all middlewares are moved from ship to core
  • apiato:generate:serviceprovider is removed and changed into multiple separate commands
    • apiato:generate:provider:generic
    • apiato:generate:provider:main
    • apiato:generate:provider:middleware
    • apiato:generate:provider:event

Removed

  • Removed(command): apiato:permissions:toRole
  • Dropped support for Settings, Debugger, Payment

v10.0.15

12 Dec 11:36
Compare
Choose a tag to compare
  • fix a bug where a config was not loaded currectly
  • update dependencies

v10.0.14

28 Nov 11:31
Compare
Choose a tag to compare

Update dependencies

v10.0.13

12 Oct 06:26
Compare
Choose a tag to compare
  • update dependencies
  • bug fix

v10.0.12

27 Sep 07:14
Compare
Choose a tag to compare
  • update dependencies

v10.0.11

21 Sep 09:00
Compare
Choose a tag to compare
  • update dependencies

v10.0.10

14 Sep 13:29
Compare
Choose a tag to compare
  • update dependencies

v10.0.9

14 Sep 11:33
Compare
Choose a tag to compare
  • add discord shield to readme

v10.0.8

06 Jul 20:03
Compare
Choose a tag to compare
  • fix: take into account the API prefix (#638)
  • Remove dead code
  • Allow Role and Permission table bindings in Authorization Container (Requests, Tests) (#635)
  • Update dependencies

v10.0.7

26 May 15:39
Compare
Choose a tag to compare

Update composer to use the latest core version

0