Skip to content

MongoDB Go Driver 2.8.0

Latest

Choose a tag to compare

@mongodb-dbx-release-bot mongodb-dbx-release-bot released this 10 Jul 16:37

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

Release Highlights

This release supports the general availability of Queryable Encryption string queries. The query types prefix, suffix, and substring are added as generally available for MongoDB 9.0+ and libmongocrypt 1.20.0. The query types prefixPreview, suffixPreview, and substringPreview remain experimental for 8.2–8.x servers and may be removed in a future release.

Other key facts:

  • The algorithm TextPreview is replaced with String.
  • API rename: options.Text()options.String(); TextOptions*StringOptions*; EncryptOptionsBuilder.SetTextOptionsSetStringOptions.

What's Changed

✨ New Features

📦 Dependency Updates

  • Bump golang.org/x/net from 0.53.0 to 0.55.0 in /examples by @dependabot[bot] in #2461
  • Bump golang.org/x/net from 0.53.0 to 0.55.0 in /internal/test/compilecheck by @dependabot[bot] in #2456
  • Bump golang.org/x/crypto from 0.50.0 to 0.52.0 in /internal/test/goleak by @dependabot[bot] in #2469

Full Changelog: v2.7.0...v2.8.0

For a full list of tickets included in this release, please see the list of fixed issues.

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. For issues with, questions about, or feedback for the Go Driver, please look into our support channels, including StackOverflow. 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!