Skip to content

Release v2.1.0 - #6

Merged
samiahmedsiddiqui merged 3 commits into
mainfrom
feature/page-limit-prompt
Oct 2, 2026
Merged

samiahmedsiddiqui merged 3 commits into
mainfrom
feature/page-limit-prompt

Conversation

@samiahmedsiddiqui

@samiahmedsiddiqui samiahmedsiddiqui commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

New

  • onPageLimit option: when a crawl reaches maxPages and more pages are waiting, call it instead of stopping. Return true to crawl maxPages more, a number to crawl that many more (Infinity for all), or false to finish. It receives the progress stats plus waitingPages. Without the option, crawls stop at maxPages as before.

Changed

  • maxPages (--max-pages) now defaults to 5000 instead of 1000 (README, types, schema, CLI help and website updated).

Tests

  • New tests: continuing in chunks, continuing with Infinity, answering false, and aborting while the question is open.
  • npm run lint, npm run test:types and npm test (78 tests) pass locally.

When everything up to maxPages is checked and more pages are waiting,
call onPageLimit and crawl more pages if it says so, instead of stopping.
@samiahmedsiddiqui
samiahmedsiddiqui force-pushed the feature/page-limit-prompt branch from e9ef34e to 7d1ec45 Compare October 2, 2026 13:49
@samiahmedsiddiqui
samiahmedsiddiqui merged commit 6a08048 into main Oct 2, 2026
9 checks passed
@samiahmedsiddiqui
samiahmedsiddiqui deleted the feature/page-limit-prompt branch October 2, 2026 13:51
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