Skip to content

Commit

Permalink
v2.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut authored and Alc-Alc committed Jul 26, 2024
1 parent 5835901 commit 6339102
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/release-notes/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@

.. changelog:: 2.9.1
:date: 2024-06-21

.. change:: Add OPTIONS to the default safe methods for CSRFConfig
:type: bugfix
:pr: 3538

Add ``OPTIONS`` to the default safe methods for :class:`~litestar.config.csrf.CSRFConfig`


.. change:: Prometheus: Capture templated route name for metrics
:type: bugfix
:pr: 3533

Adding new extraction function for prometheus metrics to avoid high cardinality
issue in prometheus, eg having metrics ``GET /v1/users/{id}`` is preferable over
``GET /v1/users/1``, ``GET /v1/users/2,GET /v1/users/3``

More info about prometheus high cardinality
https://grafana.com/blog/2022/02/15/what-are-cardinality-spikes-and-why-do-they-matter/

.. change:: Respect ``base_url`` in ``.websocket_connect``
:type: bugfix
:pr: 3567

Fix a bug that caused :meth:`~litestar.testing.TestClient.websocket_connect` /
:meth:`~litestar.testing.AsyncTestClient.websocket_connect` to not respect the
``base_url`` set in the client's constructor, and instead would use the static
``ws://testerver`` URL as a base.

Also removes most of the test client code as it was unneeded and in the way of
this fix :)

Expand All @@ -46,34 +46,34 @@
:type: bugfix
:pr: 3569
:issue: 3552

Fix an issue where there was a deprecation warning emitted by all route handler
decorators. This warning was introduced in ``2.9.0`` to warn about the upcoming
deprecation, but should have only applied to user subclasses of the handler
classes, and not the built-in ones (``get``, ``post``, etc.)

.. change:: CLI: Don't call ``rich_click.patch`` if ``rich_click`` is installed
:type: bugfix
:pr: 3570
:issue: 3534

Don't call ``rich_click.patch`` if ``rich_click`` is installed. As this
monkey patches click globally, it can introduce unwanted side effects. Instead,
use conditional imports to refer to the correct library.

External libraries will still be able to make use of ``rich_click`` implicitly
when it's installed by inheriting from ``LitestarGroup`` /
``LitestarExtensionGroup``, which they will by default.


.. change:: Correctly handle ``typing.NewType``
:type: bugfix
:pr: 3580

When encountering a :class:`typing.NewType` during OpenAPI schema generation,
we currently treat it as an opaque type. This PR changes the behaviour such
that :class`typing.NewType`s are always unwrapped during schema generation.

.. change:: Encode response content object returned from an exception handler.
:type: bugfix
:pr: 3585
Expand Down

0 comments on commit 6339102

Please sign in to comment.