@@ -1414,6 +1414,9 @@ behavior is similar to `cp dir1/ dir2/`.
14141414<!-- YAML
14151415added: v22.0.0
14161416changes:
1417+ - version: REPLACEME
1418+ pr-url: https://github.com/nodejs/node/pull/64003
1419+ description: Add support for the ` maxDepth` option.
14171420 - version: v26.1.0
14181421 pr-url: https://github.com/nodejs/node/pull/62695
14191422 description: Add support for the ` followSymlinks` option.
@@ -1448,6 +1451,8 @@ changes:
14481451 not supported.
14491452 * ` followSymlinks` {boolean} When ` true ` , symbolic links to directories are
14501453 followed while expanding ` ** ` patterns. **Default:** ` false ` .
1454+ * ` maxDepth` {integer} Maximum number of directory levels to traverse.
1455+ The ` cwd` directory has a depth of ` 0 ` . **Default:** ` Infinity ` .
14511456 * ` withFileTypes` {boolean} ` true ` if the glob should return paths as Dirents,
14521457 ` false ` otherwise. **Default:** ` false ` .
14531458* Returns: {AsyncIterator} An AsyncIterator that yields the paths of files
@@ -3618,6 +3623,9 @@ descriptor. See [`fs.utimes()`][].
36183623<!-- YAML
36193624added: v22.0.0
36203625changes:
3626+ - version: REPLACEME
3627+ pr-url: https://github.com/nodejs/node/pull/64003
3628+ description: Add support for the `maxDepth` option.
36213629 - version: v26.1.0
36223630 pr-url: https://github.com/nodejs/node/pull/62695
36233631 description: Add support for the `followSymlinks` option.
@@ -3650,6 +3658,8 @@ changes:
36503658 `true` to exclude the item, `false` to include it. **Default:** `undefined`.
36513659 * `followSymlinks` {boolean} When `true`, symbolic links to directories are
36523660 followed while expanding `**` patterns. **Default:** `false`.
3661+ * `maxDepth` {integer} Maximum number of directory levels to traverse.
3662+ The `cwd` directory has a depth of `0`. **Default:** `Infinity`.
36533663 * `withFileTypes` {boolean} `true` if the glob should return paths as Dirents,
36543664 `false` otherwise. **Default:** `false`.
36553665
@@ -6256,6 +6266,9 @@ Synchronous version of [`fs.futimes()`][]. Returns `undefined`.
62566266<!-- YAML
62576267added: v22.0.0
62586268changes:
6269+ - version: REPLACEME
6270+ pr-url: https://github.com/nodejs/node/pull/64003
6271+ description: Add support for the ` maxDepth` option.
62596272 - version: v26.1.0
62606273 pr-url: https://github.com/nodejs/node/pull/62695
62616274 description: Add support for the ` followSymlinks` option.
@@ -6287,6 +6300,8 @@ changes:
62876300 ` true ` to exclude the item, ` false ` to include it. **Default:** ` undefined ` .
62886301 * ` followSymlinks` {boolean} When ` true ` , symbolic links to directories are
62896302 followed while expanding ` ** ` patterns. **Default:** ` false ` .
6303+ * ` maxDepth` {integer} Maximum number of directory levels to traverse.
6304+ The ` cwd` directory has a depth of ` 0 ` . **Default:** ` Infinity ` .
62906305 * ` withFileTypes` {boolean} ` true ` if the glob should return paths as Dirents,
62916306 ` false ` otherwise. **Default:** ` false ` .
62926307* Returns: {string\[ ]} paths of files that match the pattern.
0 commit comments