Skip to content

MongoDB Go Driver 1.11.4

Compare
Choose a tag to compare
@prestonvasquez prestonvasquez released this 04 Apr 22:43
· 335 commits to master since this release
v1.11.4
9222702

The MongoDB Go Driver Team is pleased to release version 1.11.4 of the official Go driver.

Release Notes

This release includes optimizations to reduce memory consumption in reading compressed wire messages. The release also offers codec support for decoding struct container fields as either map or document types, rather than an ancestor type.

Additionally, the mongo package will support a closed approach for checking transaction error labels. For example:

err = client.Ping(ctx, nil)

var le mongo.LabeledError
if errors.As(err, &le) && le.HasErrorLabel("TransientTransactionError") {
    log.Fatalf("transient transaction error: %v", le)
}

For a full list of tickets included in this release, please see the links below:

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!