Packges Notes 📃

This page is dedicated to the notes about all the packages I've created. I will try to keep this page updated with the latest changes and features.


2025/05/25 - Darto v0.0.24 🎉

  • Features
    1. Added a route method for chained routes to allow developers to define routes in a more flexible way.
    2. Added a param method to capture and access all times the param route is matched.
    3. Added a engine method to define the engine to use for the request.

2025/05/25 - Zard v0.0.17 🎉

  • Chore
    1. Now the ZMap not return a nullable value. change from this Map<String, dynamic>? to this Map<String, dynamic>.

2025/05/25 - Darto v0.0.23 🎉

  • Features

    1. Added a new Hooks class to allow developers to register lifecycle hooks directly via app.addHook.onRequest, app.addHook.preHandler, app.addHook.onResponse, app.addHook.onError, and app.addHook.onNotFound.
    2. Hooks provide a way to execute custom logic at different stages of the request-response cycle, making it easier to extend Darto functionality.
    3. Developers can now define routes in a more flexible, look how define in documentation.
    4. Add a new type Handler to define a return for a route handler or a middleware.
  • Fix

    1. Updated the logging system to use ANSI escape codes (e.g. \x1B[32m for green) instead of relying on the ansicolor package.
    2. The new logging format ensures that colored logs display correctly in the debug console.