Releases: thecodrr/fdir
Releases · thecodrr/fdir
v3.4.1
3.4.0
What's New:
- Multiple filters are now supported. So basically, this will now work as expected:
new fdir().filter(p => p.endsWith(".js")).filter(p => p.startsWith(".nim"))
- I have finally added glob pattern caching so globbing performance should increase by about 5-8% if you are using the same glob pattern again and again.
Install using:
$ npm i fdir
3.3.0
Breaking Changes:
- Due to performance reasons, I had to remove passing an
Options
object through the constructor. In place of that, now there is a newcrawlWithOptions
that takes anOptions
object in its second parameter:
new fdir().crawlWithOptions("path/to/dir", { includeBasePath: true }).sync();
Fixes:
- fdir will now properly handle the case where
picomatch
is not installed.
Improvements:
- Some minor memory improvements were made which should improve the performance slightly.
3.2.1
3.2.0
What's New:
- It is now possible to pass an
Options
object directly into the constructor, avoiding method chaining completely.
What's Fixed:
- Added missing typescript definitions for
withError
&crawl
. - Fixed another small issue where Synchronous API was causing a crash.
Install using:
npm i fdir
NOTE: This release follows semantic versioning and therefore, it is not backwards compatible with 2.x.
v3.1.1
3.1.0
3.0.0
NOTE: This is a major release and as such is not backwards compatible with 2.x & 1.x
What's New:
- New API using the builder pattern. Check the full documentation here.
- Now, fdir, by default suppresses all errors, excludes the base path etc. To enable them use the builder functions.
What's Improved:
- Crawling speed has been improved by upto 40%! Check the README for benchmarks.
- The sync & async API now share the same core making it easier to maintain and fix bugs.
What's Fixed:
- The new API allowed me to fix #12. Basically,
maxDepth
wasn't working properly. That has been fixed now.
And that's it. Enjoy the speed.
2.1.1
2.1.0
What's New?
- Added
ignoreErrors
option to ignore errors (default: false) - Added proper error handling (#8)
What's Fixed?
- Made
Options
optional in type defs. (#9) - Fixed issue where input path with trailing slash did not get normalized (#10)
What's improved?
This release mainly included bug fixes and code refactoring. Nothing much has changed in terms of performance.