Skip to content

Latest commit

 

History

History
92 lines (81 loc) · 4.15 KB

File metadata and controls

92 lines (81 loc) · 4.15 KB

3.3

  • Several improvements to eager load relations (see Jp7/CollectionUtil.php)
  • Deprecate jp7_collect(), use collect() instead.

3.2.2

  • Small fixes for Laravel 5.7
  • LogServiceProvider@renameSyslogApp is not needed anymore
  • HttpCacheExtension abandoned (it's still being used, the steps below are a possible way to remove it if needed)
    • remove blacklist and invalidate from httpcache.php
    • use the ttl middleware from barryvdh on routes that were on blacklist: ->middleware('ttl:0')
    • use the DontCacheOldInput middleware if the return from old() forms should not be cached
    • Add the snippet below if AJAX should cache independently:
// Cache AJAX requests independently
app()->singleton(\Symfony\Component\HttpKernel\HttpCache\Store::class, function ($app) {
    return new \Jp7\HttpCache\Store($app['http_cache.cache_dir']);
});

3.2.1

  • Due to problems with Laravel 5.3, repeated routes will trigger an error
  • Optional: Use stale cache if page could not be rendered (see Jp7/HttpCache/HttpCacheExtension.php) (Found out later that it's already part of the Symfony HttpCache behavior, it's just not as long, dropped because it was too magic)

3.2

  • Split into 3 packages: classes, classes-deprecated and interadmin-orm
  • Removed automatic namespace on Router::group()
  • Custom 500 page by default on Laravel apps (see WhoopsHandlerTrait.php)

3.1

  • Fixed bugs after the merge of the ORM
  • Performance fixes for aliases
  • Add type of password field using Laravel Hash
  • Add commands to generate seeds from InterAdmin database
  • Log that the Laravel queue is running
  • Fixes for HTTPS
  • Use .env values for e-mails, DB and storage
  • Move getUrl() out of the ORM

3.0

  • Merged both ORMs: InterAdmin (original branch) and Jp7/Interadmin/Record (laravel branch)

Changes to projects which used InterAdmin/InterAdminTipo:

  • Removed methods deprecated on 2.1.1 (like getInterAdmins)
  • InterAdmin::__construct receives an array now
  • Calling select_* without alias won't bring objects: ->relationFromColumn() can be used if the alias is not known
  • ->attributes is not public anymore - Use ->getAttributes()
  • ->getCampoTipo() can only be overwritten on a Type
  • Replace setFieldsValues() -> updateAttributes()
  • Fields are eager and lazy loaded, ->getFieldsValues() and getByAlias() are not needed anymore
  • Default aliases are generated in snake_case now (if empty). To use old aliases you must manually define them.
  • ORM depends on new configuration: /config/interadmin.php and /resources/lang/pt-BR/interadmin.php

Changes to projects which used Jp7/Interadmin/Record

  • Attributes are stored internally without alias / use getAliasedAttributes() if needed

2.7

  • Branch laravel was reintegrated to master
  • Dependencies removed from classes, each client must require them as needed:
  • "zendframework/zendframework1": "1.12.0"
  • "phpoffice/phpexcel": "~1.8.1"
  • "werkint/jsmin": "~1.0.0”
  • Replace Jp7_InterAdmin by Jp7_Interadmin
  • Replace InterAdmin_ by Interadmin_
  • Replace startsWith($needle, $haystack) by Str::startsWith($haystack, $needle)
  • Replace endsWith($needle, $haystack) by Str::endsWith($haystack, $needle)
  • Replace jp7_replace_beginning() by replace_prefix()
  • Main table is interadmin_CLIENT_registros, it was interadmin_CLIENT
  • To prevent problems with legacy projects a VIEW named interadmin_CLIENT_registros was created

Changes to projects which used branch laravel:

  • InterSite -> Jp7\Intersite
  • InterAdmin -> Jp7\Interadmin\Record
  • InterAdminAbstract -> Jp7\Interadmin\RecordAbstract
  • InterAdminTipo -> Jp7\Interadmin\Type
  • InterAdminArquivo -> Jp7\Interadmin\FileRecord
  • InterAdminArquivoBanco -> Jp7\Interadmin\FileDatabase
  • InterAdminLog -> Jp7\Interadmin\Log
  • InterAdminField -> Jp7\Interadmin\FieldUtil
  • InterAdminFieldFile -> Jp7\Interadmin\FileField
  • Change config suffix in resources/lang/en/interadmin.php from _en to en_

2.6

  • ...

2.1.1

Deprecate the following methods, replaced by new names:

  • getFirstInterAdmin -> findFirst
  • getInterAdminById -> findById
  • getInterAdminByIdString -> findByIdString
  • getInterAdmins -> find
  • getInterAdminsByTags -> findByTags
  • getInterAdminsCount -> count