Fixed
- Values larger than 32 bits (ints and doubles) were silently truncated (mod 2^32) when encoded with
EncodeorWritePacket. The read path was unaffected. Negative values now round-trip correctly as well. ReadHeaderandReadRecordtreated partial reads as errors; packets arriving in several TCP segments could fail with errors likecannot read header: read=1/2. Reads now useio.ReadFull.
Changed
- Requires Go 1.22. Cookie generation uses
math/rand/v2. - CI runs on pull requests with the race detector, vet, and gofmt checks; Dependabot enabled.
Full changelog: v3.2.0...v3.3.0