Hrefs

Latest version: v0.14

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.14

------------

Date
2025-05-02

Added
* Support Python 3.13
* Distribute ``py.typed`` with the package

Fixed
* Fix matching mounted routes in newer versions of Starlette

Removed
* Support for EOL Python versions prior to 3.9
* Dependency to ``typing_extensions``

0.13

------------

Date
2023-12-05

Changed
* Refactor ``BaseReferrableModel`` internals. 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 ``pydantic`` v2

0.12

------------

Date
2023-11-18

Added
* Support Python 3.12
* Experimental support for ``pydantic`` v2

Changed
* Failing to parse ``Href`` due to incompatible input type throws
``ValueError`` instead of ``TypeError`` to remain compatible with
``pydantic`` v2
* Tests and documentation now refer ``pydantic`` v2 APIs as an alternative,
whenever the v1 API is deprecated
* Unparameterized ``Href`` causes error on model definition time, instead of
model validation time

Deprecated
* ``Href.__modify_href_schema__()`` and ``Href.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

0.11.1

--------------

Date
2023-09-01

Changed
* Specify ``pydantic<2`` in requirements, since the library doesn't yet work
with ``pydantic>=2``
* Documentation fixes

0.11

------------

Date
2023-09-01

Fixed
* Fixed JSON encoding error with recent FastAPI versions
* Fixed ``starlette.HrefMiddleware`` not being compatible with lifespans

Deprecated
* Python 3.7 is EOL. It is still allowed, but no longer tested.

0.10

------------

Date
2023-03-19

Changed
* Some configuration errors in the Starlette integration (missing
``details_view`` route, model key not compatible with the route parameters
etc.) now throw a custom ``hrefs.ReferrableModelError`` instead of
``pydantic.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

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.