Releases: arthurio/fastapi-filter
Releases · arthurio/fastapi-filter
Update Fastapi latest supported version to 0.85
Main contribution
- Bump fastapi from 0.84.0 to 0.85.0 by @dependabot in #110
What's Changed
- Bump mkdocs-material from 8.5.0 to 8.5.1 by @dependabot in #111
Full Changelog: v0.1.5...v0.1.6
Update Fastapi latest supported version to 0.84
Main contribution
- Bump fastapi from 0.83.0 to 0.84.0 by @dependabot in #107
What's Changed
- Bump mkdocs-material from 8.4.4 to 8.5.0 by @dependabot in #106
Full Changelog: v0.1.4...v0.1.5
Update Fastapi latest supported version to 0.83
Main contribution
- Bump fastapi from 0.81.0 to 0.83.0 by @dependabot in #102
What's Changed
- Bump pytest from 7.1.2 to 7.1.3 by @dependabot in #98
- Bump ipython from 8.4.0 to 8.5.0 by @dependabot in #99
- Bump sqlalchemy from 1.4.40 to 1.4.41 by @dependabot in #100
- Bump faker from 14.1.1 to 14.2.0 by @dependabot in #96
- Bump black from 22.6.0 to 22.8.0 by @dependabot in #95
- Bump mkdocs-material from 8.4.2 to 8.4.4 by @dependabot in #104
- Bump sqlalchemy2-stubs from 0.0.2a26 to 0.0.2a27 by @dependabot in #94
Full Changelog: v0.1.3...v0.1.4
Update Fastapi latest supported version to 0.82
Main contribution
- Bump fastapi from 0.80.0 to 0.81.0 by @dependabot in #90
What's Changed
- Bump greenlet from 1.1.2 to 1.1.3 by @dependabot in #87
- Bump uvicorn from 0.18.2 to 0.18.3 by @dependabot in #86
- Bump types-setuptools from 65.1.0 to 65.3.0 by @dependabot in #88
- Bump faker from 14.1.0 to 14.1.1 by @dependabot in #92
- Bump sqlalchemy2-stubs from 0.0.2a25 to 0.0.2a26 by @dependabot in #89
- Bump mkdocs-material from 8.4.1 to 8.4.2 by @dependabot in #91
Full Changelog: v0.1.2...v0.1.3
Update Fastapi supported versions
Main contribution
- Bump fastapi from 0.79.0 to 0.80.0 by @dependabot in #84
Dependency updates
- Bump faker from 13.15.0 to 13.15.1 by @dependabot in #63
- Bump types-setuptools from 63.2.1 to 63.2.2 by @dependabot in #65
- Bump flake8-simplify from 0.19.2 to 0.19.3 by @dependabot in #66
- Bump flake8 from 4.0.1 to 5.0.4 by @dependabot in #71
- Bump types-setuptools from 63.2.2 to 63.4.1 by @dependabot in #75
- Bump types-setuptools from 63.4.1 to 64.0.0 by @dependabot in #77
- Bump faker from 13.15.1 to 14.0.0 by @dependabot in #76
- Bump sqlalchemy from 1.4.39 to 1.4.40 by @dependabot in #73
- Bump types-setuptools from 64.0.0 to 64.0.1 by @dependabot in #79
- Bump sqlalchemy2-stubs from 0.0.2a24 to 0.0.2a25 by @dependabot in #74
- Bump mkdocs-material from 8.3.9 to 8.4.0 by @dependabot in #78
- Bump faker from 14.0.0 to 14.1.0 by @dependabot in #81
- Bump types-setuptools from 64.0.1 to 65.1.0 by @dependabot in #83
- Bump mkdocs-material from 8.4.0 to 8.4.1 by @dependabot in #82
Full Changelog: v0.1.1...v0.1.2
🐛 Bug fix - empty ordering
Main contribution
Bug fixes
- Handle passing empty
?order_by=
- Fix validator for custom ordering field names
Full Changelog: v0.1.0...v0.1.1
Merge ordering and filtering under the same class
🫱🏻🫲🏾 Main contributions
✨ 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 alist[str]
instead ofstr
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 overridingFilter.Constants.ordering_field_name
🚨 Breaking changes
- We now use
Constants.model
everywhere (instead ofmodel
for SQLAlchemy andcollection
for MongoEngine) - The
Constants
class has to inherit from parent or redefine all the fields. (class Constants(Filter.Constants):
). OrderBy
no longer exists, just addorder_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 #40
- Bump ujson from 5.2.0 to 5.4.0 by @dependabot in #43
- Bump typing-extensions from 4.2.0 to 4.3.0 by @dependabot in #41
- Bump python-lsp-server from 1.4.1 to 1.5.0 by @dependabot in #47
- Bump pytest-asyncio from 0.18.3 to 0.19.0 by @dependabot in #54
- Bump mongoengine from 0.24.1 to 0.24.2 by @dependabot in #51
- Bump pudb from 2022.1.1 to 2022.1.2 by @dependabot in #56
- Bump mkdocs-material from 8.3.8 to 8.3.9 by @dependabot in #42
- Bump mkdocs from 1.3.0 to 1.3.1 by @dependabot in #57
- Bump faker from 13.14.0 to 13.15.0 by @dependabot in #44
- Bump types-setuptools from 57.4.18 to 63.2.1 by @dependabot in #53
- Bump pre-commit from 2.19.0 to 2.20.0 by @dependabot in #45
- Bump mypy from 0.961 to 0.971 by @dependabot in #55
- Bump fastapi from 0.78.0 to 0.79.0 by @dependabot in #50
- Bump sqlalchemy-utils from 0.38.2 to 0.38.3 by @dependabot in #48
Full Changelog: v0.0.4...v0.1.0
Support top level prefixed filters
Main contributions
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 toFilterDepends
- You can now filter related documents with mongoengine.
Breaking change
nested_filter
has been renamed towith_prefix
Dependency updates
- Bump pydantic from 1.9.0 to 1.9.1 by @dependabot in #5
- Bump sqlalchemy from 1.4.36 to 1.4.37 by @dependabot in #14
- Bump ipython from 8.3.0 to 8.4.0 by @dependabot in #13
- Bump mypy from 0.950 to 0.960 by @dependabot in #9
- Bump httpx from 0.22.0 to 0.23.0 by @dependabot in #7
- Bump faker from 13.11.1 to 13.12.0 by @dependabot in #8
- Bump mkdocs-material from 8.2.15 to 8.3.0 by @dependabot in #15
- Bump mkdocs-material from 8.3.0 to 8.3.8 by @dependabot in #34
- Bump pymdown-extensions from 9.4 to 9.5 by @dependabot in #19
- Bump faker from 13.12.0 to 13.14.0 by @dependabot in #28
- Bump requests from 2.27.1 to 2.28.0 by @dependabot in #22
- Bump types-setuptools from 57.4.14 to 57.4.18 by @dependabot in #33
- Bump black from 22.3.0 to 22.6.0 by @dependabot in #36
- Bump mypy from 0.960 to 0.961 by @dependabot in #18
- Bump sqlalchemy from 1.4.37 to 1.4.39 by @dependabot in #32
- Bump sqlalchemy2-stubs from 0.0.2a22 to 0.0.2a24 by @dependabot in #25
- Bump uvicorn from 0.17.6 to 0.18.2 by @dependabot in #35
Full Changelog: v0.0.3...v0.0.4
🚀 First automated release
Supported filters and order_by orms/odms
- mongoengine
- sqlalchemy