Features
Exclude symlinks
You can now specifically exclude symlinks from the crawling process. Here's how you can do that:
new fdir({ excludeSymlinks: true }).crawl().sync();
Thanks to @SuperchupuDev in #115
Custom glob functions
Previously, fdir only supported picomatch
for globbing disallowing any customization in this area. While that worked really well for most people, it wasn't super flexible. Starting from this version, fdir supports changing the default glob function:
// using a custom function
const customGlob = (patterns: string | string[]) => {
return (test: string): boolean => test.endsWith('.js');
};
const crawler = new fdir().withGlobFunction(customGlob).globWithOptions("**/*.js");
withGlobFunction
accepts a glob
factory function which you can use to perform intensive work only once. For example, picomatch
provides a glob factory that optimizes and preprocesses your glob patterns increasing match significantly.
Fixes
- Support symlinks with relative paths enabled by @SuperchupuDev in #114
- Do not return an empty string for the root by @SuperchupuDev in #123
Other
- Add Video Hub App to "Used by" section of README by @whyboris in #121
- docs: update symlinks support by @SuperchupuDev in #119
- chore(deps): bump vite from 5.0.2 to 5.4.8 by @dependabot in #117
- chore(deps): bump braces from 3.0.2 to 3.0.3 by @dependabot in #118
- docs: list more packages using
fdir
by @benmccann in #112
New Contributors
- @benmccann made their first contribution in #112
- @43081j made their first contribution in #98
- @whyboris made their first contribution in #121
Full Changelog: v6.3.0...v6.4.0