Releases: leafsphp/leaf
🎋 Common Reed
v2.4.4 - 🎋 Common Reed - 23rd March 2021
Added
- Added
Leaf\Config
for easier configuration - Added new leaf config options
- Added
Leaf\View
- Added support for multiple template engines concurrently
- Added BareUI templating engine
Fixed
- Internal code improvements on App
Changed
- No renames, restructures, ...
Removed
- No removals
🎋 Giant Cane Grass
v2.4.3 - 🎋 Giant Cane Grass - 26th February 2021
Added
- Updated
Leaf\Db
andLeaf\Auth
to throw dev errors to Leaf's error handler for better error reporting
Fixed
- Organized methods in
Leaf\FS
Changed
- Made
Leaf\Http\Response
static - Made
Leaf\Http\Request
static
Removed
- No removals
🥬 Desert Wishbone-bush
v2.4.2 - 🥬 Desert Wishbone-bush - 3rd February 2021
This version of Leaf continues the goal of making Leaf features more flexible and increasing usability.
Added
-
Added option to turn off experimental method warnings
-
Added
Form::rule
which allows you to create your own rules for form validation.
Form::rule("max", function($field, $value, $params) {
if (strlen($value) > $params) {
Form::addError($field, "$field can't be more than $params characters");
return false;
}
});
- Added internal
Leaf\Form
feature which allows you to pass parameters to validation rules.
$validation = Form::validate([
// To pass a param to a rule, just use :
"username" => "max:3",
]);
- Added
Form::addError
which allows you to add errors to be returned inForm::errors()
Form::addError($field, "$field can't be more than $params characters");
- Added max and min rules by default
$validation = Form::validate([
"username" => "max:1",
"password" => "min:81",
]);
- Guards can be used even in API mode. This will alert you if you're not eligible to view a particular page.
Fixed
-
Updated dependencies with security patches
-
Fixed multiple validation breaks from v2.4.2 beta.
Changed
- Made
Leaf\Form
methods static. They can now be called from anywhere within your Leaf app.
Removed
- No removals
🥬 Desert Wishbone-bush (Beta)
v2.4.2 [BETA] - 🥬 Desert Wishbone-bush (Beta) - 20th January 2020
This release mainly focuses on security patches for all Leaf based libraries. It contains updated dependencies and internal code patches to make your apps even more secure.
Added
- No additions
Fixed
- Updated dependencies with security patches
Changed
- Made
Leaf\Auth
methods static. They can now be called from anywhere within your Leaf app.
Removed
- No removals
🍁 Marvel-of-peru
v2.4.1 - 🍁 Marvel-of-peru - 12th January 2020
Added
- Added Session auth support out of the box
Fixed
- Fixed app down bug
- Fixed known bugs
Changed
- Separated Router module from app module
- Made session methods static
Removed
- Removed app down feature
New Roots
v2.4.0 - BETA - 30th November, 2020
Unlike previous versions, this version of Leaf is focusing on improving the use of existing features, rather than just pumping new magic into Leaf. It has a lot of bug fixes, standardization of method names and overall upgrades.
Added
- Added
App::evadeCors
- Added
App::routes
to preview all routes - Added
Db::first()
- Leaf DB can now detect query type even when
query
- Added
orWhere
,whereLike
,orWhereLike
like
,orLike
,orderBy
,all
limit
and LIKE helpers to Leaf Db - Added new format to
Date::now
- Added
Auth::update
- Added custom token lifetime support on
Auth
- Added
Auth
settings to allow easy and more detailed customizations - Added token lifetime support on
Helpers\Authentication
- Added support for app down for maintainance
Fixed
- Fixed login bug with
Auth::currentUser
- Fixed Leaf DB same value bug
- Minor fixes on
Auth::login
andAuth::register
Changed
- Switched methods to camel case
- Renamed
Auth::useToken
toAuth::id
- Renamed
Auth::currentUser
toAuth::user
- Made
Helpers\JWT
andHelpers\Authentication
methods static - Methods return
null
instead offalse
in case of unexpected results
Removed
- Removed
Form::isEmpty
andForm::isNull
- Removed deprecated methods from
Response
- Removed deprecated methods from
Date
This list is still being updated.
Lucky Charm🍀
v2.3.0 - 15th August, 2020
📑 Added
- Added
Leaf\Auth::useToken
- Added
Leaf\FS::upload_file
- Added manual init to
Leaf\Session
- Added option for status code messages
- Added callable utils
- Added session encoding/decoding
Leaf\Http\Request
now catches files passed into request- Added
Leaf\Http\Request::typeIs
Leaf\Http\Request::get
can now return multiple request data at once- Added
Leaf\Http\Request::files
- New
Leaf\Http\Headers
package - More untracked additions
🔧 Fixed
- fixed
Leaf\Http\Headers
- Fixed response http status codes bug
- Fixed header integration with response
- Fixed header reliance on
Set
- Fixed
throwErr
code error - Fixed
Leaf\Session
package - Fixed response redirect
- Fixed
Leaf\Http\Request::body
bugs - Sessions return
false
instead of throwing errors (Fix for web apps) - FS returns
false
instead of throwing errors - Fixed up
Leaf\Http\Request::params
- Fixed up
Leaf\Http\Request::hasHeader
- Fixed up header related methods on
Leaf\Http\Request
- Fixed bugs on
Leaf\Environment
- More untracked fixes
🎈 Changed
- Switched
Leaf\Session
to native PHP sessions - Switched session package in
Leaf\App
- Changed controller file uploads to
Leaf\FS
Leaf\Date
methods can now be called static-ly- Switched
Leaf\Date
methods to camel case, but with backward compatability for snake_case - Made all
Leaf\FS
methods static
🚚 Removed
- Removed old session code
- Removed
setEncryptedCookie
andgetEncryptedCookie
onLeaf\App
- Slashed unnecessary code from
Leaf\Http\Request
- Slashed unnecessary code from
Leaf\Http\Session
- Slashed unnecessary code from
Leaf\Http\Cookie
- Slashed unnecessary code from
Leaf\Http\Response
- Removed all method type tests from
Leaf\Http\Request
Angel's Trumpet
v2.2.0 [BETA] - 7th July, 2020
Added
- Added
Leaf\Auth::currentUser
- Added new cookies package relying on PHP's
setcookie
Fixed
- fixed hidden fields on
Leaf\Auth::login
- Fixed multiple-request type data on
get
andbody
atLeaf\Http\Request
Changed
- Switched cookies package in
Leaf\Http\Response
- Switched cookies package in
Leaf\App
Removed
- Removed old cookies package and all it's methods
- Removed
setEncryptedCookie
andgetEncryptedCookie
onLeaf\App
- Slashed unnecessary code from
Leaf\Http\Request
Elderberry
v2.1.0 - 22nd June, 2020
Added
- Added
Leaf\Auth::auto_connect
- Added default bypass for CORS errors
- Added
Mysqli::auto_connect
- Added optional
db_type
option toLeaf\Db\PDO
connection - Added
PDO::auto_connect
- Added new db module (
Leaf\Db
)
Changed
- Switched default db to
Leaf\Db
Removed
- Removed Leaf\Wynter
Poor-Man's Asparagus
Changelog
v2.1.0 - alpha - 24th May, 2020
Added
- Added Route::resource
- Added Session::retrieve
Fixed
Changed
- Seperated Leaf Veins from Leaf Package
- Renamed Session::getBody to Session::body
Removed
- Removed Leaf\View