Esmerald

Latest version: v3.2.5

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

Scan your dependencies

Page 9 of 15

0.13.0

Not secure
Changed

- Added support for Starlette 0.25.0

Fixed

- Internal mapping types [45](https://github.com/dymmond/esmerald/pull/56)

0.12.0

Not secure
Changed

- Added support for Starlette 0.24.0.

Fixed

- `debug` parameter regression.

0.11.2

Not secure
Changed

- Code clean for responses and encoders.
- JWTConfig leeway parameter to accept int and str.

Fixed

- `ujson` dumps parameter error.

0.11.1

Not secure
Changed

- Improved OrJSON, UJSON, ORJSONResponse and UJSONResponse when importing dependency.

0.11.0

Not secure
Added

To make esmerald more optional and feature modular, this release brings some backwards
incompatibilities that should be addressed when moving to this version. Check out
the dcumentation for more details if this release notes doesn't cover it all.

Changed

- Moved `UJSON`, `UJSONResponse`, `OrJSON` and `ORJSONResponse` to be optional dependencies [45](https://github.com/dymmond/esmerald/pull/45).
- Changed the imports for `ORJSONResponse` to `from esmerald.responses.encoders import ORJSONResponse` [45](https://github.com/dymmond/esmerald/pull/45).
- Changed the imports for `UJSONResponse` to `from esmerald.responses.encoders import UJSONResponse` [45](https://github.com/dymmond/esmerald/pull/45).
- Changed the imports for `OrJSON` to `from esmerald.datastructures.encoders import OrJSON` [45](https://github.com/dymmond/esmerald/pull/45).
- Changed the imports for `UJSON` to `from esmerald.datastructures.encoders import UJSON` [45](https://github.com/dymmond/esmerald/pull/45).
- Moved the scheduler to optional installation with `pip install esmerald[schedulers]` [45](https://github.com/dymmond/esmerald/pull/45).

Backwards compatibility
This is only applied for those who have esmerald prior to `0.11.0`.
If you already had template configurations, jwt, schedulers or all the features you need to update the imports to:

- **TemplateConfig**:
python
from esmerald.config.template import TemplateConfig


- **JWTConfig**:
python
from esmerald.config.jwt import JWTConfig

- Scheduler class is now imported directly from `asyncz`:
python
from asyncz.schedulers import AsyncIOScheduler for the Scheduler class
from asyncz.contrib.esmerald.decorator import scheduler for the decorator


Optionally, you can simply run `pip install esmerald[all]`

0.10.0

Not secure
Added

- `add_apiview` to the Esmerald class.
- [JSON](./responses.mdjson), [OrJSON](https://esmerald.dymmond.com/responses.md#orjson) and [UJSON](https://esmerald.dymmond.com/responses.md#ujson) responses [44](https://github.com/dymmond/esmerald/pull/44).

Changed

- `Template` now accepts an extra `alternative_template` for the cases of raising TemplateNotFound [44](https://github.com/dymmond/esmerald/pull/44).
- Removed `handle_status_code` internal functionality as it is no longer used.

Fixed

- `handler` type for Gateway and WebsocketGateway.
- The split bytes instead of b''.

Page 9 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.