@@ -83,6 +83,20 @@ Community Edition
8383
8484- :abbr:`RHEL (Red Hat Enterprise Linux)`-72-s390x
8585
86+ Regular Expressions
87+ -------------------
88+
89+ ``$regex`` Find Queries No Longer Ignore Invalid Regex
90+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91+
92+ .. include:: /includes/fact-5.1-regex-find-functionality.rst
93+
94+ ``$regex`` Schema Validation Error Behavior
95+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
96+
97+ .. include:: /includes/fact-5.1-regex-document-schema-validation.rst
98+
99+
86100Removed Operators
87101-----------------
88102
@@ -220,16 +234,6 @@ Deprecations
220234
221235 - The :dbcommand:`reIndex` command is deprecated in MongoDB v6.0.
222236
223- ``$regex`` Find Queries No Longer Ignore Invalid Regex
224- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
225-
226- .. include:: /includes/fact-5.1-regex-find-functionality.rst
227-
228- ``$regex`` Schema Validation Error Behavior
229- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230-
231- .. include:: /includes/fact-5.1-regex-document-schema-validation.rst
232-
233237``$mod`` Error Behavior
234238~~~~~~~~~~~~~~~~~~~~~~~
235239
@@ -300,6 +304,73 @@ will receive an error message like the following:
300304 :: caused by :: network error while attempting to run command
301305 'isMaster' on host '127.0.0.1:27017'
302306
307+ .. _6.0-js-engine-change:
308+
309+ Removed Array and String Functions for Server-Side JavaScript
310+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
311+
312+ .. include:: /includes/fact-6.0-js-engine-change.rst
313+
314+ Removed Array Functions
315+ ```````````````````````
316+
317+ Starting in MongoDB 6.0, the following array functions are removed and
318+ cannot be used in server-side JavaScript with ``$accumulator``,
319+ ``$function``, and ``$where`` expressions:
320+
321+ - ``Array.concat``
322+ - ``Array.every``
323+ - ``Array.filter``
324+ - ``Array.forEach``
325+ - ``Array.indexOf``
326+ - ``Array.join``
327+ - ``Array.lastIndexOf``
328+ - ``Array.map``
329+ - ``Array.pop``
330+ - ``Array.push``
331+ - ``Array.reduce``
332+ - ``Array.reduceRight``
333+ - ``Array.reverse``
334+ - ``Array.shift``
335+ - ``Array.slice``
336+ - ``Array.some``
337+ - ``Array.sort``
338+ - ``Array.splice``
339+ - ``Array.unshift``
340+
341+ Removed String Functions
342+ ````````````````````````
343+
344+ Starting in MongoDB 6.0, the following array functions are removed and
345+ cannot be used in server-side JavaScript with ``$accumulator``,
346+ ``$function``, and ``$where`` expressions:
347+
348+ - ``String.charAt``
349+ - ``String.charCodeAt``
350+ - ``String.concat``
351+ - ``String.contains``
352+ - ``String.endsWith``
353+ - ``String.includes``
354+ - ``String.indexOf``
355+ - ``String.lastIndexOf``
356+ - ``String.localeCompare``
357+ - ``String.match``
358+ - ``String.normalize``
359+ - ``String.replace``
360+ - ``String.search``
361+ - ``String.slice``
362+ - ``String.split``
363+ - ``String.startsWith``
364+ - ``String.substr``
365+ - ``String.substring``
366+ - ``String.toLocaleLowerCase``
367+ - ``String.toLocaleUpperCase``
368+ - ``String.toLowerCase``
369+ - ``String.toUpperCase``
370+ - ``String.trim``
371+ - ``String.trimLeft``
372+ - ``String.trimRight``
373+
303374Default ``db.stats()`` Settings
304375~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
305376
0 commit comments