Repository navigation
Releases: MoleculerPy/moleculer-web
Releases · MoleculerPy/moleculer-web
Release list
v0.1.1
v0.1.0 — Stable API Gateway
moleculerpy-web v0.1.0 — Stable Release
Highlights
- Rate limit stores refactor: module-level global → per-service instance, fixes asyncio task leak
- 377 tests (65 E2E), 93% coverage
- 6,183 req/sec throughput (NFR-001 PASS)
- All features verified E2E with real NATS broker
Fixed
- Rate limit store memory/task leak on gateway restart
id(config)key collision after GC → deterministic(route_path, window, limit)keystopped()now cleans up all rate limit stores
Changed
VALID_ACTION_REdeduplicated toutils.py- README Quick Start updated to
broker.create_service()pattern - Examples consolidated: 10 files → 4
- Development Status: Alpha → Beta
Full Changelog
https://github.com/MoleculerPy/moleculer-web/blob/main/CHANGELOG.md
v0.1.0b1 — Phase 3: Service Inheritance, Streaming, Upload, ETag
moleculerpy-web v0.1.0b1
Phase 3 — Service Inheritance + Advanced Features
New Features:
- Service Inheritance:
ApiGatewayServiceextendsmoleculerpy.Service(ADR-002) - Internal Actions:
api.listAliases,api.addRoute,api.removeRoutevia@action - Auto-aliases:
$services.changedevent + actionrestannotations - Streaming Responses: async/sync generators →
StreamingResponse - File Upload: multipart/form-data with filename sanitization
- Static File Serving: Starlette
StaticFilesmount - ETag + 304: Conditional GET with
If-None-Matchsupport
Security Hardening:
- CRLF injection prevention in response headers
- Open redirect allowlist (relative paths only)
- Path traversal prevention in filenames and static files
- Default-deny guards on addRoute/removeRoute
- Content-Length pre-check for DoS prevention
Quality:
- 348 tests, 93% coverage
- 45-point real NATS E2E verification
- 7 audit agents, 18 findings fixed
- mypy: 0 errors, ruff: 0 errors
Install:
pip install moleculerpy-web==0.1.0b1
# With file upload support:
pip install "moleculerpy-web[multipart]==0.1.0b1"Full Changelog: https://github.com/MoleculerPy/moleculer-web/blob/main/CHANGELOG.md
v0.1.0a1 — HTTP API Gateway Alpha
moleculerpy-web v0.1.0a1
HTTP API Gateway for MoleculerPy — port of Node.js moleculer-web.
Features
- Starlette (ASGI) + uvicorn
- Route aliases + REST shorthand
- Middleware pipeline (hooks, auth, CORS, rate limit)
- Whitelist/blacklist, error mapping, ctx.meta passthrough
- 277 tests, 95% coverage, 11.4K req/sec
Install
pip install moleculerpy-web==0.1.0a1Full changelog: https://github.com/MoleculerPy/moleculer-web/blob/main/CHANGELOG.md