Skip to content

Release 4 4 #287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 18, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions snooty.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name = "node"
title = "Node.js"

toc_landing_pages = ["/fundamentals/authentication", "/fundamentals", "/fundamentals/crud", "/usage-examples"]
toc_landing_pages = [
"/fundamentals/authentication",
"/fundamentals",
"/fundamentals/crud",
"/usage-examples",
]
sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"

[constants]
version = "4.3"
version = "4.4"
package-name-org = "mongodb-org"
pgp-version = "{+version+}"
api = "https://mongodb.github.io/node-mongodb-native/{+version+}"
Expand Down
8 changes: 8 additions & 0 deletions source/compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ Compatibility

MongoDB Compatibility
---------------------
The following compatibility table specifies the recommended versions of
the {+driver-long+} for use with MongoDB.

The first column lists the driver version.

:ref:`What information does the MongoDB Compatibility table show? <mongodb-compatibility-table-about-node>`

.. include:: /includes/mongodb-compatibility-table-node.rst

Language Compatibility
----------------------
The following compatibility table specifies the recommended versions of
the {+driver-long+} for use with a specific version of Node.js.

The first column lists the driver version.

:ref:`What information does the Language Compatibility table show? <language-compatibility-table-about-node>`

Expand Down
10 changes: 5 additions & 5 deletions source/fundamentals/typescript.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ Type Safety and Dot Notation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you specify a query or update with **dot notation**, the {+driver-short+}
provides type safety if your query or update does not
provides type safety if your query or update does not
:ref:`reference a nested instance of a recursive type <node-driver-recursive-types-dot-notation>`.
Dot notation is a syntax you can use to navigate nested JSON objects.

The following code snippet defines the ``ClassificationPet`` interface,
which includes a ``classification`` field that enables you to specify the
genus and color of dogs and cats:
genus and color of dogs and cats:

.. code-block:: typescript

Expand All @@ -131,12 +131,12 @@ The type error raised by the preceding code snippet is as follows:
...
Type '"Sylvilagus"' is not assignable to type 'Condition<"Canis" | "Felis">'.

To learn more about dot notation, see
To learn more about dot notation, see
:manual:`Dot Notation </core/document/#dot-notation>`
in the MongoDB manual.

To learn more about the limitations of dot notation in the
{+driver-short+}, see the
{+driver-short+}, see the
:ref:`<node-driver-recursive-types-dot-notation>`
section.

Expand All @@ -145,4 +145,4 @@ section.
Limitations of Driver Version {+version+}
---------------------------------

.. include:: includes/limitations/{+version+}.rst
.. include:: includes/limitations/limits.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Learn about the following TypeScript specific limitations of
version 4.3 of the {+driver-short+}:
version {+version+} of the {+driver-short+}:

- :ref:`No type safety for dot notation references to nested instances of recursive types <node-driver-recursive-types-dot-notation>`
- :ref:`No mutually recursive types <node-driver-limitations-mutual-recursion>`
Expand Down Expand Up @@ -59,15 +59,15 @@ The following code snippet references a top-level instance of the
The error raised by the preceding code snippet is as follows:

.. code-block:: none

index.ts(19,59): error TS2769: No overload matches this call.
The last overload gave the following error.
Type 'string' is not assignable to type 'Condition<Pet>'.

If you must have type safety within nested instances of recursive types,
you must write your query or update without dot notation.

To learn more about dot notation, see
To learn more about dot notation, see
:manual:`Dot Notation </core/document/#dot-notation>`
in the MongoDB manual.

Expand Down
152 changes: 82 additions & 70 deletions source/includes/mongodb-compatibility-table-node.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
- MongoDB 3.2
- MongoDB 3.0
- MongoDB 2.6
* - 4.4
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
-
-
-
-
* - 4.3
- ✓
- ✓
Expand All @@ -23,10 +35,10 @@
- ✓
- ✓
- ✓
-
-
-
-
-
-
-
-
* - 4.2
- ✓
- ✓
Expand All @@ -35,13 +47,13 @@
- ✓
- ✓
- ✓
-
-
-
-
-
-
-
-
* - 4.1
-
-
-
-
- ✓
- ✓
- ✓
Expand All @@ -52,8 +64,8 @@
- ✓
- ✓
* - 4.0
-
-
-
-
- ✓
- ✓
- ✓
Expand All @@ -64,8 +76,8 @@
- ✓
- ✓
* - 3.7 [#unified-topology]_
-
-
-
-
- ✓
- ✓
- ✓
Expand All @@ -76,9 +88,9 @@
- ✓
- ✓
* - 3.6
-
-
-
-
-
-
- ✓
- ✓
- ✓
Expand All @@ -88,10 +100,10 @@
- ✓
- ✓
* - 3.5
-
-
-
-
-
-
-
-
- ✓
- ✓
- ✓
Expand All @@ -100,10 +112,10 @@
- ✓
- ✓
* - 3.4
-
-
-
-
-
-
-
-
- ✓
- ✓
- ✓
Expand All @@ -112,10 +124,10 @@
- ✓
- ✓
* - 3.3
-
-
-
-
-
-
-
-
- ✓
- ✓
- ✓
Expand All @@ -124,75 +136,75 @@
- ✓
- ✓
* - 3.2.1
-
-
-
-
-
-
-
-
-
-
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
* - 3.1
-
-
-
-
-
-
-
-
-
-
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
* - 3.0
-
-
-
-
-
-
-
-
-
-
-
-
- ✓
- ✓
- ✓
- ✓
- ✓
* - 2.2.12
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ✓
- ✓
- ✓
- ✓
* - 2.0.14
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ✓
- ✓
* - 1.4.29
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ✓
- ✓

Expand Down
22 changes: 22 additions & 0 deletions source/whats-new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,34 @@ What's New

Learn what's new in:

* :ref:`Version 4.4 <version-4.4>`
* :ref:`Version 4.3 <version-4.3>`
* :ref:`Version 4.2 <version-4.2>`
* :ref:`Version 4.1 <version-4.1>`
* :ref:`Version 4.0 <version-4.0>`
* :ref:`Version 3.6 <version-3.6>`

.. _version-4.4:

What's New in 4.4
-----------------

New features of the 4.4 Node.js driver release include:

- KMIP support when using CSFLE.
- TLS support when using CSFLE.
- Hostname canonicalization now accepts "none", "forward", and "forwardAndReverse" as ``authMechanismProperties`` when using GSSAPI.
- In the 4.0.0 release of the driver, the deprecated ``collection.count()`` method was inadvertently changed to behave like ``collection.countDocuments()``.
In this release, the ``collection.count()`` method is updated to match legacy behavior:

- If a query is passed in, ``collection.count()`` will behave the same as ``collection.countDocuments()`` and perform a collection scan.
- If no query is passed in, ``collection.count()`` will behave the same as ``collection.estimatedDocumentCount()`` and rely on collection metadata..

.. important:: Deprecation Notice

The ``cursor.count()`` method is deprecated and will be removed in the next major version, along with ``collection.count()``.
Use ``collection.estimatedDocumentCount()`` or ``collection.countDocuments()`` instead.

.. _version-4.3:

What's New in 4.3
Expand Down