crystal-pg v0.23.0 Release Notes

Release Date: 2020-01-12 // over 4 years ago
    • (breaking) Numeric#to_f for NaN now returns a NaN float instead of 0.0
    • โž• add auth_methods config setting to control which methods the client can accpet. Defaults to scram-sha-256 and md5. Also optionally adds support for cleartext, but it is not on by default as simply having this on can let MITM attackers steal your password. (thanks @straight-shoota)
    • โž• add support for decoding interval type (thanks @pascalbetz)
    • ๐Ÿ‘ท Postgres 13 is now officially supported and tested on CI and Postgres 9.4 support has ended, though as the postgres protocol itself hasn't changed, it still probably works.
    • ๐Ÿ›  Fix overflow for Numeric#to_f for numerics with many digits. This change potentially introduces more floating point errors. If you require full precision use the optional big rational conversion instead.
    • Read Slice(UInt8) as String if given as type. This allows text datayptes with unstable OIDs such as citext to be more easliy used. (thanks @matthewmcgarvey)
    • โž• Add UUIDs to array decoders (thanks @jwoertink)