Releases: litestar-org/polyfactory
v2.13.0
❤️ Sponsors ❤️
GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry) @benjamin-kirkbride @crisog @geeshta
OpenCollective: Christian Y, Anonymous
What's Changed
New Features 🚀
Fixes 🔧
- Handle Optional types in
flatten_annotation
by @sam-or in #440 - Don't blindly suppress ValueError by @guacs in #450
New Contributors
Full Changelog: v2.12.0...v2.13.0
v2.12.0
❤️ Sponsors ❤️
GitHub Sponsors: Telemetry Sports (via @chris-telemetry) @benjamin-kirkbride @crisog @geeshta
OpenCollective: Christian Y, Anonymous
What's Changed
New Features 🚀
- Set
factory.__model__
as default formodel
argument increate_factory
by @g0di in #429 - Model type coverage generation by @sam-or in #390
Fixes 🔧
- Handle cases where 'init=False' for dataclasses and attrs models by @guacs in #433
- Correctly handle collections with constrained items by @guacs in #436
New Contributors
Full Changelog: v2.11.0...v2.12.0
v2.11.0
💰 Sponsors 💰
GitHub Sponsors: @benjamin-kirkbride @crisog
OpenCollective: Christian Y, Anonymous
What's Changed
New Features 🚀
- Check if fields declared on the factory belong to the model by @johnraz in #405
- Support annotation with
Constraints
by @guacs in #411 - Deprecate
FieldMeta
collection params by @adhtruong in #417
Fixes 🔧
- Handle
Required
andNonRequired
annotations inTypedDict
by @guacs in #422 - Respect override of optional nested model fields through
kwargs
passed to thebuild
method by @julioolvr in #420
Infra 🚆
- Update installation of dependencies for document generation by @adhtruong in #414
Documentation 📚
- Reorder documentation and add documentation on factories as fields by @adhtruong in #418
New Contributors
- @johnraz made their first contribution in #405
- @julioolvr made their first contribution in #420
Full Changelog: v2.10.0...v2.11.0
v2.10.0
💰 Sponsors 💰
GitHub Sponsors: @benjamin-kirkbride @crisog
OpenCollective: Christian Y, Anonymous
What's Changed
New Features 🚀
- Support SQLA14 by @adhtruong in #385
Fixes 🔧
- Properly resolve dataclass forward references by @guacs in #383
- Fix alternative version installation by @adhtruong in #389
- Decouple the handling of collection length configuration from
FieldMeta
by @guacs in #407 - Move creation of pydantic provider map by @guacs in #396
- Refactor the msgspec factory to use the fields API by @guacs in #409
Infra 🚆
- Install all dependencies for docs build by @adhtruong in #404
- Update makefile by @JacobCoffee in #399
- Migrate to pdm and full ruff by @JacobCoffee in #384
Full Changelog: v2.9.0...v2.10.0
v2.9.0
🎉 New Contributors 🎉
- @anthonyjgraff made their first contribution in #371
💰 Sponsors 💰
GitHub Sponsors: @benjamin-kirkbride, @crisog
OpenCollective: Christian Y, GitHub Sponsors, Shubham Prajapati, Snyk, Matteo
What's Changed
New Features 🚀
- Implement
sqlalchemy
factory by @adhtruong in #369
🔧 Fixes
- Properly type hint create_factory by @guacs in #360
- Properly handle stringified/forward annotations in
attrs
models by @guacs in #370 - Don't register
AttrsFactory
by default inattrs
models by @guacs in #370 - Handle
size=0
constraints for collections by @adhtruong in #373 - Use
dataclasses
API for parsingdataclass
models by @anthonyjgraff in #371
Infra 🚆
- Make
pytest
configuration stricter by @sobolevn in #363 - Enable publishing with PyPI trusted publishers by @provinzkraut in #368
- Skip variable length dict test for odmantic by @guacs in #372
- Ignore .all-contributorsrc for in .pre-commit by @adhtruong in #377
Full Changelog: v2.8.2...v2.9.0
v2.8.2
🎉 New Contributors 🎉
💰 Sponsors 💰
GitHub Sponsors: @benjamin-kirkbride, @crisog
OpenCollective: Christian Y, GitHub Sponsors, Shubham Prajapati, Snyk
What's Changed
🔧 Fixes
- fix: properly set annotation in union with Annotated constraints in subtypes by @guacs in #355
- fix: add minimum version constraint to attrs by @guacs in #359
📚 Documentation
Full Changelog: v2.8.1...v2.8.2
v2.8.1
What's Changed
Fixes 🔧
Docs 📄
- Explain all the factory configuration options by @adhtruong in #350
Infra 🚆
- Use full Python version for venv cache by @guacs in #352
- Bump actions/checkout from 3 to 4 by @dependabot in #349
Full Changelog: v2.8.0...v2.8.1
v2.8.0
🎉 New Contributors 🎉
What's Changed
New Features 🚀
- Added support for constraints for mapping types by @guacs in #337
- Added support for pydantic's date types by @185504a9 in #333
Fixes 🔧
Infra 🚆
- Updated dependencies by @Goldziher in #338
Full Changelog: v2.7.2...v2.8.0
v2.7.2
v2.7.1
🎉 New Contributors 🎉
- @klimantje made their first contribution in #319
- @tcrasset made their first contribution in #323
What's Changed
Infra 🚆
- infra: fix communiity health files by @JacobCoffee in #322
Fixes 🔧
- fix: add support for Json type in Pydantic factory by @guacs in #315
- fix: constrained strings not deterministic with seed because urandom not seedable by @klimantje in #319
- fix: random seed configuration by @guacs in #321
- fix: include Pydantic Field constraints when using Optional type by @tcrasset in #323
Full Changelog: v2.7.0...v2.7.1