CleverStyle Framework v2.4.2 Release Notes

  • ๐Ÿš€ This release is not so huge as previous, but extremely important, because it drops backward compatibility, even, partially, with last release, read on.

    Bad things first:

    • ๐Ÿš€ if you're running any old version - you need to update system to 1.110.0+build-985 first, then update all components (otherwise they will not be able to uninstall completely) and ensure you've read all release notes about releases newer that you currently use, modified your code accordingly and there are no errors and deprecated messages in log file
    • โšก๏ธ also right after upgrade to 2.4.2+build-1005 update all components

    Now exciting good news:

    • no redundant elements for backward compatibility!
    • ๐Ÿ‘ better performance!
    • more static code analysis with SensioLabsInsights and Scrutinizer!
    • ๐Ÿ‘ PHP 5.5 is the minimum supported version now and we can use new features inside system core!

    ๐Ÿ†• New components:

    • None

    ๐Ÿ†• New features:

    • cs\CRUD_helpers trait added to reduce code duplicating for trivial additional operations when using cs\CRUD trait (currently includes search method)
    • Scrutinizer badge added
    • Block templates now have access to $block variable, so they can render block as they like

    โšก๏ธ Updates:

    • ๐Ÿ†• New upstream version of UPF, dropped PHP 5.4 support

    ๐Ÿ›  Fixes and small improvements:

    • OAuth2: Fix for refresh_token in OAuth2 module
    • Deferred tasks: Split \cs\modules\Deferred_tasks::run method into two, because they both do not share any common code anyway
    • ๐Ÿšš OAuth2: Unnecessary return statement removed, fixed potential error in Http server mode because of function redeclaration
    • ๐Ÿ”จ Some refactoring of DB-related classes and usages
    • ๐Ÿ›  Fix for removing empty gallery
    • Simplification in \cs\Page class
    • ๐Ÿ›  Tiny fixes in \cs\Config\Module_Properties
    • ๐Ÿ”จ Refactoring and fixes in \cs\Session, do not update sign_in time unless really sign in
    • Reformatting and simplification of \cs\Permissions
    • ๐Ÿ”จ Refactoring and simplification of \cs\User\Permission trait
    • โฌ‡๏ธ Dropped deprecated internal method in \cs\Core class
    • โšก๏ธ Huge PhpDoc update that will allow more precise static analysis:
      • bool in multiple return types of PhpDoc sections in many cases replaced by false as more specific type
      • some PhpDoc types corrected
    • ๐Ÿ”จ Refactoring and simplification of \cs\Index class
    • ๐Ÿ›  Fixes for warnings on admin pages
    • ๐Ÿ›  Generally big amount of PhpDoc improvements and small fixes

    ๐Ÿ—„ Deprecations:

    • Well, this is backward incompatible version:)

    โฌ‡๏ธ Dropped backward compatibility:

    • ๐Ÿ—„ All deprecated functionality was dropped
    • All components now require System of version >= 2.0, but < 3.0 since API will be backward-compatible for whole 2.x series
    • ๐Ÿš€ Dropped update support from System versions older than previous release, the same for all components
    • โฌ‡๏ธ Dropped support for PHP 5.4
    • Meta information unification (sorry, no transitional version this time):
      • meta/db.json contents of components now available as db field in meta.json
      • meta/storage.json contents of components now available as storage field in meta.json
      • versions.json contents of components now available as update_versions field in meta.json

    ๐Ÿ— Latest builds on SourceForge downloads page (details about installation process) or download source code and build it yourself