You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/whats-new.txt
+37-21Lines changed: 37 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -71,19 +71,35 @@ To learn more, see the `v4.12.0 Release Highlights <https://github.com/mongodb/n
71
71
What's New in 4.11
72
72
------------------
73
73
74
+
Prioritization Order in Monitoring
75
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76
+
74
77
When connecting to MongoDB Server version 6.0 or later, the driver prioritizes
75
78
``electionId`` settings before ``setVersion`` settings during Server Discovery and
76
79
Monitoring events. In previous versions, the prioritization order was reversed.
77
80
78
-
This release also includes added support for **mutually
81
+
Changes to AWS Authentication
82
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
83
+
84
+
When you install the optional ``aws-sdk/credential-providers``
85
+
dependency, the driver uses the AWS SDK to retrieve AWS credentials from the
86
+
environment.
87
+
88
+
To learn more about this behavior, see the :ref:`MONGODB-AWS
89
+
<mongodb-aws>` section of the Authentication Mechanisms guide.
90
+
91
+
Mutually Recursive Schema Type Checking
92
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
93
+
94
+
This release includes added support for **mutually
79
95
recursive** collection schema types. The driver also provides type safety for
80
96
dot-notation queries up to a depth of eight in this release. At a depth greater
81
97
than or equal to eight, Typescript successfully compiles your code but does not
82
98
provide type safety. This depth limit on recursive types is a current limitation
83
99
of TypeScript.
84
100
85
-
Mutually Recursive Schema Type Checking Example
86
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101
+
Example
102
+
```````
87
103
88
104
Suppose we have a collection of type ``Collection<Author>`` that contains the
89
105
following mutually recursive types:
@@ -321,7 +337,7 @@ Key Changes
321
337
~~~~~~~~~~~
322
338
323
339
Node.js Version
324
-
+++++++++++++++
340
+
```````````````
325
341
326
342
The minimum supported version of Node.js is now v12.9 or greater for
327
343
version 4 of the driver. Support for our 3.x branches will continue
@@ -333,7 +349,7 @@ until summer 2022 to allow time to upgrade.
333
349
334
350
335
351
Cursor Improvements
336
-
+++++++++++++++++++
352
+
```````````````````
337
353
338
354
Our Cursor implementation is now updated to make it clear what is possible
339
355
before and after execution of an operation.
@@ -365,7 +381,7 @@ similar to the following:
365
381
- ``ListCollectionsCursor``
366
382
367
383
Cursor Stream API
368
-
^^^^^^^^^^^^^^^^^
384
+
+++++++++++++++++
369
385
370
386
Our Cursor types no longer extend ``Readable`` directly. They must be
371
387
transformed into a stream by calling ``cursor.stream()``.
@@ -385,7 +401,7 @@ Use ``for await of`` syntax or any ``Promise`` helpers for
385
401
asynchronous iteration.
386
402
387
403
``MongoClientOptions`` Interface
388
-
+++++++++++++++++++++++++++++++++
404
+
````````````````````````````````
389
405
390
406
With type hinting, you should find that options passed to a ``MongoClient``
391
407
are enumerated and discoverable. We've made a large effort to process
@@ -400,7 +416,7 @@ to get your app up and running in a correct state quickly.
400
416
- It is no longer required to specify ``useUnifiedTopology`` or ``useNewUrlParser``.
401
417
402
418
``createCollection()``
403
-
++++++++++++++++++++++
419
+
``````````````````````
404
420
405
421
This method no longer supports a ``strict`` option, which returned
406
422
an error if the collection did not exist. To assert the existence of
@@ -419,7 +435,7 @@ a collection, use the ``listCollections()`` method instead.
419
435
}
420
436
421
437
``BulkWriteError`` → ``MongoBulkWriteError``
422
-
++++++++++++++++++++++++++++++++++++++++++++
438
+
````````````````````````````````````````````
423
439
424
440
``BulkWriteError`` is now renamed to ``MongoBulkWriteError``.
425
441
@@ -428,20 +444,20 @@ depending on your settings. Import the new class name ``MongoBulkWriteError``
428
444
when testing for errors in bulk operations.
429
445
430
446
``DB``
431
-
++++++
447
+
``````
432
448
433
449
``DB`` is no longer an ``EventEmitter``. Listen for events directly from your
434
450
``MongoClient`` instance.
435
451
436
452
``Collection.group()``
437
-
++++++++++++++++++++++
453
+
``````````````````````
438
454
439
455
The ``Collection.group()`` helper, deprecated since MongoDB 3.4,
440
456
is now removed. Use the aggregation pipeline :manual:`$group </reference/operator/aggregation/group/#pipe._S_group>`
441
457
operator instead.
442
458
443
459
Authentication
444
-
++++++++++++++
460
+
``````````````
445
461
446
462
- ``gssapiServiceName`` is now removed. Use `authMechanismProperties.SERVICE_NAME <{+api+}/interfaces/MongoClientOptions.html#authMechanismProperties>`__ in the URI or as an option on ``MongoClientOptions``.
0 commit comments