@@ -12,3 +12,289 @@ What's New
1212 :depth: 1
1313 :class: singlecol
1414
15+ Learn what's new in:
16+
17+ * :ref:`Version 1.11 <version-1.11>`
18+ * :ref:`Version 1.10 <version-1.10>`
19+ * :ref:`Version 1.9 <version-1.9>`
20+ * :ref:`Version 1.8 <version-1.8>`
21+ * :ref:`Version 1.7 <version-1.7>`
22+ * :ref:`Version 1.6 <version-1.6>`
23+ * :ref:`Version 1.5 <version-1.5>`
24+ * :ref:`Version 1.4 <version-1.4>`
25+ * :ref:`Version 1.3 <version-1.3>`
26+ * :ref:`Version 1.2 <version-1.2>`
27+ * :ref:`Version 1.1 <version-1.1>`
28+ * :ref:`Version 1.0 <version-1.0>`
29+
30+ .. _version-1.11.0:
31+ .. _version-1.11:
32+
33+ What's New in 1.11
34+ --------------------
35+
36+ New features of the 1.11 Go driver release include:
37+
38+ - Removal of support for MongoDB versions 3.5 and older.
39+
40+ - Removal of support for Go versions 1.12 and older.
41+
42+ - Improvements to ``Timeout`` API and behavior, including:
43+
44+ - Modified retry logic for greater application resiliency.
45+
46+ - Extended ``mongo.IsTimeout`` error helper to catch more timeout errors.
47+
48+ - New GridFS methods that take contexts instead of using ``SetReadDeadline``
49+ and ``SetWriteDeadline``.
50+
51+ - Reduced memory allocations during operation execution.
52+
53+ - Fix for SRV polling bug that prevented changes in SRV records when the
54+ associated MongoDB connection string included a username and password.
55+
56+ - Support for :abbr:`GCP (Google Cloud Platform)` service accounts when using
57+ Google Cloud Key Management Services.
58+
59+ - Improvements to server-side resource cleanup when using the ``Cursor.All`` and
60+ ``Session.WithTransaction`` functions.
61+
62+ - ``SERVICE_HOST`` Kerberos authentication parameter specification enabled with
63+ the ``authMechanismProperties`` connection string option.
64+
65+
66+ .. _version-1.10.0:
67+ .. _version-1.10:
68+
69+ What's New in 1.10
70+ --------------------
71+
72+ .. important:: Upgrade to Version 1.10.1 or Higher
73+
74+ The 1.10.1 Go driver patches a bug that can cause data corruption when
75+ rotating :ref:`Data Encryption Keys <csfle-key-architecture>` encrypted
76+ with a :ref:`Customer Master Key <csfle-key-architecture>` hosted on Google
77+ Cloud Key Management Service or Azure Key Vault.
78+
79+ New features of the 1.10 Go driver release include:
80+
81+ - Full compatibility with MongoDB 6.0.
82+
83+ - Support for new features related to :ref:`qe-manual-feature-qe`,
84+ including new options for automatic and manual encryption.
85+
86+ - Support for the new Automatic Encryption Shared Library, which replaces the
87+ ``mongocryptd`` process. The shared library requires MongoDB v6.0 Enterprise
88+ or later and ``libmongocrypt`` 1.5.0 or later.
89+
90+ - :ref:`clustered index <golang-clustered-indexes>` creation support.
91+
92+ - A new API and ``ClientEncryption`` entity operations for encryption key
93+ management.
94+
95+ - A ``Timeout`` client option to set default context timeouts for
96+ each operation sent through that client.
97+
98+ - A patch to default data to either ``primitive.M`` or ``primitive.D`` when
99+ decoding empty types.
100+
101+ - Support for encoding atypical map key types for data that can be unmarshalled
102+ into a textual representation of itself.
103+
104+ - Performance optimizations, including:
105+
106+ - Improved full document requests for before and after updates in change
107+ stream events.
108+
109+ - Improved :abbr:`PRN (pseudo-random number)` and :abbr:`UUID (universally
110+ unique identifier)` generation.
111+
112+ - Reduced memory consumption when compressing wire messages.
113+
114+ - Troubleshooting support for `frequently encountered issues.
115+ <https://github.com/mongodb/mongo-go-driver/blob/master/docs/common-issues.md>`__
116+
117+
118+ .. _version-1.9:
119+
120+ What's New in 1.9
121+ -------------------
122+
123+ New features of the 1.9 Go driver release include:
124+
125+ - Improved connection storm mitigation.
126+
127+ - ``Custom`` options to change-stream and aggregate operations.
128+
129+ - ``Let`` option on most CRUD commands that specifies parameters for use
130+ in an aggregate expression. ``Let`` must be a document that maps
131+ parameter names to values that are constant or closed expressions without
132+ references to document fields. MongoDB v5.0 or later is required.
133+
134+ - New constructor functions that create ``Cursor`` and ``SingleResult``
135+ instances from marshalable and non-nil BSON documents.
136+
137+
138+ .. _version-1.8:
139+
140+ What's New in 1.8
141+ -----------------
142+
143+ New features of the 1.8 Go driver release include:
144+
145+ - Full compatibility with MongoDB 5.1.
146+
147+ - Support for :abbr:`KMIP (Key Management Interoperability Protocol)` as a KMS
148+ provider for :abbr:`{+csfle-short+} ({+csfle-long+})`.
149+
150+ - Redesigned driver connection pool for low operation ``Context`` timeouts and
151+ to reduce connection churn. Behavior changes include:
152+
153+ - New connection creation times out at ``connectTimeoutMS``.
154+
155+ - At most, two new connections can be established at the same time.
156+
157+ - Removal of oppressive and unncessarily gendered language in the Go driver
158+ documentation, code, tests, and spec tests.
159+
160+
161+ .. _version-1.7:
162+
163+ What's New in 1.7
164+ -----------------
165+
166+ .. important:: Upgrade to Version 1.7.2 or Higher
167+
168+ The 1.7.2 Go driver contains a bug fix for a data race that can occur between
169+ creating and checking out connections when ``minPoolSize > 0``.
170+
171+ New features of the 1.7 Go driver release include:
172+
173+ - Full compatibility with MongoDB 5.0.
174+
175+ - Support for the :readconcern:`"snapshot"` read concern outside of
176+ multi-document transactions for certain read operations.
177+
178+ - Improved ``WriteException`` and ``BulkWriteException`` error messages for
179+ schema validation via the ``WriteError.Details`` field.
180+
181+
182+ .. _version-1.6:
183+
184+ What's New in 1.6
185+ -----------------
186+
187+ .. important:: Upgrade to Version 1.6.2 or Higher
188+
189+ The 1.6.2 Go driver contains a bug fix for a data race that can occur between
190+ creating and checking out connections when ``minPoolSize > 0``.
191+
192+ New features of the 1.6 Go driver release include:
193+
194+ - Support for the MongoDB Stable API. For more information, see the
195+ :ref:`Stable API Guide <golang-stable-api>`.
196+
197+ - Support for connections to any MongoDB service that runs behind a load
198+ balancer.
199+
200+ - Support for creating time series collections. For more information, see
201+ the :ref:`Time Series Collections Guide <golang-time-series>`.
202+
203+ - ``Let`` option for aggregate expressions.
204+
205+
206+ .. _version-1.5:
207+
208+ What's New in 1.5
209+ -----------------
210+
211+ New features of the 1.5 Go driver release include:
212+
213+ - Support for Azure and :abbr:`GCP (Google Cloud Platform)` key-management
214+ services with {+csfle-long+}.
215+
216+ - New errors API to detect duplicate-key errors, timeouts, and network
217+ errors.
218+
219+ - Server monitoring to monitor changes on a MongoDB deployment.
220+
221+ - Errors to prevent unexpected behavior on maps that contain multiple
222+ keys being used as a hint option, as a sort option, or for index creation.
223+
224+
225+ .. _version-1.4:
226+
227+ What's New in 1.4
228+ -----------------
229+
230+ New features of the 1.4 Go driver release include:
231+
232+ - Full compatibility with MongoDB 4.4.
233+
234+ - Support for stapled and non-stapled OCSP verification.
235+
236+ - New ``tlsDisableOCSPEndpointCheck=true`` URI option to disable sending HTTP
237+ requests if the OCSP responder is not reachable from the driver and there is
238+ no stapled response.
239+
240+ - Additional context to errors encountered during BSON unmarshalling.
241+
242+ - Proper ``Unwrap`` functions for various driver error types.
243+
244+
245+ .. _version-1.3:
246+
247+ What's New in 1.3
248+ -----------------
249+
250+ New features of the 1.3 Go driver release include:
251+
252+ - ``mgocompat`` package that exports a BSON registry compatible with
253+ ``globalsign/mgo/bson``, which can be used via the
254+ ``ClientOptions.SetRegistry`` method.
255+
256+ - ``RegisterTypeEncoder`` and ``RegisterHookEncoder`` methods, which
257+ replace the deprecated ``RegisterEncoder`` method. A corresponding change has
258+ been made to replace ``RegisterDecoder``.
259+
260+
261+ .. _version-1.2:
262+
263+ What's New in 1.2
264+ -----------------
265+
266+ New features of the 1.2 Go driver release include:
267+
268+ - Support for {+csfle-short+}.
269+
270+ - ``bson.MarshalValue`` function, which marshals Go values to BSON.
271+
272+ - ``StringCodec``, which allows non-string fields to be decoded into a
273+ String field in a struct.
274+
275+ - ``IntCodec``, ``UIntCodec``, ``BoolCodec``, and ``FloatCodec`` added to
276+ ``mgocompat`` to allow codecs to convert between numbers and booleans.
277+
278+
279+ .. _version-1.1:
280+
281+ What's New in 1.1
282+ -----------------
283+
284+ New features of the 1.1 Go driver release include:
285+
286+ - Full compatibility with MongoDB 4.2.
287+
288+ - Redesigned lower-level driver implementation to improve maintainability and
289+ performance.
290+
291+ - Connection Monitoring and Pooling specifications to monitor various connection
292+ and connection pool events with improved utilization.
293+
294+
295+ .. _version-1.0:
296+
297+ What's New in 1.0
298+ -----------------
299+
300+ This release adds no new features.
0 commit comments