5.0.0 #79
rennf93
announced in
Announcements
5.0.0
#79
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
FastAPI Guard 5.0.0 — guard-core Migration
FastAPI Guard is now a thin adapter over guard-core, the framework-agnostic security engine that also powers flaskapi-guard and djapi-guard.
What changed
guard-core1.0.0). This package provides only the FastAPI/Starlette integration layer.guard/core/,guard/handlers/,guard/detection_engine/,guard/protocols/, andguard/models.pyare replaced by a singleguard-coredependency and a newguard/adapters.pybridging Starlette requests/responses to guard-core's protocol.cachetools,httpx,maxminddb,pydantic,redis,requests, andtyping-extensionsare no longer direct dependencies (they come transitively throughguard-core).Zero breaking changes to the public API
All existing imports continue to work exactly as before:
Why v5.0.0
The major version bump reflects the architectural shift — guard-core is now a required dependency, and internal modules (guard.core., guard.handlers., guard.detection_engine.*) no longer exist. If you only used the public API, no migration is needed.
One engine, three frameworks
All three share the same security engine, ensuring consistent behavior across frameworks.
Full Changelog: 4.4.1...5.0.0
This discussion was created from the release 5.0.0
Beta Was this translation helpful? Give feedback.
All reactions