Skip to content

3.0.0rc1

Pre-release
Pre-release
Compare
Choose a tag to compare
@eigenein eigenein released this 04 Nov 16:53
· 94 commits to main since this release

Notable changes

  • Response markers allow transforming response payload before validating it with a model. This release includes the basic built-in Map and StatusCodeMixin markers as a proof-of-concept. More response markers will be added before 3.0.0 to restore similar functionality from 2.x
  • Preparation work to reduce coupling to Pydantic. Simple types, which are not data classes or models, are already supported without a need to wrap them into BaseModel
  • Fixed the critical bug when Combadge failed on non-dict responses
  • Re-organized documentation

Migrating Protocol classes from 2.x

  • Replace Json and JsonField markers with Payload and Field, correspondingly

All changes

💥 Breaking changes

  • BREAK: refactor BaseBackendRequest by @eigenein in #66
  • BREAK: refactor request mixins and markers by @eigenein in #67
  • BREAK: get rid of the marker shortcuts 🧚 by @eigenein in #72

⚡️ Improvements

🐛 Fixes

🎨 Other changes

  • OPT: Update all non-major dependencies ⬆️ by @renovate in #63
  • OPT: extract combadge.core.BaseRequest by @eigenein in #65
  • OPT: refactor Signature by @eigenein in #69
  • OPT: missing return type does not need to be wrapped into RootModel by @eigenein in #70
  • OPT: replace RootModel with TypeAdapter by @eigenein in #76
  • OPT: remove RootModel where it is unnecessary by @eigenein in #82

Full Changelog: 2.0.1...3.0.0rc1