Releases: litestar-org/polyfactory
v2.22.1
What's Changed
- fix: handle recursive types that use ForwardRef by @adhtruong in #728
- fix: deprecation error not silenced when overridden by @adhtruong in #724
- chore(release): bump to v2.22.1 by @adhtruong in #732
Full Changelog: v2.22.0...v2.22.1
v2.22.0
What's Changed
- chore: remove usage of _AnnotatedAlias by @adhtruong in #693
- chore: warn on deprecated parameter usage by @adhtruong in #689
- feat: Allow usage of Pydantic models containing forward references by @marcuslimdw in #698
- chore(deps): bump astral-sh/setup-uv from 5 to 6 by @dependabot in #696
- docs: add marcuslimdw as a contributor for code by @allcontributors in #699
- refactor: make type utils deterministic by @adhtruong in #688
- perf: avoid deep copy by @adhtruong in #702
- fix: test by adding inheritance in Child class from Parent by @Rub1kCube in #706
- docs: add Rub1kCube as a contributor for test by @allcontributors in #708
- chore(deps): bump dawidd6/action-download-artifact from 9 to 10 by @dependabot in #709
- fix: Generate correct collection size when annotation_types.Len is used by @priyankc in #712
- chore(deps): bump dawidd6/action-download-artifact from 10 to 11 by @dependabot in #714
- fix: no blank children names by @iloveitaly in #666
- feat: add PEP 695 type alias support and improve type handling by @Rub1kCube in #711
- chore(release): bump to v2.22.0 by @adhtruong in #722
New Contributors
- @marcuslimdw made their first contribution in #698
- @Rub1kCube made their first contribution in #706
- @priyankc made their first contribution in #712
Full Changelog: v2.21.0...v2.22.0
v2.21.0
Sponsors 🌟
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
What's Changed
Bug Fixes
(4ae69c8) - Handle pydantic v1 URL and email correctly (#685) by @Xdynix in #685
(18d8579) - Make type alias detection work with typing_extensions 4.13 (#684) by @airwoodix in #684
### Features
(9940230) - Document overriding SQLA column mapping (#671) by @adhtruong in #671
(cc789b5) - Support new type and annotated mapping (#680) by @adhtruong in #680
(36395d9) - Issue 678 use pydantic field examples (#679) by @stardust85 in #679
(02fed72) - Add release command (#687) by @adhtruong in #687
Miscellaneous Tasks
(e0c6941) - Remove sonar (#672) by @adhtruong in #672
Refactor
(00aa862) - Deprecate FieldMeta.random (#663) by @adhtruong in #663
(ade1115) - Migrate to typos (#675) by @adhtruong in #675
New Contributors
- @Xdynix made their first contribution in #685
- @airwoodix made their first contribution in #684
- @stardust85 made their first contribution in #679
Full Changelog: v2.20.0...v2.21.0
v2.20.0
Sponsors 🌟
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
What's Changed
### New Features 🚀
- feat: described an ability to use async data in factory fields; refactored factories/base and some tests by @nisemenov in #641
- feat: simplify pytest plugin by @adhtruong in #652
- feat: add_providers to easily add new type provider by @iloveitaly in #659
- feat: improve random range by @adhtruong in #653
- feat: improve create factory typing by @adhtruong in #657
### Fixes 🔧
- fix: allow non-hashable type args by @adhtruong in #643
- fix(pyproject.toml): dont allow faker version less then 5.0.0 by @T0nd0Tara in #646
- build: update dependencies and ignores by @adhtruong in #648
- fix(#634): added a generate function to support SQL Numeric field by @nisemenov in #636
- fix: ignore dataclass types in pydantic field parsing by @adhtruong in #660
New Contributors
- @T0nd0Tara made their first contribution in #646
- @iloveitaly made their first contribution in #659
Full Changelog: v2.19.0...v2.20.0
v2.19.0
Sponsors 🌟
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
What's Changed
New Features 🚀
- feat(sqla_factory): added set_association_proxy attribute by @nisemenov in #629
Fixes 🔧
- fix: lock PDM version to support 3.8 by @adhtruong in #609
- fix: update security alert by @adhtruong in #615
- fix: Pydantic 2.10 compatibility by @adhtruong in #613
- fix: ensure ABC are not considered a factory type by @adhtruong in #628
- fix(sqla_factory): added an async context manager in SQLAASyncPersistence by @nisemenov in #630
Infra 🚆
- build: update pre-commit dependencies by @adhtruong in #614
- build: migrate to uv by @adhtruong in #612
- chore(deps): bump astral-sh/setup-uv from 4 to 5 by @dependabot in #622
- refactor: update Pydantic imports by @adhtruong in #625
- build: support 3.13 by @adhtruong in #599
- chore(deps): bump dawidd6/action-download-artifact from 3 to 7 by @dependabot in #619
- build: change deprecated action by @adhtruong in #626
New Contributors
- @nisemenov made their first contribution in #630
Full Changelog: v2.18.1...v2.19.0
v2.18.1
Sponsors 🌟
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
What's Changed
- fix: handle nullable SQLA constraints by @adhtruong in #602
- chore(release): bump release version by @adhtruong in #608
Full Changelog: v2.18.0...v2.18.1
v2.18.0
Sponsors 🌟
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
What's Changed
New Features 🚀
- Handle SQLA column constraints by @adhtruong in #594
Infra 🚆
- Update docs preview upload by @adhtruong in #597
- Add SQLA async to test dependencies by @adhtruong in #595
Full Changelog: v2.17.0...v2.18.0
v2.17.0
Sponsors 🌟
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
What's Changed
- fix: constrained 0 length lists by @marcozzxx810 in #570
- build: update pre-commit dependencies by @adhtruong in #571
- fix: use provider map for any in coverage by @adhtruong in #574
- fix: tuple randomized length by @adhtruong in #573
- feat(#579): enhance register_fixture return type annotation by @giulioindev in #581
- docs: swap word with its antonym to match the context by @UncleGoogle in #575
- fix: Adjust min/max items to valid lengths for Set[Enum] fields by @adrianeboyd in #567
- fix: handle Optional type recursive models by @adhtruong in #584
- fix: handle recursive collections by @adhtruong in #587
- chore(release): bump release version by @adhtruong in #588
New Contributors
- @marcozzxx810 made their first contribution in #570
- @giulioindev made their first contribution in #581
- @UncleGoogle made their first contribution in #575
- @adrianeboyd made their first contribution in #567
Full Changelog: v2.16.2...v2.17.0
v2.16.2
Sponsors 🌟
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
What's Changed
Fixes 🔧
Full Changelog: v2.16.1...v2.16.2
v2.16.1
Sponsors 🌟
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
What's Changed
New Contributors
- @Alc-Alc made their first contribution in #547
- @Reskov made their first contribution in #549
- @Vegemash made their first contribution in #561
Fixes 🔧
- Use provider map for generating value for 'Any' by @guacs in #522
- Pydantic factory_use_construct is not propagated to the nested by @Reskov in #549
- Send correct field_meta to avoid over nesting in coverage by @Vegemash in #527
Docs 📚
Infra 🚆
- Migrate formatting to ruff by @adhtruong in #554
- Bump pydantic version by @Vegemash in #561
Full Changelog: v2.16.0...v2.16.1