@@ -1436,6 +1436,8 @@ changes:
14361436 not supported.
14371437 * ` followSymlinks` {boolean} When ` true ` , symbolic links to directories are
14381438 followed while expanding ` ** ` patterns. **Default:** ` false ` .
1439+ * ` maxDepth` {integer} Maximum number of directory levels to traverse.
1440+ The ` cwd` directory has a depth of ` 0 ` . **Default:** ` Infinity ` .
14391441 * ` withFileTypes` {boolean} ` true ` if the glob should return paths as Dirents,
14401442 ` false ` otherwise. **Default:** ` false ` .
14411443* Returns: {AsyncIterator} An AsyncIterator that yields the paths of files
@@ -3590,6 +3592,8 @@ changes:
35903592 `true` to exclude the item, `false` to include it. **Default:** `undefined`.
35913593 * `followSymlinks` {boolean} When `true`, symbolic links to directories are
35923594 followed while expanding `**` patterns. **Default:** `false`.
3595+ * `maxDepth` {integer} Maximum number of directory levels to traverse.
3596+ The `cwd` directory has a depth of `0`. **Default:** `Infinity`.
35933597 * `withFileTypes` {boolean} `true` if the glob should return paths as Dirents,
35943598 `false` otherwise. **Default:** `false`.
35953599
@@ -6220,6 +6224,8 @@ changes:
62206224 ` true ` to exclude the item, ` false ` to include it. **Default:** ` undefined ` .
62216225 * ` followSymlinks` {boolean} When ` true ` , symbolic links to directories are
62226226 followed while expanding ` ** ` patterns. **Default:** ` false ` .
6227+ * ` maxDepth` {integer} Maximum number of directory levels to traverse.
6228+ The ` cwd` directory has a depth of ` 0 ` . **Default:** ` Infinity ` .
62236229 * ` withFileTypes` {boolean} ` true ` if the glob should return paths as Dirents,
62246230 ` false ` otherwise. **Default:** ` false ` .
62256231* Returns: {string\[ ]} paths of files that match the pattern.
0 commit comments