From a862a3353b04f01d1fb39407c903890224b1b768 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Sun, 21 Dec 2025 09:45:19 +0000 Subject: [PATCH] Release 2.5.0 --- CHANGES.md | 7 +++++++ pyproject.toml | 2 +- src/microdot/__init__.py | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 4232e32..6e33b3a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,12 @@ # Microdot change log +**Release 2.5.0** - 2025-12-21 + +- CSRF protection [#335](https://github.com/miguelgrinberg/microdot/issues/335) ([commit](https://github.com/miguelgrinberg/microdot/commit/0bae4c9477e9fdb231d1979cc6ed26c31e12b1aa)) +- Added support for ASGI lifespan events [#322](https://github.com/miguelgrinberg/microdot/issues/322) ([commit](https://github.com/miguelgrinberg/microdot/commit/f128b3ded45ccd418a00d199769240342a613b5e)) +- Added `scheme` and `route` attributes to the request object ([commit](https://github.com/miguelgrinberg/microdot/commit/1c7020ca1a3e5a6a1549dc52de38a0b7fd0a439a)) +- Added `Login.get_current_user()` helper method ([commit](https://github.com/miguelgrinberg/microdot/commit/053b8a81380fcdf285592a32e6b590ee50b7d048)) + **Release 2.4.0** - 2025-11-08 - SSE: Add support for the retry command and keepalive comments ([commit](https://github.com/miguelgrinberg/microdot/commit/d0808efa6b32e00992596f1bb3d4c3a372df2168)) diff --git a/pyproject.toml b/pyproject.toml index e8f052c..d136247 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "microdot" -version = "2.4.1.dev0" +version = "2.5.0" authors = [ { name = "Miguel Grinberg", email = "miguel.grinberg@gmail.com" }, ] diff --git a/src/microdot/__init__.py b/src/microdot/__init__.py index e6bae8d..c8611b6 100644 --- a/src/microdot/__init__.py +++ b/src/microdot/__init__.py @@ -1,4 +1,4 @@ from microdot.microdot import Microdot, Request, Response, abort, redirect, \ send_file, URLPattern, AsyncBytesIO, iscoroutine # noqa: F401 -__version__ = '2.4.1.dev0' +__version__ = '2.5.0'