The MongoDB Go Driver Team is pleased to release version 1.17.2 of the official MongoDB Go driver.
Release Notes
This release addresses several issues and tasks to improve the functionality of the Go Driver. It includes a fix for a bug in the DefaultValueDecoders.ValueUnmarshalerDecodeValue
to avoid inappropriately instantiating a pointer field decoded from null data if the user defined an UnmarshalBSONValue
. Additionally, the release resolves a goroutine and memory leak issue found in the Zstandard (zstd) network compression decoding process.
Furthermore, the release includes a task to restore the ReadCompressedCompressedMessage()
function to the wiremessage API. This function was previously removed under task GODRIVER-3303 with the aim of preventing out-of-bounds runtime errors, as it was identified as complicit in such issues and was not needed by the driver itself. However, it has been identified as a convenient utility for some users of the Go Driver.
For a full list of tickets included in this release, please see the links below:
Full Changelog: v1.17.1...v1.17.2
Documentation for the Go driver can be found on pkg.go.dev and the MongoDB documentation site. BSON library documentation is also available on pkg.go.dev. Questions and inquiries can be asked on the MongoDB Developer Community. Bugs can be reported in the Go Driver project in the MongoDB JIRA where a list of current issues can be found. Your feedback on the Go driver is greatly appreciated!