DalvinCodes / tenant-management

Create and Manage Tenants of WATTBA
0 stars 0 forks source link

fix(deps): update module go.mongodb.org/mongo-driver to v1.12.0 #101

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
go.mongodb.org/mongo-driver require minor v1.11.7 -> v1.12.0

Release Notes

mongodb/mongo-go-driver (go.mongodb.org/mongo-driver) ### [`v1.12.0`](https://togithub.com/mongodb/mongo-go-driver/releases/tag/v1.12.0): MongoDB Go Driver 1.12.0 [Compare Source](https://togithub.com/mongodb/mongo-go-driver/compare/v1.11.7...v1.12.0) The MongoDB Go Driver Team is pleased to release version 1.12.0 of the official Go driver. #### Release Notes This release adds support for MongoDB 7.0, including production-ready support for [Queryable Encryption](https://www.mongodb.com/docs/manual/core/queryable-encryption/). It also adds a new logging interface and configuration API improvements. ##### Production-Ready Queryable Encryption This release introduces backwards breaking changes to the Queryable Encryption protocol. Using Queryable Encryption now requires MongoDB 7.0+ and [libmongocrypt](https://www.mongodb.com/docs/manual/core/csfle/reference/libmongocrypt/) v1.8.0+. It also adds the new `ClientEncryption.CreateEncryptedCollection` 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. ##### Logging This release introduces a logging interface to allow users to more easily record detailed information about connection management and command execution within their application. The logging configuration adds a new `LogSink` interface that is compatible with the [logr.LogSink](https://pkg.go.dev/github.com/go-logr/logr#LogSink) interface, allowing users to use existing `logr` adapters, like [zerologr](https://togithub.com/go-logr/zerologr) or [zapr](https://togithub.com/go-logr/zapr). Users may also implement their own `LogSink` adapter. For example, to integrate logging with an existing [zerolog](https://togithub.com/rs/zerolog) logger: ```go sink := zerologr.New(&myLogger).GetSink() loggerOptions := options.Logger().SetSink(sink) options.Client().SetLoggerOptions(loggerOptions) ``` Logging can also be enabled using environment variables. For example, to enable command logging at info level to `client.log`, set: export MONGODB_LOG_COMMAND=info export MONGODB_LOG_MAX_DOCUMENT_LENGTH=100 export MONGODB_LOG_PATH="client.log" ##### Convenient BSON Options The `options` package has a new way to set various BSON marshaling and unmarshaling behaviors. For example, to set BSON options that cause the Go driver to fallback to "json" struct tags if "bson" struct tags are missing, marshal `nil` Go maps as empty BSON documents, and marshals `nil` Go slices as empty BSON arrays, use the new `options.BSONOptions` configuration: ```go bsonOpts := &options.BSONOptions{ UseJSONStructTags: true, NilMapAsEmpty: true, NilSliceAsEmpty: true, } options.Client().SetBSONOptions(bsonOpts) ``` ##### Convenient Write Concerns The `writeconcern` package has new convenience functions `Majority`, `W1`, `Journaled`, and `Unacknowledged` for creating common write concerns. For example, to configure a `Client` to use write concern [{w: 1}](https://www.mongodb.com/docs/manual/reference/write-concern/#mongodb-writeconcern-writeconcern.-number-), use the new `writeconcern.W1()` function: ```go options.Client().SetWriteConcern(writeconcern.W1()) ``` ##### Additional Changes - Support authenticating with AWS IAM roles in EKS. - Add `SetBatchSize` to `Cursor` to allow specifying the size of batches fetched from the database when iterating a cursor. It is primarily intended for use with cursors returned by [RunCommandCursor](https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo#Database.RunCommandCursor). - Add `bson.UnmarshalValue` to allow unmarshaling BSON values that were marshaled using the existing [bson.MarshalValue](https://pkg.go.dev/go.mongodb.org/mongo-driver/bson#MarshalValue). - Deprecate various APIs that will be replaced or removed in Go Driver v2.0. *** For a full list of tickets included in this release, please see the links below: - [New Features](https://jira.mongodb.org/issues/?jql=project%3Dgodriver%20and%20type%3D%22new%20feature%22%20and%20status%20%3D%20Closed%20and%20fixVersion%3D1.12.0) - [Improvements](https://jira.mongodb.org/issues/?jql=project%3Dgodriver%20and%20type%3Dimprovement%20and%20status%20%3D%20Closed%20and%20fixVersion%3D1.12.0) - [Bugs](https://jira.mongodb.org/issues/?jql=project%3DGODRIVER%20and%20type%3DBug%20and%20status%3Dclosed%20and%20fixVersion%3D1.12.0) - [Tasks](https://jira.mongodb.org/issues/?jql=project%3Dgodriver%20and%20type%3D%22task%22%20and%20status%20%3D%20Closed%20and%20fixVersion%3D1.12.0) **Full Changelog**: [v1.11.7...1.12.0](https://togithub.com/mongodb/mongo-go-driver/compare/v1.11.7...v1.12.0) Documentation for the Go driver can be found on [pkg.go.dev](https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo?tab=doc) and the [MongoDB documentation site](https://docs.mongodb.com/ecosystem/drivers/go/). BSON library documentation is also available on [pkg.go.dev](https://pkg.go.dev/go.mongodb.org/mongo-driver/bson?tab=doc). Questions and inquiries can be asked on the [MongoDB Developer Community](https://community.mongodb.com/). Bugs can be reported in the [Go Driver project in the MongoDB JIRA](https://jira.mongodb.org/secure/CreateIssue!default.jspa?pid=14289) where a list of [current issues](https://jira.mongodb.org/browse/GODRIVER) can be found. Your feedback on the Go driver is greatly appreciated!

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 1 year ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (v1.12.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.