Fastapi-filter

Latest version: v2.0.0

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

Scan your dependencies

Page 5 of 6

0.1.4

Main contribution

* Bump fastapi from 0.81.0 to 0.83.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/102

What's Changed
* Bump pytest from 7.1.2 to 7.1.3 by dependabot in https://github.com/arthurio/fastapi-filter/pull/98
* Bump ipython from 8.4.0 to 8.5.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/99
* Bump sqlalchemy from 1.4.40 to 1.4.41 by dependabot in https://github.com/arthurio/fastapi-filter/pull/100
* Bump faker from 14.1.1 to 14.2.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/96
* Bump black from 22.6.0 to 22.8.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/95
* Bump mkdocs-material from 8.4.2 to 8.4.4 by dependabot in https://github.com/arthurio/fastapi-filter/pull/104
* Bump sqlalchemy2-stubs from 0.0.2a26 to 0.0.2a27 by dependabot in https://github.com/arthurio/fastapi-filter/pull/94


**Full Changelog**: https://github.com/arthurio/fastapi-filter/compare/v0.1.3...v0.1.4

0.1.3

Main contribution

* Bump fastapi from 0.80.0 to 0.81.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/90

What's Changed
* Bump greenlet from 1.1.2 to 1.1.3 by dependabot in https://github.com/arthurio/fastapi-filter/pull/87
* Bump uvicorn from 0.18.2 to 0.18.3 by dependabot in https://github.com/arthurio/fastapi-filter/pull/86
* Bump types-setuptools from 65.1.0 to 65.3.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/88
* Bump faker from 14.1.0 to 14.1.1 by dependabot in https://github.com/arthurio/fastapi-filter/pull/92
* Bump sqlalchemy2-stubs from 0.0.2a25 to 0.0.2a26 by dependabot in https://github.com/arthurio/fastapi-filter/pull/89
* Bump mkdocs-material from 8.4.1 to 8.4.2 by dependabot in https://github.com/arthurio/fastapi-filter/pull/91


**Full Changelog**: https://github.com/arthurio/fastapi-filter/compare/v0.1.2...v0.1.3

0.1.2

Main contribution

* Bump fastapi from 0.79.0 to 0.80.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/84

Dependency updates

* Bump faker from 13.15.0 to 13.15.1 by dependabot in https://github.com/arthurio/fastapi-filter/pull/63
* Bump types-setuptools from 63.2.1 to 63.2.2 by dependabot in https://github.com/arthurio/fastapi-filter/pull/65
* Bump flake8-simplify from 0.19.2 to 0.19.3 by dependabot in https://github.com/arthurio/fastapi-filter/pull/66
* Bump flake8 from 4.0.1 to 5.0.4 by dependabot in https://github.com/arthurio/fastapi-filter/pull/71
* Bump types-setuptools from 63.2.2 to 63.4.1 by dependabot in https://github.com/arthurio/fastapi-filter/pull/75
* Bump types-setuptools from 63.4.1 to 64.0.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/77
* Bump faker from 13.15.1 to 14.0.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/76
* Bump sqlalchemy from 1.4.39 to 1.4.40 by dependabot in https://github.com/arthurio/fastapi-filter/pull/73
* Bump types-setuptools from 64.0.0 to 64.0.1 by dependabot in https://github.com/arthurio/fastapi-filter/pull/79
* Bump sqlalchemy2-stubs from 0.0.2a24 to 0.0.2a25 by dependabot in https://github.com/arthurio/fastapi-filter/pull/74
* Bump mkdocs-material from 8.3.9 to 8.4.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/78
* Bump faker from 14.0.0 to 14.1.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/81
* Bump types-setuptools from 64.0.1 to 65.1.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/83
* Bump mkdocs-material from 8.4.0 to 8.4.1 by dependabot in https://github.com/arthurio/fastapi-filter/pull/82


**Full Changelog**: https://github.com/arthurio/fastapi-filter/compare/v0.1.1...v0.1.2

0.1.1

Main contribution

* Support empty order_id= + perform validation for custom order_by field by arthurio in https://github.com/arthurio/fastapi-filter/pull/61

Bug fixes

* Handle passing empty `?order_by=`
* Fix validator for custom ordering field names

**Full Changelog**: https://github.com/arthurio/fastapi-filter/compare/v0.1.0...v0.1.1

0.1.0

🫱🏻‍🫲🏾 Main contributions

* 📦 Move ordering inside the Filter class and update tests, docs, and examples by arthurio in https://github.com/arthurio/fastapi-filter/pull/58

✨ Updates

- `order_by` is now part of the Filter class so that you don't have to manage them separately.
- You can add a validator to restrict which fields can be sortable (returns a 422 if invalid as opposed to 500 before)
- `order_by` is now a `list[str]` instead of `str` that you have to manually parse
- Prevent using twice the same field name for ordering (e.g. can't do `?order_by=name,-name` or `?order_by=name,age,name`)
- Docs are updated and `order_by` section has some stuff now
- Added more tests
- You can change the default name (`order_by`) for ordering by overriding `Filter.Constants.ordering_field_name`

🚨 Breaking changes

- We now use `Constants.model` everywhere (instead of `model` for SQLAlchemy and `collection` for MongoEngine)
- The `Constants` class has to inherit from parent or redefine all the fields. (`class Constants(Filter.Constants):`).
- `OrderBy` no longer exists, just add `order_by: list[str] | None` to your filters if you want to add ordering capabilities.

🔗 Dependency updates
* Bump requests from 2.28.0 to 2.28.1 by dependabot in https://github.com/arthurio/fastapi-filter/pull/40
* Bump ujson from 5.2.0 to 5.4.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/43
* Bump typing-extensions from 4.2.0 to 4.3.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/41
* Bump python-lsp-server from 1.4.1 to 1.5.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/47
* Bump pytest-asyncio from 0.18.3 to 0.19.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/54
* Bump mongoengine from 0.24.1 to 0.24.2 by dependabot in https://github.com/arthurio/fastapi-filter/pull/51
* Bump pudb from 2022.1.1 to 2022.1.2 by dependabot in https://github.com/arthurio/fastapi-filter/pull/56
* Bump mkdocs-material from 8.3.8 to 8.3.9 by dependabot in https://github.com/arthurio/fastapi-filter/pull/42
* Bump mkdocs from 1.3.0 to 1.3.1 by dependabot in https://github.com/arthurio/fastapi-filter/pull/57
* Bump faker from 13.14.0 to 13.15.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/44
* Bump types-setuptools from 57.4.18 to 63.2.1 by dependabot in https://github.com/arthurio/fastapi-filter/pull/53
* Bump pre-commit from 2.19.0 to 2.20.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/45
* Bump mypy from 0.961 to 0.971 by dependabot in https://github.com/arthurio/fastapi-filter/pull/55
* Bump fastapi from 0.78.0 to 0.79.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/50
* Bump sqlalchemy-utils from 0.38.2 to 0.38.3 by dependabot in https://github.com/arthurio/fastapi-filter/pull/48


**Full Changelog**: https://github.com/arthurio/fastapi-filter/compare/v0.0.4...v0.1.0

0.0.4

Main contributions

* Allow top level prefixed filters by arthurio in https://github.com/arthurio/fastapi-filter/pull/37

Features

* You can now use `FilterDepends(with_prefix("my_prefix", MyFilter), by_alias=True)` to use a filter with a prefix in your routes.
* `by_alias` parameter was added to `FilterDepends`
* You can now filter related documents with mongoengine.

Breaking change

* `nested_filter` has been renamed to `with_prefix`

Dependency updates
* Bump pydantic from 1.9.0 to 1.9.1 by dependabot in https://github.com/arthurio/fastapi-filter/pull/5
* Bump sqlalchemy from 1.4.36 to 1.4.37 by dependabot in https://github.com/arthurio/fastapi-filter/pull/14
* Bump ipython from 8.3.0 to 8.4.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/13
* Bump mypy from 0.950 to 0.960 by dependabot in https://github.com/arthurio/fastapi-filter/pull/9
* Bump httpx from 0.22.0 to 0.23.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/7
* Bump faker from 13.11.1 to 13.12.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/8
* Bump mkdocs-material from 8.2.15 to 8.3.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/15
* Bump mkdocs-material from 8.3.0 to 8.3.8 by dependabot in https://github.com/arthurio/fastapi-filter/pull/34
* Bump pymdown-extensions from 9.4 to 9.5 by dependabot in https://github.com/arthurio/fastapi-filter/pull/19
* Bump faker from 13.12.0 to 13.14.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/28
* Bump requests from 2.27.1 to 2.28.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/22
* Bump types-setuptools from 57.4.14 to 57.4.18 by dependabot in https://github.com/arthurio/fastapi-filter/pull/33
* Bump black from 22.3.0 to 22.6.0 by dependabot in https://github.com/arthurio/fastapi-filter/pull/36
* Bump mypy from 0.960 to 0.961 by dependabot in https://github.com/arthurio/fastapi-filter/pull/18
* Bump sqlalchemy from 1.4.37 to 1.4.39 by dependabot in https://github.com/arthurio/fastapi-filter/pull/32
* Bump sqlalchemy2-stubs from 0.0.2a22 to 0.0.2a24 by dependabot in https://github.com/arthurio/fastapi-filter/pull/25
* Bump uvicorn from 0.17.6 to 0.18.2 by dependabot in https://github.com/arthurio/fastapi-filter/pull/35

**Full Changelog**: https://github.com/arthurio/fastapi-filter/compare/v0.0.3...v0.0.4

Page 5 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.