Skip to content

refactor: replace walk with recursive fs.readdir#956

Closed
slagiewka wants to merge 2 commits into
twigjs:masterfrom
slagiewka:drop_walk
Closed

refactor: replace walk with recursive fs.readdir#956
slagiewka wants to merge 2 commits into
twigjs:masterfrom
slagiewka:drop_walk

Conversation

@slagiewka
Copy link
Copy Markdown
Contributor

@slagiewka slagiewka commented Mar 28, 2026

This branch has a commit from #955. It's required to 1) make it work 2) prove the change retains original functionality.


readdir with recursive is possible since node v20.1.0/v18.17.0.
This project already requires node v22, therefore this option can be
safely used.

The original project suggests to use @root/walk which also uses
readdir but with manual recursion. The new lib was written ~3 years
before stdlib had it.

minimatch v9 uses only the named export, no defaults.

Adds a test suite to verify the compile module works.
`readdir` with `recursive` is possible since node v20.1.0/v18.17.0.
This project already requires node v22, therefore this option can be
safely used.

The original project suggests to use `@root/walk` which also uses
`readdir` but with manual recursion. The new lib was written ~3 years
before stdlib had it.
@willrowe
Copy link
Copy Markdown
Collaborator

Closing in favor of #959

@willrowe willrowe closed this May 11, 2026
@slagiewka slagiewka deleted the drop_walk branch May 12, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants