Skip to content

Commit eda5a42

Browse files
authored
DOCSP-20542 rename all versioned-api verbiage and refs (#424)
* DOCSP-20542 rename all versioned-api verbiage and refs * fix header lengths * tweak redirects * comments back to Versioned API * * * remove duplicate redirects * stable-api.txt update * stable-api.txt headers * more tweaks to stable-api.txt * Add naming note and reference the versioned api name change * * * ** * add name change to release 5.0 notes * move naming changes section * * * ***
1 parent 0b2591c commit eda5a42

File tree

14 files changed

+87
-70
lines changed

14 files changed

+87
-70
lines changed

config/redirects

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1897,9 +1897,12 @@ raw: /manual/core/wildcard -> ${base}/manual/core/index-wildcard/
18971897
[v3.6-v4.4]: /${version}/reference/versioned-api -> ${base}/${version}/reference/
18981898
[v3.6-v4.4]: /${version}/tutorial/mitigate-psa-performance-issues -> ${base}/${version}/administration/replica-set-maintenance/
18991899
[v3.6-v4.4]: /${version}/tutorial/modify-psa-replica-set-safely -> ${base}/${version}/administration/replica-set-maintenance/
1900+
[v3.6-v4.4]: /${version}/reference/stable-api/ -> ${base}/${version}/reference/
1901+
[v3.6-v4.4]: /${version}/reference/stable-api-reference/ -> ${base}/${version}/reference/
19001902

19011903
[v5.0-*]: /${version}/reference/read-concern-majority/#disable-read-concern-majority -> ${base}/${version}/reference/read-concern-majority/#primary-secondary-arbiter-replica-sets
1902-
1904+
[v5.0-*]: /${version}/reference/versioned-api/ -> ${base}/${version}/reference/stable-api/
1905+
[v5.0-*]: /${version}/reference/versioned-api-reference/ -> ${base}/${version}/reference/stable-api-reference/
19031906

19041907
#
19051908
# Redirects for 5.1 and greater (if pages are removed in 5.0 that used to exist in earlier versions)

snooty.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ toc_landing_pages = [
146146
"/reference/replication",
147147
"/reference/security",
148148
"/reference/sharding",
149-
"/reference/versioned-api",
149+
"/reference/stable-api",
150150
"/release-notes/2.4",
151151
"/release-notes/2.6",
152152
"/release-notes/3.0",

source/core/capped-collections.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ Transactions
132132

133133
.. include:: /includes/extracts/transactions-capped-collection-change.rst
134134

135-
Versioned API
136-
~~~~~~~~~~~~~
135+
Stable API
136+
~~~~~~~~~~
137137

138-
Capped collections are not supported in :ref:`Versioned API
139-
<versioned-api>` V1.
138+
Capped collections are not supported in :ref:`Stable API
139+
<stable-api>` V1.
140140

141141
Procedures
142142
----------

source/reference.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ Reference
7979
:doc:`/reference/server-sessions`
8080
Describes server sessions.
8181

82-
:doc:`/reference/versioned-api`
83-
Describes the Versioned API.
82+
:doc:`/reference/stable-api`
83+
Describes the Stable API.
8484

8585
.. seealso::
8686

@@ -112,4 +112,4 @@ Reference
112112
/reference/default-mongodb-port
113113
/reference/mongodb-defaults
114114
/reference/server-sessions
115-
/reference/versioned-api
115+
/reference/stable-api

source/reference/command/aggregate.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ For :dbcommand:`aggregate` operation that do not include the
309309

310310
.. include:: /includes/extracts/4.2-changes-disconnect.rst
311311

312-
Versioned API
313-
-------------
312+
Stable API
313+
----------
314314

315-
When using :ref:`Versioned API <versioned-api>` V1:
315+
When using :ref:`Stable API <stable-api>` V1:
316316

317317
- You cannot use the following stages in an :dbcommand:`aggregate`
318318
command:

source/reference/command/create.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,12 @@ Transactions
400400

401401
.. |operation| replace:: :dbcommand:`create`
402402

403-
Versioned API
404-
~~~~~~~~~~~~~
403+
Stable API
404+
~~~~~~~~~~
405405

406406
.. versionchanged:: 5.0
407407

408-
When using :ref:`Versioned API <versioned-api>` V1, you cannot specify
408+
When using :ref:`Stable API <stable-api>` V1, you cannot specify
409409
the following fields in a :dbcommand:`create` command:
410410

411411
- ``autoIndexId``

source/reference/command/createIndexes.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,10 @@ Collation and Index Types
594594

595595
.. include:: /includes/extracts/collation-index-type-restrictions-addendum.rst
596596

597-
Versioned API
598-
~~~~~~~~~~~~~
597+
Stable API
598+
~~~~~~~~~~
599599

600-
When using :ref:`Versioned API <versioned-api>` V1:
600+
When using :ref:`Stable API <stable-api>` V1:
601601

602602
- You cannot specify any of the following fields in the ``indexes`` array:
603603

source/reference/command/find.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,10 @@ Client Disconnection
550550

551551
.. include:: /includes/extracts/4.2-changes-disconnect.rst
552552

553-
Versioned API
554-
~~~~~~~~~~~~~
553+
Stable API
554+
~~~~~~~~~~
555555

556-
When using :ref:`Versioned API <versioned-api>` V1, the following
556+
When using :ref:`Stable API <stable-api>` V1, the following
557557
:dbcommand:`find` command fields are not supported:
558558

559559
- ``awaitData``

source/reference/command/setParameter.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ do not survive server restarts. For a persistent option use the
3939
:option:`--setParameter <mongod --setParameter>` command line option
4040
or the :setting:`setParameter` configuration file setting.
4141

42-
Versioned API
43-
~~~~~~~~~~~~~
42+
Stable API
43+
~~~~~~~~~~
4444

45-
When using :ref:`Versioned API <versioned-api>` V1 with :ref:`apiStrict
45+
When using :ref:`Stable API <stable-api>` V1 with :ref:`apiStrict
4646
<api-strict-desc>` set to ``true``, you cannot use
4747
:dbcommand:`setParameter` to modify server parameters.

source/reference/program/mongo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Core Options
242242

243243
Specifies that the server will respond with :ref:`APIStrictError
244244
<api-strict-resp>` if your application uses a command or behavior
245-
outside of the :doc:`Versioned API </reference/versioned-api>`.
245+
outside of the :doc:`Stable API </reference/stable-api>`.
246246

247247
If you specify :option:`--apiStrict`, you must also specify
248248
:option:`--apiVersion`.

source/reference/versioned-api.txt renamed to source/reference/stable-api.txt

Lines changed: 51 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.. _versioned-api:
1+
.. _stable-api:
22

3-
=============
4-
Versioned API
5-
=============
3+
==========
4+
Stable API
5+
==========
66

77
.. default-domain:: mongodb
88

@@ -12,19 +12,19 @@ Versioned API
1212
:depth: 1
1313
:class: singlecol
1414

15-
What is the Versioned API, and Should You Use It?
16-
-------------------------------------------------
15+
What is the Stable API, and Should You Use It?
16+
----------------------------------------------
1717

18-
The MongoDB Versioned API lets you upgrade your MongoDB server at will,
19-
and ensure that behavior changes between MongoDB versions do not break
20-
your application.
18+
The MongoDB Stable API (previously labeled the Versioned API) lets you
19+
upgrade your MongoDB server at will, and ensure that behavior changes
20+
between MongoDB versions do not break your application.
2121

22-
MongoDB 5.0 introduces the Versioned API for applications
23-
communicating with MongoDB server products. The Versioned API allows
22+
MongoDB 5.0 introduces the Stable API for applications
23+
communicating with MongoDB server products. The Stable API allows
2424
you to specify which version of the MongoDB API your application
2525
runs against.
2626

27-
The Versioned API provides long-term API stability for applications
27+
The Stable API provides long-term API stability for applications
2828
and supports more frequent releases and automatic server upgrades. This
2929
allows your applications to take advantage of rapidly released
3030
features without risking backwards-breaking changes.
@@ -33,11 +33,17 @@ The default behavior for your driver connection will continue to
3333
function as expected, even if you do not explicitly specify
3434
an :ref:`apiVersion <api-version-desc>`.
3535

36-
The Versioned API encompasses the
36+
The Stable API encompasses the
3737
:ref:`subset of MongoDB commands <api-v1-command-list>` that
3838
applications use to read and write data, create collections
3939
and indexes, and perform other common tasks.
4040

41+
.. note::
42+
43+
Starting in Feburary 2022, the "Versioned API" terminology was
44+
changed to "Stable API". All concepts and features remain the same
45+
with this naming change.
46+
4147
Backward Compatibility Guarantee
4248
--------------------------------
4349

@@ -63,7 +69,7 @@ upper-right to set the language of the examples on this page.
6369

6470
----------
6571

66-
To use the Versioned API, upgrade to the latest driver and create your
72+
To use the Stable API, upgrade to the latest driver and create your
6773
application's MongoClient:
6874

6975
.. tabs-selector:: drivers
@@ -134,7 +140,7 @@ application's MongoClient:
134140
.. tab::
135141
:tabid: java-sync
136142

137-
.. literalinclude:: /includes/driver-examples/versioned-api-java-example.java
143+
.. literalinclude:: /includes/driver-examples/stable-api-java-example.java
138144
:language: java-sync
139145
:dedent: 4
140146
:start-after: Start Versioned API Example 1
@@ -144,13 +150,13 @@ application's MongoClient:
144150

145151
By default, clients are *non-strict*. A non-strict client allows you
146152
to run any command, regardless of whether or not it belongs to the
147-
Versioned API.
153+
Stable API.
148154

149155
Create a Strict Client
150156
----------------------
151157

152-
A *strict* client rejects all commands outside of the Versioned API.
153-
Attempts to use commands outside of the Versioned API will receive the
158+
A *strict* client rejects all commands outside of the Stable API.
159+
Attempts to use commands outside of the Stable API will receive the
154160
:ref:`APIVersionError <api-vers-resp>` response.
155161

156162
Use the sample code to create a *strict* client:
@@ -221,24 +227,24 @@ Use the sample code to create a *strict* client:
221227
.. tab::
222228
:tabid: java-sync
223229

224-
.. literalinclude:: /includes/driver-examples/versioned-api-java-example.java
230+
.. literalinclude:: /includes/driver-examples/stable-api-java-example.java
225231
:language: java-sync
226232
:dedent: 4
227233
:start-after: Start Versioned API Example 2
228234
:end-before: End Versioned API Example 2
229235

230-
Migrate To Versioned API Commands
231-
---------------------------------
236+
Migrate To Stable API Commands
237+
------------------------------
232238

233-
To migrate your application to use the Versioned API, you must:
239+
To migrate your application to use the Stable API, you must:
234240

235241
#. Run your application's test suite with the new MongoClient options.
236242
#. Determine which commands and features you're using that are outside
237-
of the Versioned API.
238-
#. Migrate to alternative commands and features in the Versioned API.
243+
of the Stable API.
244+
#. Migrate to alternative commands and features in the Stable API.
239245

240246
Once your application uses only commands and features defined in the
241-
Versioned API, you can redeploy it with the new MongoClient options
247+
Stable API, you can redeploy it with the new MongoClient options
242248
and be confident that future server upgrades won't negatively
243249
impact your application.
244250

@@ -248,7 +254,7 @@ Example: :dbcommand:`count` Migration
248254
This example shows how to migrate an application that implements the
249255
:dbcommand:`count` command to an alternative method of counting
250256
documents. Since the :dbcommand:`count` command does not belong to the
251-
Versioned API, this application cannot use the Versioned API until the
257+
Stable API, this application cannot use the Stable API until the
252258
:dbcommand:`count` command is removed from the code.
253259

254260
Use the sample code to create a ``sales`` collection in
@@ -267,8 +273,8 @@ Use the sample code to create a ``sales`` collection in
267273
{ "_id" : 8, "item" : "abc", "price" : 10, "quantity" : 5, "date" : ISODate("2021-03-16T20:20:13Z") }
268274
])
269275

270-
Versioned API Error Response
271-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
276+
Stable API Error Response
277+
~~~~~~~~~~~~~~~~~~~~~~~~~
272278

273279
For example, issuing ``db.sales.count()`` results in this error:
274280

@@ -283,7 +289,7 @@ For example, issuing ``db.sales.count()`` results in this error:
283289
}
284290

285291
However, the :dbcommand:`aggregate` command is
286-
:ref:`in the Versioned API <api-v1-command-list>` and can be used to
292+
:ref:`in the Stable API <api-v1-command-list>` and can be used to
287293
obtain a count. Use the sample code to obtain a count from the ``sales``
288294
collection in :binary:`~bin.mongosh`:
289295

@@ -305,10 +311,10 @@ number of documents in the collection:
305311

306312
{ "_id" : null, "count" : 8 }
307313

308-
How To Use Commands and Features Outside of the Versioned API
309-
-------------------------------------------------------------
314+
How To Use Commands and Features Outside of the Stable API
315+
----------------------------------------------------------
310316

311-
To use commands and features outside of the Versioned API, you can
317+
To use commands and features outside of the Stable API, you can
312318
connect to your deployment with a *non-strict* client. By default,
313319
clients are *non-strict*.
314320

@@ -380,19 +386,19 @@ Use the sample code to create a *non-strict* client:
380386
.. tab::
381387
:tabid: java-sync
382388

383-
.. literalinclude:: /includes/driver-examples/versioned-api-java-example.java
389+
.. literalinclude:: /includes/driver-examples/stable-api-java-example.java
384390
:language: java-sync
385391
:dedent: 4
386392
:start-after: Start Versioned API Example 3
387393
:end-before: End Versioned API Example 3
388394

389395
Using this non-strict client allows you to run commands outside of the
390-
Versioned API. For example, this non-strict client now allows you to
396+
Stable API. For example, this non-strict client now allows you to
391397
use the :dbcommand:`count` command once again.
392398

393399
.. important::
394400

395-
Commands and features outside of the Versioned API do not have the same
401+
Commands and features outside of the Stable API do not have the same
396402
backward compatibility guarantees as versioned alternatives.
397403

398404
.. _api-v1-command-list:
@@ -404,19 +410,19 @@ API V1 protects you from API-breaking changes
404410
for the following commands:
405411

406412
- :dbcommand:`abortTransaction`
407-
- :dbcommand:`aggregate` (with limitations) [#versioned-api-command-limitations]_
413+
- :dbcommand:`aggregate` (with limitations) [#stable-api-command-limitations]_
408414
- :dbcommand:`authenticate`
409415
- :dbcommand:`collMod`
410416
- :dbcommand:`commitTransaction`
411-
- :dbcommand:`create` (with limitations) [#versioned-api-command-limitations]_
412-
- :dbcommand:`createIndexes` (with limitations) [#versioned-api-command-limitations]_
417+
- :dbcommand:`create` (with limitations) [#stable-api-command-limitations]_
418+
- :dbcommand:`createIndexes` (with limitations) [#stable-api-command-limitations]_
413419
- :dbcommand:`delete`
414420
- :dbcommand:`drop`
415421
- :dbcommand:`dropDatabase`
416422
- :dbcommand:`dropIndexes`
417423
- :dbcommand:`endSessions`
418-
- :dbcommand:`explain` (with limitations) [#versioned-api-explain]_
419-
- :dbcommand:`find` (with limitations) [#versioned-api-command-limitations]_
424+
- :dbcommand:`explain` (with limitations) [#stable-api-explain]_
425+
- :dbcommand:`find` (with limitations) [#stable-api-command-limitations]_
420426
- :dbcommand:`findAndModify`
421427
- :dbcommand:`getMore`
422428
- :dbcommand:`insert`
@@ -429,13 +435,13 @@ for the following commands:
429435
- :dbcommand:`refreshSessions`
430436
- :dbcommand:`update`
431437

432-
.. [#versioned-api-command-limitations]
438+
.. [#stable-api-command-limitations]
433439

434440
API V1 may not support all available options for these commands.
435441
Refer to the specific command documentation for limitations specific
436442
to API V1.
437443

438-
.. [#versioned-api-explain]
444+
.. [#stable-api-explain]
439445

440446
MongoDB does not guarantee that the output of the
441447
:dbcommand:`explain` command will conform to the same format in
@@ -444,7 +450,7 @@ for the following commands:
444450
Parameters
445451
----------
446452

447-
You can specify the following optional parameters for Versioned API in
453+
You can specify the following optional parameters for Stable API in
448454
your application's MongoDB driver connection code. Check the MongoDB
449455
driver documentation for the driver you use in your application for
450456
more information:
@@ -514,7 +520,7 @@ ignored.
514520
API Error Responses
515521
~~~~~~~~~~~~~~~~~~~
516522

517-
This table shows error responses for problematic Versioned API requests.
523+
This table shows error responses for problematic Stable API requests.
518524

519525
.. list-table::
520526
:widths: 25,75
@@ -558,4 +564,4 @@ This table shows error responses for problematic Versioned API requests.
558564
:titlesonly:
559565
:hidden:
560566

561-
/reference/versioned-api-reference
567+
/reference/stable-api-reference

0 commit comments

Comments
 (0)