Skip to content

6.0.0

Latest

Choose a tag to compare

@gmr gmr released this 16 Nov 16:43
6.0.0
9d5ed11

pamqp now sends field-table values with the same types as the Java, .NET and Go RabbitMQ clients. This changes the bytes on the wire, so it is a major release.

Changed

  • Breaking: a float field-table or field-array value is now encoded as a 64-bit double (d), not a 32-bit float (f). Values no longer lose precision: 0.1 decodes back as 0.1. (#87, #88)
  • Breaking: an int field-table or field-array value is now encoded as a signed 32-bit integer (I) when it fits, otherwise as a signed 64-bit integer (l). Before, pamqp used the smallest type that held the value, so a Java consumer got a Byte, Short, Integer or Long for the same header depending on the number. (#87, #88)

Deprecated

  • encode.support_deprecated_rabbitmq() and encode.DEPRECATED_RABBITMQ_SUPPORT have no effect and raise a DeprecationWarning. All supported RabbitMQ versions accept the I and l types. Both will be removed in a future release. (#88)

Security

  • Field-table and field-array decoding now stops at 32 nesting levels (decode.MAX_NESTING_DEPTH) and raises ValueError. Before, deeply nested data from the network caused a RecursionError, which a peer could use to make the decoder fail with an unexpected exception. (#88)