Starlite

Latest version: v1.51.16

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

Scan your dependencies

Page 6 of 32

2.1.0

💰 Sponsors 💰
[GitHub Sponsors](https://github.com/sponsors/litestar-org/): benjamin-kirkbride crisog
[OpenCollective](https://opencollective.com/litestar): Christian Y, GitHub Sponsors, Shubham Prajapati, Snyk

🎉 New Contributors 🎉

* ddxv made their first contribution in https://github.com/litestar-org/litestar/pull/2194
* juan-riveros made their first contribution in https://github.com/litestar-org/litestar/pull/2191
* davidbrochart made their first contribution in https://github.com/litestar-org/litestar/pull/2247
* sean-donoghue made their first contribution in https://github.com/litestar-org/litestar/pull/2259
* sykloid made their first contribution in https://github.com/litestar-org/litestar/pull/2277
* benjamin-kirkbride made their first contribution in https://github.com/litestar-org/litestar/pull/2276
* wevonosky made their first contribution in https://github.com/litestar-org/litestar/pull/2268
* geeshta made their first contribution in https://github.com/litestar-org/litestar/pull/2298
* RobertRosca made their first contribution in https://github.com/litestar-org/litestar/pull/2329

What's Changed

➕ Features
* feat: make `302` the default `status_code` for redirect responses by cofin
in https://github.com/litestar-org/litestar/pull/2189
* feat(layered-include_in_schema): Add include_in_schema option for all layers by Alc-Alc
in https://github.com/litestar-org/litestar/pull/2295
* feat(deprecation): Adds deprecation warnings for `app` parameter when using `to_asgi_response` method of responses by wevonosky
in https://github.com/litestar-org/litestar/pull/2268

🔢 Features: Extras
* feat(contrib-jwt): Add parameters to set the JWT `extras` field by dialvarezs
in https://github.com/litestar-org/litestar/pull/2313
* feat(templates): add possibility to customize jinja environment by euri10 in https://github.com/litestar-org/litestar/pull/2195
* feat(templates): add minjinja by euri10 in https://github.com/litestar-org/litestar/pull/2250

📅 Features: SQLAlchemy
* feat(sqlalchemy): exclude implicit fields for sqlalchemy dto by abdulhaq-e in https://github.com/litestar-org/litestar/pull/2170
* feat(sqlalchemy): allow repository functions to be filter by expressions by cofin
in https://github.com/litestar-org/litestar/pull/2265
* feat(sqlalchemy): use `lambda_stmt` in the repository by cofin in https://github.com/litestar-org/litestar/pull/2179
* feat(sqlalchemy): swap to the `advanced_alchemy` implementations by cofin
in https://github.com/litestar-org/litestar/pull/2312

📚 Docs
* docs: updates htmx docs by cofin in https://github.com/litestar-org/litestar/pull/2202
* docs(DTO): Replace PartialDataDTO with DTOData by ddxv in https://github.com/litestar-org/litestar/pull/2194
* docs: update benchmarks by provinzkraut in https://github.com/litestar-org/litestar/pull/2198
* docs: add `app` to events usage example by juan-riveros in https://github.com/litestar-org/litestar/pull/2191
* docs(responses): fix cookie example reference by aorith in https://github.com/litestar-org/litestar/pull/2215
* docs(security): incorrect argument to Litestar by aorith in https://github.com/litestar-org/litestar/pull/2220
* docs: fix typo by davidbrochart in https://github.com/litestar-org/litestar/pull/2247
* docs: Miscellaneous fixes by sean-donoghue in https://github.com/litestar-org/litestar/pull/2259
* docs: Add `litestar-fullstack` to README and docs by odiseo0 in https://github.com/litestar-org/litestar/pull/2284
* docs: Fix async sessions, Pydantic V2 by geeshta in https://github.com/litestar-org/litestar/pull/2298
* docs(templates): Add missing sync_to_thread for examples by provinzkraut
in https://github.com/litestar-org/litestar/pull/2309
* docs(signature-namespace): Fix code block to render without removing the imports by Alc-Alc
in https://github.com/litestar-org/litestar/pull/2326
* docs: docs/update links by RobertRosca in https://github.com/litestar-org/litestar/pull/2329

🔧 Fixes
* fix: remove usages of deprecated ExceptionHandlerMiddleware `debug` parameter by provinzkraut
in https://github.com/litestar-org/litestar/pull/2192
* fix: raise ValidationException when pydantic validation fails by guacs
in https://github.com/litestar-org/litestar/pull/2204
* fix: set the max width of the console to the standard terminal width of 80. This helps prevent line wrapping in
certain cases. by cofin in https://github.com/litestar-org/litestar/pull/2244
* fix(schema): handling of optional path parameters by Goldziher in https://github.com/litestar-org/litestar/pull/2224
* fix: use os.replace instead of shutil.move for renaming file by guacs
in https://github.com/litestar-org/litestar/pull/2223
* fix: Exception detail attribute by gsakkis in https://github.com/litestar-org/litestar/pull/2231
* fix(sqlalchemy-repo): 2221 - Filters not available in `exists()` by nielsvanhooy
in https://github.com/litestar-org/litestar/pull/2228
* fix: add pydantic types to sqlalchemy registry only if pydantic is installed by guacs
in https://github.com/litestar-org/litestar/pull/2252
* fix: don't add content type for responses that don't have a body by guacs
in https://github.com/litestar-org/litestar/pull/2263
* fix: `SQLAlchemyPlugin` refactored. by cofin in https://github.com/litestar-org/litestar/pull/2269
* fix: Ensure app-dir is appended to path during autodiscovery. by sykloid
in https://github.com/litestar-org/litestar/pull/2277
* fix: set content length header by default by guacs in https://github.com/litestar-org/litestar/pull/2271
* fix: 2196 - incorrect handling of mutable headers in ASGIResponse by provinzkraut
in https://github.com/litestar-org/litestar/pull/2308
* fix: adds missing ORM registry export by cofin in https://github.com/litestar-org/litestar/pull/2316
* fix: bump version of advanced_alchemy by cofin in https://github.com/litestar-org/litestar/pull/2317
* fix: discrepency in attrs, msgspec and pydantic for multi-part forms by euri10
in https://github.com/litestar-org/litestar/pull/2280
* fix: set proper default for `exclude_http_methods` in auth middleware by guacs
in https://github.com/litestar-org/litestar/pull/2325
* fix(tests): fix platform compat tests by provinzkraut in https://github.com/litestar-org/litestar/pull/2310
* fix(tests): `RedisStore` test for `time-machine` 2.13.0 by provinzkraut
in https://github.com/litestar-org/litestar/pull/2342

🏛️ Misc / Infra / Tests / Other
* build: ignore all-contributorsrc from pre-commit prettier by cofin
in https://github.com/litestar-org/litestar/pull/2201
* refactor(structure): move the repository module from contrib to top-level by Goldziher
in https://github.com/litestar-org/litestar/pull/2238
* infra: Publish with PyPI's trusted publishers by provinzkraut in https://github.com/litestar-org/litestar/pull/2306
* test: use stricter pytest config by sobolevn in https://github.com/litestar-org/litestar/pull/2327
* test: use `xfail_strict` for pytest config by sobolevn in https://github.com/litestar-org/litestar/pull/2328
* test: fix `pydanticv2` deprecation warning in tests by sobolevn
in https://github.com/litestar-org/litestar/pull/2340
* test: silence `ResourceWarning` in `test_file_response` by sobolevn
in https://github.com/litestar-org/litestar/pull/2331

**Full Changelog**: https://github.com/litestar-org/litestar/compare/v2.0.0...v2.0.2x

2.0.1

💰 Sponsors 💰
[GitHub Sponsors](https://github.com/sponsors/litestar-org/): benjamin-kirkbride crisog
[OpenCollective](https://opencollective.com/litestar): Christian Y, GitHub Sponsors, Shubham Prajapati, Snyk

What's Changed

🔧 Fixes
* Fix warnings about deprecated `debug` parameter of `ExceptionHandlerMiddleware` by provinzkraut in https://github.com/litestar-org/litestar/pull/2193


**Full Changelog**: https://github.com/litestar-org/litestar/compare/v2.0.0...v2.0.1

2.0.0

This marks the first release of the new `2.x` release line. The `1.5x` releases will be supported until the release of `3.0`. Nevertheless, users are encouraged to upgrade to version 2.

What's Changed

Bugfixes
* Fix 2024 - `media_type` missing in error response by Goldziher in https://github.com/litestar-org/litestar/pull/2131
* Fix 2147 - setting app debug does not propagate to exception handling middleware by provinzkraut in https://github.com/litestar-org/litestar/pull/2153
* Fix static files not being served if a route handler with the same base path was registered by Goldziher in https://github.com/litestar-org/litestar/pull/2154
* Fix missing default values for `receive` and `send` parameters of `HTMXRequest` by tompin82 in https://github.com/litestar-org/litestar/pull/2145
* DTO: Fix 2125 - excluded attributes being accessed during transfer by provinzkraut in https://github.com/litestar-org/litestar/pull/2127
* DTO: Fix `DTOData.create_instance` ignores renaming by abdulhaq-e in https://github.com/litestar-org/litestar/pull/2144
* OpenAPI: Fix `application/octet-stream` set as `contentEncoding` instead of `contentMediaType` Goldziher in https://github.com/litestar-org/litestar/pull/2130
* OpenAPI: Fix response not preferring aliased fields by gsakkis in https://github.com/litestar-org/litestar/pull/2150
* OpenAPI: Fix examples not being generated deterministically by Goldziher in https://github.com/litestar-org/litestar/pull/2161
* OpenAPI: Fix example generation for Pydantic models by guacs in https://github.com/litestar-org/litestar/pull/2178
* SQLAlchemy repository: Handle dialects that don't support JSON by thiagozf in https://github.com/litestar-org/litestar/pull/2139
* JWT: Fix `OPTIONS` and `HEAD` being authenticated by default by Goldziher in https://github.com/litestar-org/litestar/pull/2160
* Fix `OPTIONS` and `HEAD` being authenticated by default for `SessionAuthMiddleware` by Mattwmaster58 in https://github.com/litestar-org/litestar/pull/2182


New Contributors
* thiagozf made their first contribution in https://github.com/litestar-org/litestar/pull/2139
* Mattwmaster58 made their first contribution in https://github.com/litestar-org/litestar/pull/2143

**Full Changelog**: https://github.com/litestar-org/litestar/compare/v2.0.0rc1...v2.0.0

2.0.0rc1

What's Changed


🎉 New Contributors 🎉
* mj0nez made their first contribution in https://github.com/litestar-org/litestar/pull/2036
* therealzanfar made their first contribution in https://github.com/litestar-org/litestar/pull/2058

New features
* Server-sent events by Goldziher in https://github.com/litestar-org/litestar/pull/2035
* SQLAlchemy repository: allow specifying `id_attribute` per method by cofin in https://github.com/litestar-org/litestar/pull/2052
* SQLAlchemy repository: `upsert_many` by cofin in https://github.com/litestar-org/litestar/pull/2056
* SQLAlchemy repository: New filters `OnBeforeAfter`, `NotInCollectionFilter` and `NotInSearchFilter` by cofin in https://github.com/litestar-org/litestar/pull/2057
* SQLAlchemy repository: Configurable chunk sizing for `delete_many` by cofin in https://github.com/litestar-org/litestar/pull/2061
* SQLAlchemy repository: Support `InstrumentedAttribute` for attribute columns by provinzkraut in https://github.com/litestar-org/litestar/pull/2054
* OpenAPI: support callable `operation_id` on route handlers by Goldziher in https://github.com/litestar-org/litestar/pull/2078
* Run event listeners concurrently by provinzkraut in https://github.com/litestar-org/litestar/pull/2083
* Plugin registry by provinzkraut in https://github.com/litestar-org/litestar/pull/2096
* CLI plugins by provinzkraut in https://github.com/litestar-org/litestar/pull/2066


Bugfixes
* SQLAlchemy repository: `health_check` generates valid statement for oracle by cofin in https://github.com/litestar-org/litestar/pull/2060
* Fix serialization of empty strings in multipart form by Goldziher in https://github.com/litestar-org/litestar/pull/2044
* Fix 2033 - Server-side session middleware overrides CSRF cookies by provinzkraut in https://github.com/litestar-org/litestar/pull/2069
* Fix base path escaping in channels on Windows by provinzkraut in https://github.com/litestar-org/litestar/pull/2112
* DTO: Support renamed fields in `DTOData` and `create_instance` by abdulhaq-e in https://github.com/litestar-org/litestar/pull/2065

Other changes
* Switch test clients to `debug=True` by default by Goldziher in https://github.com/litestar-org/litestar/pull/2049
* **BREAKING**: remove deprecated module `partial.py` by provinzkraut in https://github.com/litestar-org/litestar/pull/2113
* **BREAKING**: remove deprecated modules `dto/factory` and `contrib/msgspec` by provinzkraut in https://github.com/litestar-org/litestar/pull/2114

Changes to DTOs
**BREAKING**

This release introduces significant changes to the DTOs. This was necessary to address some bugs that came about because of some issues with the previous internal design. Unfortunately, these changes could not be made backwards compatible, but they are mostly superficial changes to the interfaces; Functionally DTOs still work the same.

The following breaking changes were introduced:

- `DTOInterface` has been removed
- `ForType` has been removed
- `AbstractDTOFactory` has been renamed to `AbstractDTO`

**Full Changelog**: https://github.com/litestar-org/litestar/compare/v2.0.0beta4...v2.0.0rc1

2.0.0beta4

What's Changed

Bugfix release containing a workaround for [a bug in poetry](https://github.com/python-poetry/poetry/issues/4401) that caused development / extra dependencies to be installed alongside the package.

This was fixed by Goldziher in https://github.com/litestar-org/litestar/pull/2029.

**Full Changelog**: https://github.com/litestar-org/litestar/compare/v2.0.0beta3...v2.0.0beta4

2.0.0beta3

Highlights

**As of this release, Pydantic is an optional dependency.**

What does that mean?
For you as an end user, not much; It is still supported in the same capacity as before, it's just not required anymore.
We have migrated all of our internals that previously relied on Pydantic (mainly for parsing and validation) to the amazing [msgspec](https://jcristharif.com/msgspec/) library, with Pydantic now being handled by an internal plugin.

The important thing is: Everything that has worked before with Pydantic will continue to work, and if you're not using Pydantic, but instead want to use attrs or pure msgspec, you won't have a required Pydantic dependency anymore.

**Pydantic 2 support**

Another change related to Pydantic is that this release adds support for Pydantic 2, which offers lots of improvements, new features and performance gains. Pydantic 1 is still fully supported and will be for the foreseeable future.

What's Changed

New features

* DTO: Support piccolo ORM with `PiccoloDTO` by Goldziher in https://github.com/litestar-org/litestar/pull/1896
* DTO: Add `include` option to `DTOConfig` by Goldziher in https://github.com/litestar-org/litestar/pull/1950
* SQLAlchemyDTO: column/relationship type inference by peterschutt in https://github.com/litestar-org/litestar/pull/1879
* SQLAlchemy repository: New `auto_commit`, `auto_refresh` and `auto_expunge` options by cofin in https://github.com/litestar-org/litestar/pull/1900
* Allow customization of `OpenAPIController.path` from `OpenAPIConfig` by jaykv in https://github.com/litestar-org/litestar/pull/1886
* Include path name in `ImproperlyConfiguredException` message for missing param type by euri10 in https://github.com/litestar-org/litestar/pull/1935



Bugfixes
* **Breaking** SQLAlchemy repository: Fix spanner support by renaming the `_sentinel` column to `sa_orm_sentinel` by cofin in https://github.com/litestar-org/litestar/pull/1933
* SQLAlchemy repository: Fix audit columns `created_at` and `updated_at` defaulting to app startup time by MatthewNewland in https://github.com/litestar-org/litestar/pull/1894
* SQLAlchemyDTO: Fix handling of `Sequence` with defaults by peterschutt in https://github.com/litestar-org/litestar/pull/1883
* DTO / OpenAPI: Fix detection of required fields for Pydantic and msgspec by abdulhaq-e in https://github.com/litestar-org/litestar/pull/1946
* Allow JSON as redirect response by cofin in https://github.com/litestar-org/litestar/pull/1908

Other changes
* **Breaking** Pin Redis to `>=4.4.4+ ` version by Goldziher in https://github.com/litestar-org/litestar/pull/1903
* **Breaking** Replace `Header`, `CacheControlHeader` and `ETag` Pydantic models with dataclasses by Tsdevendra1 in https://github.com/litestar-org/litestar/pull/1917
* **Breaking** `dto.factory.abc.AbstractDTOFactory` moved to `dto.factory.base.AbstractDTOFactory` by Goldziher in https://github.com/litestar-org/litestar/pull/1950
* **Breaking** Make Pydantic an optional extra by Goldziher in https://github.com/litestar-org/litestar/pull/1963
* Pydantic 2 support by Goldziher in https://github.com/litestar-org/litestar/pull/1956
* Deprecation of `partial` module by Goldziher in https://github.com/litestar-org/litestar/pull/2002

New Contributors
* jaykv made their first contribution in https://github.com/litestar-org/litestar/pull/1886
* Tsdevendra1 made their first contribution in https://github.com/litestar-org/litestar/pull/1917
* euri10 made their first contribution in https://github.com/litestar-org/litestar/pull/1935
* su-shubham made their first contribution in https://github.com/litestar-org/litestar/pull/1930
* erik-hasse made their first contribution in https://github.com/litestar-org/litestar/pull/1938
* sobolevn made their first contribution in https://github.com/litestar-org/litestar/pull/1954

**Full Changelog**: https://github.com/litestar-org/litestar/compare/v2.0.0beta2...v2.0.0beta3

Page 6 of 32

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.