Skip to content

Bump djangorestframework-dataclasses from 1.1.1 to 1.4.0#163

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/djangorestframework-dataclasses-1.4.0
Open

Bump djangorestframework-dataclasses from 1.1.1 to 1.4.0#163
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/djangorestframework-dataclasses-1.4.0

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Mar 2, 2026

Bumps djangorestframework-dataclasses from 1.1.1 to 1.4.0.

Release notes

Sourced from djangorestframework-dataclasses's releases.

v1.4.0

Features & fixes:

  • Support type aliases defined using the type statement (PEP 695).
  • Fix type hint for child_fields parameter of UnionField to accept Field subclasses.

v1.3.1

Features & fixes:

  • Fix inclusion of py.typed in wheel.

v1.3.0

Breaking changes:

  • The type annotations now require mypy 1.0 or higher to validate correctly.

Features & fixes:

  • Create values for fields of non-list or dict composite types (such as frozenset or OrderedDict) as that type, instead of list or dict.
  • Allow overriding the field for specific composite types through the serializer_field_mapping dictionary.
  • Don't set optional fields to rest_framework.fields.empty sentinel value when used in non-partial mode. This fixes occasional leaks of the sentinel into dataclasses returned to the user, for example when a DataclassSerializer was nested inside a regular serializer. Not setting, and later stripping, the sentinels also increases performance.
  • Support dataclasses with fields that have init=False.
  • Support save() on serializers with many=True.
  • Support for fields with union types.
  • Support nested serializers with source='*'.
  • Fix child_kwargs defined in dataclass field metadata (as opposed to extra_kwargs field on Meta subclass).

v1.2.0

  • Allow all types, including special forms such as unions, to have their field type overridden through the serializer_field_mapping dictionary.
  • Also treat unions containing None as optional if they consist of three or more members. Previously this was only the case for unions with two members (i.e. only unions of a type with None were optional).
  • Many added and fixed type hints.
Changelog

Sourced from djangorestframework-dataclasses's changelog.

1.4.0, 14 May 2025

Features & fixes:

  • Support type aliases defined using the type statement (PEP 695).
  • Fix type hint for child_fields parameter of UnionField to accept Field subclasses.

1.3.1, 12 September 2023

Features & fixes:

  • Fix inclusion of py.typed in wheel.

1.3.0, 21 August 2023

Breaking changes:

  • The type annotations now require mypy 1.0 or higher to validate correctly.

Features & fixes:

  • Create values for fields of non-list or dict composite types (such as frozenset or OrderedDict) as that type, instead of list or dict.
  • Allow overriding the field for specific composite types through the serializer_field_mapping dictionary.
  • Don't set optional fields to rest_framework.fields.empty sentinel value when used in non-partial mode. This fixes occasional leaks of the sentinel into dataclasses returned to the user, for example when a DataclassSerializer was nested inside a regular serializer. Not setting, and later stripping, the sentinels also increases performance.
  • Support dataclasses with fields that have init=False.
  • Support save() on serializers with many=True.
  • Support for fields with union types.
  • Support nested serializers with source='*'.
  • Fix child_kwargs defined in dataclass field metadata (as opposed to extra_kwargs field on Meta subclass).

1.2.0, 18 November 2022

Features & fixes:

  • Allow all types, including special forms such as unions, to have their field type overridden through the serializer_field_mapping dictionary.
  • Also treat unions containing None as optional if they consist of three or more members. Previously this was only the case for unions with two members (i.e. only unions of a type with None were optional).
  • Many added and fixed type hints.
Commits
  • 8371be4 Release v1.4.0
  • b1ce694 Remove versioned classifiers
  • 35b2e0c Merge pull request #95 from ROCKTAKEY/fix-union-field-type
  • ad82f6c Allow subclass of Field as value of child_fields
  • b18c3b7 Merge pull request #96 from oxan/update-test-matrix
  • d0df39c Add Django 5.2 and DRF 3.16 to CI
  • 35b64b1 Merge branch 'update-mypy'
  • 418e255 Raise mypy version to 1.15
  • adefa7a Remove unsupported versions from test matrix
  • 6c222a2 Add Python 3.14-dev to test matrix
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [djangorestframework-dataclasses](https://github.com/oxan/djangorestframework-dataclasses) from 1.1.1 to 1.4.0.
- [Release notes](https://github.com/oxan/djangorestframework-dataclasses/releases)
- [Changelog](https://github.com/oxan/djangorestframework-dataclasses/blob/master/CHANGELOG.rst)
- [Commits](oxan/djangorestframework-dataclasses@v1.1.1...v1.4.0)

---
updated-dependencies:
- dependency-name: djangorestframework-dataclasses
  dependency-version: 1.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants