Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 2.28 KB

CHANGELOG.md

File metadata and controls

73 lines (49 loc) · 2.28 KB

6.0.0 / 2018-09-22

Added

  • traverseAll option. It would allow to traverse all subdirectories regardless of filter option. #13 (Thanks to @jskrzypek)

5.0.0 / 2018-09-05

Changed

  • Updated the algorithm to handle depthLimit option properly. #12 (Thanks to @Geelik)

4.0.0 / 2018-04-30

Removed

  • BREAKING Removed noRecurseOnFailedFilter option because it was counter-intuitive and confusing.

Added

  • fs option. It is useful when mocking fs object.
  • depthLimit option. It can be used to specify the number of times to recurse before stopping.

3.0.2 / 2017-10-21

  • Use var instead of let in for loop.

3.0.0 / 2017-08-06

Changed

  • graceful-fs is now a regular dependency, and is always loaded. This should speed up require time.

2.1.0 / 2017-04-25

Fixed

  • Apply opts.nodir and opts.nofile when filter option is used.

2.0.0 / 2017-04-23

Removed

  • BREAKING: Removed support for ignore option. Instead, filter option can be used. See: #1

Added

  • filter option. A function that gets one argument fn({path: '', stats: {}}) and returns true to include or false to exclude the item.
  • noRecurseOnFailedFilter option to prevent unnecessary traversal of unwanted directories when filter function is used.

1.1.2 / 2017-02-17

  • Changed to traditional for loop instead of using Array.forEach() because of better performance.

1.1.1 / 2017-02-05

  • changed handling error to throw the exception

1.1.0 / 2017-01-25

  • switched from multimatch to micromatch for matching ignore patterns (showed faster performance)
  • bug fixed: normalize root directory to make sure always return absolute paths.

1.0.2 / 2017-01-17

  • initial release