Skip to content

Releases: litestar-org/polyfactory

v2.17.0

22 Sep 09:15
37a9894
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

Full Changelog: v2.16.2...v2.17.0

v2.16.2

09 Jul 05:42
67c5720
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

Fixes 🔧

  • Nested model in collection build context by @sam-or in #564

Full Changelog: v2.16.1...v2.16.2

v2.16.1

08 Jul 03:47
23281ee
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 🔧

  • 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 🚆

Full Changelog: v2.16.0...v2.16.1

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