github jcrist/msgspec 0.11.0
Version 0.11.0

latest releases: 0.18.6, 0.18.5, 0.18.4...
21 months ago
  • Improve performance of constructors for Struct types when using keyword arguments (#237).

  • Support constraints on dict keys for JSON (#239).

  • Add support for keyword-only arguments in Struct types, matching the behavior of kw_only for dataclasses (#242).

  • BREAKING: Change the parameter ordering rules used by Struct types to match the behavior of dataclasses. For most users this change shouldn't break anything. However, if your struct definitions have required fields after optional fields, you'll now get an error on import. This error can be fixed by either:

    • Reordering your fields so all required fields are before all optional fields
    • Using keyword-only parameters (by passing the kw_only=True option).

    See Field Ordering for more information (#242).

  • Support encoding/decoding dictionaries with integer keys for JSON (#243).

Don't miss a new msgspec release

NewReleases is sending notifications on new releases.