Skip to content

v0.5.0

Compare
Choose a tag to compare
@bdistin bdistin released this 12 May 22:35
· 77 commits to master since this release
db0be4e

[BREAKING] The library no longer re-exports fs promises. This allows wider compatibility with newer versions of node's fs, without locking out lower versions by having to import/export newly added fs promise methods.
[FEATURE] The library now exports all types used for underlying nextra interfaces.
[BREAKING] The scan function is now updated to use the new openDir function from node v12.12.0's fs. This should be more performant than the previous implementation, however, instead of providing a Map<path, Stats>, a Map<path, Dirent> is returned. Dirent has most of the same methods as Stats (so your filter functions probably will work the same), but it is missing some finer details you get with Stats. Please note the new implementation will error if you try to scan on a file, unlike the previous implementation. This also fixes some weird behavior around the limit option.
[BREAKING] Because we are using something added in node v12.12.0, the minimum engine is now that version.
[N/A] Aliases are now exported from within the files they are aliasing.
[PATCH] This fixes a couple of functions that weren't exported correctly.

This version will act as a first Release Candidate for v1.0.0.