Serpyco-rs

Latest version: v1.11.0

Safety actively analyzes 681881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 9

1.5.0

Bug Fixes:

**Fixed Error with `force_default_for_optional`**: We have addressed an issue where using `force_default_for_optional` caused errors. This fix ensures that the functionality works as intended without any unexpected errors.

Enhancements:

**Improved Error Messages for Dataclass Fields**: Error messages for dataclass fields have been enhanced in this release. Now, the instance_path will include the full path to the field, providing more detailed information for easier debugging and troubleshooting.

**Enhanced Resolution of Generics**: We have improved the resolution of generics for complex inheritance hierarchies. This enhancement ensures better compatibility and accuracy when working with complex class structures and generic types.

---

**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.4.0...v1.5.0

1.4.0

New Feature:

**Support Optional Union Type**: In this release, we have added support for optional union types. You can now specify optional union types using the syntax `Type1 | Type2 | None`. For example, `Foo | list[Foo] | None` indicates that the value can be either a `Foo`, a list of `Foo`, or `None`.


**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.3.0...v1.4.0

1.3.0

Updates and Enhancements:

**Migration to New Safe Bound AP**I: In this release, we have migrated to the new safe Bound API provided by pyo3. Previously, the library utilized a significant amount of unsafe code and directly manipulated reference counts of Python objects. This migration enhances safety by reducing the likelihood of errors related to reference count manipulation, leading to more robust code.

**Query Parameter Deserialization from MultiDict-Like Structures**: We have introduced a new feature that allows for the deserialization of query parameters from MultiDict-like structures. This feature enables the direct conversion of query parameters from string representations, providing more flexibility and ease of use when handling query parameters in requests.

**PGO-Enabled Wheel Builds**: With this release, we now build wheels with Profile-Guided Optimization (PGO), resulting in performance improvements of up to 20% in various use cases. PGO optimizes the generated machine code based on profiling data collected during test runs, leading to better performance across different scenarios.


**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.2.0...v1.3.0

1.2.0

Enhancements:
**Expanded Union Type Support**: We have enhanced the support for Union types in this release. Now, Union types without discriminators are also fully supported.

Bug Fix:

**Memory Leak Fix**: Fixed memory leak occurring when generating `SchemaValidationError`.


**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.1.3...v1.2.0

1.1.3

Bug Fix:

**Memory Leak Fix**: We have resolved a memory leak issue occurring during the loading and dumping of objects of type `dict`. This fix ensures that memory is properly managed, preventing any unnecessary memory consumption during these operations.

**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.1.2...v1.1.3

1.1.2

Library Updates:

* Bump speedate from 0.12.0 to 0.13.0
* Bump dyn-clone from 1.0.14 to 1.0.16

Platform Support:

* **Expanded wheel builds:** We are excited to introduce expanded wheel builds for a variety of platforms. With this release, we now offer wheel builds for Linux on the following architectures:
- aarch64
- armv7
- s390x
- ppc64le
- ppc64

These wheel builds aim to provide broader compatibility and accessibility for users on diverse hardware architectures.

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.