Flet-Easy changelog¶
v0.3.0 (../03/26)¶
Package Reorganization: Restructured the
flet-easypackage into logical subpackages (core/,security/,ui/) to improve maintainability, while preserving 100% backward compatibility for existing imports.Core Refactoring: Refactored
fletEasy.pyintocore/app.py, extracting route-building logic, removing duplicate execution paths, and simplifying middleware handling.compatibility with
flet >= 0.27.*(see flet-easy/issues/51)compatibility with
flet >= 0.80.*witch change the api. (see flet-easy/issues/51)Optimize routes loading and middleware execution (#40)
Fix for compatibility with Python 3.9 (#47)
Improved and fixed error response when JWT libraries are not installed.
Improved error handling for
login,login_async,decode, anddecode_asyncmethods inDatasy. (#50)
New features¶
Support for rendering new Flet Declarative UI Components (
@ft.component) as native routes, bridging URL parameters andDatasyseamlessly into declarative objects. (see flet-easy/issues/51) [Docs]Add support for the middleware class in the add_middleware method of
FletEasy. (#38) [Docs]Add support for the middleware class in the add_middleware method of
AddPagesy. (#38) [Docs]
Pagesy¶
index: Define the index of the page, use in controls likeft.NavigationBarandft.CupertinoNavigationBar. (#41) [Docs]cache: Boolean that preserves page state when navigating. Controls retain their values instead of resetting. (Optional) (#39) [Docs]
Datasy (data)¶
New methods¶
page_reload(): Use this method to reload the page, restores the default values of the page. (#49) [Docs]dynamic_control(): Adds dynamic control to the page, allowing real-time updates when caching is enabled on the page. (#41) [Docs]go_navigation_bar(): Handles navigation bar changes. Use this method in the on_change event of 'ft.NavigationBar' or 'ft.CupertinoNavigationBar' controls. (#41) [Docs]go_route(route: str): Use this method to navigate to a specific route. It executes directly, unlike thedata.go()method, which returns a lambda function. (#50) [Docs]decode_jwt(key): Decode JWT synchronously fromDatasy(Replacesfs.decode()). (#50) [Docs]decode_jwt_async(key): Decode JWT asynchronously — preferred inasynclogin decorators (Replacesfs.decode_async()). (#50) [Docs]
Changes in the api¶
go_back(): Use this method to return to the previous path. The method is executed directly without returning a lambda function. (#50) [Docs]logout(key: str, next_route: str = None): Use this method to close all sessions on all devices or on the device currently in use, which was previously configured with theloginmethod. The method executes directly without returning a lambda function. A new parameter,next_route, has also been included to redirect to a router other than the login router. (#50) [Docs]data.redirect(route: str): Use this method to redirect to a specific route. It executes directly, unlike thedata.go()method. Method added available in functions decorated with@page(...). (#50) [Docs]
go(route: str): Use this method to navigate to a specific route. It returns an asynchronous lambda function, unlikego_route(), which executes directly. This method is available in functions decorated with@page(...). (#50) [Docs]data.share.set(): Starting from version0.80.*, theawaitkeyword is required as it now utilizesSharedPreferencesby default.cache: Currently supported in imperative routing; declarative routing support is not yet available.
v0.2.9 (25/01/25)¶
Bug fixes¶
- Fix error when using login() method in async function (#34)
- Fix and improve error message in fs.decode (async) (#35)
v0.2.8 (21/12/24)¶
- Support for
Flet>=0.25.*. - Switching to
uvas package manager. - New methods to initialize and obtain by the application. (#33) [Docs]
- Update of the tests code for flet 0.25.*
v0.2.7 (29/10/24)¶
- Fix error in non-dynamic routing. (#30) [Docs]
- Add page without creating an instance of
AddPagesyclass. (#31)
0.2.6 (19/10/24)¶
0.2.4 (03/09/24)¶
⚡The speed of the router is improved to more than twice as fast. (#20)
Ruff configuration update (>=0.4.4) (#22)
Bug fixes found in previous changes.
Changes in the api:¶
New method added in Datasy (data) [Doc]
history_routes: Get the history of the routes.go_back: Method to go back to the previous route.
🔎Note¶
- Now
page.go()anddata.go()work similarly to go to a page (View), the only difference is thatdata.go()checks for url redirects when usingdata.redirect(). - The 'clear' parameter of
Pagesyand thepagedecorator is deprecated, it will be removed in future versions.
0.2.2 (04/05/24)¶
- Fix sensitivity in url with capital letters (#15)
- Fix 'back' button in dashboard page app bar not working (#18)
- Fix error caused by
Timeout waiting invokeMethod(#19)
0.2.1 (25/04/24)¶
- Fix page loading twice (#14)
0.2.0 (17/04/24)¶
Optimize code for flet >0.21 (#4)
Fix async.
Add
JWTsupport for authentication sessions in the data parameter (#6) DocsAdd a
Clito create a project structure based on the MVC design pattern (#7) DocsAdd more simplified Ref control (commit)
Enhanced Documentation (commit)
Ruff Integration (commit)
Changes in the api:
The
asyncmethods have been removed, as they are not necessary.Change
update_loginmethod tologinof Datasy. (Docs)Change
logautmethod tologoutof Datasy. (Docs)Changed function parameter decorated on
login|(page:ft.Page -> data:fs:Datasy)(Docs)Changed function parameter decorated on
config_event_handler|(page:ft.Page -> data:fs:Datasy)(Docs)
0.1.3 (11/03/2024)¶
- Flet installation is required to use Flet-Easy.
- Fixed error when running the application with flet 0.21 (#3).
- Fixed packing when compiling an apk (#2).
0.1.1 (31/01/2024)¶
- Small improvements in the code and documentation.
- Parameter
proctect_routechanged toprotected_routeofpagedecorator (Docs) - Added functionality to share data between pages in a more controlled way (Docs)
- Added a more ordered documentation (Docs)
0.1.0¶
Initial commit