Skip to content

Releases: litestar-org/polyfactory

v2.16.0

13 May 16:20
4928f07
Compare
Choose a tag to compare

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

Fixes 🔧

New Features 🚀

Docs 📚

Infra 🚆

Full Changelog: v2.15.0...v2.16.0

v2.15.0

02 Mar 14:32
1d1c7f9
Compare
Choose a tag to compare

❤️ Sponsors ❤️

GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (https://github.com/stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm
OpenCollective: Christian Y, Anonymous

What's Changed

Fixes 🔧

  • fix: prefer sqlalchemy.type.impl if it exists by @cofin in #502
  • fix: constrained unions by @guacs in #499

New Features 🚀

  • feat: support Pydantic v1 and v2 simultaneously by @guacs in #492

Docs 📚

New Contributors

Full Changelog: v2.14.1...v2.15.0

v2.14.1

20 Jan 11:51
b44c68b
Compare
Choose a tag to compare

❤️ Sponsors ❤️
GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (https://github.com/stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm
OpenCollective: Christian Y, Anonymous

What's Changed

Fixes 🔧

  • Fix the handling of union types by @guacs in #491

Full Changelog: v2.14.0...v2.14.1

v2.14.0

19 Jan 03:13
83f2992
Compare
Choose a tag to compare

❤️ Sponsors ❤️

GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm
OpenCollective: Christian Y, Anonymous

What's Changed

New Features 🚀

  • Use the default value if available and __use_default__ is set to True by @guacs in #472
  • Add support for recursive models by @adhtruong in #468
  • Add support for Python 3.12 type alias syntax by @adhtruong in #487

Fixes 🔧

  • Pin typing-extensions to a minimum version of 4.6.0 by @hsorsky in #471
  • Set as default type for factory only if model is defined by @guacs in #479
  • Properly pass factory configurations to child factories by @adhtruong in #483

Docs 📚

Infra 🚆

New Contributors

Full Changelog: v2.13.0...v2.14.0

v2.13.0

19 Dec 04:42
8dc8e1a
Compare
Choose a tag to compare

❤️ Sponsors ❤️

GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry) @benjamin-kirkbride @crisog @geeshta
OpenCollective: Christian Y, Anonymous

What's Changed

New Features 🚀

  • Infer __model__ from generic type args by @Mityuha in #452

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

13 Nov 05:56
fe05c4e
Compare
Choose a tag to compare

❤️ 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 for model argument in create_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

23 Oct 14:01
b7b88a8
Compare
Choose a tag to compare

💰 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 and NonRequired annotations in TypedDict by @guacs in #422
  • Respect override of optional nested model fields through kwargs passed to the build 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

Full Changelog: v2.10.0...v2.11.0

v2.10.0

16 Oct 03:28
63aa272
Compare
Choose a tag to compare

💰 Sponsors 💰

GitHub Sponsors: @benjamin-kirkbride @crisog
OpenCollective: Christian Y, Anonymous

What's Changed

New Features 🚀

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 🚆

Full Changelog: v2.9.0...v2.10.0

v2.9.0

19 Sep 03:08
f2c6fe1
Compare
Choose a tag to compare

🎉 New Contributors 🎉

💰 Sponsors 💰

GitHub Sponsors: @benjamin-kirkbride, @crisog
OpenCollective: Christian Y, GitHub Sponsors, Shubham Prajapati, Snyk, Matteo

What's Changed

New Features 🚀

🔧 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 in attrs models by @guacs in #370
  • Handle size=0 constraints for collections by @adhtruong in #373
  • Use dataclasses API for parsing dataclass models by @anthonyjgraff in #371

Infra 🚆

Full Changelog: v2.8.2...v2.9.0

v2.8.2

16 Sep 02:56
ebf30ff
Compare
Choose a tag to compare

🎉 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

  • docs: change the comment length in "Handling custom types" docs by @sobolevn in #361

Full Changelog: v2.8.1...v2.8.2