@@ -1400,6 +1400,9 @@ behavior is similar to `cp dir1/ dir2/`.
14001400<!-- YAML
14011401added: v22.0.0
14021402changes:
1403+ - version: REPLACEME
1404+ pr-url: https://github.com/nodejs/node/pull/64003
1405+ description: Add support for the ` maxDepth` option.
14031406 - version:
14041407 - v26.1.0
14051408 - v24.16.0
@@ -1436,6 +1439,8 @@ changes:
14361439 not supported.
14371440 * ` followSymlinks` {boolean} When ` true ` , symbolic links to directories are
14381441 followed while expanding ` ** ` patterns. **Default:** ` false ` .
1442+ * ` maxDepth` {integer} Maximum number of directory levels to traverse.
1443+ The ` cwd` directory has a depth of ` 0 ` . **Default:** ` Infinity ` .
14391444 * ` withFileTypes` {boolean} ` true ` if the glob should return paths as Dirents,
14401445 ` false ` otherwise. **Default:** ` false ` .
14411446* Returns: {AsyncIterator} An AsyncIterator that yields the paths of files
@@ -3556,6 +3561,9 @@ descriptor. See [`fs.utimes()`][].
35563561<!-- YAML
35573562added: v22.0.0
35583563changes:
3564+ - version: REPLACEME
3565+ pr-url: https://github.com/nodejs/node/pull/64003
3566+ description: Add support for the `maxDepth` option.
35593567 - version:
35603568 - v26.1.0
35613569 - v24.16.0
@@ -3590,6 +3598,8 @@ changes:
35903598 `true` to exclude the item, `false` to include it. **Default:** `undefined`.
35913599 * `followSymlinks` {boolean} When `true`, symbolic links to directories are
35923600 followed while expanding `**` patterns. **Default:** `false`.
3601+ * `maxDepth` {integer} Maximum number of directory levels to traverse.
3602+ The `cwd` directory has a depth of `0`. **Default:** `Infinity`.
35933603 * `withFileTypes` {boolean} `true` if the glob should return paths as Dirents,
35943604 `false` otherwise. **Default:** `false`.
35953605
@@ -6187,6 +6197,9 @@ Synchronous version of [`fs.futimes()`][]. Returns `undefined`.
61876197<!-- YAML
61886198added: v22.0.0
61896199changes:
6200+ - version: REPLACEME
6201+ pr-url: https://github.com/nodejs/node/pull/64003
6202+ description: Add support for the ` maxDepth` option.
61906203 - version:
61916204 - v26.1.0
61926205 - v24.16.0
@@ -6220,6 +6233,8 @@ changes:
62206233 ` true ` to exclude the item, ` false ` to include it. **Default:** ` undefined ` .
62216234 * ` followSymlinks` {boolean} When ` true ` , symbolic links to directories are
62226235 followed while expanding ` ** ` patterns. **Default:** ` false ` .
6236+ * ` maxDepth` {integer} Maximum number of directory levels to traverse.
6237+ The ` cwd` directory has a depth of ` 0 ` . **Default:** ` Infinity ` .
62236238 * ` withFileTypes` {boolean} ` true ` if the glob should return paths as Dirents,
62246239 ` false ` otherwise. **Default:** ` false ` .
62256240* Returns: {string\[ ]} paths of files that match the pattern.
0 commit comments