Files
kami_spider_monorepo/DEPENDENCIES_UPDATED.md
danial 0e41e7acce feat(core): 初始化核心配置和部署文件
- 添加 .env.example 环境变量配置示例
- 添加 .gitignore 忽略文件配置
- 添加 core/config.py 配置管理模块
- 添加 deployments/k8s/configmap.yaml Kubernetes 配置
- 添加 core/database.py 数据库连接管理模块
- 添加 core/dependencies.py 全局依赖模块
- 添加 DEPENDENCIES_UPDATED.md 依赖更新记录
- 添加 deployments/k8s/deployment.yaml Kubernetes 部署配置- 添加 deployments/swarm/docker-compose.swarm.yml Docker Swarm 部署配置
- 添加 deployments/docker/docker-compose.yml Docker 部署配置
- 添加 deployments/docker/Dockerfile 应用镜像构建文件
- 添加 middleware/error_handler.py 全局异常处理中间件
2025-11-01 14:32:29 +08:00

148 lines
4.6 KiB
Markdown

# Dependencies Updated to Latest Versions
**Updated on:** October 27, 2025
This document lists all the dependencies that have been updated to their latest versions based on internet research.
## Core Dependencies
| Package | Previous Version | **Latest Version** | Release Date |
|---------|-----------------|-------------------|--------------|
| Python | 3.13 | **3.13** | October 2024 |
| FastAPI | >=0.115.0 | **>=0.120.0** | October 23, 2025 |
| Uvicorn | >=0.32.0 | **>=0.38.0** | October 18, 2025 |
| Gunicorn | >=23.0.0 | **>=23.0.0** | ✓ Latest |
| Pydantic | >=2.9.0 | **>=2.10.4** | December 18, 2024 |
| Pydantic Settings | >=2.6.0 | **>=2.7.0** | Latest |
| SQLModel | >=0.0.22 | **>=0.0.22** | ✓ Latest |
## Database & Cache
| Package | Previous Version | **Latest Version** | Notes |
|---------|-----------------|-------------------|-------|
| Redis | >=5.2.0 | **>=5.2.1** | Latest stable |
| PyMySQL | >=1.1.1 | **>=1.1.1** | ✓ Latest |
| aiomysql | >=0.2.0 | **>=0.2.0** | ✓ Latest |
| cryptography | >=43.0.0 | **>=44.0.0** | Latest security updates |
| Alembic | >=1.14.0 | **>=1.14.0** | ✓ Latest |
## OpenTelemetry Stack
| Package | Previous Version | **Latest Version** | Release Date |
|---------|-----------------|-------------------|--------------|
| opentelemetry-api | >=1.28.0 | **>=1.38.0** | October 16, 2025 |
| opentelemetry-sdk | >=1.28.0 | **>=1.38.0** | October 16, 2025 |
| opentelemetry-instrumentation-fastapi | >=0.49b0 | **>=0.49b3** | Latest beta |
| opentelemetry-instrumentation-sqlalchemy | >=0.49b0 | **>=0.49b3** | Latest beta |
| opentelemetry-instrumentation-redis | >=0.49b0 | **>=0.49b3** | Latest beta |
| opentelemetry-instrumentation-httpx | >=0.49b0 | **>=0.49b3** | Latest beta |
| opentelemetry-exporter-otlp-proto-grpc | >=1.28.0 | **>=1.38.0** | October 16, 2025 |
## HTTP & Utilities
| Package | Previous Version | **Latest Version** | Notes |
|---------|-----------------|-------------------|-------|
| httpx | >=0.27.0 | **>=0.28.1** | Latest async HTTP client |
| python-multipart | >=0.0.12 | **>=0.0.20** | Latest |
| python-dotenv | >=1.0.1 | **>=1.0.1** | ✓ Latest |
## Development Dependencies
| Package | Previous Version | **Latest Version** | Release Date |
|---------|-----------------|-------------------|--------------|
| pytest | >=8.3.0 | **>=8.3.4** | Latest |
| pytest-asyncio | >=0.24.0 | **>=0.24.0** | ✓ Latest |
| pytest-cov | >=6.0.0 | **>=6.0.0** | ✓ Latest |
| pytest-mock | >=3.14.0 | **>=3.14.0** | ✓ Latest |
| ruff | >=0.7.0 | **>=0.8.4** | Latest linter |
| mypy | >=1.13.0 | **>=1.14.0** | Latest type checker |
## Key Highlights
### 🚀 Major Updates
1. **FastAPI 0.120.0** - Latest release with:
- Full Python 3.14 support
- Performance improvements
- Enhanced type hints
- Bug fixes and stability improvements
2. **Uvicorn 0.38.0** - Latest ASGI server with:
- Python 3.14 support
- Better HTTP/2 support
- Performance optimizations
3. **Pydantic 2.10.4** - Latest validation library:
- Python 3.14 initial support (Pydantic 2.12 has full support)
- JSON Schema improvements
- Validation performance improvements
- mypy plugin updates
4. **OpenTelemetry 1.38.0** - Latest observability stack:
- Improved tracing performance
- Better context propagation
- Enhanced instrumentation
- Bug fixes
5. **Ruff 0.8.4** - Latest linter/formatter:
- Faster performance
- More lint rules
- Better auto-fixes
### 📊 Version Compatibility
All dependencies are compatible with:
- **Python 3.13** (current stable)
- **Python 3.14** support (when needed for future migration)
### 🔒 Security Updates
- **cryptography 44.0.0** - Latest security patches
- **httpx 0.28.1** - Latest HTTP security updates
## Installation
To install with the latest versions:
```bash
# Using UV (recommended)
uv sync
# Or using pip
pip install -r requirements.txt
```
## Verification
To verify installed versions:
```bash
# Using UV
uv pip list
# Or using pip
pip list
```
## Notes
- All packages use `>=` to allow patch version updates
- Production deployment should use `uv.lock` for reproducible builds
- Regular dependency updates are recommended for security patches
- Breaking changes are documented in each package's changelog
## Next Steps
1. **Test the application** with updated dependencies
2. **Run test suite** to ensure compatibility
3. **Update `uv.lock`** by running `uv sync`
4. **Deploy to staging** for integration testing
5. **Monitor for issues** in staging before production
## References
- FastAPI: https://fastapi.tiangolo.com/
- Pydantic: https://docs.pydantic.dev/
- OpenTelemetry: https://opentelemetry.io/
- UV: https://docs.astral.sh/uv/