Changelog & Version History
Relevant source files
The following files were used as context for generating this wiki page:
The Changelog and Version History for Uvicorn tracks the evolution of the lightning-fast ASGI server, documenting new features, bug fixes, deprecations, and breaking changes. It serves as a critical reference for developers to ensure compatibility between their applications and the server's runtime environment.
Version management in Uvicorn follows a structured release cycle, often coinciding with updates to the Python ecosystem (such as support for new Python versions) and advancements in the ASGI specification. The version is dynamically pulled from the package metadata during the build process.
Sources: CHANGELOG.md, pyproject.toml:5-10, README.md:1-15
Release Management and Metadata
Uvicorn uses hatchling as its build backend and manages its versioning dynamically via the uvicorn/__init__.py file. Project metadata, including dependencies and entry points, is defined in the pyproject.toml file.
Versioning Architecture
The versioning system is designed to handle different execution environments, distinguishing between a "minimal" installation and a "standard" installation that includes Cython-based dependencies for improved performance.
This diagram shows how project metadata flows from the build system to define different installation profiles.
Sources: pyproject.toml:1-45, README.md:25-45
Version Evolution Highlights
Recent Major Changes (0.4x.x Series)
The 0.4x series focused on security, customizability, and performance optimizations for modern Python versions.
| Version | Key Changes / Features | Purpose |
|---|---|---|
| 0.48.0 | Default ssl_ciphers to OpenSSL defaults. | Security hardening. |
| 0.47.0 | Added ssl_context_factory. | Custom SSL configuration. |
| 0.45.0 | Added --reset-contextvars flag. | Context isolation for ASGI requests. |
| 0.43.0 | Enhanced Ctrl+C handling/Cooperative signals. | Improved shutdown UX. |
| 0.40.0 | Dropped support for Python 3.9. | Ecosystem modernization. |
Sources: CHANGELOG.md:1-100
Protocol Support History
Uvicorn's support for HTTP and WebSockets has evolved through multiple implementations to balance performance and compatibility.
- HTTP/1.1: Supported via both
h11(pure Python) andhttptools(Cython-based). Version 0.32.1 enabled lenient data handling forhttptools >= 0.6.3. - WebSockets: Support includes
websockets,wsproto, and the introduction ofWebSocketsSansIOProtocolin version 0.35.0. - ASGI Spec: Compliance reached version 2.4 for WebSockets in version 0.27.0 and remains at 2.3 for HTTP as of version 0.32.1.
Sources: CHANGELOG.md:120-130, CHANGELOG.md:210-220, uvicorn/protocols/http/httptools_impl.py:55-70
Deprecations and Removals
As the project matures, older or redundant components are phased out.
- WSGI Middleware: The native
WSGIMiddlewarewas deprecated in version 0.30.0 in favor ofa2wsgi. - WatchGod: Support for the
watchgodreloader was removed in 0.33.0, replaced entirely bywatchfiles. - Python Versions: Support for Python 3.7 was dropped in 0.23.0, Python 3.8 in 0.34.0, and Python 3.9 in 0.40.0.
- Logging: The
--debugflag andDebugMiddlewarewere removed in version 0.19.0.
Sources: CHANGELOG.md:85-95, CHANGELOG.md:175-185, CHANGELOG.md:250-265, uvicorn/middleware/wsgi.py:100-105
System Entry Points and CLI
The uvicorn command-line interface is defined as a script entry point in pyproject.toml, pointing to the main function in uvicorn.main.
This diagram illustrates the lifecycle of a Uvicorn process started via the CLI.
Sources: pyproject.toml:68, uvicorn/main.py:460-500
Dependency Matrix
Uvicorn maintains a strict dependency list to ensure "lightning-fast" performance while remaining usable in constrained environments.
| Package | Minimum Version | Requirement Type |
|---|---|---|
click | >= 7.0 | Core (CLI) |
h11 | >= 0.8 | Core (HTTP Protocol) |
httptools | >= 0.6.3 | Optional (Fast HTTP) |
uvloop | >= 0.15.1 | Optional (Fast Event Loop) |
watchfiles | >= 0.20 | Optional (Reloading) |
Sources: pyproject.toml:40-65, CHANGELOG.md:145-150
Conclusion
The Version History of Uvicorn reflects a commitment to tracking the latest Python standards while maintaining a lean core. By transitioning from legacy implementations (like native WSGI and WatchGod) to modern, maintained libraries (like a2wsgi and watchfiles), Uvicorn continues to serve as a high-performance foundation for the ASGI ecosystem.
Sources: README.md:50-70, CHANGELOG.md:1-50