Repository navigation
3.0.0
๐ฎ Thanks
- Node.js team (@bengl) for the
withFileTypesoption in thefs.readdirmethod. - Jon Schlinkert (@jonschlinkert) for the new version of the micromatch package.
- Community for using my package.
- Special thanks for the issues and pull requests.
๐ Summary
This release aims to fix architectural issues, increase performance and reduce size of package.
๐ฃ Breaking changes
Since this is a major release, we are introducing a few breaking changes:
- Support for the
fast-glob@2is ending. - Require Node.js 8+. But we recommend using 10.10+ for performance issues.
- Only forward-slashes in glob expression. Previously, we convert all slashes to the forward-slashes, which did not allow the use of escaping. See pattern syntax section in the
README.mdfile. - Removed options:
nobrace,noglobstar,noext,nocase,transform. - Renamed options:
extensionโextglobfollowSymlinkedDirectoriesโfollowSymbolicLinkscaseโcaseSensitiveMatchbraceโbraceExpansionmatchBaseโbaseNameMatch
- The
deepoption now accepts onlynumbertype and default value now isInfinityinstead oftrue. - The
asyncmethod was removed. Usefg(/* โฆ */)instead. - The type of returned object when the
statsoption is enabled is completely changed.
๐ Bug fixes
- After update from
micromatch@3tomicromatch@4: - Now we do not convert slashes in patterns (#173).
- Previously, the
baseNameMatchoption never worked (#199).
๐ Improvements
๐ฌ Common
- Package size after installation is decreased:
2.47MBโ0.42MB. - Package
requiretime decreased:534msโ78ms.
๐ช๏ธ Speed
Wow! The new version is very fast. At least twice as fast as the previous version. Probably this is the fastest solution in the Node.js world. And that's not all! We will work on performance issues in the future ๐ข.
- Speed up between versions for directory with 265k entries: 5x (19s โ 4s).
- Speed up between versions for directory with 4kk entries: 4x (4m โ 1m).
Look at the benchmarks section in the README.md file.
โ๏ธ Flexibility
Also in this release we have worked on simplifying some scenarios.
Now, thanks to the new mechanism, you can get the type of entry without additional costs! Works only on Node.js 10.10+. Look at the
objectModeoption.