CleverStyle Framework v1.40.2 Release Notes
-
๐ New components:
- New WebSockets module makes WebSockets usage with CleverStyle CMS ridiculously easy
- New Shop module, provides simple, but highly extensible and customizable shopping functionality
๐ New features:
- ๐
$_SERVER
superglobal is now wrapped by object to provide simplified, more functional and secure alternative to raw elements (while keeping original array-like behavior for compatibility) \cs\Language::init()
and::url_language()
methods added- ๐จ
\cs\User::get_session()
refactored to::get_session_id()
which much better explains what function actually do - ๐ณ Possibility to attach volume to Docker container with demo
- ๐ Triggers are now Events, corresponding class
Event
added,Trigger
still exists for backward compatibility, but usesEvent
under the hood (transition is simple -Trigger::register() -> Event::on()
,Trigger::run() -> Event::fire()
, alsoEvent
have some new functionality with methods::off()
and::once()
,events.php
is used now insteadtrigger.php
which is deprecated now cs.Event
object added on frontend similar tocs\Event
on backend with the same methods
โก๏ธ Updates:
- โก๏ธ UIkit updated to latest upstream version + all components included since this version!
- ๐ New upstream version of Polymer and WebComponents.js
- ๐ New upstream version of jQuery (still from master branch)
๐ Fixes and small improvements:
- ๐ Style fixes in DarkEnergy theme
- Do not pass user session to third-party services in HybridAuth, use md5 from provider and session instead
- ๐ Fix for warning during docker image building
- ๐ Make clickable license, readme and API icons look like buttons
- ๐ Better modals handling in module and plugin admin pages (and no colored text anymore)
- Do not use
TIME
constant for sessions, because it now may be used for long-living cases and constant will not reflect real current time - Events
System/User/del_session/before
andSystem/User/del_session/after
now passes session id to callback
๐ Deprecations:
User::$user_agent
,::$ip
,::$forwarded_for
and::$client
will triggerE_USER_DEPRECATED
,$_SERVER
should be used instead- ๐
\cs\User\get_session()
still exists and backward-compatible with old format (throws deprecated warning in log), but now is used to get all session details - ๐
trigger.php
is deprecated in favor ofevents.php
with the same functionality
Possible partial compatibility breaking (very unlikely, but still possible):
- Reverse signature of
shutdown_function()
function - โก๏ธ
\cs\Config::update_clangs()
method removed \cs\Language::reload_core_config()
method removed- Encryption improvement, but will not be able to decode old encrypted data (not likely to have big impact):
- Initial vector is random and returned with encrypted data
- Blowfish changed in favor of Twofish
- Good random key generated on installation with the help of
openssl_random_pseudo_bytes()
\cs\User::get_session_user()
refactored to::load_session()
which much better explains what function actually do
๐ Latest builds on downloads page or download source code and build it yourself