v0.2.10
Release Notes - LessGo v0.2.10
Overview
We are excited to announce the release of LessGo v0.2.10! This release introduces significant improvements to the lessgo
framework, including enhancements to dependency injection, global application management, middleware handling, and routing capabilities. These updates aim to provide a more robust and flexible framework for building Go applications.
New Features & fixes
-
Improved Dependency Injection (DI):
- Enhanced the DI container to support advanced features including named dependencies and scoped services.
- Added a global
App
instance for easier access to the core application functionalities without the need to pass it around explicitly.
-
Global Application Management:
- Introduced global access to the
App
instance, allowing modules and components to interact with the application context without direct dependency injection.
- Introduced global access to the
-
Sub Routing Enhancements:
- Improved sub-routing capabilities to allow middleware to be applied selectively to specific subrouters.
- Added support for applying middleware only to subrouters, avoiding unnecessary application to the root router.
-
Enhanced Middleware Handling:
- Refined middleware functionality to support advanced use cases, including dynamic middleware application based on router hierarchy.
-
Bootstrap and Module Binding:
- Streamlined the application bootstrap process with a more intuitive setup for registering and binding modules.
- Simplified module registration and management using the improved DI container and global
App
instance.
-
Updated Routing and Middleware Architecture:
- Enhanced routing capabilities with better support for handling static files and applying middleware.
- Improved subrouter creation and middleware application, ensuring more flexible routing configurations.
-
New
Listen
Method:- Added the
Listen
method to start the HTTP server, providing a straightforward way to initiate server operations with custom configurations.
- Added the
Breaking Changes
- Subrouter middleware application has been updated, which may impact existing middleware setups that were previously applied globally.
Bug Fixes
- Fixed various issues related to middleware application in subrouters.
- Addressed bugs in module registration and dependency injection handling.
Installation and Upgrade
To upgrade to version v0.2.10, use the following command:
go get github.com/hokamsingh/lessgo@v0.2.10
Documentation
For detailed documentation on the new features and improvements, please refer to the updated LessGo Documentation.
Thank you for using LessGo! As always, we appreciate your feedback and contributions. For more details, refer to our documentation or contact our support team.
Happy coding! 🚀
Contributors:
- Hokam Singh (@hokamsingh)
- The LessGo Community
Release Date: August 2024