Skip to content

feat/async-dir-scan#21

Merged
donfear merged 5 commits intomainfrom
feat/async-dir-scan
Mar 18, 2026
Merged

feat/async-dir-scan#21
donfear merged 5 commits intomainfrom
feat/async-dir-scan

Conversation

@donfear
Copy link
Owner

@donfear donfear commented Mar 18, 2026

No description provided.

donfear added 5 commits March 18, 2026 19:26
…son files

Introduces findAllPackageJsonFilesAsync with bounded parallel directory traversal
to improve scanning performance for large repositories. Uses configurable concurrency
(default 16, max 64) with proper timeout handling via Promise.race. The existing
synchronous function is updated with throttled progress reporting to reduce overhead.
…tion

Added SKIP_DIRS constant and shouldSkipDirectory() helper to consolidate directory
skipping logic. Replaced inline skipDirs arrays in findAllPackageJsonFiles and
findAllPackageJsonFilesAsync. Added tests for hidden directory skipping.
Allow users to configure the maximum directory depth for package.json discovery via --max-depth CLI flag. Defaults to 10 if not specified. Also added validation to ensure the value is a non-negative integer.
- Update vitest and @vitest/coverage-v8 from ^3.2.4 to ^4.1.0
- Refactor Pool mock in jsdelivr-registry retry test to use named mock class
@donfear donfear merged commit 1451a5f into main Mar 18, 2026
19 checks passed
@donfear donfear deleted the feat/async-dir-scan branch March 18, 2026 17:43
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.

1 participant