dependabot[bot] opened a new pull request, #27215: URL: https://github.com/apache/beam/pull/27215
Bumps [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver) from 1.11.7 to 1.12.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mongodb/mongo-go-driver/releases">go.mongodb.org/mongo-driver's releases</a>.</em></p> <blockquote> <h2>MongoDB Go Driver 1.12.0</h2> <p>The MongoDB Go Driver Team is pleased to release version 1.12.0 of the official Go driver.</p> <h2>Release Notes</h2> <p>This release adds support for MongoDB 7.0, including production-ready support for <a href="https://www.mongodb.com/docs/manual/core/queryable-encryption/">Queryable Encryption</a>. It also adds a new logging interface and configuration API improvements.</p> <h3>Production-Ready Queryable Encryption</h3> <p>This release introduces backwards breaking changes to the Queryable Encryption protocol. Using Queryable Encryption now requires MongoDB 7.0+ and <a href="https://www.mongodb.com/docs/manual/core/csfle/reference/libmongocrypt/">libmongocrypt</a> v1.8.0+.</p> <p>It also adds the new <code>ClientEncryption.CreateEncryptedCollection</code> method to automatically create data encryption keys when creating a new encrypted collection and adds the ability to fetch KMS credentials automatically from Azure, GCP, and AWS environments.</p> <h3>Logging</h3> <p>This release introduces a logging interface to allow users to more easily record detailed information about connection management and command execution within their application.</p> <p>The logging configuration adds a new <code>LogSink</code> interface that is compatible with the <a href="https://pkg.go.dev/github.com/go-logr/logr#LogSink">logr.LogSink</a> interface, allowing users to use existing <code>logr</code> adapters, like <a href="https://github.com/go-logr/zerologr">zerologr</a> or <a href="https://github.com/go-logr/zapr">zapr</a>. Users may also implement their own <code>LogSink</code> adapter.</p> <p>For example, to integrate logging with an existing <a href="https://github.com/rs/zerolog">zerolog</a> logger:</p> <pre lang="go"><code>sink := zerologr.New(&myLogger).GetSink() loggerOptions := options.Logger().SetSink(sink) options.Client().SetLoggerOptions(loggerOptions) </code></pre> <p>Logging can also be enabled using environment variables. For example, to enable command logging at info level to <code>client.log</code>, set:</p> <pre><code>export MONGODB_LOG_COMMAND=info export MONGODB_LOG_MAX_DOCUMENT_LENGTH=100 export MONGODB_LOG_PATH="client.log" </code></pre> <h3>Convenient BSON Options</h3> <p>The <code>options</code> package has a new way to set various BSON marshaling and unmarshaling behaviors.</p> <p>For example, to set BSON options that cause the Go driver to fallback to "json" struct tags if "bson" struct tags are missing, marshal <code>nil</code> Go maps as empty BSON documents, and marshals <code>nil</code> Go slices as empty BSON arrays, use the new <code>options.BSONOptions</code> configuration:</p> <pre lang="go"><code>bsonOpts := &options.BSONOptions{ UseJSONStructTags: true, NilMapAsEmpty: true, NilSliceAsEmpty: true, } options.Client().SetBSONOptions(bsonOpts) </code></pre> <h3>Convenient Write Concerns</h3> <p>The <code>writeconcern</code> package has new convenience functions <code>Majority</code>, <code>W1</code>, <code>Journaled</code>, and <code>Unacknowledged</code> for creating common write concerns.</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/mongodb/mongo-go-driver/commit/e113d80138eabfce810c6369d25e57b146aac917"><code>e113d80</code></a> Update version to v1.12.0</li> <li><a href="https://github.com/mongodb/mongo-go-driver/commit/41ebbc3ff73d64383d566cb9be77048c52c156f5"><code>41ebbc3</code></a> GODRIVER-2725 Allow setting Encoder and Decoder options on a Client. (<a href="https://redirect.github.com/mongodb/mongo-go-driver/issues/1282">#1282</a>)</li> <li><a href="https://github.com/mongodb/mongo-go-driver/commit/836d408f6e74b54422b04d2f1d553f7150bca58d"><code>836d408</code></a> GODRIVER-2792 Separate Serverless OS into new axis. (<a href="https://redirect.github.com/mongodb/mongo-go-driver/issues/1303">#1303</a>)</li> <li><a href="https://github.com/mongodb/mongo-go-driver/commit/3eaecef977ff198ccb3629abfeebbf5388b37f68"><code>3eaecef</code></a> GODRIVER-2792 Use Ubuntu 20.04 for Serverless. (<a href="https://redirect.github.com/mongodb/mongo-go-driver/issues/1301">#1301</a>)</li> <li><a href="https://github.com/mongodb/mongo-go-driver/commit/e748329f8e9b349010d3f185592c76ee22719b63"><code>e748329</code></a> GODRIVER-2871 Unexport optional setter for internal-package logger (<a href="https://redirect.github.com/mongodb/mongo-go-driver/issues/1296">#1296</a>)</li> <li><a href="https://github.com/mongodb/mongo-go-driver/commit/30f817c1df6a0f7c41f189418b06381a29ff4701"><code>30f817c</code></a> GODRIVER-2874 Directly reference conn existence (<a href="https://redirect.github.com/mongodb/mongo-go-driver/issues/1300">#1300</a>)</li> <li><a href="https://github.com/mongodb/mongo-go-driver/commit/d7091e0afe202043e020209a74c5b8d18d7e28c6"><code>d7091e0</code></a> GODRIVER-2860 Update Go driver module version in all submodules. (<a href="https://redirect.github.com/mongodb/mongo-go-driver/issues/1299">#1299</a>)</li> <li><a href="https://github.com/mongodb/mongo-go-driver/commit/e4a8f68f8910e513bb3e18bcd31ccf5309f7e4de"><code>e4a8f68</code></a> Skip frequently failing TestClientSideEncryptionProse test case. (<a href="https://redirect.github.com/mongodb/mongo-go-driver/issues/1297">#1297</a>)</li> <li><a href="https://github.com/mongodb/mongo-go-driver/commit/a10150b0070a7882af25a7946cf8cd438ed0e3ef"><code>a10150b</code></a> GODRIVER-2685 Simplify the writeconcern API. (<a href="https://redirect.github.com/mongodb/mongo-go-driver/issues/1232">#1232</a>)</li> <li><a href="https://github.com/mongodb/mongo-go-driver/commit/7d13bebd84fc81ba4e345879789ae63dadcac1fc"><code>7d13beb</code></a> GODRIVER-2855 Relax closed, cleared, checkout conditions on logger verificati...</li> <li>Additional commits viewable in <a href="https://github.com/mongodb/mongo-go-driver/compare/v1.11.7...v1.12.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
