Releases: jasujm/hrefs
Releases · jasujm/hrefs
Version 0.14
Version 0.13
Changed
- Refactor
BaseReferrableModelinternals. This is mainly for maintainability reasons. The API remains the same, but the new implementation removes some earlier restrictions, such as forbidding recursive hyperlinks as primary key.
Fixed
- Support forward references in hyperlinks in
pydanticv2
Version 0.12
Added
- Support Python 3.12
- Experimental support for
pydanticv2
Changed
- Failing to parse
Hrefdue to incompatible input type throwsValueErrorinstead ofTypeErrorto remain compatible withpydanticv2 - Tests and documentation now refer
pydanticv2 APIs as an alternative, whenever the v1 API is deprecated - Unparameterized
Hrefcauses error on model definition time, instead of model validation time
Deprecated
Href.__modify_href_schema__()andHref.validate()are only used by pydantic v1, and no longer part of the public API
Fixed
- Unwrapping of path parameters when the model key contains recursive hyperlinks
Version 0.11.1
Changed
- Specify
pydantic<2in requirements, since the library doesn't yet work withpydantic>=2 - Documentation fixes
Version 0.11
Fixed
- Fixed JSON encoding error with recent FastAPI versions
- Fixed
starlette.HrefMiddlewarenot being compatible with lifespans
Deprecated
- Python 3.7 is EOL. It is still allowed, but no longer tested.
Version 0.10
Changed
- Some configuration errors in the Starlette integration (missing
details_viewroute, model key not compatible with the route parameters etc.) now throw a customhrefs.ReferrableModelErrorinstead ofpydantic.ValidationError
Fixed
- Fixed incorrect documentation
- Fixed a bug in Starlette integration not correctly finding details view if there are mounts
- Fixed a bug in Starlette integration not correctly handling mounts without name
Version 0.9
Changed
- Clean up and improve unit tests
- Improve documentation about testing
- Make
starlette.HrefMiddlewaresupport websocket routes
Fixed
- Support
starletteversion0.26.0and above
Version 0.8
Added:
- The
hrefs.model.HrefResolverbased hyperlink resolution mechanism to replace tight coupling between model classes and the web framework - Starlette integration now supports routes mounted via sub-application
Fixed:
- Starlette integration silently ignoring some errors when converting URL to model key
Deprecated:
hrefs.starlette.ReferrableModelsince referrable models should now inherithrefs.BaseReferrableModeldirectly
Version 0.7
Added
- Support for query parameters in URLs
Changed
- Simplified type hints and removed a bunch of code requiring suppression of
pylintandmypywarnings
Deprecated
hrefs.Referrablecan no longer be used as PEP 544 protocol
Version 0.6.1
Fixed
- Documentation proofreading