All Versions
38
Latest Version
Avg Release Cycle
37 days
Latest Release
46 days ago

Changelog History
Page 1

  • v2.4.6 Changes

    September 06, 2021

    โž• Added

    • โšก๏ธ [ORM] Update cascade behavior
    • boolean transformer
    • main params for routes
    • MultiResourceCRUDController Crud controller with index for several models
    • [ORM] aggregate uQueries (count, sum, min, max, avg)

    ๐Ÿ›  Fixed

    • [DAO] Fix Where pb with count method
    • [DAO] Fix Where pb with exists method

    โšก๏ธ Updated

    • 0๏ธโƒฃ default index page
  • v2.4.5 Changes

    June 15, 2021

    โšก๏ธ Before creating a new project, be sure to update the devtools if they are installed globally:

    composer global update
    

    โž• Added

    • โšก๏ธ mass update in DAO class (updateAll)
    • type checker for routes params (int, bool=>regex)
    • status code for router (200, 404, 405)

    ๐Ÿ›  Fixed

    • autowiring pb with ReflectionType
    • ๐Ÿ“œ Mysql pb: replace parser cast for Mysql/mariaDB diff
    • โšก๏ธ ManyToMany update pb (no open issue)

    โšก๏ธ Updated

    Models generation

    • The regeneration of models preserves the code implemented on the existing models.

    CRUD controllers

    • โž• Add custom default buttons to dataTable (returned by ModelViewer::getDataTableRowButtons())
    • โž• Add onNewInstance($instance) event
    • โž• Add name paramteter in onGenerateFormField($field, $nb, $name) event
    • โž• Add methods for modal title and message (getFormModalTitle($instance) and formHasMessage())
    • โž• Add hook for form modal buttons (onFormModalButtons($btOkay, $btCancel))

    Application root (breaking change)

    • For apache and nginX, root folder is set to public folder

    ๐Ÿšš For an old project (created with a version prior to 2.4.5), you have to modify index.php and move the index.php and .htaccess files to the public folder.

       <?php
       define('DS', DIRECTORY_SEPARATOR);
       //Updated with index.php in public folder
       define('ROOT', __DIR__ . DS . '../app' . DS);
       $config = include_once ROOT . 'config/config.php';
       require_once ROOT . './../vendor/autoload.php';
       require_once ROOT . 'config/services.php';
       \Ubiquity\controllers\Startup::run($config);
    
  • v2.4.4 Changes

    April 25, 2021

    โšก๏ธ Before creating a new project, be sure to update the devtools:

    composer global update
    

    โž• Added

    • UArrayModels class for array of models manipulation (GroupBy, asKeyValues, sorting...)
    • โšก๏ธ UModel class for models manipulation (property updating...)
    • ubiquity-debug integration ### ๐Ÿ›  Fixed
    • Boolean types pb #174
    • ResponseFormatter import #173
    • DAO PostgreSQL
      • ConditionParser pb with cast #172
      • Null values on fk #171
  • v2.4.3 Changes

    March 07, 2021

    โž• Added

    • ๐Ÿ’… Dark mode for CRUD controllers (setStyle('inverted'))
    • CRUD hooks
      • onBeforeUpdate(object $instance, bool $isNew)
      • onBeforeUpdateRequest(array &$requestValues, bool $isNew)
    • Twig
      • isAllowedRoute(role, routeName) added if ubiquity-acl is present. ### โšก๏ธ Updated #### Validators
    • 0๏ธโƒฃ Model validators can be used on the client side (used by default for CRUD controllers). #### Routing
    • Start router cache indexing (for routes with parameters) => This cache indexing is not yet used in production.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  fix Startup::getTemplateEngineInstance method name.
    • AuthController finalize and initialize pb with bad creditentials(no open issue)
    • ๐Ÿ‘‰ Make manyToOne dropdowns clearable in CRUD controllers for fk null values.
    • ๐Ÿ“œ DI parser pb (no open issue) ### ๐Ÿ’ฅ Breaking change possible #### โ™ป๏ธ Rest controllers refactoring
    • โœ‚ Removed: SimpleRestController, RestController => Use the RestBaseController or RestResourceController class instead
    • โž• Added:
      • JsonRestController => for simple Json REST API
      • RequestFormatter, JsonRequestFormatter, JsonApiRequestFormatter => for JSON api, JSON or url-encoded requests
    • โšก๏ธ Updated (for request with authorization - accesstoken):
      • The checkPermissions method in REST controllers must be overridden to check the data associated with an authentication token.
      • checkPermissions must be used in conjunction with the connect method to override as well.
  • v2.4.2 Changes

    February 08, 2021

    โž• Added

    • ViewRepository CRUD operations + Automatic passing of the handled objects to the view
    • AbstractRepository only CRUD operations for overriding
    • 0๏ธโƒฃ Repository a default repository for any model
    • getAllByIds method in DAO part ### ๐Ÿ›  Fixed
    • ๐Ÿ›  Fix cache generation pb for field names & dbTypes ### โšก๏ธ Updated
    • โšก๏ธ Update route default name (ControllerName-{controller}.action) ### devtools
    • ๐ŸŒ livereload for php embedded web server
  • v2.4.1 Changes

    January 17, 2021

    ๐Ÿ›  Fixed

  • v2.4.0 Changes

    December 31, 2020

    โž• Added

    • ๐Ÿ‘ PHP8 attributes support => with PHP8, Ubiquity uses the PHP8 attributes system for annotations.
    • password_verify method to URequest ### โšก๏ธ Updated
    • 0๏ธโƒฃ CRUD and Auth controllers no longer use twig inheritance on views by default: It is easier to customize the display.
  • v2.3.13 Changes

    December 11, 2020

    โž• Added

    ๐Ÿ›  Fixed

  • v2.3.12 Changes

    August 28, 2020

    โž• Added

    • Named db statements for async platforms
    • Rest events on insert and update BEFORE_INSERT = 'rest.before.insert' and BEFORE_UPDATE = 'rest.before.update'
    • insertGroups method (inserts in an implicit transaction)
    • quote options for PDO wrappers
    • ๐Ÿ‘ท ApplicationStorage for global variables with async platforms (Swoole, Workerman, ngx_php...)

    ๐Ÿ›  Fixed

    • ๐Ÿ‘€ [orm] oneToMany and manyToMany loading pb with 2.3.11 version see #145

    โœ… Tests

    • โž• Adding tests
    • increase of coverage to 73%.
  • v2.3.11 Changes

    July 28, 2020

    โž• Added

    • DAOCache (caches objects loaded by id)
    • MemcachedDriver system
    • RedisDriversystem

    โšก๏ธ Updated

    • ๐Ÿ’ป fomantic-ui 2.8.6
    • 0๏ธโƒฃ default index view relooking
    • โ™ป๏ธ Cache system and ArrayCache refactoring
    • light opt for async view and dbWrapper getStatement

    ๐Ÿ›  Fixed

    • ๐Ÿ‘€ [rest] no violations on insert with ValidatorManager see #122
    • ๐Ÿ‘€ [rest] Validation on insertion should be complete see #123
    • ๐Ÿ‘€ [postgresql] pb wth PgsqlDriverMetas (names protection) see #128
    • ๐Ÿ‘€ [postgresql] Insert fail with non autoinc pk see #129
    • ๐Ÿ‘€ [webtools][models] click on Nothing to display generates an error see #130
    • โšก๏ธ [webtools][models] instances count not updated see #131
    • ๐Ÿ‘€ Session names with non allowed characters see #134
    • SimpleViewAsyncController pb with cache (no open issue)