Skip to content

v0.2.10

Compare
Choose a tag to compare
@hokamsingh hokamsingh released this 23 Aug 07:01
· 89 commits to main since this release

Go-Logo_Aqua

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

  1. 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.
  2. Global Application Management:

    • Introduced global access to the App instance, allowing modules and components to interact with the application context without direct dependency injection.
  3. 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.
  4. Enhanced Middleware Handling:

    • Refined middleware functionality to support advanced use cases, including dynamic middleware application based on router hierarchy.
  5. 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.
  6. 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.
  7. New Listen Method:

    • Added the Listen method to start the HTTP server, providing a straightforward way to initiate server operations with custom configurations.

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/[email protected]

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:

Release Date: August 2024