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:
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps go.mongodb.org/mongo-driver from 1.11.1 to 1.11.5.
Release notes
Sourced from go.mongodb.org/mongo-driver's releases.
... (truncated)
Commits
580d733
pin golangci-lint v1.51.2 (#1210)e01fa5c
Update version to v1.11.52d6b603
GODRIVER-2826 Clean up TODOs in comments. (#1243)374e369
GODRIVER-2804 Fix bug that can squash FullDocument when merging ChangeStreamO...d8040b4
update version to v1.11.5-prerelease9222702
update version to v1.11.4b1161f4
GODRIVER-2761 Skip QE tests against latest servers (#1221)a46ad91
GODRIVER-2657 Restrict getNonce spec tests to < 6.2. (#1147)0351e7f
GODRIVER-2672 Return ServerError with "TransientTransactionError" label for s...6119f96
GODRIVER-2766 support inherited defaultDocumentType (#1202)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)