Skip to content

Releases: thecodrr/fdir

v3.4.1

17 May 09:33
Compare
Choose a tag to compare
chore: bump version to 3.4.1

3.4.0

15 May 17:37
Compare
Choose a tag to compare

What's New:

  1. 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"))
  1. 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

13 May 09:19
Compare
Choose a tag to compare

Breaking Changes:

  1. Due to performance reasons, I had to remove passing an Options object through the constructor. In place of that, now there is a new crawlWithOptions that takes an Options object in its second parameter:
new fdir().crawlWithOptions("path/to/dir", { includeBasePath: true }).sync();

Fixes:

  1. fdir will now properly handle the case where picomatch is not installed.

Improvements:

  1. Some minor memory improvements were made which should improve the performance slightly.

3.2.1

12 May 18:18
Compare
Choose a tag to compare

What's Improved

  1. glob performance has been improved by about 40%.

3.2.0

12 May 15:59
Compare
Choose a tag to compare

What's New:

  1. It is now possible to pass an Options object directly into the constructor, avoiding method chaining completely.

What's Fixed:

  1. Added missing typescript definitions for withError & crawl.
  2. 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

11 May 00:21
Compare
Choose a tag to compare
chore: bump version to 3.1.1

3.1.0

11 May 00:12
Compare
Choose a tag to compare

What's New:

  1. Added a new glob crawler option for glob matching using picomatch. To use it you must install picomatch yourself.

yarn add picomatch

This was done because not everyone needs globbing.

NOTE: This release is backwards compatible with 3.x

3.0.0

10 May 18:49
Compare
Choose a tag to compare

NOTE: This is a major release and as such is not backwards compatible with 2.x & 1.x

What's New:

  1. New API using the builder pattern. Check the full documentation here.
  2. Now, fdir, by default suppresses all errors, excludes the base path etc. To enable them use the builder functions.

What's Improved:

  1. Crawling speed has been improved by upto 40%! Check the README for benchmarks.
  2. The sync & async API now share the same core making it easier to maintain and fix bugs.

What's Fixed:

  1. 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

27 Apr 07:31
Compare
Choose a tag to compare

This is a minor patch release.

What's fixed:

  1. change TypeScript typings to use string instead of String (thanks to @OmgImAlexis) (#16)

2.1.0

21 Mar 18:56
Compare
Choose a tag to compare

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.