UNPKG

walk-sync

Version:

Get an array of recursive directory contents

109 lines (58 loc) 1.96 kB
# master # 3.0.0 * [BREAKING] drop node 8 * upgrade all deps * move to GH Actions * [Bugfix] handle EPERM from windows filesystems correctly # 2.2.0 * add globOptions to provide the capability to configure string globs with all minimatch options passed to `globs` and `ignored` # 2.1.0 * Add the ability to provide an alternative `fs` implementation via options. # 2.0.0 * Drop support for unsupported Node versions (Support 8.* + >= 10) # 1.1.0 * [Bugfix] break cycles caused by symlinks. Specifically, when traversing directory structures we now no longer re-enter. # 1.0.1 * fix typescript typings entry.mtime is number not date # 1.0.0 * no changes, simply releasing as 1.0.0 to signify stability # 0.3.4 * added includeBaseDir to doc * ES6ify the readme # 0.3.3 * Added Typescript types # 0.3.2 * add `includeBasePath` so walkSync results are prepended with the basePath. # 0.3.1 * whitelist index.js for publish (don't publish uneeded files) # 0.3.0 * add ignore globs # 0.2.7 * [BUGFIX] Previously `walkSync` returned entries sorted by `relativePath` almost, but not quite, lexicographically. This now sorts lexicographically in all cases. # 0.2.6 * On Windows, normalize backslashes in root path to forward slashes # 0.2.5 * Exclude all non-essential files from npm # 0.2.4 * Fix file entries to have a numeric timestamp rather than a `Date` # 0.2.3 * Extract matcher-collection into separate package # 0.2.2 * Add `walkSync.entries`, which returns objects instead of files # 0.2.1 * Add `directories` flag * Allow passing the globs array as a `globs` option # 0.2.0 * Add optional `globArray` parameter # 0.1.3 * Switch to `fs.statSync` (instead of `fs.lstatSync`) to follow symlinks. # 0.1.2 * Sort readdir entries for deterministic behavior # 0.1.1 * Do not follow symlinks (as advertised) # 0.1.0 * Bump version without change, to allow for caret/tilde dependencies # 0.0.1 * Initial release