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
@@ -100,19 +100,35 @@ To learn more, see the `v4.12.0 Release Highlights <https://github.com/mongodb/n
100
100
What's New in 4.11
101
101
------------------
102
102
103
+
Prioritization Order in Monitoring
104
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
105
+
103
106
When connecting to MongoDB Server version 6.0 or later, the driver prioritizes
104
107
``electionId`` settings before ``setVersion`` settings during Server Discovery and
105
108
Monitoring events. In previous versions, the prioritization order was reversed.
106
109
107
-
This release also includes added support for **mutually
110
+
Changes to AWS Authentication
111
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
112
+
113
+
When you install the optional ``aws-sdk/credential-providers``
114
+
dependency, the driver uses the AWS SDK to retrieve AWS credentials from the
115
+
environment.
116
+
117
+
To learn more about this behavior, see the :ref:`MONGODB-AWS
118
+
<mongodb-aws>` section of the Authentication Mechanisms guide.
119
+
120
+
Mutually Recursive Schema Type Checking
121
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122
+
123
+
This release includes added support for **mutually
108
124
recursive** collection schema types. The driver also provides type safety for
109
125
dot-notation queries up to a depth of eight in this release. At a depth greater
110
126
than or equal to eight, Typescript successfully compiles your code but does not
111
127
provide type safety. This depth limit on recursive types is a current limitation
112
128
of TypeScript.
113
129
114
-
Mutually Recursive Schema Type Checking Example
115
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
130
+
Example
131
+
```````
116
132
117
133
Suppose we have a collection of type ``Collection<Author>`` that contains the
118
134
following mutually recursive types:
@@ -350,7 +366,7 @@ Key Changes
350
366
~~~~~~~~~~~
351
367
352
368
Node.js Version
353
-
+++++++++++++++
369
+
```````````````
354
370
355
371
The minimum supported version of Node.js is now v12.9 or greater for
356
372
version 4 of the driver. Support for our 3.x branches will continue
@@ -362,7 +378,7 @@ until summer 2022 to allow time to upgrade.
362
378
363
379
364
380
Cursor Improvements
365
-
+++++++++++++++++++
381
+
```````````````````
366
382
367
383
Our Cursor implementation is now updated to make it clear what is possible
368
384
before and after execution of an operation.
@@ -394,7 +410,7 @@ similar to the following:
394
410
- ``ListCollectionsCursor``
395
411
396
412
Cursor Stream API
397
-
^^^^^^^^^^^^^^^^^
413
+
+++++++++++++++++
398
414
399
415
Our Cursor types no longer extend ``Readable`` directly. They must be
400
416
transformed into a stream by calling ``cursor.stream()``.
@@ -414,7 +430,7 @@ Use ``for await of`` syntax or any ``Promise`` helpers for
414
430
asynchronous iteration.
415
431
416
432
``MongoClientOptions`` Interface
417
-
+++++++++++++++++++++++++++++++++
433
+
````````````````````````````````
418
434
419
435
With type hinting, you should find that options passed to a ``MongoClient``
420
436
are enumerated and discoverable. We've made a large effort to process
@@ -429,7 +445,7 @@ to get your app up and running in a correct state quickly.
429
445
- It is no longer required to specify ``useUnifiedTopology`` or ``useNewUrlParser``.
430
446
431
447
``createCollection()``
432
-
++++++++++++++++++++++
448
+
``````````````````````
433
449
434
450
This method no longer supports a ``strict`` option, which returned
435
451
an error if the collection did not exist. To assert the existence of
@@ -448,7 +464,7 @@ a collection, use the ``listCollections()`` method instead.
448
464
}
449
465
450
466
``BulkWriteError`` → ``MongoBulkWriteError``
451
-
++++++++++++++++++++++++++++++++++++++++++++
467
+
````````````````````````````````````````````
452
468
453
469
``BulkWriteError`` is now renamed to ``MongoBulkWriteError``.
454
470
@@ -457,20 +473,20 @@ depending on your settings. Import the new class name ``MongoBulkWriteError``
457
473
when testing for errors in bulk operations.
458
474
459
475
``DB``
460
-
++++++
476
+
``````
461
477
462
478
``DB`` is no longer an ``EventEmitter``. Listen for events directly from your
463
479
``MongoClient`` instance.
464
480
465
481
``Collection.group()``
466
-
++++++++++++++++++++++
482
+
``````````````````````
467
483
468
484
The ``Collection.group()`` helper, deprecated since MongoDB 3.4,
469
485
is now removed. Use the aggregation pipeline :manual:`$group </reference/operator/aggregation/group/#pipe._S_group>`
470
486
operator instead.
471
487
472
488
Authentication
473
-
++++++++++++++
489
+
``````````````
474
490
475
491
- ``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