Esmerald

Latest version: v3.2.5

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

Scan your dependencies

Page 6 of 15

2.0.6

Changed

- Updated requirements for Pydantic and Starlette.
- Removed unnecessary dependencies.

Added

- Support for async `has_permission` on Permissions.
- Add new landing page.

Fixed

- `email-validator` error being thrown from `openapi-schemas-pydantic` requirement.

2.0.5

Changed

- Updated the way `esmerald` client operates internally.
- Updated internal minimum requirements.

Fix

- Regression in OpenAPI when adding middleware to `Gateway` or `HTTPHandler`. When a middleware
was added, the OpenAPI would not generate the docs for it. The API would still work but not OpenAPI
docs.

2.0.4

Changed

- Updated functional internal crypto to only use the system random.
- Cleaner codebase for the application settings.
- Updated version of Asyncz to be at least 0.5.0.

Added

- Custom exception handlers, `from esmerald.exception_handlers import value_error_handler`.
- New native exception handler for pydantic v2 Validation errors in general.
- Dataclasses (normal and Pydantic dataclases) are now supported as Esmerald Responses.
- Support for [OpenAPI Webhooks](./routing/webhooks.md).
- Improved [Responses](./responses.md) documentation with examples using Pydantic BaseModel and dataclasses.
- OpenAPI Spotlight Elements documentation. When starting the application, accesing the default `/docs/elements`.
- Support for [Edgy](https://edgy.tarsild.io) ORM. [Docs here](https://esmerald.dev/databases/edgy/motivation/).

Fixed

- Removed old pydantic v1 syntax from tests and applications.
- `add_include()` that wasn't generating signature models upon import.
- OpenAPI query params with defaults weren't loading properly.

2.0.3

This addition was supposed to go in the release [2.0.2](202) but somehow it was missed in the merge of
the pull requests. It is not a bug fix but instead is a simple new
[directive](https://esmerald.dev/directives/shell) that can be useful for those who like using the command-line.
It is important to understand that this support **won't be available on releases** of Esmerald
1.X.

Added

- [Interactive shell](https://esmerald.dev/directives/shell) support directive for any Esmerald application.

2.0.2

Changed

- Updated Field, Form and Body from `esmerald.params` with current defaults.
- Removed redundant cast from `File` to `Body` as it is a subclass.

Added

- Added `strict` and `max_digits` esmerald params `esmerald.params`.
- Deprecate `example` as OpenAPI 3.10 supports `examples`. Use examples instead of `example`.

Fixed

- [UploadFile](https://esmerald.dev/extras/upload-files/?h=upload#uploadfile) sending as a list and as normal.
This got broken when the migration to pydantic 2.0 happened.
- `File` and `Form` from `esmerald.params` now accept `annotation`.
- OpenAPI for `UploadFile` as single and list now being parsed as a model.

2.0.1

This is a small fix into the parser of lists for the OpenAPI specification.

Fixed

- [OpenAPIResponse](https://esmerald.dev/responses#openapi-responses) now allows proper parse of lists as definition. [More details](https://esmerald.dev/responses/#lists).

Page 6 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.