Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@taufik-nurrohman taufik-nurrohman released this 20 Mar 23:16
· 2 commits to main since this release
  • #156 Optimized hook sorting mechanism.
  • #157 Layout now behaves like an extension. If it does not contain any index.php file, its entire layout system will be discarded.
  • #159 Renamed constant DEBUG to TEST.
  • #164 Removed separator options from URL functions and methods.
  • #165 Removed $parent variable, but added parent property for $page.
  • #166 Removed get(), has(), let() and set() methods from non-static classes.
  • #167 The e() function will no longer evaluate string in the form of JSON pattern.
  • #205 Re-enabled the layout switcher feature.
  • #233 Added $deep option to HTML and XML class constructor to parse elements recursively without the help of DOMDocument class.
  • Added $keep option to To::{file,folder}() method.
  • Added class XML.
  • Added functions abort(), all(), check(), choke(), cookie(), delete(), eat(), ip(), kick(), long(), lot(), move(), save(), seal(), short(), size(), status(), store(), token(), type(), ua(), zone().
  • Allowed Time class instance without parameters.
  • Changed path state property to route.
  • Implemented WAI-ARIA to allow class-less styling of HTML markup.
  • Improved Genome and Page classes to make it possible to inherit (fake) methods and (fake) properties from the parent class automatically.
  • Improved z() function to properly export objects in the form of stdClass, Closure, and any class instances.
  • Loaded extensions and layouts in a try/catch block for safety.
  • Moved alert, art and form feature to a separate extension.
  • Moved To::{description,sentence,title}() methods to page extension.
  • Moved core extensions and layouts out of the repository and converted them into git sub-modules.
  • Refactored function has() to make it more useful along with get(), let(), and set() functions.
  • Removed $html option in To::description() (previously was To::excerpt()). People who want to make page excerpt without HTML should be able to easily remove all the HTML markup from the input first, before using this function.
  • Removed 404.php file requirement for layout.
  • Removed clean, d, i, port property from URL class.
  • Removed classes Cache, Client, Cookie, Files, Folders, Get, Guard, Path, Post, Request, Route, Server, Session, SGML.
  • Removed constant GROUND, PS.
  • Renamed From::dec() and From::hex() to From::entity().
  • Renamed To::dec() and To::hex() to To::entity().
  • Renamed To::excerpt() to To::description().
  • Renamed class Anemon to Anemone.
  • Renamed constant DS to D.
  • Renamed constant ROOT to PATH.
  • Renamed function anemon() to anemone().
  • Standardized PHP $_POST data that was merged from $_FILES data which now contains from (in place of full_path), name, path (in place of tmp_name), size, status (in place of error) and type properties.
  • Upgraded PHP version requirement to 7.3.0.
  • mecha-cms/x.page#1 Removed pagination for single page.