Skip to content

Commit 84a55bb

Browse files
committed
CSHARP-1880: Update doc landing page to include version 2.4.
1 parent aec9386 commit 84a55bb

File tree

7 files changed

+135
-21
lines changed

7 files changed

+135
-21
lines changed

Docs/landing/data/releases.toml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
current = "2.3.0"
1+
current = "2.4.1"
2+
[[versions]]
3+
version = "2.4.1"
4+
status = "current"
5+
docs = "./2.4/"
6+
api = "./2.4/apidocs"
7+
28
[[versions]]
39
version = "2.3.0"
410
status = "current"
@@ -34,32 +40,32 @@ current = "2.3.0"
3440
package = "MongoDB.Driver"
3541
description = "The driver."
3642
dependencies = ".NET Core Driver,.NET BSON Library"
37-
versions = "2.3.0,2.2.4,2.1.1,2.0.2"
43+
versions = "2.4.1,2.3.0,2.2.4,2.1.1,2.0.2"
3844

3945
[[drivers]]
4046
name = ".NET GridFS"
4147
package = "MongoDB.Driver.GridFS"
4248
description = "The GridFS library."
4349
dependencies = ".NET Driver,.NET Core Driver,.NET BSON Library"
44-
versions = "2.3.0,2.2.4,2.1.1"
50+
versions = "2.4.1,2.3.0,2.2.4,2.1.1"
4551

4652
[[drivers]]
4753
name = ".NET Core Driver"
4854
package = "MongoDB.Driver.Core"
4955
description = "The core driver."
5056
dependencies = ".NET BSON Library"
51-
versions = "2.3.0,2.2.4,2.1.1,2.0.2"
57+
versions = "2.4.1,2.3.0,2.2.4,2.1.1,2.0.2"
5258

5359
[[drivers]]
5460
name = ".NET BSON Library"
5561
package = "MongoDB.Bson"
5662
description = "The BSON library."
5763
dependencies = ""
58-
versions = "2.3.0,2.2.4,2.1.1,2.0.2"
64+
versions = "2.4.1,2.3.0,2.2.4,2.1.1,2.0.2"
5965

6066
[[drivers]]
6167
name = ".NET Legacy Driver"
6268
package = "mongocsharpdriver"
6369
description = "The legacy driver."
6470
dependencies = ".NET Driver,.NET Core Driver,.NET BSON Library"
65-
versions = "2.3.0,2.2.4,2.1.1,2.0.2,1.11"
71+
versions = "2.4.1,2.3.0,2.2.4,2.1.1,2.0.2,1.11"

Docs/landing/static/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"version": "2.3"},{"version": "2.2"},{"version": "2.1"},{"version": "2.0"}, {"version": "1.11"}]
1+
[{"version": "2.4"},{"version": "2.3"},{"version": "2.2"},{"version": "2.1"},{"version": "2.0"}, {"version": "1.11"}]

Docs/reference/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
baseurl = "/mongo-csharp-driver/2.3"
1+
baseurl = "/mongo-csharp-driver/2.4"
22
languageCode = "en-us"
33
title = "MongoDB .NET Driver"
44
theme = "mongodb"

Docs/reference/content/index.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,11 @@ type = "index"
1010
The [Getting Started]({{< relref "getting_started\index.md" >}}) guide contains information about system requirements, installation, and a simple tutorial to get up and running quickly.
1111

1212

13-
## What's new in 2.3
13+
## What's new in 2.4
1414

1515
The [What's New]({{< relref "what_is_new.md" >}}) section contains the major new features of the driver.
1616

17-
The main new feature is support for .NET Core.
18-
19-
The Nuget packages target two versions of the .NET frameworks: net45 and netstandard1.5. The net45 target allows the driver to be used with the full .NET Framework
20-
version 4.5 and later, and the netstandard1.5 target allows the driver to be used with any framework that supports netstandard1.5, which includes .NET Core 1.0.
17+
The main new feature is support for version 3.4 of the server.
2118

2219

2320
## Upgrading

Docs/reference/content/upgrading.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ title = "Upgrading"
1111

1212
## Breaking Changes
1313

14-
2.3.0 is a minor revision that comes with new features. There should not be any backwards breaking changes.
14+
There should be no breaking changes in version 2.4.0 of the driver.

Docs/reference/content/what_is_new.md

Lines changed: 117 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,124 @@ title = "What's New"
88
pre = "<i class='fa fa-star'></i>"
99
+++
1010

11-
## What's new in 2.3
11+
## What's new in 2.4.0
1212

13-
The 2.3.0 driver is a minor release with few new features. The most notable is discussed below.
13+
The 2.4.0 driver is a minor release that adds support for new features introduced in server 3.4 and fixes bugs reported since 2.3.0 was released.
1414

15-
## Support for .NET Core
15+
### Decimal128 data type
1616

17-
You can now use the .NET driver with .NET Core.
17+
Server 3.4 introduces the new decimal BSON data type. Version 2.4.0 of the .NET Driver adds support for the decimal BSON data type with the new BsonDecimal128
18+
and Decimal128 classes. BsonDecimal128 is the subclass of BsonValue for Decimal128 values, and the Decimal128 struct holds the actual value. This is the same
19+
relationship that exists between the BsonObjectId and ObjectId classes.
1820

19-
The Nuget packages target two versions of the .NET frameworks: net45 and netstandard1.5. The net45 target allows the driver to be used with the full .NET Framework
20-
version 4.5 and later, and the netstandard1.5 target allows the driver to be used with any framework that supports netstandard1.5, which includes .NET Core 1.0.
21+
There are no arithmetic operations provided on Decimal128 values, but Decimal128 values can be converted to C# decimal or double values and you can operate on those.
22+
23+
### New convention for automapping immutable classes for serialization
24+
25+
The new ImmutableTypeClassMapConvention supports automapping immutable classes for automatic serialization using the BsonClassMapSerializer.
26+
27+
### EnumRepresentationConvention now applies to nullable enums also
28+
29+
The EnumRepresentationConvention can be used to specify the representation of enum values, but prior to 2.4.0 it did not apply to nullable enums.
30+
This convention has been enhanced to apply to both nullable and regular enums.
31+
32+
### Drivers now identify themselves to the server when connecting
33+
34+
Drivers now identify themselves to the server when they connect and this information is logged by the server. Applications can add an application name to the
35+
information sent to the server, either by adding "applicationName=xyz" to the connection string or by using the ApplicationName property of MongoClientSettings.
36+
37+
### ReadPreference support for MaxStaleness
38+
39+
ReadPreference has a new MaxStaleness property that can be used when reading from secondaries to prevent reading from secondaries that are too far behind the primary.
40+
41+
### New Linearizable ReadConcernLevel
42+
43+
There is a new ReadConcernLevel called Linearizable in addition to the existing Local and Majority levels. You specify the read concern level by assigning a value to
44+
the ReadConcernLevel property of a ReadConcern value.
45+
46+
### Support for collations
47+
48+
The following database methods now support collations:
49+
50+
- CreateCollection/CreateCollectionAsync
51+
52+
The following collection methods now support collations:
53+
54+
- Aggregate fluent API
55+
- Aggregate/AggregateAsync
56+
- BulkWrite/BulkWriteAsync
57+
- Count/CountAsync
58+
- DeleteMany/DeleteManyAsync
59+
- DeleteOne/DeleteOneAsync
60+
- Distinct/DistincAsync
61+
- Find fluent API
62+
- FindSync/FindAsync
63+
- FindOneAndDelete/FindOneAndDeleteAsync
64+
- FindOneAndReplace/FindOneAndReplaceAsync
65+
- FindOneAndUpdate/FindOneAndUpdateAsync
66+
- MapReduce/MapReduceAsync
67+
- ReplaceOne/ReplaceOneAsync
68+
- UpdateMany/UpdateManyAsync
69+
- UpdateOne/UpdateOneAsync
70+
71+
The following index management metods now support collations:
72+
73+
- CreateMany/CreateManyAsync
74+
75+
All new methods support collations where appropriate as well.
76+
77+
### Support for creating read-only views
78+
79+
The IMongoDatabase interface has new CreateView/CreateViewAsync methods that support creating read-only views.
80+
81+
### Support for new aggregation framework pipeline operators
82+
83+
The aggregate fluent API supports the following new aggregation pipeline operators:
84+
85+
- Bucket ($bucket)
86+
- BucketAuto ($bucketAuto)
87+
- Count ($count)
88+
- Facet ($facet)
89+
- GraphLookup ($graphLookup)
90+
- ReplaceRoot ($replaceRoot)
91+
- SortByCount ($sortByCount)
92+
93+
LINQ now supports the following additional LINQ methods and maps them to equivalent aggregation pipeline operator(s):
94+
95+
- Aggregate ($reduce)
96+
- Average ($avg)
97+
- IndexOf ($indexOfBytes or $indexOfCP)
98+
- Length ($strLenBytes or $strLenCP)
99+
- Range ($range)
100+
- Reverse ($reverseArray)
101+
- Split ($split)
102+
- Substr ($substr or $substrCP)
103+
- Zip ($zip)
104+
105+
### New Aggregate Pipeline and Stage builders
106+
107+
In earlier versions of the driver the aggregate fluent API had methods supporting creating a pipeline to be
108+
executed when the aggregate fluent object was executed, but there was no way to build a standalone pipeline value.
109+
110+
With the introduction of the CreateView method and Facet pipeline operators there is now a need to create
111+
pipelines separately from the aggregate fluent API.
112+
113+
The new PipelineDefinitionBuilder class can be used to create pipelines.
114+
115+
### Aggregate and LINQ expressions now use the underlying field serializer to serialize constant values
116+
117+
When building pipelines and converting LINQ expressions to pipelines constants are now serialized using the
118+
underlying field serializer so that the values are serialized the same way that they are stored in the database.
119+
120+
### ClusterRegistry has a new UnregisterAndDisposeCluster method
121+
122+
Normally the driver creates a pool of connections to a server the first time that server is used. This is
123+
advantageous because it speeds up subsequent uses of that server since there are already open connections
124+
that can be re-used.
125+
126+
But sometimes users write applications that connect to hundreds of servers. If these applications only use
127+
these servers for a brief period of time and then don't use them anymore the resulting connection pool will
128+
continue to hold a number of open connections that are no longer needed.
129+
130+
If you find yourself needing to shut down a connection pool you can use the new UnregisterAndDisposeCluster
131+
method of the ClusterRegistry class.

Docs/reference/data/mongodb.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
githubRepo = "mongo-csharp-driver"
22
githubBranch = "master"
3-
currentVersion = "2.3"
3+
currentVersion = "2.4"
44
highlightTheme = "idea.css"
55
apiUrl = "/apidocs/html"

0 commit comments

Comments
 (0)